/* ==========================================================================
   NRI DECODE — BLOG.CSS
   File: public/assets/css/blog.css
   Brand: Life Abroad. India Connected.
   Palette: Navy #17263D · Burgundy #6A1B3B · Champagne Gold #D9C29A
   Fonts: Playfair Display (headings) · Inter (body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BLOG-SPECIFIC TOKENS
   (Extends custom.css :root — does not override brand tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Blog-specific aliases — map to NRI Decode brand */
  --blog-primary:      #6A1B3B;                    /* Burgundy — primary blog accent */
  --blog-primary-dark: #50132C;                    /* Darker burgundy for hovers */
  --blog-primary-light:#EEE5E8;                    /* Blush tint */
  --blog-secondary:    #17263D;                    /* Navy — headings / dark surfaces */
  --blog-secondary-dark:#101C30;                   /* Deeper navy */
  --blog-gold:         #D9C29A;                    /* Champagne gold accent */
  --blog-gold-dark:    #B99B6C;
  --blog-gold-light:   #F0E5D1;
  --blog-text-light:   #5A6169;                    /* WCAG AA muted text */
  --blog-bg-light:     #F7F5F2;                    /* Cream */
  --blog-card-bg:      #FFFFFF;
  --blog-border-light: #E7E1DA;
  --blog-shadow-sm:    rgba(23, 38, 61, 0.06);
  --blog-shadow-md:    rgba(23, 38, 61, 0.10);
  --blog-shadow-lg:    rgba(23, 38, 61, 0.14);
}

/* --------------------------------------------------------------------------
   2. HERO SECTION — Blog index
   -------------------------------------------------------------------------- */
.blog-hero {
  background: linear-gradient(135deg, var(--blog-secondary) 0%, var(--blog-secondary-dark) 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 30px;
  border-bottom: 4px solid var(--blog-gold);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 194, 154, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(106, 27, 59, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: white;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  line-height: 1.15;
}

.blog-hero .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
  position: relative;
  z-index: 1;
  line-height: 1.65;
}

.blog-hero p {
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

.blog-welcome-badge {
  background: var(--blog-gold);
  color: var(--blog-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

.breadcrumb {
    padding-bottom: 10px;
    
}

/* --------------------------------------------------------------------------
   3. BLOG SEARCH
   -------------------------------------------------------------------------- */
.blog-search {
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.blog-search .input-group {
  box-shadow: 0 4px 20px rgba(23, 38, 61, 0.25);
  border-radius: 50px;
  overflow: hidden;
}

.blog-search .form-control {
  border: none;
  padding: 0.8rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--blog-secondary);
}

.blog-search .form-control:focus {
  box-shadow: none;
  outline: none;
}

.blog-search .btn {
  background: var(--blog-primary);
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: background 0.2s ease;
}

.blog-search .btn:hover {
  background: var(--blog-primary-dark);
  color: white;
}

/* --------------------------------------------------------------------------
   4. SECTION TITLES — Blog-specific (scoped to avoid conflict with custom.css)
   -------------------------------------------------------------------------- */
.blog-hero ~ .container .section-title,
.blog-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--blog-secondary);
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

.blog-hero ~ .container .section-title::after,
.blog-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--blog-gold);
  border-radius: 2px;
}

.text-center .blog-section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   5. FEATURED CARDS
   -------------------------------------------------------------------------- */
.featured-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  box-shadow: 0 4px 15px var(--blog-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--blog-shadow-md);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-no-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--blog-secondary), var(--blog-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(23, 38, 61, 0.94));
  padding: 1.5rem;
  color: white;
}

