/* ============================================================
   Bol Kinnauri — Modern Unified Site Stylesheet
   Supports Light Mode (Default) and Dark Mode
   ============================================================ */

:root {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --brand-blue: #1d4ed8;
  --brand-blue-rgb: 29, 78, 216;
  --brand-blue-hover: #1e40af;
  --brand-green: #059669;
  --brand-green-rgb: 5, 150, 105;
  --brand-green-hover: #047857;
  
  --accent-pink: #db2777;
  --accent-orange: #ea580c;
  --accent-purple: #7c3aed;
  
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-dev: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-alt: #1f2937;
  --bg-glass: rgba(17, 24, 39, 0.9);
  --border: #1f2937;
  --border-light: #374151;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  
  --brand-blue: #3b82f6;
  --brand-blue-rgb: 59, 130, 246;
  --brand-blue-hover: #60a5fa;
  --brand-green: #10b981;
  --brand-green-rgb: 16, 185, 129;
  --brand-green-hover: #34d399;
  
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   NAVBAR & HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo, .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.15;
  transition: opacity 0.2s ease;
}

.site-brand:hover {
  opacity: 0.92;
}

.site-brand-logo, .logo-img {
  height: 42px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.site-brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  color: var(--text-main);
  white-space: nowrap;
}

.site-brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  white-space: nowrap;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--brand-blue);
  border-radius: var(--radius-pill);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-icon-nav {
  background: none;
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-icon-nav:hover {
  color: var(--text-main);
  background: var(--bg-surface-alt);
  border-color: var(--text-subtle);
}

.btn-nav-login {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-blue);
  background: transparent;
  border: 1.5px solid var(--brand-blue);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-nav-login:hover {
  background: rgba(var(--brand-blue-rgb), 0.08);
}

.btn-nav-signup {
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff !important;
  background: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
  box-shadow: 0 4px 12px rgba(var(--brand-blue-rgb), 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-nav-signup:hover {
  background: var(--brand-blue-hover);
  box-shadow: 0 6px 16px rgba(var(--brand-blue-rgb), 0.35);
  transform: translateY(-1px);
}

.mobile-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 1.25rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-hamburger:hover {
  background: var(--bg-surface-alt);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-surface);
  z-index: 9999;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin-bottom: 24px;
}

.mobile-nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
}

.mobile-nav-links a.active {
  color: var(--brand-blue);
  font-weight: 700;
}

/* ============================================================
   HERO SECTION (HOME)
   ============================================================ */
.hero-wrapper {
  position: relative;
  background: url('../images/hero_banner.jpg') no-repeat center right / cover;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

/* Dark mode / Light mode overlay tint for readability */
.hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    var(--bg-body) 0%, 
    var(--bg-body) 38%, 
    rgba(var(--brand-blue-rgb), 0.08) 60%, 
    transparent 100%
  );
  z-index: 1;
}

[data-theme="dark"] .hero-wrapper::before {
  background: linear-gradient(
    90deg, 
    #0b0f19 0%, 
    rgba(11, 15, 25, 0.95) 40%, 
    rgba(11, 15, 25, 0.6) 75%, 
    transparent 100%
  );
}

.hero-content-box {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 60px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #3b82f6;
  color: #ffffff;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.hero-title .title-blue {
  color: #1e3a8a;
}
[data-theme="dark"] .hero-title .title-blue {
  color: #60a5fa;
}

.hero-title .title-green {
  color: #059669;
}
[data-theme="dark"] .hero-title .title-green {
  color: #34d399;
}

.hero-tagline {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 26px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transition: all 0.25s ease;
}

.btn-primary-pill:hover {
  background: #1d4ed8;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
}

.btn-secondary-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px);
}

.hero-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.guarantee-item i {
  color: #059669;
  font-size: 0.95rem;
}

