/* ============================================
   HARI BASAR - Spiritual Education Platform
   Same Design Language as ISK### Temple
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Great+Vibes&family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties (Light Theme) ---------- */
:root {
  --saffron: #FF9933;
  --saffron-dark: #e68a2e;
  --saffron-light: #ffb366;
  --maroon: #800020;
  --maroon-light: #a83250;
  --maroon-dark: #5c0017;
  --gold: #D4AF37;
  --gold-light: #e6c861;
  --gold-dark: #b8962e;
  --cream: #FFF8E7;
  --cream-dark: #f5edd5;

  --bg-primary: #FFF8E7;
  --bg-secondary: #fff5dc;
  --bg-card: #ffffff;
  --bg-card-hover: #fffcf5;
  --bg-overlay: rgba(255, 248, 231, 0.95);

  --text-primary: #3E2723;
  --text-secondary: #5D4037;
  --text-muted: #8D6E63;
  --text-light: #A1887F;
  --text-on-primary: #ffffff;

  --border: rgba(128, 0, 32, 0.1);
  --border-light: rgba(128, 0, 32, 0.05);
  --shadow-sm: 0 2px 8px rgba(62, 39, 35, 0.08);
  --shadow-md: 0 8px 24px rgba(62, 39, 35, 0.12);
  --shadow-lg: 0 20px 40px rgba(62, 39, 35, 0.15);
  --shadow-glow: 0 0 30px rgba(255, 153, 51, 0.3);

  --gradient-spiritual: linear-gradient(135deg, #FF9933 0%, #D4AF37 50%, #800020 100%);
  --gradient-saffron: linear-gradient(135deg, #FF9933 0%, #ffb366 100%);
  --gradient-maroon: linear-gradient(135deg, #800020 0%, #a83250 100%);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #e6c861 100%);
  --gradient-hero: linear-gradient(180deg, rgba(255,248,231,0) 0%, rgba(255,248,231,0.8) 60%, #FFF8E7 100%);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --header-height: 80px;
  --container-max: 1280px;
  --container-padding: 20px;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', 'Noto Sans Bengali', sans-serif;
  --font-script: 'Great Vibes', cursive;
  --font-bengali: 'Noto Sans Bengali', sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-card: #1f2846;
  --bg-card-hover: #283352;
  --bg-overlay: rgba(26, 26, 46, 0.95);
  --text-primary: #f5f5f5;
  --text-secondary: #d4d4d4;
  --text-muted: #a3a3a3;
  --text-light: #8b8b8b;
  --border: rgba(255, 153, 51, 0.15);
  --border-light: rgba(255, 153, 51, 0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(255, 153, 51, 0.4);
  --gradient-hero: linear-gradient(180deg, rgba(26,26,46,0) 0%, rgba(26,26,46,0.8) 60%, #1a1a2e 100%);
  --cream: #2a2a3e;
  --cream-dark: #1f1f30;
}

/* ---------- Animations ---------- */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(0.5deg); }
  75% { transform: translateY(4px) rotate(-0.5deg); }
}

@keyframes iconBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 153, 51, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(255, 153, 51, 0.25); }
}

@keyframes textShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes ctaShimmer {
  0% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(130%) skewX(-18deg); opacity: 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 153, 51, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 153, 51, 0.6); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes whatsappPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.28), 0 0 0 0 rgba(37, 211, 102, 0.28);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.menu-open { overflow: hidden; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: transparent; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
  box-sizing: border-box;
}

/* ---------- Shimmer ---------- */
.img-shimmer {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.img-shimmer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,153,51,0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: scroll 1.5s infinite;
}

.img-shimmer.loaded::before { display: none; }

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transition: var(--transition-slow);
}

.animate-on-scroll.visible { opacity: 1; }
.fade-in-up { transform: translateY(40px); }
.fade-in-up.visible { transform: translateY(0); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-left.visible { transform: translateX(0); }
.fade-in-right { transform: translateX(40px); }
.fade-in-right.visible { transform: translateX(0); }
.scale-in { transform: scale(0.9); }
.scale-in.visible { transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
}

.header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #5c0017 0%, #800020 40%, #6b0f2a 70%, #4a0011 100%);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
  opacity: 0.97;
  transition: var(--transition);
}

