/* ============================================================
   CHAKMA LANGUAGE DEVELOPMENT TEAM — COMPLETE MAIN STYLESHEET
   Design System: Forest Green (#0d3829) & Terracotta (#b44322)
   Matches Desktop Version All Pages & Menu Preview Exactly
   ============================================================ */

/* ── Design Tokens & Variables ── */
:root {
  /* Brand Colors */
  --primary: #0d3829;
  --primary-hover: #08261c;
  --primary-light: #e8f2ec;
  --primary-tint: #f3f8f5;

  --terracotta: #b44322;
  --terracotta-hover: #983519;
  --terracotta-light: #faede9;

  --gold: #c59b27;
  --gold-light: #fef8e7;

  /* Neutrals */
  --bg-page: #fbfaf8;
  --bg-card: #ffffff;
  --bg-dark-footer: #0c3628;

  --text-main: #182821;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #ffffff;

  --border-color: #e5ebe7;
  --border-subtle: #f0f4f1;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 56, 41, 0.05);
  --shadow-card: 0 2px 8px rgba(13, 56, 41, 0.06);
  --shadow-hover: 0 6px 18px rgba(13, 56, 41, 0.10);
  --shadow-modal: 0 16px 40px rgba(13, 56, 41, 0.14);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: 'Times New Roman', Times, serif;
  --font-chakma: 'Noto Sans Chakma', 'Times New Roman', Times, serif;
  --font-body: 'Times New Roman', Times, serif;

  --header-height: 70px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main#main-content {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Brand Typography Utilities ── */
.text-terracotta {
  color: var(--terracotta) !important;
}
.text-primary {
  color: var(--primary) !important;
}
.text-gold {
  color: var(--gold) !important;
}
.chakma-script {
  font-family: var(--font-chakma);
}

/* ── Buttons Baseline ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ── 1. Header (Desktop & Mobile) — Signature Crimson & Olive Palette ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ac3242;
  box-shadow: 0 4px 18px rgba(172, 50, 66, 0.28), 0 2px 4px rgba(0, 0, 0, 0.08);
  height: var(--header-height);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Top Dark Slate Teal Strip matching the user's reference image */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #273f43;
  z-index: 1001;
}

.nav-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-emblem {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease;
}
.nav-logo:hover .logo-emblem {
  transform: scale(1.05);
}
.logo-text {
  display: flex;
  flex-direction: column;
}
.logo-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.logo-sub {
  font-size: 0.70rem;
  color: #f7dcd0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin-left: auto;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}
.nav-link:hover {
  background: #39562f;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.nav-link.active {
  background: #39562f;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.nav-chevron {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  color: #fce4e8;
}
.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

/* Dropdowns (Panels 12 & 13) */
.nav-dropdown {
  position: relative;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-top: 3px solid #ac3242;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  min-width: 220px;
  padding: 8px 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}
.dropdown-menu.dropdown-right {
  left: auto;
  right: 0;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2b2b2b;
  transition: all 0.18s ease;
}
.dropdown-item:hover {
  background: #fdf2f4;
  color: #ac3242;
  font-weight: 700;
  padding-left: 18px;
}
.dropdown-divider {
  border: none;
  border-top: 1px solid #f0e6e7;
  margin: 6px 6px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}
.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #39562f;
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}
.btn-nav-login:hover {
  background: #2a4122;
  border-color: #ffffff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}
.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: #39562f;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}
.user-avatar-btn:hover {
  background: #2a4122;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 11. Mobile Drawer ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: #ffffff;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
}
.drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}
.drawer-close:hover {
  background: var(--primary-tint);
  color: var(--primary);
}
.drawer-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  width: 100%;
  text-align: left;
}
.drawer-link:hover, .drawer-link.active {
  background: var(--primary-tint);
  color: var(--primary);
}
.drawer-link i {
  width: 18px;
  text-align: center;
  color: var(--primary);
}
.drawer-accordion-toggle {
  justify-content: space-between;
}
.drawer-chev {
  margin-left: auto;
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}
.drawer-accordion.open .drawer-chev {
  transform: rotate(180deg);
}
.drawer-subnav {
  display: none;
  flex-direction: column;
  padding-left: 36px;
  gap: 4px;
  margin: 4px 0 8px;
}
.drawer-accordion.open .drawer-subnav {
  display: flex;
}
.drawer-subnav a {
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.drawer-subnav a:hover {
  color: var(--primary);
}
.drawer-auth-box {
  margin-top: 4px;
}
.drawer-login-btn {
  border-radius: var(--radius-pill);
}
/* ── 1. Home Page Hero ── */
.home-hero {
  background: #ffffff;
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border-subtle);
}
.home-hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.home-hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.home-hero-desc {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}
.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
}
.btn-hero-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(13, 56, 41, 0.2);
}
.btn-hero-outline {
  background: #ffffff;
  color: var(--primary);
  border: 1.5px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
}
.btn-hero-outline:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
}