/* Floating Quotes in Hero */
.hero-floating-quote {
  position: absolute;
  right: 5%;
  bottom: 24px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.85rem;
  font-style: italic;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================
   FEATURE CARDS GRID (4 CARDS)
   ============================================================ */
.features-section {
  padding: 60px 0;
}

.feature-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--brand-blue);
}

.feat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.fi-blue { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.fi-green { background: rgba(5, 150, 105, 0.1); color: #059669; }
.fi-pink { background: rgba(219, 39, 119, 0.1); color: #db2777; }
.fi-orange { background: rgba(234, 88, 12, 0.1); color: #ea580c; }

.feature-card-item h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex: 1;
}

.feat-link {
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.fi-blue-link { color: #2563eb; }
.fi-green-link { color: #059669; }
.fi-pink-link { color: #db2777; }
.fi-orange-link { color: #ea580c; }

.feature-card-item:hover .feat-link {
  gap: 9px;
}

/* ============================================================
   ABOUT SECTION (3-COLUMN SPLIT)
   ============================================================ */
.about-section {
  padding: 40px 0 70px;
}

.about-grid-3 {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.15fr;
  gap: 32px;
  align-items: center;
}

.about-text-col h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.about-text-col p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.about-checklist i {
  color: #059669;
}

.about-center-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-center-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-center-img:hover img {
  transform: scale(1.03);
}

.img-caption-overlay {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
  padding: 20px 16px 14px;
  color: #ffffff;
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
}

.about-stats-col h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.stats-2x2-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease;
}

.stat-box-card:hover {
  transform: translateY(-3px);
}

.stat-box-card .s-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.stat-box-card .s-num {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-box-card .s-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Stat colors */
.sc-green { color: #059669; }
.sc-blue { color: #2563eb; }
.sc-red { color: #e11d48; }
.sc-purple { color: #7c3aed; }

/* ============================================================
   LATEST ARTICLES / BLOGS CARDS
   ============================================================ */
.articles-section {
  padding: 50px 0 80px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.section-heading-main {
  font-size: 1.9rem;
  font-weight: 800;
}

.section-view-all {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.articles-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--brand-blue);
}

.article-img-wrap {
  position: relative;
  height: 170px;
  overflow: hidden;
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-img-wrap img {
  transform: scale(1.05);
}

.article-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: capitalize;
}

.cat-culture { background: #059669; }
.cat-language { background: #2563eb; }
.cat-songs { background: #db2777; }
.cat-learning { background: #ea580c; }
.cat-vocabulary { background: #7c3aed; }
.cat-traditions { background: #0891b2; }
.cat-travel { background: #0d9488; }
.cat-tips { background: #e11d48; }

.article-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-date {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.article-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover .article-title {
  color: var(--brand-blue);
}

.article-excerpt {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.article-read-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ============================================================
   MISSION CTA BANNER
   ============================================================ */
.mission-cta-section {
  position: relative;
  background: url('../images/mission_cta_bg.jpg') no-repeat center center / cover;
  padding: 44px 0;
  color: #ffffff;
  overflow: hidden;
}

.mission-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
}

.mission-cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mission-cta-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.mission-cta-text p {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.btn-cta-white {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #1e3a8a !important;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.btn-cta-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-blue);
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.newsletter-box {
  margin-top: 12px;
}

.newsletter-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-body);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
}

.newsletter-input:focus {
  border-color: var(--brand-blue);
}

.newsletter-btn {
  padding: 10px 18px;
  background: var(--brand-blue);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-btn:hover {
  background: var(--brand-blue-hover);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* ============================================================
   BLOGS PAGE STYLES (IMAGE 2 MATCH)
   ============================================================ */
.blog-hero-banner {
  position: relative;
  background: url('../images/blogs_hero_banner.jpg') no-repeat center center / cover;
  min-height: 240px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.blog-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 650px;
  padding: 40px 0;
}

.blog-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.blog-hero-content p {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.blog-hero-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: #93c5fd;
}

/* Category Filter Pills */
.category-pills-wrap {
  padding: 20px 0;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  white-space: nowrap;
}

.category-pills-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.cat-pill:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.cat-pill.active {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 12px rgba(var(--brand-blue-rgb), 0.25);
}

/* Blog Content Layout (Left Grid + Right Sidebar) */
.blog-layout-wrap {
  padding: 40px 0 70px;
}

.blog-layout-grid {
  display: grid;
  grid-template-columns: 2.7fr 1fr;
  gap: 36px;
}

.blog-main-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.blog-count-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

/* Sidebar Widgets */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.search-box-wrap {
  position: relative;
  display: flex;
}

.search-box-input {
  width: 100%;
  padding: 10px 42px 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-body);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
}

.search-box-btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  width: 32px;
  background: var(--brand-blue);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-count-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-count-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cat-count-item a:hover {
  background: var(--bg-surface-alt);
  color: var(--brand-blue);
}

.cat-count-badge {
  background: var(--bg-surface-alt);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-subtle);
}

.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popular-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.popular-post-thumb {
  width: 60px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.popular-post-info h5 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-post-info span {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.page-num:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.page-num.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

/* ============================================================
   GLOBAL SEARCH MODAL
   ============================================================ */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-modal-backdrop.active {
  display: flex;
}

.search-modal-card {
  width: 90%;
  max-width: 600px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-modal-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.search-modal-head input {
  flex: 1;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-main);
  outline: none;
}

.search-modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.search-modal-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
}

.search-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.search-result-row:hover {
  background: var(--bg-surface-alt);
}

.s-res-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.s-res-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.s-res-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(var(--brand-blue-rgb), 0.1);
  color: var(--brand-blue);
}

/* ============================================================
   SINGLE BLOG POST READ VIEW (MOCKUP ACCURATE)
   ============================================================ */
.post-hero-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 46px 0 54px;
  color: #ffffff;
  overflow: hidden;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.88) 100%);
  z-index: 1;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.post-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.post-breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.15s;
}

.post-breadcrumbs a:hover {
  color: #60a5fa;
}

.post-breadcrumbs .sep {
  opacity: 0.5;
}

.post-hero-cat-badge {
  display: inline-block;
  background: #10b981;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
  text-transform: capitalize;
}

.post-hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.post-hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 820px;
  line-height: 1.6;
}

/* Author & Metadata Bar */
.post-meta-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.post-meta-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.post-author-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author-details {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-main);
}

.post-author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-meta-pills {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-left: 10px;
}

.post-meta-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-share-circle-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.86rem;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.share-circle-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.sc-fb { background: #1877f2; }
.sc-x { background: #111827; }
.sc-li { background: #0a66c2; }
.sc-pin { background: #e60023; }
.sc-wa { background: #25d366; }

/* Read Main Layout */
.read-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  max-width: 1140px;
  margin: 40px auto 80px;
  padding: 0 20px;
  align-items: start;
}

.read-main-content {
  min-width: 0;
}

.read-featured-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  margin-bottom: 12px;
  position: relative;
}

.read-featured-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.read-featured-caption {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}

.lead-paragraph {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 26px;
}

.read-main-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  scroll-margin-top: 90px;
}

.read-main-content p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 20px;
}

/* Split content (Checklist + Image) */
.read-content-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: center;
  margin: 24px 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

.check-list li i {
  color: #2563eb;
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.inline-card-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.inline-card-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.inline-card-image .img-caption {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  background: var(--bg-surface-alt);
}

/* Proverb Callout */
.proverb-callout {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(37, 99, 235, 0.06);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 32px 0;
}

.proverb-callout .callout-icon {
  font-size: 1.8rem;
  color: var(--brand-blue);
  flex-shrink: 0;
  opacity: 0.8;
}

.proverb-callout .callout-quote {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 6px;
}

.proverb-callout .callout-author {
  font-size: 0.86rem;
  color: var(--brand-blue);
  font-weight: 600;
  text-align: right;
}

/* Bottom Share Bar */
.bottom-share-card {
  margin-top: 40px;
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.bottom-share-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.bottom-share-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.share-pill-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.sp-fb { background: #1877f2; }
.sp-x { background: #111827; }
.sp-li { background: #0a66c2; }
.sp-pin { background: #e60023; }
.sp-wa { background: #25d366; }

/* Sidebar Widgets */
.read-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sidebar-widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

/* TOC Links */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.45;
  display: block;
  transition: color 0.15s, padding-left 0.15s;
}

.toc-list li a:hover {
  color: var(--brand-blue);
  padding-left: 4px;
}

/* Related Posts List */
.sidebar-rel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-rel-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s;
}

.sidebar-rel-item:hover {
  opacity: 0.85;
}

.sidebar-rel-thumb {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-rel-info h5 {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 4px;
  color: var(--text-main);
}

.sidebar-rel-date {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Sidebar Newsletter */
.sidebar-nl-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.sidebar-nl-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Sidebar Tags */
.sidebar-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.15s;
}

.sidebar-tag-pill:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
}

/* Quote Card Widget */
.sidebar-quote-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 24px 16px;
  text-align: center;
  color: #ffffff;
  background: url('../images/quote_card_banner.jpg') center/cover no-repeat;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Intermediate laptops and screens: adjust navbar spacing so it never wraps */
@media (max-width: 1240px) {
  .nav-menu {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.86rem;
    padding: 4px 0;
  }
  .btn-nav-login {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
  .btn-nav-signup {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
  .site-brand-title {
    font-size: 1.2rem;
  }
}

/* Tablet & Mobile Breakpoint: switch to mobile hamburger and hide desktop menu */
@media (max-width: 1080px) {
  .nav-menu {
    display: none !important;
  }
  .mobile-hamburger {
    display: inline-flex !important;
  }
  .btn-nav-login,
  .btn-nav-signup {
    display: none !important;
  }
  .feature-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid-3 { grid-template-columns: 1fr; }
  .articles-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .blog-layout-grid { grid-template-columns: 1fr; }
  .read-layout-grid { grid-template-columns: 1fr; }
  .read-content-split { grid-template-columns: 1fr; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile Screens */
@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
  }
  .nav-container {
    height: 60px;
  }
  .site-brand-logo {
    height: 32px;
    max-width: 36px;
  }
  .site-brand-title {
    font-size: 1.12rem;
  }
  .site-brand-tagline {
    display: none !important;
  }
  .nav-actions {
    gap: 6px;
  }
  .btn-icon-nav {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  .mobile-hamburger {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  .hero-title { font-size: 2.1rem; }
  .post-hero-title { font-size: 1.65rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .feature-grid-4 { grid-template-columns: 1fr; }
  .articles-grid-4 { grid-template-columns: 1fr; }
  .blog-cards-grid-3 { grid-template-columns: 1fr; }
  .mission-cta-inner { flex-direction: column; text-align: center; }
  .footer-bottom-bar { flex-direction: column; gap: 12px; text-align: center; }
  .post-meta-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE FOOTER: 2 & 3 COLUMNS SYSTEM
   ============================================================ */
/* Tablet & Medium Screens (520px to 900px) — 3 Columns */
@media (min-width: 521px) and (max-width: 900px) {
  .site-footer {
    padding: 45px 0 24px;
  }
  .footer-top-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px 20px !important;
    margin-bottom: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
    margin-bottom: 4px;
  }
  .footer-col-social {
    grid-column: auto !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  .footer-col-social .newsletter-form {
    flex-direction: column;
    gap: 8px;
  }
  .footer-col-social .newsletter-btn {
    width: 100%;
  }
}

/* Mobile Screens (up to 520px) — 2 Columns (Quick Links | Support) */
@media (max-width: 520px) {
  .site-footer {
    padding: 36px 0 20px;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 26px 16px !important;
    margin-bottom: 28px !important;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
    margin-bottom: 4px;
  }
  .footer-brand p {
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-muted);
  }
  .footer-col-links h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
  }
  .footer-links {
    gap: 8px;
  }
  .footer-links a {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: inline-block;
    padding: 2px 0;
  }
  .footer-col-social {
    grid-column: 1 / -1 !important;
    margin-top: 6px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }
  .social-icons-row {
    margin-bottom: 14px;
    gap: 10px;
  }
  .social-btn {
    width: 35px;
    height: 35px;
    font-size: 0.95rem;
  }
  .newsletter-box {
    margin-top: 6px;
  }
  .newsletter-box p {
    font-size: 0.84rem;
    margin-bottom: 8px;
  }
  .newsletter-form {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  .newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.86rem;
  }
  .newsletter-btn {
    padding: 10px 18px;
    font-size: 0.86rem;
    white-space: nowrap;
  }
  .footer-bottom-bar {
    padding-top: 18px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 0.8rem;
  }
}

/* ============================================================
   MODERN TOAST & SUBSCRIPTION POPUP SYSTEM
   ============================================================ */
.bk-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.bk-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.bk-modal-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.35);
  max-width: 440px;
  width: 100%;
  padding: 34px 28px 28px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.bk-modal-backdrop.show .bk-modal-card {
  transform: scale(1) translateY(0);
}

.bk-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2563eb, #10b981, #db2777);
}

.bk-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.bk-modal-close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  transform: rotate(90deg);
}

.bk-modal-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  position: relative;
  animation: bkPulse 2s infinite;
}

@keyframes bkPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bk-modal-icon-wrap.success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 2px solid rgba(16, 185, 129, 0.25);
}

.bk-modal-icon-wrap.info {
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  border: 2px solid rgba(37, 99, 235, 0.25);
  animation-name: bkPulseInfo;
}

@keyframes bkPulseInfo {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.bk-modal-icon-wrap.error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 2px solid rgba(239, 68, 68, 0.25);
  animation-name: bkPulseError;
}

@keyframes bkPulseError {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.bk-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.bk-modal-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bk-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, var(--brand-blue), #1e40af);
  color: #ffffff;
}

.bk-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.bk-modal-btn.success-btn {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.bk-modal-btn.success-btn:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

/* ============================================================
   MODERN AUTH PAGES (LOGIN, REGISTER, FORGOT PASSWORD)
   Unified with Site Header and Footer
   ============================================================ */
.auth-page-section {
  padding: 60px 16px 90px;
  min-height: calc(100vh - 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 15%, rgba(37, 99, 235, 0.08), transparent 70%);
  position: relative;
}

.auth-page-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 32px 32px;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: all 0.3s ease;
}

[data-theme="dark"] .auth-page-card {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  background: var(--bg-surface);
  border-color: var(--border-light);
}

.auth-card-head {
  text-align: center;
  margin-bottom: 26px;
}

.auth-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.auth-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-card-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-fg {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-subtle);
  font-size: 0.95rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  background: var(--bg-surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px 12px 42px;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  background: var(--bg-surface);
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.auth-input::placeholder {
  color: var(--text-subtle);
}

.auth-input-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}

.auth-input-toggle:hover {
  color: var(--text-main);
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  margin-bottom: 20px;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.auth-checkbox-label input {
  accent-color: var(--brand-blue);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.auth-forgot-link {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand-blue), #1e40af);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-sep {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0 20px;
  color: var(--text-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-sep::before,
.auth-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-sep span {
  padding: 0 14px;
}

.auth-card-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.auth-card-footer a {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

.auth-card-footer a:hover {
  text-decoration: underline;
}

.auth-error-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-success-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Password strength bar */
.auth-pwd-meter {
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin-top: 6px;
  overflow: hidden;
}

.auth-pwd-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.35s ease, background-color 0.35s ease;
}

.auth-pwd-text {
  font-size: 0.74rem;
  margin-top: 4px;
  display: block;
}