.header.scrolled::before { opacity: 1; box-shadow: 0 4px 20px rgba(92, 0, 23, 0.4); }

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.header .nav-links a { color: rgba(255, 255, 255, 0.9); }
.header .nav-links a:hover, .header .nav-links a.active { color: #FFD700; }
.header .logo-text .main { color: #FFD700; }
.header .logo-text .sub { color: rgba(255, 248, 231, 0.8); }
.header .theme-toggle {
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.18), rgba(212, 175, 55, 0.14));
  border-color: rgba(255, 215, 0, 0.26);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(44, 0, 12, 0.18);
}

.header .theme-toggle:hover {
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.3), rgba(212, 175, 55, 0.22));
  border-color: rgba(255, 215, 0, 0.45);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(44, 0, 12, 0.24), 0 0 18px rgba(212, 175, 55, 0.16);
}
.header .language-toggle { color: rgba(255, 255, 255, 0.8); }
.header .language-toggle.active { color: #FFD700; background: rgba(255, 215, 0, 0.15); }

.header .hamburger {
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.18), rgba(212, 175, 55, 0.14));
  border: 1px solid rgba(255, 215, 0, 0.24);
  box-shadow: 0 8px 18px rgba(44, 0, 12, 0.18);
}

.header .hamburger span {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.header .hamburger:hover {
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.28), rgba(212, 175, 55, 0.2));
  border-color: rgba(255, 215, 0, 0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  flex-shrink: 0;
}

.logo-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.18), rgba(212, 175, 55, 0.22));
  border-radius: 50%;
  overflow: hidden;
  padding: 3px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.logo-icon:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.logo-text { display: flex; flex-direction: column; min-width: 0; }

.logo-text .main {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="dark"] .logo-text .main { color: var(--saffron); }

[data-theme="dark"] .logo-icon {
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.09), rgba(212, 175, 55, 0.13));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
}

.logo-text .sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 20px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 5px; left: 20px; right: 20px;
  height: 2px;
  background: var(--gradient-saffron);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--maroon); }

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active { color: var(--saffron); }

.nav-links a:hover::before,
.nav-links a.active::before { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.language-toggle {
  min-width: 50px;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: var(--transition);
}

.language-toggle.active,
.language-toggle[aria-pressed="true"] {
  background: var(--gradient-saffron);
  color: white;
  box-shadow: var(--shadow-sm);
}

.language-toggle:not(.active):hover {
  color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--saffron);
  color: white;
  border-color: var(--saffron);
  transform: rotate(20deg) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }
[data-theme="dark"] .theme-toggle .fa-sun { display: block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

/* Subscribe Button (replaces Donate) */
.btn-subscribe {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.16), rgba(255, 215, 0, 0.12));
  color: white;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: 0 10px 24px rgba(44, 0, 12, 0.18);
  transition: var(--transition);
}

.btn-subscribe:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.24), rgba(255, 215, 0, 0.18));
  box-shadow: 0 16px 32px rgba(44, 0, 12, 0.26), 0 0 22px rgba(212, 175, 55, 0.14);
}

