/* Style System for Ayurveda Library (ayugurulibrary.com) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette */
  --primary-teal: #0c3e31;
  --primary-teal-light: #165345;
  --accent-gold: #c38d4e;
  --accent-gold-hover: #b07c3f;
  --accent-saffron: #e67e22;
  --dark-bg: #090e11;
  --dark-card: #121c21;
  --light-bg: #f8faf9;
  --light-card: #ffffff;
  --text-dark: #1e272e;
  --text-light: #f5f6fa;
  --text-muted: #88929b;
  --border-light: rgba(12, 62, 49, 0.1);
  --border-dark: rgba(195, 141, 78, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-shadow: 0 0 20px rgba(195, 141, 78, 0.25);
  
  /* Fonts */
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* UI Tokens */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --container-width: 1200px;
  --section-py: 5rem;
  --section-py-mobile: 3.25rem;
  --section-px: 2rem;
  --section-px-mobile: 1.25rem;
}

/* Reset and Core Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* Typography Utilities */
.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-title span {
  color: var(--accent-gold);
  font-style: italic;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-teal), var(--accent-gold));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  line-height: 1.55;
  padding: 0 1rem;
}

.home-section .section-title {
  margin-bottom: 0.75rem;
}

.home-section .section-subtitle {
  margin-bottom: 2.25rem;
}

.mobile-br {
  display: none;
}

.section-title-mobile-fit {
  max-width: 100%;
  padding: 0 1rem;
}

.scroll-hint-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-teal);
  margin: -1.5rem auto 1.25rem;
  padding: 0.5rem 1.1rem;
  background: rgba(12, 62, 49, 0.08);
  border: 1px solid rgba(12, 62, 49, 0.12);
  border-radius: 50px;
  width: fit-content;
  max-width: calc(100% - 2rem);
  animation: scroll-hint-pulse 2.2s ease-in-out infinite;
}

.scroll-hint-bar i {
  color: var(--accent-gold);
}

@keyframes scroll-hint-pulse {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.7; transform: translateX(3px); }
}

.horizontal-scroll-fade-wrap {
  position: relative;
}

.horizontal-scroll-fade-wrap::before,
.horizontal-scroll-fade-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.horizontal-scroll-fade-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--fade-bg, #fff), transparent);
  opacity: 0;
}

.horizontal-scroll-fade-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--fade-bg, #fff), transparent);
}

.horizontal-scroll-fade-wrap.can-scroll-right::after {
  opacity: 1;
}

.horizontal-scroll-fade-wrap.can-scroll-left::before {
  opacity: 1;
}

.results-section {
  --fade-bg: #f3f0ea;
}

.home-courses-section {
  --fade-bg: #faf5ee;
}

/* Home Page — Mesh background & glass sections */
#home-page {
  background-color: #e9f0ed;
  background-image:
    radial-gradient(ellipse 85% 55% at 8% 2%, rgba(12, 62, 49, 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 75% 50% at 94% 12%, rgba(195, 141, 78, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 65% 45% at 48% 98%, rgba(12, 62, 49, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, #e6efeb 0%, #f3f7f6 38%, #f9f6f1 72%, #ecf2ef 100%);
  background-attachment: fixed;
}

/* Home Page — Section spacing & separation */
.home-section {
  position: relative;
  padding: var(--section-py) var(--section-px);
  overflow-x: hidden;
}

#home-page .home-section:not(.section-hero) {
  background: transparent;
  border: none;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
}

.home-section.is-contained {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
}

.home-section.is-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.home-section.has-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(72px, 12vw, 120px);
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-teal), var(--accent-gold));
  z-index: 2;
}

/* Glass section panels */
.section-glass-panel {
  --fade-bg: rgba(255, 255, 255, 0.68);
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2.75rem 2rem;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  box-shadow:
    0 10px 40px rgba(12, 62, 49, 0.07),
    0 2px 8px rgba(12, 62, 49, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.section-glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--primary-teal), var(--accent-gold));
  opacity: 0.9;
}

.section-glass-neutral {
  --fade-bg: #f4f8f7;
  background: rgba(255, 255, 255, 0.62);
}

.section-glass-teal {
  --fade-bg: #eef6f3;
  background: rgba(238, 246, 243, 0.72);
  border-color: rgba(12, 62, 49, 0.1);
}

.section-glass-teal::before {
  background: linear-gradient(90deg, var(--primary-teal), #1a6b56);
}

.section-glass-gold {
  --fade-bg: #faf5ee;
  background: rgba(250, 245, 238, 0.74);
  border-color: rgba(195, 141, 78, 0.14);
}

.section-glass-gold::before {
  background: linear-gradient(90deg, var(--accent-gold), #e5ab64);
}

.section-glass-warm {
  --fade-bg: #f3f0ea;
  background: rgba(248, 245, 240, 0.72);
  border-color: rgba(195, 141, 78, 0.1);
}

.section-glass-warm::before {
  background: linear-gradient(90deg, #c38d4e, var(--primary-teal));
}

.section-glass-brand {
  --fade-bg: rgba(12, 62, 49, 0.85);
  background: rgba(12, 62, 49, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow:
    0 12px 44px rgba(12, 62, 49, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.section-glass-brand::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35), var(--accent-gold));
}

.section-glass-contact {
  --fade-bg: #eef6f3;
  background: rgba(238, 246, 243, 0.68);
  border-color: rgba(12, 62, 49, 0.1);
}

.home-section.is-narrow .section-glass-panel {
  max-width: 800px;
}

/* Glass sub-cards inside home sections */
#home-page .section-glass-panel .home-feature-card,
#home-page .section-glass-panel .home-course-card,
#home-page .section-glass-panel .home-news-item,
#home-page .section-glass-panel .result-card,
#home-page .section-glass-panel .team-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 4px 22px rgba(12, 62, 49, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

#home-page .section-glass-brand .counter-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

#home-page .section-glass-contact .glass-card {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.section-hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
  border-top: none;
}

.section-hero.hero {
  max-width: 100%;
  width: 100%;
  margin: 0;
  display: block;
  min-height: clamp(480px, 72vh, 660px);
  background-image:
    linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 35%, rgba(248, 250, 249, 0.5) 58%, rgba(248, 250, 249, 0.2) 100%),
    url("images/heder%20bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.section-hero .hero-title {
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.85);
}

.section-hero .hero-description {
  color: var(--text-dark);
  opacity: 0.88;
  max-width: 540px;
}

.section-hero .badge-tag {
  background-color: rgba(12, 62, 49, 0.08);
  border-color: rgba(12, 62, 49, 0.12);
}

.section-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(12, 62, 49, 0.12), transparent);
}

