/**
 * Apka Sathi - Authentic Human-Crafted Blog & Editorial Portal
 * Zero Dead Space — Fully Fluid with Container-Wide
 */

/* ==========================================================================
   Base Portal Styling
   ========================================================================== */
.blog-portal {
  background-color: var(--as-bg-canvas, #070b14);
  color: var(--as-text-primary, #f8fafc);
  min-height: 100vh;
  padding: 1.5rem 0 4rem;
  width: 100%;
}

/* Hero Banner matching Apka Sathi Catalog Style */
.blog-hero {
  background: linear-gradient(180deg, rgba(16, 25, 45, 0.7) 0%, rgba(7, 11, 20, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0 2.25rem;
  margin-bottom: 2rem;
}

.blog-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.blog-hero-copy {
  flex: 1;
  min-width: 280px;
}

.blog-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #2dd4bf;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.blog-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .blog-hero-title {
    font-size: 2.75rem;
  }
}

.blog-hero-desc {
  color: #94a3b8;
  font-size: 0.98rem;
  margin: 0;
  max-width: 650px;
  line-height: 1.55;
}

/* Natural Search Bar */
.blog-search-box {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  max-width: 420px;
}

.blog-search-input {
  width: 100%;
  padding: 0.8rem 6rem 0.8rem 2.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.blog-search-input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.blog-search-ico {
  position: absolute;
  left: 0.95rem;
  color: #64748b;
  font-size: 0.9rem;
  pointer-events: none;
}

.blog-search-submit {
  position: absolute;
  right: 0.35rem;
  padding: 0.5rem 1rem;
  background: #14b8a6;
  color: #042f2e;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.blog-search-submit:hover {
  background: #2dd4bf;
}

/* ==========================================================================
   Category Filter Strip (Full Width)
   ========================================================================== */
.blog-cats-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  margin-bottom: 1.75rem;
  scrollbar-width: none;
}

.blog-cats-strip::-webkit-scrollbar {
  display: none;
}

.blog-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 25, 45, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.blog-cat-btn:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(20, 184, 166, 0.4);
  color: #ffffff;
}

.blog-cat-btn.is-active {
  background: #14b8a6;
  border-color: #14b8a6;
  color: #042f2e;
  font-weight: 800;
}

.blog-cat-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Featured Story Section (Edge-to-Edge Within Container-Wide)
   ========================================================================== */
.blog-featured-wrap {
  margin-bottom: 2.5rem;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: rgba(16, 25, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

@media (min-width: 900px) {
  .blog-featured-card {
    grid-template-columns: 50% 50%;
  }
}

.blog-featured-card:hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.blog-featured-media {
  position: relative;
  width: 100%;
  height: 260px;
  background: #020617;
  overflow: hidden;
}

@media (min-width: 900px) {
  .blog-featured-media {
    height: 340px;
  }
}

.blog-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.blog-featured-card:hover .blog-featured-img {
  transform: scale(1.04);
}

.blog-featured-flag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  background: #f59e0b;
  color: #0f172a;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-featured-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 900px) {
  .blog-featured-info {
    padding: 2.25rem;
  }
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.blog-featured-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 0.85rem;
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .blog-featured-title {
    font-size: 1.95rem;
  }
}

.blog-featured-card:hover .blog-featured-title {
  color: #2dd4bf;
}

.blog-featured-excerpt {
  color: #cbd5e1;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Fluid Full-Width Article Grid
   ========================================================================== */
.blog-fluid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  width: 100%;
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  background: rgba(16, 25, 45, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  height: 100%;
}

.blog-post-card:hover {
  border-color: rgba(20, 184, 166, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.blog-card-thumb {
  position: relative;
  width: 100%;
  height: 190px;
  background: #020617;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.blog-post-card:hover .blog-card-img {
  transform: scale(1.05);
}

.blog-card-cat-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 6px;
  color: #2dd4bf;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card-views {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.blog-post-card:hover .blog-card-title {
  color: #2dd4bf;
}

.blog-card-excerpt {
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* ==========================================================================
   2-Column Magazine Article Portal Layout (Zero Dead Space)
   ========================================================================== */
.article-portal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  width: 100%;
}

@media (min-width: 1040px) {
  .article-portal-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (min-width: 1440px) {
  .article-portal-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
}

/* Main Column */
.article-main-col {
  min-width: 0;
}

.article-crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.article-crumbs a {
  color: #94a3b8;
  text-decoration: none;
}

.article-crumbs a:hover {
  color: #2dd4bf;
}

.article-header {
  margin-bottom: 1.75rem;
}

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  color: #94a3b8;
}

.article-cat-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 6px;
  color: #2dd4bf;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.article-title-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .article-title-h1 {
    font-size: 2.85rem;
  }
}

.article-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.article-author-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

/* Capped Hero Cover Image */
.article-cover-frame {
  width: 100%;
  height: 360px;
  max-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Natural Editorial Article Body */
.article-content-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #cbd5e1;
  margin-bottom: 3rem;
}

.article-content-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.article-content-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2dd4bf;
  margin: 1.85rem 0 0.75rem;
  line-height: 1.35;
}

.article-content-body p {
  margin: 0 0 1.35rem;
}

.article-content-body ul, .article-content-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.article-content-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content-body strong {
  color: #ffffff;
  font-weight: 700;
}

.article-content-body blockquote {
  background: rgba(16, 25, 45, 0.7);
  border-left: 4px solid #14b8a6;
  border-radius: 0 12px 12px 0;
  padding: 1.15rem 1.4rem;
  margin: 1.75rem 0;
  color: #94a3b8;
  font-style: italic;
  font-size: 1rem;
}

/* Sticky Sidebar Column */
.article-sidebar-col {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-box {
  background: rgba(16, 25, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
}

.sidebar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.65rem;
}

/* Sidebar Trending Post Item */
.sidebar-post-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.sidebar-post-item:last-child {
  margin-bottom: 0;
}

.sidebar-post-item:hover .sidebar-post-title {
  color: #2dd4bf;
}

.sidebar-post-thumb {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #020617;
}

.sidebar-post-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.sidebar-post-time {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 3px;
}

/* Share Pill Buttons */
.share-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-pill-wa { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.share-pill-wa:hover { background: #22c55e; color: #fff; }

.share-pill-tw { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.share-pill-tw:hover { background: #0ea5e9; color: #fff; }

.share-pill-copy { background: rgba(255, 255, 255, 0.08); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.12); cursor: pointer; }
.share-pill-copy:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