.btn-subscribe .fa-play { animation: iconBounce 1.5s ease infinite; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  gap: 20px;
  padding-top: calc(var(--header-height) + 22px);
  padding-bottom: 28px;
  overflow-y: auto;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.mobile-menu.active a { opacity: 1; transform: translateY(0); }
.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu a:hover { color: var(--saffron); }

.mobile-menu-language {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.mobile-menu-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.btn:active::after { transform: scale(2.5); opacity: 1; transition: 0s; }

.btn-primary {
  background: linear-gradient(135deg, #800020, #a83250, #c0465e, #800020);
  background-size: 300% 300%;
  animation: gradientShift 4s ease infinite;
  color: white;
  box-shadow: 0 4px 15px rgba(128, 0, 32, 0.35);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(128, 0, 32, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
  filter: brightness(1.12);
}

.btn-secondary {
  background: linear-gradient(135deg, #800020, #a83250, #800020);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(128, 0, 32, 0.4);
  filter: brightness(1.15);
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
  font-weight: 600;
}

[data-theme="dark"] .btn-outline { color: var(--saffron); border-color: var(--saffron); }

.btn-outline:hover {
  background: var(--maroon);
  color: white;
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--saffron);
  color: var(--text-primary);
}

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
  background: var(--bg-primary);
}

/* Animated gradient background */
.hero-animated-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: linear-gradient(
    -45deg,
    #FFF8E7,
    #ffe8c2,
    #ffd6a8,
    #ffe0c0,
    #fff3d6,
    #FFF8E7
  );
  background-size: 400% 400%;
  animation: heroGradientFlow 12s ease infinite;
}

.hero-animated-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(255, 153, 51, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(128, 0, 32, 0.06) 0%, transparent 55%);
  animation: heroGradientFlow 16s ease infinite reverse;
}

@keyframes heroGradientFlow {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

[data-theme="dark"] .hero {
  background: #1a1a2e;
}

[data-theme="dark"] .hero-animated-bg {
  background: linear-gradient(
    -45deg,
    #1a1a2e,
    #1e2a3a,
    #2a1a2e,
    #1a2a2e,
    #22223a,
    #1a1a2e
  );
  background-size: 400% 400%;
}

[data-theme="dark"] .hero-animated-bg::before {
  background: radial-gradient(ellipse at 20% 50%, rgba(255, 153, 51, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(128, 0, 32, 0.05) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(128, 0, 32, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--saffron-dark);
  font-weight: 500;
  margin-top: 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.8s ease forwards, borderGlow 3s ease infinite 1s;
}

.hero-badge-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
  line-height: 1.2;
}

.hero-title > span {
  display: inline-block;
  padding: 0.16em 0.34em;
  margin: 0.08em 0;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--saffron-dark) 50%, var(--maroon) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 6s ease infinite;
  filter: brightness(1.1);
}

.hero-mantra {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--maroon);
  display: inline-block;
  max-width: min(100%, 760px);
  padding: 10px 22px;
  margin-bottom: 24px;
  animation: fadeIn 1s ease 0.4s forwards;
  opacity: 0;
}

[data-theme="dark"] .hero-mantra { color: var(--gold); }

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  display: inline-block;
  padding: 14px 18px;
  margin: 0 auto 14px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-description-secondary {
  max-width: 660px;
  display: inline-block;
  padding: 12px 18px;
  margin-top: 0;
  margin-bottom: 32px;
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
  margin-bottom: 40px;
}

/* ---------- Mantra Banner ---------- */
.mantra-banner {
  background: linear-gradient(135deg, #FF9933, #D4AF37, #800020, #FF9933);
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  padding: 24px 0;
  overflow: hidden;
}

.mantra-track {
  display: flex;
  animation: scroll 30s linear infinite;
}

.mantra-text {
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.mantra-text span {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.mantra-text i { color: var(--gold); font-size: 1rem; }

/* ---------- Section Styles ---------- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

#courses .section-header {
  max-width: 760px;
}

#courses .section-title {
  margin-bottom: 10px;
}

#courses .section-subtitle {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.section-header-rich {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.section-header-action {
  flex-shrink: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.1), rgba(212, 175, 55, 0.12));
  border: 1px solid rgba(128, 0, 32, 0.2);
  border-radius: var(--radius-full);
  color: var(--maroon);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.section-badge:hover {
  background: rgba(255, 153, 51, 0.18);
  transform: translateY(-2px);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--saffron));
  background-size: 200% 100%;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.animated::after { width: 60%; animation: gradientShift 2s ease infinite; }

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.section-subtitle-secondary {
  margin-top: 10px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

body[data-language="bn"] .section-subtitle-secondary,
body[data-language="bn"] .hero-description-secondary {
  color: var(--text-secondary);
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
}

.about-image:hover { box-shadow: var(--shadow-lg), var(--shadow-glow); }

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-slow);
}

.about-logo-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255, 153, 51, 0.1), rgba(212, 175, 55, 0.08));
  border: 1px solid rgba(255, 153, 51, 0.15);
  border-radius: var(--radius-lg);
}

.about-logo-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.about-logo-card p {
  margin: 0;
  font-size: 0.92rem;
}

.about-logo-mark {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.about-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image:hover img { transform: scale(1.05); }

.about-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--bg-card);
  padding: 12px 18px;
  max-width: min(72%, 250px);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  animation: subtleFloat 3s ease-in-out infinite;
}

.about-image-badge .number {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--saffron);
  line-height: 1;
}

.about-image-badge .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.about-content h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-content p { color: var(--text-secondary); margin-bottom: 24px; }

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: var(--transition);
}

.about-feature:hover {
  border-color: var(--saffron);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.about-feature i {
  color: var(--saffron);
  font-size: 1.2rem;
  transition: var(--transition);
}

.about-feature:hover i { transform: scale(1.3); }

/* ---------- Stats Section ---------- */
.stats-section {
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.18) 0%, transparent 34%),
    radial-gradient(circle at bottom right, rgba(128, 0, 32, 0.12) 0%, transparent 38%),
    linear-gradient(180deg, #fff6df 0%, #fff1cf 52%, #ffefcf 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(128, 0, 32, 0.08);
  border-bottom: 1px solid rgba(128, 0, 32, 0.08);
}

.stats-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.32) 46%, transparent 100%);
  opacity: 0.6;
  pointer-events: none;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stats-section .section-badge {
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.08), rgba(212, 175, 55, 0.16));
  border-color: rgba(128, 0, 32, 0.14);
  color: var(--maroon);
}