.section-surface {
  background: #ffffff;
  border-top: 1px solid rgba(12, 62, 49, 0.05);
}

.section-muted {
  background: var(--light-bg);
}

.section-tint-teal {
  background: linear-gradient(180deg, #eef6f3 0%, #ffffff 100%);
  border-top: 1px solid rgba(12, 62, 49, 0.06);
}

.section-tint-gold {
  background: linear-gradient(180deg, #faf5ee 0%, #ffffff 100%);
  border-top: 1px solid rgba(195, 141, 78, 0.1);
}

.section-tint-warm {
  background: linear-gradient(180deg, var(--light-bg) 0%, rgba(12, 62, 49, 0.03) 50%, var(--light-bg) 100%);
  border-top: 1px solid rgba(12, 62, 49, 0.05);
}

.section-brand {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
  color: #fff;
  border-top: none;
  border-bottom: none;
}

.section-brand::before {
  display: none;
}

.section-contact {
  background: linear-gradient(180deg, #ffffff 0%, #eef6f3 100%);
  border-top: 1px solid rgba(12, 62, 49, 0.06);
}

/* Interactive Components & Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
  color: #fff;
  box-shadow: 0 4px 15px rgba(12, 62, 73, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 62, 73, 0.3);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), #e5ab64);
  color: #fff;
  box-shadow: 0 4px 15px rgba(195, 141, 78, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-shadow);
}

.btn-outline {
  border: 2px solid var(--primary-teal);
  background: transparent;
  color: var(--primary-teal);
}

.btn-outline:hover {
  background: var(--primary-teal);
  color: #fff;
}

/* Glass Card Style */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow:
    0 10px 32px rgba(12, 62, 49, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-gold);
}

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-top {
  background-color: var(--primary-teal);
  color: var(--text-light);
  padding: 0.4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.header-top-info {
  display: flex;
  gap: 1.5rem;
}

.header-top-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0.8rem 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-container img.navbar-logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-teal), var(--accent-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: var(--glow-shadow);
}

.logo-text h1 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--primary-teal);
}

.logo-text p {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

.nav-links a.btn-primary,
.nav-links a.btn-gold,
.nav-whatsapp-btn {
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
}

.nav-links a.btn-primary::after,
.nav-links a.btn-gold::after,
.nav-whatsapp-btn::after {
  display: none;
}

.nav-links a.btn-primary:hover,
.nav-links a.btn-gold:hover,
.nav-whatsapp-btn:hover {
  color: #fff !important;
}

/* Sticky WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.35rem + env(safe-area-inset-right, 0px));
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.whatsapp-float i {
  font-size: 1.45rem;
  line-height: 1;
}

.whatsapp-float-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: #25d366;
  opacity: 0.45;
  animation: whatsapp-pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

body.menu-open .whatsapp-float {
  opacity: 0;
  pointer-events: none;
}

/* Mobile Menu Toggle */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-tag {
  background-color: rgba(195, 141, 78, 0.15);
  color: var(--accent-gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
  border: 1px solid rgba(195, 141, 78, 0.2);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  line-height: 1.1;
  color: var(--primary-teal);
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* 3D Book Visuals */
.hero-visual {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 450px;
}

.book-container-3d {
  width: 260px;
  height: 370px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-25deg) rotateX(15deg);
  transition: transform 0.5s ease;
  animation: floatBook 6s ease-in-out infinite;
}

.book-container-3d:hover {
  transform: rotateY(-5deg) rotateX(5deg);
}

.book-side {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.3);
}

.book-cover {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
  border: 2px solid var(--accent-gold);
  z-index: 2;
  transform: translateZ(15px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  color: #fff;
  text-align: center;
}

.book-spine {
  width: 30px;
  background: var(--primary-teal);
  left: -15px;
  transform: rotateY(-90deg) translateZ(0);
  z-index: 1;
  border-radius: 4px 0 0 4px;
  border-left: 2px solid var(--accent-gold);
}

.book-pages {
  background: #fbfbf9;
  width: 250px;
  height: 360px;
  top: 5px;
  right: -5px;
  transform: translateZ(5px);
  box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 0 8px 8px 0;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-top: 1rem;
}

.book-author {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes floatBook {
  0%, 100% { transform: translateY(0) rotateY(-25deg) rotateX(15deg); }
  50% { transform: translateY(-15px) rotateY(-20deg) rotateX(10deg); }
}

/* Carousel Section */
.carousel-section {
  background-color: transparent;
}

.carousel-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 16 / 9;
  height: auto;
  background: #111;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.carousel-slide::before {
  display: none;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease 0.3s;
}

.carousel-slide.active .slide-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-tag {
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.slide-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.2;
}

.slide-desc {
  font-size: 1.05rem;
  opacity: 0.85;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  font-size: 1.5rem;
}

.carousel-nav-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  transform: translateY(-50%) scale(1.05);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicator.active {
  background-color: var(--accent-gold);
  width: 28px;
  border-radius: 10px;
}

/* Counters Section */
.counters-section {
  color: inherit;
}

.counters-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.counter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  background: var(--light-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.counter-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--counter-accent, var(--primary-teal));
}

.counter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.counter-theme-teal { --counter-accent: #0c3e31; }
.counter-theme-gold { --counter-accent: #c38d4e; }
.counter-theme-blue { --counter-accent: #0984e3; }
.counter-theme-purple { --counter-accent: #6c5ce7; }

.counter-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  background: color-mix(in srgb, var(--counter-accent) 12%, white);
  color: var(--counter-accent);
}

.counter-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--counter-accent, var(--primary-teal));
}

.counter-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Faculty Grid */
.faculty-section {
  /* spacing via .home-section */
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2.5rem;
}

.faculty-card {
  perspective: 1000px;
}

.faculty-card-inner {
  position: relative;
  width: 100%;
  height: 380px;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-style: preserve-3d;
}

.faculty-card:hover .faculty-card-inner {
  transform: rotateY(180deg);
}

.faculty-card-front, .faculty-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.faculty-card-front {
  background-color: var(--light-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.faculty-avatar-box {
  width: 100%;
  height: 240px;
  background-color: #f0f3f2;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-avatar-placeholder {
  font-size: 5rem;
  color: var(--primary-teal);
  opacity: 0.25;
}

.faculty-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-info-box {
  padding: 1.25rem;
}

.faculty-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-teal);
}

.faculty-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.faculty-card-back {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: 1rem;
}

.faculty-back-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--accent-gold);
}