.featured-label {
  background: var(--blog-gold);
  color: var(--blog-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.featured-overlay h5 a {
  font-family: 'Playfair Display', Georgia, serif;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.featured-overlay h5 a:hover {
  color: var(--blog-gold);
}

.featured-overlay small {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
}

.featured-overlay small i {
  color: var(--blog-gold);
  margin-right: 0.3rem;
}

/* --------------------------------------------------------------------------
   6. BLOG CARDS
   -------------------------------------------------------------------------- */
.blog-card {
  background: var(--blog-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--blog-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  border: 1px solid var(--blog-border-light);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--blog-shadow-md);
  border-color: var(--blog-gold);
}

.blog-card-img {
  width: 100%;
  object-fit: cover;
}

.blog-no-image {
  height: 220px;
  background: linear-gradient(135deg, var(--blog-secondary), var(--blog-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-category {
  background: var(--blog-primary);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s ease;
}

.blog-category:hover {
  background: var(--blog-primary-dark);
  color: white;
  text-decoration: none;
}

.blog-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.blog-title a {
  color: var(--blog-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-title a:hover {
  color: var(--blog-primary);
  text-decoration: none;
}

.blog-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--blog-text-light);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--blog-border-light);
}

.blog-meta i {
  color: var(--blog-primary);
  margin-right: 0.3rem;
}

.blog-meta span {
  margin-right: 1rem;
}

.blog-read-more {
  color: var(--blog-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.blog-read-more:hover {
  color: var(--blog-primary-dark);
  gap: 0.8rem;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   7. SIDEBAR
   -------------------------------------------------------------------------- */
.sidebar-box {
  background: var(--blog-card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px var(--blog-shadow-sm);
  border-left: 4px solid var(--blog-gold);
  margin-bottom: 1.5rem;
}

.sidebar-box h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--blog-secondary);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blog-gold);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--blog-border-light);
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--blog-text-light);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-list a:hover {
  color: var(--blog-primary);
  padding-left: 5px;
  text-decoration: none;
}

.popular-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--blog-border-light);
}

.popular-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.popular-link {
  font-family: 'Inter', sans-serif;
  color: var(--blog-secondary);
  font-weight: 500;
  text-decoration: none;
  display: block;
  margin-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.popular-link:hover {
  color: var(--blog-primary);
  text-decoration: none;
}

.popular-item small {
  color: var(--blog-text-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
}

.popular-item small i {
  color: var(--blog-primary);
  margin-right: 0.3rem;
}

/* --------------------------------------------------------------------------
   8. PAGINATION
   -------------------------------------------------------------------------- */
.pagination .page-link {
  color: var(--blog-primary);
  border: 1px solid var(--blog-border-light);
  margin: 0 3px;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.pagination .page-link:hover {
  background: var(--blog-primary-light);
  border-color: var(--blog-primary);
  color: var(--blog-primary-dark);
}

.pagination .active .page-link {
  background: var(--blog-primary);
  border-color: var(--blog-primary);
  color: white;
}

.pagination .active .page-link:hover {
  background: var(--blog-primary-dark);
  border-color: var(--blog-primary-dark);
  color: white;
}

/* --------------------------------------------------------------------------
   9. CATEGORY TAGS
   -------------------------------------------------------------------------- */
.category-tag {
  display: inline-block;
  background: var(--blog-primary-light);
  color: var(--blog-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-tag:hover {
  background: var(--blog-primary);
  color: white;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   10. BLOG POST HERO — Single post page
   -------------------------------------------------------------------------- */
.blog-post-hero {
  background: linear-gradient(135deg, var(--blog-secondary) 0%, var(--blog-secondary-dark) 100%);
  color: white;
  padding: 60px 0 50px;
  margin-bottom: 30px;
  border-bottom: 4px solid var(--blog-gold);
  position: relative;
  overflow: hidden;
}

.blog-post-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 194, 154, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-post-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(106, 27, 59, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-post-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.blog-post-hero .blog-post-meta {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.blog-post-hero .blog-post-meta i {
  color: var(--blog-gold);
  margin-right: 0.25rem;
}

.blog-category-badge {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.blog-category-badge:hover {
  background: var(--blog-gold);
  color: var(--blog-secondary);
  text-decoration: none;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   11. ARTICLE BODY (single post)
   -------------------------------------------------------------------------- */
.article-content {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #303744;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--blog-secondary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.article-content h2 { font-size: 1.6rem; font-weight: 600; }
.article-content h3 { font-size: 1.3rem; font-weight: 600; }
.article-content h4 { font-size: 1.1rem; font-weight: 600; }

.article-content p {
  margin-bottom: 1.15rem;
}

.article-content a {
  color: var(--blog-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.article-content a:hover {
  color: var(--blog-primary-dark);
}

.article-content blockquote {
  border-left: 4px solid var(--blog-gold);
  background: var(--blog-gold-light);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
  color: var(--blog-secondary);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.15rem;
}

.article-content li {
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE — Tablet (≤768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .blog-hero {
    padding: 40px 0;
    text-align: center;
  }

  .blog-hero .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .blog-hero .d-flex {
    justify-content: center;
  }

  .featured-card {
    height: 200px;
  }

  .blog-card-img,
  .blog-no-image {
    height: 180px;
  }

  .blog-card-content {
    padding: 1.2rem;
  }

  .blog-title {
    font-size: 1.05rem;
  }

  .sidebar-box {
    padding: 1.2rem;
  }

  .blog-section-title,
  .blog-hero ~ .container .section-title {
    font-size: 1.5rem;
  }

  .blog-post-hero {
    padding: 40px 0 30px;
    text-align: center;
  }

  .blog-post-hero h1 {
    font-size: 1.6rem;
  }

  .blog-post-hero .blog-post-meta {
    font-size: 0.85rem;
  }
}

/* --------------------------------------------------------------------------
   13. RESPONSIVE — Mobile (≤576px)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  .blog-hero {
    padding: 30px 0;
  }

  .blog-hero h1 {
    font-size: 1.6rem;
  }

  .featured-card {
    height: 180px;
  }

  .featured-overlay {
    padding: 1rem;
  }

  .blog-card-img,
  .blog-no-image {
    height: 160px;
  }

  .blog-meta span {
    margin-right: 0.75rem;
    font-size: 0.75rem;
  }

  .pagination .page-link {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
  }

  .blog-post-hero {
    padding: 30px 0 25px;
  }

  .blog-post-hero h1 {
    font-size: 1.4rem;
  }

  .blog-post-hero .blog-post-meta span {
    display: inline-block;
    margin-bottom: 0.25rem;
  }
}

/* --------------------------------------------------------------------------
   14. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .blog-hero,
  .blog-post-hero {
    background: var(--blog-secondary) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .blog-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .blog-card:hover {
    transform: none;
  }

  .blog-search {
    display: none;
  }
}

/* ==========================================================================
   BLOG CATEGORY HERO — archive page
   ========================================================================== */
.blog-category-hero {
  background: linear-gradient(135deg, var(--blog-secondary) 0%, var(--blog-secondary-dark) 100%);
  color: white;
  padding: 60px 0 50px;
  margin-bottom: 30px;
  border-bottom: 4px solid var(--blog-gold);
  position: relative;
  overflow: hidden;
}

.blog-category-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 194, 154, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-category-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(106, 27, 59, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-category-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: white;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.blog-category-hero .lead {
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.blog-category-hero > .container {
  position: relative;
  z-index: 1;
}

.blog-category-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(217, 194, 154, 0.15);
  border: 1px solid rgba(217, 194, 154, 0.3);
  color: var(--blog-gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
}

.blog-category-count i {
  color: var(--blog-gold);
}

.blog-category-search .btn-primary {
  background: var(--blog-primary);
  border-color: var(--blog-primary);
  color: white;
}

.blog-category-search .btn-primary:hover {
  background: var(--blog-primary-dark);
  border-color: var(--blog-primary-dark);
}

@media (max-width: 768px) {
  .blog-category-hero {
    padding: 40px 0 30px;
    text-align: center;
  }
  .blog-category-hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
}