.stats-section .section-title,
.stats-section .section-subtitle { color: var(--text-primary); }
.stats-section .section-subtitle {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.82;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,248,235,0.94) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(128, 0, 32, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(122, 77, 20, 0.08);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,244,226,0.98) 100%);
  box-shadow: 0 22px 44px rgba(92, 0, 23, 0.12);
}

.stat-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
  background-size: 300% 300%;
  animation: gradientShift 3s ease infinite;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #5c0017;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
  transition: var(--transition);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 25px rgba(212,175,55,0.5);
}

.stat-card h3 { color: var(--maroon-dark); font-size: 2.5rem; margin-bottom: 4px; }
.stat-card p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

/* ---------- Courses Section ---------- */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.course-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--saffron);
}

.course-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: var(--transition-slow);
}

.course-card:hover .course-image img { transform: scale(1.1); }

.course-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(128, 0, 32, 0.8) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.course-card:hover .course-overlay { opacity: 1; }

.course-overlay span {
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--saffron);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.course-content { padding: 24px; }

.course-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.course-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-meta i { color: var(--saffron); }

/* ---------- Activities Grid ---------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.activity-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.activity-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 153, 51, 0.1);
  border-color: var(--saffron);
}

.activity-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.12), rgba(212, 175, 55, 0.15));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--maroon);
  margin: 0 auto 20px;
  border: 1px solid rgba(128, 0, 32, 0.15);
  transition: var(--transition);
}

.activity-card:hover .activity-icon {
  background: linear-gradient(135deg, rgba(255,153,51,0.2), rgba(212,175,55,0.15));
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 15px rgba(255, 153, 51, 0.2);
}

.activity-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.activity-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Video Section ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.video-grid-secondary {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.featured-video-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 32px;
  margin-bottom: 34px;
  padding: 26px;
  background: linear-gradient(145deg, rgba(255, 153, 51, 0.09), rgba(128, 0, 32, 0.05));
  border: 1px solid rgba(255, 153, 51, 0.16);
  border-radius: calc(var(--radius-xl) + 4px);
  box-shadow: var(--shadow-md);
}

.featured-video-media {
  position: relative;
  min-height: 340px;
  border-radius: calc(var(--radius-xl) + 2px);
  overflow: hidden;
}

.featured-video-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.featured-video-card:hover .featured-video-media img {
  transform: scale(1.03);
}

.featured-video-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-video-label,
.video-kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: rgba(128, 0, 32, 0.08);
  color: var(--maroon);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .featured-video-label,
[data-theme="dark"] .video-kicker {
  color: var(--gold);
  background: rgba(255, 153, 51, 0.12);
}

.featured-video-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}

.featured-video-copy p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.featured-video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.featured-video-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.video-card {
  border-radius: calc(var(--radius-lg) + 2px);
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: var(--transition-slow);
}

.video-card:hover .video-thumbnail img { transform: scale(1.05); }

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(255, 153, 51, 0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 153, 51, 0.4);
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--saffron);
}

.video-info { padding: 20px; }
.video-info h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.4; }
.video-info p { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Quote Section ---------- */
.quote-section { background: var(--bg-secondary); }