.faculty-details {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Home Courses Section */

.courses-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.courses-hero {
  padding: 5rem 2rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 62, 49, 0.05) 0%, transparent 100%);
}

.courses-hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-top: 0.5rem;
  color: var(--primary-teal);
}

.courses-hero p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0.5rem auto 0;
}

.courses-catalog-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.courses-batch-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.courses-filter-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem 1rem;
}

.courses-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.courses-filter-btn {
  background-color: var(--light-card);
  border: 1px solid var(--border-light);
  padding: 0.55rem 1.35rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text-dark);
}

.courses-filter-btn:hover,
.courses-filter-btn.active {
  background-color: var(--primary-teal);
  color: white;
  border-color: var(--primary-teal);
}

.courses-list-section {
  padding: 1rem 2rem 4rem;
}

.courses-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

.course-card-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-teal);
  background: rgba(12, 62, 49, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
  margin-right: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.course-card-target {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-top: 0.35rem;
}

.course-card-target i {
  color: var(--accent-gold);
  margin-right: 0.35rem;
}

.course-card-installment {
  font-size: 0.85rem;
  color: #e67e22;
  font-weight: 600;
}

.course-card-3d {
  background-color: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 12px 35px rgba(0,0,0,0.03);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease;
  position: relative;
  overflow: hidden;
}

.course-card-3d:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

.course-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.course-card-badge {
  background: var(--badge-color, var(--accent-gold));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.course-card-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--primary-teal);
  margin-top: 0.5rem;
}

.course-card-valid {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-card-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0;
}

.course-card-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.course-card-oprice {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.course-card-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.course-card-features li {
  position: relative;
  padding-left: 1.5rem;
}

.course-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: 700;
}

/* Results Slider Section */
.results-slider-container {
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 1rem 0.25rem 1.5rem;
}

.results-slider-container::-webkit-scrollbar {
  display: none;
}

.results-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  padding: 0 0.5rem;
}

.result-card {
  flex: 0 0 calc(33.333% - 0.85rem);
  min-width: 280px;
  max-width: 340px;
  scroll-snap-align: start;
  background: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold), var(--primary-teal));
}

.result-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(195, 141, 78, 0.15);
}

.result-avatar-box {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--accent-gold);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: var(--glow-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #eee;
}

.result-avatar-placeholder {
  font-size: 2.5rem;
  color: var(--primary-teal);
  opacity: 0.3;
}

.result-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-teal);
  line-height: 1.35;
  word-wrap: break-word;
}

.result-rank {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-gold), #e5ab64);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(195, 141, 78, 0.3);
  line-height: 1.35;
  text-align: center;
  max-width: 100%;
}