/* 3 Features row under Hero */
.home-hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hfi-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.hfi-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}
.hfi-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.home-hero-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-color);
  background: var(--primary-tint);
}
.home-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Home Page Stacks (Featured Lessons, Blog, Resources) ── */
.home-section {
  padding: 40px 0;
}
.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.home-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}
.home-section-viewall {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}
.home-section-viewall:hover {
  text-decoration: underline;
}

.home-list-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-list-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  transition: var(--transition);
}
.home-list-card:hover {
  border-color: var(--primary);
  background: #fbfdfb;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.hlc-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hlc-glyph-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-chakma);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.hlc-details {
  display: flex;
  flex-direction: column;
}
.hlc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.hlc-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.hlc-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Badges */
.badge-difficulty {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-beginner {
  background: #e6f7ec;
  color: #15803d;
}
.badge-intermediate {
  background: #fef3c7;
  color: #b45309;
}
.badge-advanced {
  background: #fee2e2;
  color: #b91c1c;
}

/* Blog Thumbnail */
.hlc-thumb-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}
.hlc-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Resource Icon */
.hlc-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.resource-size-badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Value Pillars Banner (above footer) ── */
.home-pillars-section {
  padding: 24px 0 56px;
}
.pillars-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  box-shadow: var(--shadow-sm);
}
.pillar-col {
  text-align: left;
}
.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.pillar-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── 2. Learn (Overview) ── */
.learn-hero-banner {
  position: relative;
  height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}
.learn-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 56, 41, 0.4) 0%, rgba(13, 56, 41, 0.7) 100%);
}
.learn-hero-content {
  position: relative;
  z-index: 1;
}
.learn-hero-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 6px;
}
.learn-hero-sub {
  font-size: 1.05rem;
  opacity: 0.92;
}
.learn-modules-section {
  padding: 48px 0 64px;
}
.module-stack-container {
  max-width: 820px;
}
.module-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.module-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  transition: var(--transition);
}
.module-item-card:hover {
  border-color: var(--primary);
  background: #fafdfa;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.mic-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.mic-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.mic-icon-green { background: #e6f7ec; color: #15803d; }
.mic-icon-blue { background: #eff6ff; color: #2563eb; }
.mic-icon-amber { background: #fef3c7; color: #d97706; }
.mic-icon-purple { background: #faf5ff; color: #9333ea; }
.mic-icon-teal { background: #f0fdfa; color: #0d9488; }
.mic-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}
.mic-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mic-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── 3. Lesson (List) ── */
.lesson-list-header-section {
  padding: 40px 0 64px;
}
.lesson-list-container {
  max-width: 820px;
}
.ll-head-wrap {
  margin-bottom: 28px;
}
.ll-main-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.ll-main-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.numbered-lesson-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.numbered-lesson-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
}
.numbered-lesson-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.nlc-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nlc-number-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.nlc-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}
.nlc-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.nlc-lock-icon {
  font-size: 0.9rem;
  color: #9ca3af;
}
.nlc-unlocked {
  color: var(--primary) !important;
}

/* ── 4. Lesson (Detail) ── */
.lesson-detail-section {
  padding: 40px 0 64px;
}
.lesson-detail-container {
  max-width: 720px;
}
.lesson-detail-head {
  margin-bottom: 24px;
}
.ld-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.ld-step-counter {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.lesson-flashcard {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 36px 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.flashcard-glyph {
  font-family: var(--font-chakma);
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 12px;
}
.flashcard-pronunciation {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 24px;
}
.flashcard-meaning {
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 6px;
}
.flashcard-audio-wrap {
  margin-bottom: 32px;
}
.btn-listen-pronounce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition);
}
.btn-listen-pronounce:hover, .btn-listen-pronounce.playing {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary);
}
.play-mini-icon {
  color: var(--primary);
  font-size: 1.05rem;
}

/* Example Usage Box */
.flashcard-example-box {
  background: var(--primary-tint);
  border: 1px solid #dbebe2;
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  margin-bottom: 32px;
}
.example-box-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.example-chakma-script {
  font-family: var(--font-chakma);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.example-roman {
  font-size: 0.92rem;
  color: var(--text-body);
  margin-bottom: 2px;
}
.example-english {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.btn-next-lesson {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
}
.btn-next-lesson:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ── 5. Dictionary ── */
.dictionary-main-section {
  padding: 36px 0 64px;
}
.dictionary-container {
  max-width: 860px;
}
.dict-header-wrap {
  margin-bottom: 24px;
  text-align: center;
}
.dict-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.dict-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.dict-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Search Form ── */
.dict-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.15s ease;
}
.dict-clear-btn:hover {
  color: var(--terracotta);
}

/* Direction Toggles */

/* ── Recent / Suggested Searches ── */
.dict-recent-section {
  margin-bottom: 30px;
}
.dict-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dict-section-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}
.dict-clear-history-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--terracotta);
  transition: opacity 0.15s ease;
}
.dict-clear-history-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}
.dict-chips-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dict-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.84rem;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.dict-chip:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
  transform: translateY(-1px);
}
.chip-script {
  font-family: var(--font-chakma);
  font-weight: 800;
  color: var(--primary);
  font-size: 1.05rem;
}
.chip-word {
  font-weight: 600;
}