.quote-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.quote-icon {
  font-size: 4rem;
  color: var(--saffron);
  opacity: 0.3;
  margin-bottom: 20px;
  animation: pulse 3s ease-in-out infinite;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.quote-author-info h4 { color: var(--maroon); font-size: 1.1rem; }
[data-theme="dark"] .quote-author-info h4 { color: var(--saffron); }
.quote-author-info p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, #FF9933, #D4AF37, #800020, #D4AF37, #FF9933);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); color: white; margin-bottom: 16px; }
.cta-section p {
  position: relative;
  isolation: isolate;
  display: inline-block;
  max-width: min(100%, 640px);
  padding: 18px 22px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.94);
  font-size: 1.1rem;
  line-height: 1.8;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(92, 0, 23, 0.14), inset 0 1px 0 rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-section p::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.14) 0 10%, transparent 11%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0 8%, transparent 9%);
  background-size: 220% 100%, 42px 42px, 42px 42px;
  background-position: 0 0, 0 0, 21px 21px;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  animation: ctaShimmer 7s ease-in-out infinite;
}

.cta-section p::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-section .btn { background: white; color: var(--maroon); }
.cta-section .btn:hover {
  background: var(--gold); color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-section .btn-facebook {
  background: linear-gradient(135deg, #1c64f2, #1877f2, #44a2ff);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 12px 28px rgba(24, 119, 242, 0.35);
}

.cta-section .btn-facebook:hover {
  background: linear-gradient(135deg, #0f55d9, #1666d8, #3f94ef);
  color: white;
  box-shadow: 0 16px 36px rgba(24, 119, 242, 0.42);
}

img {
  border-radius: 18px;
}

.logo-icon img,
.footer-social a,
.video-play-btn,
.stat-icon {
  border-radius: 50%;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin: 16px 0 24px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:nth-child(1) { color: #FF0000; }
.footer-social a:nth-child(2) { color: #1877F2; }
.footer-social a:nth-child(3) { color: #25D366; }

.footer-social a:nth-child(1):hover {
  background: #FF0000; border-color: #FF0000; color: white;
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.3);
}
.footer-social a:nth-child(2):hover {
  background: #1877F2; border-color: #1877F2; color: white;
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.3);
}
.footer-social a:nth-child(3):hover {
  background: #25D366; border-color: #25D366; color: white;
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .section-header-rich,
  .featured-video-card {
    grid-template-columns: 1fr;
  }

  .section-header-rich {
    display: grid;
    text-align: center;
  }

  .section-header-action {
    justify-self: center;
  }

  .featured-video-media {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .nav-actions {
    gap: 6px;
  }

  .language-switcher {
    order: -1;
    padding: 2px;
  }

  .language-toggle {
    min-width: 30px;
    padding: 5px 8px;
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .hero-description-secondary,
  .section-subtitle-secondary {
    font-size: 0.92rem;
  }

  .about-logo-card {
    align-items: flex-start;
  }

  .video-grid,
  .video-grid-secondary {
    grid-template-columns: 1fr;
  }

  .featured-video-card {
    padding: 18px;
  }

  .featured-video-copy h3 {
    font-size: 1.45rem;
  }

  img {
    border-radius: 16px;
  }
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover { color: var(--saffron); padding-left: 10px; }

.footer-links a::before {
  content: '';
  display: inline-block;
  width: 0; height: 2px;
  background: var(--saffron);
  transition: var(--transition);
}

.footer-links a:hover::before { width: 12px; margin-right: 6px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.footer-contact-item i { margin-top: 4px; }
.footer-contact-item i.fa-youtube { color: #FF0000; }
.footer-contact-item i.fa-facebook { color: #1877F2; }
.footer-contact-item i.fa-whatsapp { color: #25D366; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p { color: var(--text-muted); font-size: 0.9rem; }

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-bottom-links a:hover { color: var(--saffron); }

/* ---------- Page Header ---------- */
.page-header {
  padding: 160px 0 80px;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ff9933' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease forwards;
}

.page-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.page-breadcrumb a { color: var(--saffron); }
.page-breadcrumb a:hover { text-decoration: underline; }

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form-wrapper {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px rgba(255, 153, 51, 0.1);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 60px; height: 60px;
  background: rgba(255, 153, 51, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--saffron);
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
  background: rgba(255, 153, 51, 0.2);
  transform: scale(1.1);
}

.contact-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.contact-card p { color: var(--text-secondary); font-size: 0.95rem; }
.contact-card a { color: var(--saffron); overflow-wrap: anywhere; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Policy Pages ---------- */
.policy-content {
  max-width: 850px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.policy-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
  color: var(--maroon);
}

[data-theme="dark"] .policy-content h2 { color: var(--saffron); }

.policy-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}

.policy-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content ul li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

.policy-content .last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 94px; right: 30px;
  width: 50px; height: 50px;
  background: var(--gradient-saffron);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
  cursor: pointer;
}

.back-to-top.visible { opacity: 1; visibility: visible; animation: subtleFloat 2s ease-in-out infinite; }

.back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.floating-whatsapp {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.45rem;
  background: linear-gradient(135deg, #22c55e 0%, #25d366 48%, #0f9f4d 100%);
  background-size: 200% 200%;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.28);
  z-index: 101;
  overflow: hidden;
  animation: gradientShift 3.5s ease infinite, whatsappPulse 2.4s ease-in-out infinite;
}

.floating-whatsapp::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0));
  pointer-events: none;
}

.floating-whatsapp::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 1px solid rgba(37, 211, 102, 0.35);
  opacity: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

.floating-whatsapp i {
  position: relative;
  z-index: 1;
}

.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 18px 34px rgba(20, 135, 64, 0.35), 0 0 24px rgba(37, 211, 102, 0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 62px;
    --container-padding: 14px;
  }
  .nav-links { display: none; }
  .btn-subscribe { display: none; }
  .hamburger { display: flex; width: 40px; height: 40px; }
  .logo { gap: 8px; }
  .logo-icon { width: 38px; height: 38px; }
  .logo-text .main { font-size: 1.05rem; }
  .logo-text .sub { font-size: 0.58rem; letter-spacing: 0.5px; text-transform: none; }
  
  .hero-title { font-size: clamp(2rem, 7vw, 3rem); }
  .hero-mantra { font-size: clamp(1.2rem, 5vw, 1.8rem); }
  .hero-description { font-size: 1rem; }
  .hero-title > span {
    padding: 0.18em 0.3em;
  }

  .hero-mantra,
  .hero-description,
  .hero-description-secondary {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-buttons { flex-direction: column; align-items: center; }
  
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  
  .about-grid { gap: 30px; }
  .about-image img { height: 300px; }
  .about-image-badge {
    bottom: 16px;
    left: 16px;
    padding: 10px 14px;
    max-width: min(76%, 220px);
  }

  .about-image-badge .number { font-size: 1.45rem; }
  .about-image-badge .label { font-size: 0.72rem; }
  .about-content h2 { font-size: 1.8rem; }
  .about-features { grid-template-columns: 1fr; }
  
  .courses-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; }
  
  .form-row { grid-template-columns: 1fr; }
  
  .policy-content { padding: 24px; }
  
  .page-header { padding: 120px 0 60px; }

  .mantra-text { font-size: 1.1rem; }
}

@media (max-width: 640px) {
  .nav-actions .language-switcher {
    display: none;
  }

  .mobile-menu-language {
    display: flex;
  }
}

@media (max-width: 480px) {
  :root { --container-padding: 12px; }
  .logo-icon { width: 34px; height: 34px; }
  .logo-text .main { font-size: 0.95rem; }
  .logo-text .sub { display: none; }
  .hero-title { font-size: 1.8rem; }
  .hero-title > span {
    padding: 0.16em 0.24em;
  }
  .hero-mantra,
  .hero-description,
  .hero-description-secondary {
    padding-left: 12px;
    padding-right: 12px;
  }
  .section-title { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .about-image img { height: 250px; }
  .about-image-badge {
    bottom: 12px;
    left: 12px;
    padding: 9px 12px;
    max-width: min(78%, 190px);
  }

  .about-image-badge .number { font-size: 1.25rem; }
  .about-image-badge .label { font-size: 0.68rem; }
  .contact-form-wrapper { padding: 24px; }
  .contact-card { flex-direction: column; align-items: center; text-align: center; }
  .footer-social { justify-content: center; }
  .back-to-top { width: 44px; height: 44px; bottom: 74px; right: 20px; }
  .floating-whatsapp { width: 44px; height: 44px; right: 20px; bottom: 20px; font-size: 1.28rem; }
  .mobile-menu a { font-size: 1.6rem; }
  .cta-section { padding: 50px 0; }
  .cta-section h2 { font-size: 1.4rem; }
  .cta-section p {
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.75;
    border-radius: 18px;
  }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-bengali { font-family: var(--font-bengali); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.container, .section, .footer, .cta-section, .page-header, .hero-content {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

img, iframe, video { max-width: 100%; }

/* ---------- Page Header Sub-elements ---------- */
.page-header-bg,
.page-header-overlay { display: none; }

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  animation: fadeIn 1s ease 0.3s forwards;
  opacity: 0;
}

.breadcrumb a { color: var(--saffron); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

.breadcrumb,
.footer-contact-item,
.footer-contact-item span,
.footer-links a,
.policy-content a,
.contact-card a {
  overflow-wrap: anywhere;
}

/* ---------- Contact Page Layout ---------- */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form-section {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.contact-form-section h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.contact-form-section > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-form .btn { cursor: pointer; border: none; }

.form-status {
  margin-top: 18px;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.form-alert i {
  margin-top: 3px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.form-alert strong {
  display: block;
  margin-bottom: 4px;
}

.form-alert p {
  margin: 0;
  color: inherit;
}

.form-alert-success {
  color: #0f6b4d;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}

.form-alert-error {
  color: #9f1239;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.24);
}

[data-theme="dark"] .form-alert-success {
  color: #b7f7de;
  background: rgba(16, 185, 129, 0.18);
}

[data-theme="dark"] .form-alert-error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
}

/* ---------- FAQ Section ---------- */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--saffron);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { color: var(--saffron); }

.faq-question span {
  flex: 1;
}

.faq-question i {
  color: var(--saffron);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-answer a { color: var(--saffron); }
.faq-answer a:hover { text-decoration: underline; }

/* ---------- Policy Page Additions ---------- */
.policy-section {
  margin-bottom: 8px;
}

.policy-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.policy-updated i { margin-right: 6px; }

.policy-highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 153, 51, 0.08);
  border-left: 4px solid var(--saffron);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 16px 0;
}

.policy-highlight i {
  color: var(--saffron);
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.policy-highlight p { margin: 0; }

.policy-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content ol li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.7;
}

.policy-content a { color: var(--saffron); }
.policy-content a:hover { text-decoration: underline; }

/* ---------- Form Additions ---------- */
.btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
}

.error-msg {
  display: block;
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 6px;
  min-height: 20px;
}

.required { color: #e74c3c; }

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #e74c3c;
}

.form-group.error label {
  color: #b91c1c;
}

/* ---------- Stats section background ---------- */
.stats-section {
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.18) 0%, transparent 34%),
    radial-gradient(circle at bottom right, rgba(128, 0, 32, 0.12) 0%, transparent 38%),
    linear-gradient(180deg, #fff6df 0%, #fff1cf 52%, #ffefcf 100%);
  position: relative;
}

.stats-section .section-title,
.stats-section .section-subtitle,
.stats-section .section-badge {
  color: inherit;
}

.stats-section .section-badge {
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.08), rgba(212, 175, 55, 0.16));
  color: var(--maroon);
}

.stats-section .section-title::after {
  background: linear-gradient(90deg, rgba(128, 0, 32, 0.3), rgba(212, 175, 55, 0.95), rgba(128, 0, 32, 0.3));
}

/* ---------- Responsive Additions ---------- */
@media (max-width: 1024px) {
  .contact-info-section { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .contact-info-section { grid-template-columns: 1fr; }
  .contact-form-section { padding: 24px; }
  .faq-question { font-size: 0.95rem; padding: 16px 20px; }
  .breadcrumb { flex-wrap: wrap; }
  .policy-content { padding: 22px; }
}

@media (max-width: 480px) {
  .contact-form-section { padding: 20px; }
  .contact-card { padding: 20px; }
  .policy-highlight { padding: 18px; }
  .form-alert { padding: 14px 16px; }
}