.result-quote {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Daily Quiz Styling */
.quiz-dashboard {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.quiz-card {
  background-color: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 45px rgba(0,0,0,0.05);
  overflow: hidden;
}

.quiz-header {
  background: linear-gradient(135deg, var(--primary-teal), var(--primary-teal-light));
  color: white;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-timer {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.quiz-body {
  padding: 3rem 2rem;
}

.quiz-progress {
  height: 6px;
  background-color: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--accent-gold);
  transition: width 0.3s ease;
}

.quiz-qnumber {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quiz-question {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0.5rem 0 2rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-option {
  padding: 1.2rem;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  background-color: transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-size: 1rem;
  font-family: var(--font-main);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quiz-option:hover {
  border-color: var(--accent-gold);
  background-color: rgba(195, 141, 78, 0.05);
}

.quiz-option.selected {
  border-color: var(--primary-teal);
  background-color: rgba(12, 62, 49, 0.05);
}

.quiz-option.correct {
  border-color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.1);
  color: #27ae60;
}

.quiz-option.incorrect {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
  color: #c0392b;
}

.quiz-explanation-box {
  background-color: rgba(195, 141, 78, 0.08);
  border-left: 4px solid var(--accent-gold);
  padding: 1.5rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-top: 2rem;
  display: none;
}

.quiz-explanation-box h4 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.quiz-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
}

/* Quiz Score Board */
.quiz-score-screen {
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.quiz-score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 8px solid var(--accent-gold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--glow-shadow);
  margin-bottom: 1rem;
}

.quiz-score-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-teal);
}

.quiz-score-total {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* NTA CBT TEST PORTAL CUSTOM STYLING */
.nta-portal-body {
  background-color: #edf2f5;
  color: #333;
  font-family: Arial, sans-serif; /* Authentic NTA portal uses basic system sans-serif */
}

.nta-top-bar {
  background-color: #172a3a;
  color: white;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  flex-shrink: 0;
}

.nta-top-bar h2 {
  font-size: 1.15rem;
}

.nta-sub-header {
  background-color: #2b78c5;
  color: white;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: bold;
  flex-shrink: 0;
}

.nta-main-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  height: calc(100vh - 120px);
  min-height: 0;
  overflow: hidden;
}

.nta-main-container > * {
  min-height: 0;
}

.nta-test-panel {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border-right: 2px solid #ccc;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.nta-section-tabs {
  background-color: #f1f2f6;
  border-bottom: 1px solid #dcdde1;
  display: flex;
  padding: 0.5rem 1rem 0;
  flex-shrink: 0;
}

.nta-section-tab {
  background-color: #e4e7eb;
  border: 1px solid #bdc3c7;
  border-bottom: none;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.85rem;
  border-radius: 4px 4px 0 0;
  margin-right: 4px;
}

.nta-section-tab.active {
  background-color: #2b78c5;
  color: white;
  border-color: #2b78c5;
}

.nta-question-area {
  padding: 2rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.nta-qhead {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.nta-qbody {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.nta-options-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nta-option-row {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.nta-option-row:hover {
  background-color: #f7f9fa;
}

.nta-option-row input {
  margin-right: 1rem;
  transform: scale(1.2);
}

.nta-action-row {
  background-color: #f1f2f6;
  border-top: 1px solid #dcdde1;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.nta-action-left, .nta-action-right {
  display: flex;
  gap: 10px;
}

.nta-btn {
  padding: 0.6rem 1.2rem;
  border: 1px solid #7f8c8d;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 4px;
  background-color: #f8f9fa;
}

.nta-btn-save {
  background-color: #27ae60;
  color: white;
  border-color: #27ae60;
}

.nta-btn-save:hover { background-color: #219653; }

.nta-btn-mark {
  background-color: #f1c40f;
  color: #2c3e50;
  border-color: #f1c40f;
}

.nta-btn-mark:hover { background-color: #d4ac0d; }

.nta-btn-submit {
  background-color: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.nta-btn-submit:hover { background-color: #c0392b; }

/* NTA Right Sidebar */
.nta-sidebar {
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.nta-profile-box {
  display: flex;
  padding: 1rem;
  background-color: #e4e7eb;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #ccc;
}

.nta-photo-placeholder {
  width: 70px;
  height: 80px;
  background-color: #b2bec3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.nta-profile-text {
  font-size: 0.8rem;
  line-height: 1.4;
}

.nta-palette-legend {
  padding: 1rem;
  border-bottom: 1px solid #ccc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.75rem;
}

.nta-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nta-badge {
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.75rem;
  border-radius: 4px;
}

.nta-badge-gray { background-color: #7f8c8d; } /* Not Visited */
.nta-badge-red { background-color: #e74c3c; border-radius: 0 0 12px 12px; } /* Not Answered */
.nta-badge-green { background-color: #2ecc71; border-radius: 12px 12px 0 0; } /* Answered */
.nta-badge-purple { background-color: #9b59b6; border-radius: 50%; } /* Marked for Review */
.nta-badge-purple-dot {
  background-color: #9b59b6;
  border-radius: 50%;
  position: relative;
}
.nta-badge-purple-dot::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  background-color: #2ecc71;
  border-radius: 50%;
}

.nta-palette-container {
  padding: 1rem;
  flex-grow: 1;
  overflow-y: auto;
}

.nta-palette-title {
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: #2c3e50;
}

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

.nta-grid-item {
  width: 100%;
  aspect-ratio: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

.nta-grid-item.not-visited { background-color: #7f8c8d; color: white; border-color: #7f8c8d; }
.nta-grid-item.not-answered { background-color: #e74c3c; color: white; border-radius: 0 0 12px 12px; border-color: #e74c3c; }
.nta-grid-item.answered { background-color: #2ecc71; color: white; border-radius: 12px 12px 0 0; border-color: #2ecc71; }
.nta-grid-item.marked-review { background-color: #9b59b6; color: white; border-radius: 50%; border-color: #9b59b6; }
.nta-grid-item.answered-marked {
  background-color: #9b59b6;
  color: white;
  border-radius: 50%;
  border-color: #9b59b6;
  position: relative;
}
.nta-grid-item.answered-marked::after {
  content: '';
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  background-color: #2ecc71;
  border-radius: 50%;
}

.nta-sidebar-footer {
  padding: 1rem;
  background-color: #e4e7eb;
  border-top: 1px solid #ccc;
}

/* CBT Dashboard / Setup View */
.nta-setup-container {
  max-width: 600px;
  margin: 5rem auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  border: 1px solid #2b78c5;
}

.nta-setup-header {
  background-color: #2b78c5;
  color: white;
  padding: 1.5rem;
  text-align: center;
  font-weight: bold;
}

.nta-setup-body {
  padding: 2.5rem;
}

.nta-setup-field {
  margin-bottom: 1.5rem;
}

.nta-setup-field label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.nta-setup-field select, .nta-setup-field input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.test-series-selected-exam {
  background: rgba(43, 120, 197, 0.08);
  border: 1px solid rgba(43, 120, 197, 0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.test-series-selected-exam strong {
  display: block;
  color: #2b78c5;
  margin-bottom: 0.35rem;
}

.test-series-selected-exam span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.test-series-browser {
  max-width: 1100px;
  margin: 3rem auto 4rem;
  padding: 0 2rem;
}

.test-series-browser-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.test-series-browser-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary-teal);
  margin-bottom: 0.5rem;
}

.test-series-browser-header p {
  color: var(--text-muted);
}

.test-series-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ts-color);
  background: rgba(12, 62, 49, 0.08);
  border: 1px solid rgba(12, 62, 49, 0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.test-series-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.test-series-crumb {
  background: none;
  border: none;
  color: var(--accent-gold);
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.test-series-crumb:hover {
  text-decoration: underline;
}

.test-series-crumb-divider {
  color: var(--text-muted);
}

.test-series-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.test-series-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}

.test-series-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 100%;
}

.test-series-folder-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow:
    0 10px 32px rgba(12, 62, 49, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
}

.test-series-folder-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ts-color), color-mix(in srgb, var(--ts-color) 60%, #000));
  z-index: 1;
}

.test-series-folder-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 20px 44px color-mix(in srgb, var(--ts-color) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: color-mix(in srgb, var(--ts-color) 22%, white);
}

.test-series-folder-banner {
  background: linear-gradient(135deg, var(--ts-color) 0%, color-mix(in srgb, var(--ts-color) 72%, #000) 100%);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  min-height: 84px;
  position: relative;
  overflow: hidden;
}

.test-series-folder-banner::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.test-series-folder-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.test-series-folder-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.test-series-folder-card:not(.test-series-folder-card--soon) .test-series-folder-badge {
  background: rgba(46, 213, 115, 0.95);
  color: #fff;
  border: none;
}

.test-series-folder-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.5rem 1.35rem;
}

.test-series-folder-body h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--primary-teal);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.test-series-folder-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.15rem;
  flex: 1;
}

.test-series-folder-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ts-color);
  border: 2px solid var(--ts-color);
  border-radius: 50px;
  padding: 0.65rem 1.15rem;
  transition: background 0.25s ease, color 0.25s ease;
  margin-top: auto;
}

.test-series-folder-card:hover .test-series-folder-btn {
  background: var(--ts-color);
  color: #fff;
}

.test-series-folder-card--soon .test-series-folder-btn {
  border-color: color-mix(in srgb, var(--ts-color) 45%, var(--text-muted));
  color: var(--text-muted);
}

.test-series-folder-card--soon:hover .test-series-folder-btn {
  background: color-mix(in srgb, var(--ts-color) 12%, white);
  color: var(--ts-color);
  border-color: var(--ts-color);
}

.test-series-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-teal);
  border: 2px solid var(--primary-teal);
  border-radius: 50px;
  padding: 0.5rem 1.15rem;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.test-series-test-card:hover .test-series-start-btn {
  background: var(--primary-teal);
  color: #fff;
}

/* AIAPGET Inline QP Analysis */
.aiapget-analysis-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-light);
}

.qp-section-block {
  margin-bottom: 2.5rem;
}

.qp-section-block:last-child {
  margin-bottom: 0;
}

.qp-section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.qp-section-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.qp-dist-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.qp-dist-card {
  border: 1.5px solid color-mix(in srgb, var(--dist-color) 45%, #fff);
  border-radius: 14px;
  background: color-mix(in srgb, var(--dist-color) 8%, #fff);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.qp-dist-card.open {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.qp-dist-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem 1.15rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.qp-dist-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--dist-color) 18%, #fff);
  color: var(--dist-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.qp-dist-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.qp-dist-info strong {
  font-size: 1rem;
  color: var(--text-dark);
}

.qp-dist-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.qp-dist-percent {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--dist-color);
}

.qp-dist-chevron {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.qp-dist-card.open .qp-dist-chevron {
  transform: rotate(180deg);
}

.qp-dist-body {
  display: none;
  padding: 0 1.15rem 1rem 4.5rem;
}

.qp-dist-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.qp-dist-body li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.45;
}

.qp-dist-body li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--dist-color);
  font-weight: 700;
}

.qp-dist-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.qp-dist-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.qp-table-header-bar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #5c3d2e, #7a5238);
  color: #fff;
  border-radius: 14px 14px 0 0;
  padding: 1.25rem 1.5rem;
}

.qp-table-header-bar > i {
  font-size: 1.5rem;
  margin-top: 0.2rem;
  opacity: 0.9;
}

.qp-table-header-bar h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.qp-table-header-bar p {
  font-size: 0.85rem;
  opacity: 0.85;
}

.qp-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 14px 14px;
  -webkit-overflow-scrolling: touch;
}

.qp-year-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.88rem;
}

.qp-year-table thead th {
  background: #5c3d2e;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 0.65rem;
  text-align: center;
  white-space: nowrap;
}

.qp-year-table thead th:nth-child(2) {
  text-align: left;
  min-width: 220px;
}

.qp-year-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.qp-year-table tbody tr:hover {
  background: rgba(12, 62, 49, 0.04);
}

.qp-year-table td {
  padding: 0.6rem 0.65rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}

.qp-year-table .qp-num {
  color: var(--text-muted);
  font-weight: 700;
  width: 36px;
}

.qp-year-table .qp-subject {
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
}

.qp-year-table tfoot td {
  background: #5c3d2e;
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.75rem 0.65rem;
}

.qp-year-table tfoot td:first-child {
  text-align: left;
}

.qp-year-table tfoot td i {
  margin-right: 0.4rem;
}

.qp-heat-1 { background: #faf6f0; }
.qp-heat-2 { background: #f0e6d6; }
.qp-heat-3 { background: #e8d9c0; }
.qp-heat-4 { background: #dfc9a8; }
.qp-heat-5 { background: #d4b88e; }
.qp-heat-6 { background: #c9a876; }

.qp-cell-max {
  background: #ffeb3b !important;
  color: #333;
  font-weight: 800;
}

.qp-table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.qp-table-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.qp-legend-max,
.qp-legend-heat {
  display: inline-block;
  width: 18px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.qp-legend-max {
  background: #ffeb3b;
}

.qp-legend-heat {
  background: linear-gradient(90deg, #faf6f0, #c9a876);
}

.test-series-card {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.test-series-card-meta {
  display: none;
}

.test-series-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.test-series-test-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
  background: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.test-series-test-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.test-series-test-info h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.test-series-test-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.test-series-test-stats {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.test-series-test-stats i {
  color: var(--accent-gold);
  margin-right: 0.35rem;
}

.test-series-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--light-card);
  border: 1px dashed var(--border-light);
  border-radius: 12px;
}

.test-series-empty i {
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.test-series-empty h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.test-series-empty p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.home-test-series-section {
  /* spacing & background via .home-section */
}

.home-ts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: stretch;
}

.home-ts-card,
.test-series-card {
  --ts-color: var(--primary-teal);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 10px 32px rgba(12, 62, 49, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.home-ts-card::before,
.test-series-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ts-color), color-mix(in srgb, var(--ts-color) 60%, #000));
  z-index: 1;
}

.home-ts-card:hover,
.test-series-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 22px 48px color-mix(in srgb, var(--ts-color) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: color-mix(in srgb, var(--ts-color) 25%, white);
}

.home-ts-card--soon,
.test-series-card--soon {
  opacity: 0.94;
}

.home-ts-card-header,
.test-series-card-header {
  background: linear-gradient(135deg, var(--ts-color) 0%, color-mix(in srgb, var(--ts-color) 72%, #000) 100%);
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  min-height: 84px;
  position: relative;
  overflow: hidden;
}

.home-ts-card-header::after,
.test-series-card-header::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.home-ts-card-icon,
.test-series-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.home-ts-card-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.home-ts-card-status.is-live {
  background: rgba(46, 213, 115, 0.95);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.home-ts-card-status.is-soon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.home-ts-card-body,
.test-series-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.35rem;
}

.home-ts-card-body h3,
.test-series-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--primary-teal);
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.home-ts-card-body p,
.test-series-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.home-ts-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.home-ts-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.38rem 0.8rem;
  border-radius: 50px;
  background: color-mix(in srgb, var(--ts-color) 9%, white);
  color: var(--ts-color);
  border: 1px solid color-mix(in srgb, var(--ts-color) 18%, transparent);
}

.home-ts-card-footer {
  margin-top: auto;
}

.home-ts-card-link,
.test-series-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ts-color);
  border: 2px solid var(--ts-color);
  border-radius: 50px;
  padding: 0.7rem 1.25rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.home-ts-card:hover .home-ts-card-link,
.test-series-card:hover .test-series-card-action {
  background: var(--ts-color);
  color: #fff;
}

.home-ts-card--soon .home-ts-card-link,
.test-series-card--soon .test-series-card-action {
  border-color: color-mix(in srgb, var(--ts-color) 45%, var(--text-muted));
  color: var(--text-muted);
}

.home-ts-card--soon:hover .home-ts-card-link,
.test-series-card--soon:hover .test-series-card-action {
  background: color-mix(in srgb, var(--ts-color) 12%, white);
  color: var(--ts-color);
  border-color: var(--ts-color);
}

.home-courses-slider-wrap {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 3.5rem;
}

.home-courses-slider {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-courses-slider::-webkit-scrollbar {
  display: none;
}

.home-course-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 0 0 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 220px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
  position: relative;
}

.home-course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--course-color) 25%, transparent);
}

.home-course-card-accent {
  height: 6px;
  background: linear-gradient(90deg, var(--course-color), color-mix(in srgb, var(--course-color) 60%, #fff));
}

.home-course-badge {
  display: inline-block;
  width: fit-content;
  margin: 1rem 1.25rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--course-color);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}

.home-course-cat {
  display: inline-block;
  width: fit-content;
  margin: 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--course-color);
  background: color-mix(in srgb, var(--course-color) 12%, white);
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
}

.home-course-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--text-dark);
  padding: 0 1.25rem;
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.home-course-target {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 1.25rem;
}

.home-course-target i {
  color: var(--course-color);
  margin-right: 0.3rem;
}

.home-course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0;
  margin-top: auto;
  border-top: 1px dashed var(--border-light);
}

.home-course-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--course-color);
}

.home-course-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--course-color) 15%, white);
  color: var(--course-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}

.home-course-card:hover .home-course-arrow {
  background: var(--course-color);
  color: #fff;
}

.home-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--light-card);
  color: var(--primary-teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  z-index: 2;
}

.home-slider-btn:hover {
  background: var(--primary-teal);
  color: #fff;
  border-color: var(--primary-teal);
}

.home-slider-prev {
  left: 0.5rem;
}

.home-slider-next {
  right: 0.5rem;
}

.home-courses-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 0 var(--section-px);
}

.home-features-section {
  /* spacing via .home-section */
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.home-feature-card {
  background: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.home-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--feature-color, var(--primary-teal));
}

.home-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.feature-theme-teal { --feature-color: #0c3e31; }
.feature-theme-gold { --feature-color: #c38d4e; }
.feature-theme-green { --feature-color: #00b894; }

.home-feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, var(--feature-color), color-mix(in srgb, var(--feature-color) 75%, #000));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--feature-color) 35%, transparent);
}

.home-feature-card h3 {
  font-family: var(--font-serif);
  color: var(--primary-teal);
  margin-bottom: 0.5rem;
}

.home-feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.home-news-section {
  /* spacing via .home-section */
}

.home-news-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.home-news-filter-btn {
  background-color: var(--light-card);
  border: 1px solid var(--border-light);
  padding: 0.55rem 1.35rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  color: var(--text-dark);
}

.home-news-filter-btn:hover,
.home-news-filter-btn.active {
  background-color: var(--primary-teal);
  color: white;
  border-color: var(--primary-teal);
}

.home-news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.home-news-item {
  width: 100%;
  text-align: left;
  background: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  padding-left: 1.35rem;
  padding-right: 3.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: block;
  color: inherit;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--news-accent, var(--primary-teal));
}

.home-news-item.cat-aiapget { --news-accent: #0c3e31; }
.home-news-item.cat-state-amo { --news-accent: #c38d4e; }
.home-news-item.cat-counselling { --news-accent: #0984e3; }
.home-news-item.cat-general { --news-accent: #6c5ce7; }

.home-news-item:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.home-news-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.home-news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.home-news-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-news-cat.cat-aiapget {
  background: rgba(12, 62, 49, 0.12);
  color: var(--primary-teal);
}

.home-news-cat.cat-state-amo {
  background: rgba(255, 193, 7, 0.18);
  color: #b8860b;
}

.home-news-cat.cat-counselling {
  background: rgba(0, 123, 255, 0.12);
  color: #1565c0;
}

.home-news-cat.cat-general {
  background: rgba(108, 92, 231, 0.12);
  color: #6c5ce7;
}

.news-card-cat.cat-aiapget {
  background: rgba(12, 62, 49, 0.12);
  color: var(--primary-teal);
}

.news-card-cat.cat-state-amo {
  background: rgba(255, 193, 7, 0.18);
  color: #b8860b;
}

.news-card-cat.cat-counselling {
  background: rgba(0, 123, 255, 0.12);
  color: #1565c0;
}

.news-card-cat.cat-general {
  background: rgba(108, 92, 231, 0.12);
  color: #6c5ce7;
}

.home-news-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--text-dark);
  font-weight: 600;
}

.home-news-arrow {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-gold);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-news-item:hover .home-news-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

.home-news-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.home-news-footer {
  text-align: center;
  margin-top: 2.5rem;
}

@media (max-width: 1024px) {
  .home-ts-grid,
  .test-series-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .test-series-grid,
  .test-series-grid-2,
  .test-series-grid-3,
  .home-ts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .home-ts-card-header,
  .test-series-card-header {
    min-height: 76px;
    padding: 1.15rem 1.25rem;
  }

  .home-ts-card-icon,
  .test-series-card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
    border-radius: 14px;
  }

  .home-ts-card-body h3,
  .test-series-card-body h3 {
    font-size: 1.3rem;
  }

  .home-ts-card-link,
  .test-series-card-action {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }

  .qp-dist-card-header {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
  }

  .qp-dist-percent {
    grid-column: 3;
    grid-row: 1;
  }

  .qp-dist-chevron {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .qp-dist-body {
    padding-left: 1.15rem;
  }

  .qp-table-legend {
    flex-direction: column;
    gap: 0.5rem;
  }

  .home-features-grid {
    grid-template-columns: 1fr;
  }

  .test-series-test-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .test-series-test-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Interactive Counselling Styling */
.counselling-dashboard {
  max-width: var(--container-width);
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.counselling-list-box {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.state-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--light-card);
  border: 1px solid var(--border-light);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  color: var(--text-dark);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-teal);
  color: white;
  border-color: var(--primary-teal);
}

.counselling-card {
  background: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.counselling-card-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-teal);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.counselling-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1.5rem;
  display: flex;
  gap: 1.5rem;
}

.counselling-flow {
  margin: 1.5rem 0;
  border-left: 2px dashed var(--accent-gold);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.counselling-step {
  position: relative;
}

.counselling-step::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 4px;
  width: 10px;
  height: 10px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  border: 2px solid var(--light-card);
}

/* Sidebar Alerts */
.counselling-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.alert-board {
  background-color: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.alert-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.alert-item:last-child {
  border-bottom: none;
}

.alert-badge {
  background-color: var(--accent-saffron);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.alert-title {
  font-weight: bold;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.alert-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.2rem;
}

/* News Feed Styling */
.news-feed-container {
  max-width: var(--container-width);
  margin: 4rem auto;
  padding: 0 2rem;
}

.news-search-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 3rem;
}

.news-search-input {
  flex-grow: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  background-color: var(--light-card);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--text-dark);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.news-card {
  background-color: var(--light-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(0,0,0,0.02);
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.news-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.news-card-cat {
  background-color: rgba(12, 62, 49, 0.1);
  color: var(--primary-teal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.news-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--primary-teal);
  margin-bottom: 1rem;
}

.news-card-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--light-card);
  border: 1px solid var(--border-light);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-dark);
}

.modal-body h2 {
  font-family: var(--font-serif);
  color: var(--primary-teal);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Contact / Lead Query Form */
.contact-section {
  width: 100%;
}

.contact-section .glass-card {
  width: 100%;
  max-width: 100%;
}

.contact-form-card {
  padding: 3rem;
}

.contact-form-title {
  font-family: var(--font-serif);
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--primary-teal);
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.3;
  padding: 0 0.25rem;
}

.contact-form-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  padding: 0 0.25rem;
}

.contact-form-submit {
  text-align: center;
  margin-top: 1rem;
}

.contact-submit-btn {
  width: 100%;
  max-width: 100%;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.contact-form .full-width {
  grid-column: span 2;
  min-width: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background-color: var(--light-card);
  font-family: var(--font-main);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: var(--transition);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(195, 141, 78, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.main-footer {
  background-color: var(--primary-teal);
  color: var(--text-light);
  padding: 5rem 2rem 2rem;
  border-top: 5px solid var(--accent-gold);
}

.footer-grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.footer-col p {
  opacity: 0.8;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contact-item span {
  opacity: 0.85;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}

.social-icon:hover {
  background-color: var(--accent-gold);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Response Layout Adjustments for smaller screens */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .section-hero .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .section-hero .badge-tag {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    height: 380px;
  }
  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .counselling-dashboard {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .study-material-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-top {
    display: none;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: var(--light-card);
    flex-direction: column;
    padding: 3rem;
    gap: 2rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }
  .nav-links.active {
    left: 0;
  }

  .nav-whatsapp-btn {
    width: 100%;
    justify-content: center;
  }

  .menu-btn {
    display: flex;
  }
  .menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .slide-title {
    font-size: 2rem;
  }
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .contact-form .full-width {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .nta-main-container {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
    height: calc(100vh - 120px);
  }
  .nta-sidebar {
    border-top: 2px solid #ccc;
    height: auto;
    overflow-y: auto;
  }
  .nta-action-row {
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  .nta-action-left,
  .nta-action-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nta-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
}

/* Fullscreen Mode for CBT Practice Simulator */
body.test-active {
  overflow: hidden !important;
  background-color: #edf2f5 !important;
}
body.test-active .main-header,
body.test-active .main-footer,
body.test-active .header-top {
  display: none !important;
}
body.test-active #nta-container {
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.test-active .nta-main-container {
  flex: 1;
  min-height: 0;
  height: auto !important;
}

/* ==========================================
   NEW TEAM CARD - No Flip, All Details Visible
   ========================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--container-width);
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.team-card {
  background: var(--light-card);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.8rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid var(--border-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(12, 62, 49, 0.15);
}

.team-photo-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.2rem;
  border: 4px solid var(--primary-teal);
  box-shadow: 0 4px 15px rgba(12, 62, 49, 0.25);
  flex-shrink: 0;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(12, 62, 49, 0.08), rgba(195, 141, 78, 0.12));
  color: var(--primary-teal);
  font-size: 2.5rem;
}

.team-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary-teal);
  margin-bottom: 0.3rem;
}

.team-role {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-teal), var(--secondary-green));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.team-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
}

.team-connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.team-connect-btn:hover {
  background: #1da851;
  transform: scale(1.05);
  color: white;
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   APP DOWNLOAD STORE BADGES
   ========================================== */
.app-badges-row {
  display: flex;
  gap: 14px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.app-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 160px;
}

.app-badge-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.android-badge {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}

.ios-badge {
  background: #1c1c1e;
  color: #fff;
  border: 1px solid #333;
}

.app-badge-btn i {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.android-badge i { color: #78c257; }
.ios-badge i { color: #ccc; }

.app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-sub {
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  opacity: 0.8;
  text-transform: uppercase;
}

.badge-main {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Shared Page Hero */
.page-hero {
  padding: 4rem 2rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 62, 49, 0.05) 0%, transparent 100%);
}

.page-hero-compact {
  padding-top: 3rem;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 5vw, 3rem);
  margin-top: 0.5rem;
  color: var(--primary-teal);
  line-height: 1.2;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0.5rem auto 0;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.6;
}

/* Study Material - Courses Page */
.study-material-section {
  padding: 4rem 2rem;
  background-color: var(--light-bg);
  border-top: 1px solid var(--border-light);
}

.study-material-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.study-material-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  margin-top: 0.5rem;
  color: var(--primary-teal);
}

.study-material-desc {
  color: var(--text-muted);
  margin: 1rem 0 2rem;
  line-height: 1.6;
}

.study-material-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.study-material-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.study-material-icon {
  color: var(--accent-gold);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.study-material-item h4 {
  font-weight: 700;
  color: var(--primary-teal);
  margin-bottom: 0.25rem;
}

.study-material-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.study-books-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  perspective: 1000px;
  justify-items: center;
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
}

body.menu-open .nav-overlay {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

/* Touch-friendly defaults */
.btn,
.filter-btn,
.home-news-filter-btn,
.courses-filter-btn,
.home-news-item,
.test-series-card,
.home-ts-card,
.home-course-card {
  -webkit-tap-highlight-color: transparent;
}

/* ==========================================
   MOBILE RESPONSIVE - SITE WIDE
   ========================================== */
@media (max-width: 768px) {
  .home-section {
    padding: var(--section-py-mobile) var(--section-px-mobile);
  }

  .section-hero.hero {
    min-height: clamp(400px, 58vh, 540px);
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background-position: center 35%;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 45%, rgba(248, 250, 249, 0.55) 100%),
      url("images/heder%20bg.jpg");
  }

  .section-hero {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .section-brand {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  #home-page .home-section:not(.section-hero) {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .section-glass-panel {
    padding: 1.85rem 1.15rem;
    border-radius: 18px;
  }

  .section-glass-panel::before {
    border-radius: 18px 18px 0 0;
  }

  .home-section .section-subtitle {
    margin-bottom: 1.75rem;
  }

  .home-section.has-divider::before {
    width: clamp(56px, 18vw, 88px);
    height: 3px;
  }

  .section-title {
    font-size: clamp(1.3rem, 5.5vw, 1.75rem);
    line-height: 1.35;
    padding: 0 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .section-title-mobile-fit {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
  }

  .mobile-br {
    display: inline;
  }

  .scroll-hint-bar {
    display: flex;
  }

  .section-subtitle {
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    padding: 0 0.75rem;
    line-height: 1.5;
  }

  .horizontal-scroll-fade-wrap {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .home-courses-slider-wrap {
    padding: 0;
  }

  .home-slider-btn {
    display: none;
  }

  .home-course-card {
    flex: 0 0 82vw;
    max-width: 320px;
    min-height: 240px;
  }

  .home-course-title {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .results-slider-container {
    padding: 0.5rem 0 1.25rem;
    margin: 0;
    max-width: 100%;
  }

  .results-track {
    gap: 1rem;
    padding: 0 0.25rem;
  }

  .result-card {
    flex: 0 0 82vw;
    min-width: 0;
    max-width: 320px;
    padding: 1.5rem 1.25rem;
  }

  .result-name {
    font-size: 1.05rem;
  }

  .result-rank {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
  }

  .result-quote {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .navbar {
    padding: 0.65rem 1rem;
  }

  .logo-container img.navbar-logo-img {
    height: 38px;
  }

  .logo-text h1 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .logo-text p {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
  }

  .nav-links {
    top: 56px;
    padding: 1.5rem;
    gap: 0.75rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.65rem 0;
    font-size: 1rem;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7vw, 2rem);
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    display: none;
  }

  .hero-content {
    align-items: center;
  }

  .badge-tag {
    margin: 0 auto;
  }

  .app-badges-row {
    justify-content: center;
  }

  .app-badge-btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .counter-card {
    padding: 1.25rem 0.85rem;
  }

  .counter-number {
    font-size: 2rem;
  }

  .counter-label {
    font-size: 0.8rem;
  }

  .home-test-series-section,
  .courses-hero,
  .courses-filter-section,
  .courses-list-section,
  .study-material-section,
  .news-feed-container,
  .counselling-dashboard,
  .quiz-dashboard,
  .test-series-browser {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .courses-hero h1,
  .page-hero h1 {
    font-size: 1.85rem;
  }

  .courses-catalog-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .courses-catalog-actions .btn {
    width: 100%;
  }

  .courses-filter-bar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .courses-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .courses-filter-btn {
    flex-shrink: 0;
  }

  .study-material-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .study-books-showcase {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 1rem;
  }

  .home-news-filters,
  .state-filter-bar,
  .home-news-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .home-news-item {
    padding-right: 2.5rem;
  }

  .home-news-item-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .carousel-container {
    border-radius: 12px;
  }

  .carousel-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }

  .contact-section .glass-card {
    padding: 1.25rem !important;
    overflow: visible;
  }

  .contact-form-card {
    padding: 1.25rem !important;
  }

  .contact-form-subtitle {
    margin-bottom: 1.75rem;
    font-size: 0.88rem;
  }

  .contact-form {
    gap: 1.25rem;
  }

  .form-control {
    font-size: 16px;
    padding: 0.8rem 0.9rem;
  }

  select.form-control {
    padding-right: 2.25rem;
  }

  .contact-section .btn {
    max-width: 100%;
    white-space: normal;
    line-height: 1.4;
    padding: 0.85rem 1rem;
  }

  .whatsapp-float {
    padding: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    justify-content: center;
  }

  .whatsapp-float-label {
    display: none;
  }

  .whatsapp-float i {
    font-size: 1.65rem;
  }

  .whatsapp-float-pulse {
    border-radius: 50%;
  }

  .nta-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
  }

  .nta-top-bar h2 {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .nta-sub-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }

  .nta-section-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .nta-section-tab {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
  }

  .nta-question-area {
    padding: 1rem;
  }

  .nta-qbody {
    font-size: 0.95rem;
  }

  .nta-action-left,
  .nta-action-right {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nta-action-left .nta-btn,
  .nta-action-right .nta-btn {
    width: 100%;
  }

  .nta-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .nta-grid-item {
    font-size: 0.75rem;
  }

  .nta-setup-container {
    margin: 2rem auto;
    max-width: calc(100% - 2rem);
  }

  .nta-setup-body {
    padding: 1.5rem;
  }

  .modal-content {
    width: calc(100% - 2rem);
    max-height: 88vh;
    overflow-y: auto;
    margin: 1rem;
  }

  .modal-body h2 {
    font-size: 1.25rem;
  }

  .quiz-card {
    margin: 0 0.5rem;
    padding: 1.25rem;
  }

  .course-card-3d {
    padding: 1.5rem;
  }

  .course-card-title {
    font-size: 1.35rem;
  }

  .test-series-browser {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .counters-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .home-course-card {
    flex: 0 0 88vw;
    max-width: 300px;
  }

  .result-card {
    flex: 0 0 88vw;
    max-width: 300px;
  }

  .study-books-showcase {
    grid-template-columns: 1fr 1fr;
  }

  .nta-main-container {
    grid-template-rows: 1.4fr 1fr;
  }

  .nta-palette-legend {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 2rem;
  }
}