/* ── Alphabet Section ── */
.dict-active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--terracotta-light);
  color: var(--terracotta);
  border: 1px solid rgba(180, 67, 34, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
}
.dict-active-filter-badge a {
  color: var(--terracotta);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

/* ── Results Stack ── */
.dict-results-section {
  padding-top: 24px;
}
.dict-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.dict-results-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dict-highlight-term {
  color: var(--terracotta);
}
.dict-reset-filters-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}
.dict-reset-filters-link:hover {
  color: var(--terracotta);
}
.dict-count-badge {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.dict-results-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dict-result-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.dict-result-card:hover {
  border-color: rgba(13, 56, 41, 0.25);
  box-shadow: 0 4px 14px rgba(13, 56, 41, 0.08);
  transform: translateY(-1px);
}
.drc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.drc-words {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.drc-script {
  font-family: var(--font-chakma);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}
.drc-roman {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}
.drc-group-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 1px 8px;
}
.drc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drc-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.drc-audio-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.drc-audio-waves {
  display: none;
  align-items: center;
  gap: 2px;
  height: 12px;
}
.drc-wave {
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 1px;
}
.drc-audio-btn.playing .drc-audio-waves {
  display: inline-flex;
}
.drc-audio-btn.playing .drc-wave:nth-child(1) { animation: wavePulse 0.5s infinite ease-in-out; }
.drc-audio-btn.playing .drc-wave:nth-child(2) { animation: wavePulse 0.7s infinite ease-in-out 0.1s; }
.drc-audio-btn.playing .drc-wave:nth-child(3) { animation: wavePulse 0.6s infinite ease-in-out 0.2s; }

.drc-copy-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.drc-copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tint);
}
.drc-meaning {
  font-size: 0.96rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 8px;
}
.drc-example {
  font-size: 0.88rem;
  color: var(--text-muted);
  background: var(--primary-tint);
  border-left: 3px solid var(--primary);
  padding: 8px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.5;
}
.drc-quote {
  font-size: 0.72rem;
  color: var(--primary);
  margin-right: 4px;
}

/* ── No Results State ── */
.dict-no-results {
  text-align: center;
  padding: 44px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}
.dict-no-results-icon {
  font-size: 2.4rem;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.dict-no-results h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.dict-no-results p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 18px;
  font-size: 0.92rem;
}

/* ── Pagination ── */
.dict-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.dict-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}
.dict-page-btn:hover:not(.disabled) {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.dict-page-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.dict-page-numbers {
  display: flex;
  gap: 4px;
}
.dict-page-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}
.dict-page-num:hover:not(.active) {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.dict-page-num.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ── Mobile Responsiveness ── */
@media (max-width: 640px) {
  .dict-title {
    font-size: 1.6rem;
  }
  .dict-sub {
    font-size: 0.88rem;
  }
  .dict-result-card {
    padding: 14px 16px;
  }
  .drc-script {
    font-size: 1.35rem;
  }
  .drc-roman {
    font-size: 1rem;
  }
}

/* ── 6. Transcriber ── */
.transcriber-main-section {
  padding: 40px 0 64px;
}
.transcriber-container {
  max-width: 820px;
}
.trans-header-wrap {
  margin-bottom: 24px;
}
.trans-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.trans-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.trans-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.trans-box-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.trans-box-card:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 56, 41, 0.1);
}
.tbc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  background: #fbfdfc;
}
.tbc-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.btn-copy-trans {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.btn-copy-trans:hover, .btn-copy-trans.copied {
  background: var(--primary);
  color: #fff;
}
.tbc-body {
  padding: 16px 18px;
  flex: 1;
}
.trans-area {
  width: 100%;
  min-height: 200px;
  font-size: 1.05rem;
  line-height: 1.6;
  border: none;
  outline: none;
  resize: vertical;
  color: var(--text-main);
  background: transparent;
}
.trans-output-area {
  font-family: var(--font-chakma);
  font-size: 1.35rem;
  color: var(--primary);
  white-space: pre-wrap;
  word-break: break-word;
}
.trans-empty-tip {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.trans-actions-bar {
  display: flex;
  justify-content: flex-start;
}
.btn-trans-clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  border: 1.5px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.btn-trans-clear:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
}

/* ── 7. Blog (List) ── */
.blog-main-section {
  padding: 40px 0 64px;
}
.blog-container {
  max-width: 820px;
}
.blog-header-wrap {
  margin-bottom: 24px;
}
.blog-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.blog-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.blog-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.blog-item-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: var(--transition);
}
.blog-item-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.bic-thumb-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}
.bic-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bic-content {
  flex: 1;
}
.bic-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 4px;
}
.bic-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.blog-action-wrap {
  text-align: center;
}
.btn-blog-viewall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 820px;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
}
.btn-blog-viewall:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ── 8. Resources ── */
.resources-main-section {
  padding: 40px 0 64px;
}
.resources-container {
  max-width: 820px;
}
.res-header-wrap {
  margin-bottom: 24px;
}
.res-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.res-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.res-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.res-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
}
.res-item-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.ric-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.ric-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.ric-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 2px 0;
}
.ric-size {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ric-dl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.ric-dl-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.res-action-wrap {
  text-align: center;
}
.btn-res-viewall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 820px;
  background: var(--primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
}
.btn-res-viewall:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ── 9. About Us ── */
.about-main-section {
  padding: 40px 0 64px;
}
.about-container {
  max-width: 820px;
}
.about-header-wrap {
  margin-bottom: 20px;
}
.about-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.about-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.about-scenic-banner-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
}
.about-scenic-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}
.about-mission-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}
.mission-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.mission-card-lead {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 32px;
}
.mission-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}
.mp-col {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mp-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.mp-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}
.mp-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.mission-action-wrap {
  text-align: center;
}
.btn-join-mission {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--primary);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 600;
}
.btn-join-mission:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ── 10. Login Page ── */
.login-page-section {
  min-height: calc(100vh - var(--header-height) - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}
.login-modal-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-modal);
}
.login-brand-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.login-logo-emblem {
  width: 34px;
  height: 34px;
}
.login-logo-text {
  text-align: left;
}
.ll-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.ll-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.login-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}
.login-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group-custom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fg-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.fg-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.fg-forgot-link {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.fg-forgot-link:hover {
  color: var(--primary);
}
.fg-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.fg-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.fg-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  transition: var(--transition);
}
.fg-input-wrap .fg-icon ~ .fg-input {
  padding-left: 38px;
}
.fg-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 56, 41, 0.1);
}
.btn-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 6px;
}
.btn-login-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 6px 0;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}
.divider-text {
  padding: 0 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.login-social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.social-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--text-body);
  transition: var(--transition);
}
.social-circle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tint);
}
.login-signup-prompt {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}
.signup-link {
  color: var(--primary);
  font-weight: 700;
}
.signup-link:hover {
  text-decoration: underline;
}

/* ── 14. Footer (Desktop) ── */
.site-footer {
  position: relative;
  background: var(--bg-dark-footer);
  color: #ffffff;
  overflow: hidden;
  margin-top: auto;
}
.footer-top {
  position: relative;
  z-index: 2;
  padding: 56px 0 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.2fr 1fr 2.2fr;
  gap: 36px;
}
.footer-logo .logo-title {
  color: #ffffff;
}
.footer-logo .logo-sub {
  color: rgba(255, 255, 255, 0.6);
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 14px;
  line-height: 1.6;
  max-width: 240px;
}
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: capitalize;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #ffffff;
}

.footer-social-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.follow-us-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.footer-social-icons {
  display: flex;
  gap: 8px;
}
.footer-social-icons a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: var(--transition);
}
.footer-social-icons a:hover {
  background: #ffffff;
  color: var(--primary);
}

/* Footer Bottom Bar */
.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.legal-sep {
  margin: 0 6px;
  opacity: 0.4;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal a:hover {
  color: #ffffff;
}

/* ── 15. 404 Error Page ── */
.error-page-section {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 160px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.error-page-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(2px);
}
.error-page-container {
  position: relative;
  z-index: 2;
}
.error-card-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 24px;
}
.error-num {
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.04em;
}
.error-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}
.error-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.btn-error-home {
  display: inline-flex;
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}
.btn-error-home:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ── Alerts ── */
.messages-container {
  max-width: 820px;
  margin: 16px auto 0;
  padding: 0 24px;
}
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-close { opacity: 0.6; }
.alert-close:hover { opacity: 1; }

/* ── Responsive Adaptations ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .home-hero-container {
    gap: 32px;
  }
  .pillars-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .home-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .home-hero-actions {
    justify-content: center;
  }
  .home-hero-features {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .home-hero-img-wrap {
    max-width: 480px;
    margin: 0 auto;
  }
  .trans-boxes-grid {
    grid-template-columns: 1fr;
  }
  .mission-pillars-grid {
    grid-template-columns: 1fr;
  }
  .pillars-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

