/**
 * ============================================================
 * IELTS Masterclass & Study Abroad — Main Stylesheet
 * Reference: British Council IELTS Coach layout & design
 * ============================================================
 */

/* ── CSS Custom Properties (theme tokens) ─────────────────── */
:root {
  --primary:        #1a3c6e;   /* Deep navy blue  */
  --primary-dark:   #0f2547;
  --primary-light:  #2a5a9f;
  --secondary:      #e8b84b;   /* Golden amber    */
  --secondary-dark: #c49a30;
  --accent:         #27ae60;   /* Success green   */
  --accent-red:     #e74c3c;
  --white:          #ffffff;
  --off-white:      #f5f7fa;
  --light-gray:     #e8ecf0;
  --mid-gray:       #8a9ab0;
  --dark-gray:      #4a5568;
  --text:           #1a202c;
  --text-light:     #718096;
  --border:         #d1d9e0;
  --shadow-sm:      0 2px 8px rgba(26,60,110,.10);
  --shadow-md:      0 4px 20px rgba(26,60,110,.15);
  --shadow-lg:      0 8px 40px rgba(26,60,110,.20);
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      20px;
  --radius-xl:      32px;
  --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-body:      'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-heading:   'Poppins', 'Inter', sans-serif;
  --max-width:      1200px;
  --header-h:       72px;
}


/* ── Touch & Scroll UX ────────────────────────────────────── */
html {
  /* Prevent elastic scroll on iOS from breaking fixed headers */
  overscroll-behavior-y: none;
}
body {
  /* Allow vertical scroll but prevent horizontal bleed */
  overscroll-behavior-x: none;
}
/* Smooth scrolling on touch devices */
.table-wrapper,
.dashboard-sidebar,
.admin-sidebar,
.mobile-nav,
.rich-editor,
#drawer-body {
  -webkit-overflow-scrolling: touch;
}
/* Prevent text size adjustment on orientation change (iOS) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* Tap highlight colour */
a, button { -webkit-tap-highlight-color: rgba(26,60,110,.12); }

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p  { line-height: 1.75; }

/* ── Utilities ────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-off-white { background: var(--off-white); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* Section headings */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { color: var(--primary); margin-bottom: 12px; }
.section-header .lead { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.section-header .accent-bar {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px; margin: 16px auto 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: var(--white);
  box-shadow: 0 4px 12px rgba(26,60,110,.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,60,110,.4); }
.btn-secondary {
  background: var(--secondary); color: var(--primary);
  box-shadow: 0 4px 12px rgba(232,184,75,.3);
}
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--primary); color: var(--primary); background: transparent;
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline-white {
  border: 2px solid var(--white); color: var(--white); background: transparent;
}
.btn-outline-white:hover { background: var(--white); color: var(--primary); }
/* ── WhatsApp / Contact button — deep teal, not WhatsApp green ── */
.btn-whatsapp {
  background: linear-gradient(135deg, #0a6e6e 0%, #0d8a8a 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(10,110,110,.35);
  position: relative;
  overflow: hidden;
}
.btn-whatsapp::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #085858 0%, #0a7272 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10,110,110,.45);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--accent-red); color: var(--white); }
.btn-danger:hover { background: #c0392b; }

/* ── Navbar / Site Header ────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 44px; width: auto; }
.site-logo .logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--primary); line-height: 1.2; }
.site-logo .logo-text span { display: block; font-size: 0.7rem; font-weight: 500; color: var(--text-light); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--dark-gray);
  transition: var(--transition); white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: rgba(26,60,110,.07); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; padding: 8px;
}
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: var(--transition); }

/* Mobile menu */
.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 999; padding: 24px;
  overflow-y: auto; flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--dark-gray); border-bottom: 1px solid var(--light-gray);
}
.mobile-nav a:hover { color: var(--primary); background: var(--off-white); }

/* ── Left Navigation Bubble ──────────────────────────────── */
.nav-bubble {
  position: fixed; left: 16px; top: 50%; transform: translateY(-50%);
  z-index: 900; display: flex; flex-direction: column; gap: 6px;
}
.nav-bubble-item {
  position: relative; display: flex; align-items: center;
}
.nav-bubble-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--mid-gray); border: 2px solid var(--white);
  box-shadow: var(--shadow-sm); cursor: pointer; transition: var(--transition);
  flex-shrink: 0;
}
.nav-bubble-item:hover .nav-bubble-dot,
.nav-bubble-item.active .nav-bubble-dot {
  background: var(--secondary); transform: scale(1.4);
}
.nav-bubble-label {
  position: absolute; left: 22px; background: var(--primary);
  color: var(--white); padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translateX(-4px);
  transition: var(--transition); box-shadow: var(--shadow-sm);
}
.nav-bubble-item:hover .nav-bubble-label { opacity: 1; transform: translateX(0); }

/* ── Mobile nav bubble — horizontal strip at bottom ───────── */
@media (max-width: 768px) {
  .nav-bubble {
    /* Switch from left sidebar to bottom horizontal strip */
    left: 50%; top: auto; bottom: 12px;
    transform: translateX(-50%);
    flex-direction: row; gap: 8px;
    background: rgba(15, 37, 71, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 14px; border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    display: flex !important; /* override the display:none */
    max-width: calc(100vw - 40px); /* never wider than screen */
    flex-wrap: wrap; justify-content: center;
  }
  .nav-bubble-dot {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.4);
    border-color: transparent;
  }
  .nav-bubble-item.active .nav-bubble-dot,
  .nav-bubble-item:hover .nav-bubble-dot {
    background: var(--secondary);
    transform: scale(1.3);
  }
  /* Labels appear above on mobile */
  .nav-bubble-label {
    left: 50%; top: auto; bottom: 26px;
    transform: translateX(-50%) translateY(4px);
    font-size: 0.72rem;
    padding: 3px 8px;
  }
  .nav-bubble-item:hover .nav-bubble-label {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  /* Extra bottom padding so last section isn't hidden behind the nav strip */
  main, .site-footer { margin-bottom: 0; }
}

/* ── Hero Slider ──────────────────────────────────────────── */
.hero-slider {
  position: relative; height: 100vh; min-height: 580px; max-height: 860px;
  overflow: hidden; margin-top: var(--header-h);
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-slide-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(26,60,110,.82) 40%, rgba(26,60,110,.35) 100%);
}
.hero-slide-content {
  position: relative; z-index: 2; max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px; color: var(--white);
}
.hero-badge {
  display: inline-block; background: var(--secondary); color: var(--primary);
  padding: 6px 16px; border-radius: var(--radius-xl); font-size: 0.85rem;
  font-weight: 700; margin-bottom: 16px; letter-spacing: 0.5px;
}
.hero-slide-content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 20px; text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-slide-content p {
  font-size: 1.15rem; margin-bottom: 32px; opacity: 0.92;
  max-width: 560px; text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Slider controls */
.slider-controls {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 8px;
}
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.5); border: none; cursor: pointer; transition: var(--transition);
}
.slider-dot.active { background: var(--secondary); width: 28px; border-radius: 5px; }
.slider-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; background: rgba(255,255,255,.18); color: var(--white);
  border: none; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.4rem; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.slider-nav-btn:hover { background: var(--secondary); color: var(--primary); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Scroll down indicator */
.scroll-indicator {
  position: absolute; bottom: 80px; right: 40px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.7); font-size: 0.78rem; letter-spacing: 1px;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 24px; height: 24px; border-right: 2px solid rgba(255,255,255,.7);
  border-bottom: 2px solid rgba(255,255,255,.7); transform: rotate(45deg);
  animation: scrollBounce 1.6s infinite;
}
@keyframes scrollBounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(6px)} }

/* ── Highlights/Stats Bar ─────────────────────────────────── */
.highlights-bar {
  background: var(--primary);
  padding: 28px 0;
}
.highlights-inner {
  display: flex; justify-content: space-around; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.highlight-item {
  display: flex; align-items: center; gap: 14px; color: var(--white);
}
.highlight-icon {
  width: 52px; height: 52px; background: rgba(255,255,255,.12);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.highlight-text strong { display: block; font-size: 1.4rem; color: var(--secondary); }
.highlight-text span { font-size: 0.85rem; opacity: 0.85; }

/* ── Services Grid (Home) ─────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 36px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-gray); transition: var(--transition);
  text-align: center; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
  width: 72px; height: 72px; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 1.9rem; color: var(--white); box-shadow: 0 4px 16px rgba(26,60,110,.25);
}
.service-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { color: var(--text-light); font-size: 0.92rem; margin-bottom: 20px; }

/* ── Feature Detail (alternating) ────────────────────────── */
.feature-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-bottom: 80px;
}
.feature-detail.reverse { direction: rtl; }
.feature-detail.reverse > * { direction: ltr; }
.feature-detail-content h3 { color: var(--primary); margin-bottom: 16px; }
.feature-detail-content p { color: var(--text-light); margin-bottom: 20px; }
.feature-list { list-style: none; }
.feature-list li {
  padding: 8px 0; display: flex; align-items: flex-start; gap: 10px;
  color: var(--dark-gray); font-size: 0.95rem;
}
.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.feature-media { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.feature-media img { width: 100%; }

/* ── Country Cards (Study Abroad) ────────────────────────── */
.countries-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.country-card {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer;
  text-decoration: none;
}
.country-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.country-card-image {
  height: 200px; background-size: cover; background-position: center;
  position: relative;
}
.country-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,37,71,.85) 30%, transparent 70%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
}
.country-flag { font-size: 2rem; margin-bottom: 6px; }
.country-card-overlay h3 { color: var(--white); font-size: 1.3rem; }
.country-card-body { background: var(--white); padding: 16px 20px; }
.country-card-body p { color: var(--text-light); font-size: 0.88rem; line-height: 1.5; }
.country-card-footer {
  padding: 12px 20px; background: var(--off-white);
  display: flex; justify-content: space-between; align-items: center;
}
.country-card-footer span { font-size: 0.82rem; color: var(--mid-gray); }
.country-card-footer .arrow { color: var(--primary); font-weight: 600; }

/* ── University Cards ─────────────────────────────────────── */
.universities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.uni-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--light-gray); overflow: hidden;
  transition: var(--transition);
}
.uni-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.uni-card-img { height: 160px; background-size: cover; background-position: center; background-color: var(--light-gray); }
.uni-card-body { padding: 20px; }
.uni-card-body h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; }
.uni-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.uni-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.82rem; color: var(--text-light);
  background: var(--off-white); padding: 4px 10px; border-radius: var(--radius-xl);
}
.uni-courses { margin-bottom: 12px; }
.uni-courses-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.course-tag {
  font-size: 0.78rem; background: rgba(26,60,110,.08); color: var(--primary);
  padding: 3px 10px; border-radius: var(--radius-xl);
}
.uni-notes {
  font-size: 0.86rem; color: var(--dark-gray); border-top: 1px solid var(--light-gray);
  padding-top: 12px; margin-top: 12px; white-space: pre-wrap;
}

/* ── Mock Test Packages ───────────────────────────────────── */
.packages-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.package-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 2px solid var(--light-gray);
  padding: 32px 24px; text-align: center; transition: var(--transition);
  position: relative; overflow: hidden;
}
.package-card.highlighted {
  border-color: var(--secondary);
  box-shadow: 0 0 0 1px var(--secondary), var(--shadow-md);
}
.package-badge {
  position: absolute; top: 12px; right: -28px;
  background: var(--secondary); color: var(--primary);
  font-size: 0.72rem; font-weight: 700; padding: 4px 32px;
  transform: rotate(35deg); letter-spacing: 0.5px;
}
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.package-qty {
  font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1;
  margin-bottom: 4px;
}
.package-qty-label { font-size: 0.85rem; color: var(--mid-gray); margin-bottom: 16px; }
.package-title { font-size: 1.2rem; color: var(--primary); margin-bottom: 8px; }
.package-fee { font-size: 1.6rem; font-weight: 700; color: var(--secondary); margin-bottom: 16px; }
.package-features { text-align: left; margin-bottom: 24px; }
.package-features li {
  padding: 6px 0; display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.88rem; color: var(--dark-gray);
}
.package-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ── Classes & Courses ────────────────────────────────────── */
.classes-tabs {
  display: flex; gap: 4px; background: var(--light-gray);
  padding: 4px; border-radius: var(--radius-md); width: fit-content; margin: 0 auto 40px;
}
.tab-btn {
  padding: 10px 24px; border-radius: calc(var(--radius-md) - 4px);
  font-weight: 600; font-size: 0.92rem; background: none;
  color: var(--dark-gray); transition: var(--transition);
}
.tab-btn.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.class-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--light-gray);
  overflow: hidden; transition: var(--transition);
}
.class-card:hover { box-shadow: var(--shadow-md); }
.class-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); padding: 24px 28px;
}
.class-card-header h3 { margin-bottom: 4px; }
.class-card-header .fee-badge {
  display: inline-block; background: var(--secondary); color: var(--primary);
  padding: 4px 14px; border-radius: var(--radius-xl); font-size: 0.9rem; font-weight: 700;
}
.class-card-body { padding: 24px 28px; }
.class-features { margin-bottom: 24px; }
.class-features li {
  padding: 6px 0; display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.9rem; color: var(--dark-gray); border-bottom: 1px solid var(--light-gray);
}
.class-features li:last-child { border-bottom: none; }
.class-features li::before { content: '→'; color: var(--secondary); font-weight: 700; }

/* Batch schedule */
.batch-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.batch-table th {
  background: var(--primary); color: var(--white);
  padding: 10px 14px; text-align: left; font-weight: 600;
}
.batch-table td { padding: 10px 14px; border-bottom: 1px solid var(--light-gray); }
.batch-table tr:last-child td { border-bottom: none; }
.batch-table tr:hover td { background: var(--off-white); }
.seats-badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-xl); font-size: 0.78rem; font-weight: 600;
}
.seats-available { background: rgba(39,174,96,.12); color: var(--accent); }
.seats-low { background: rgba(231,76,60,.12); color: var(--accent-red); }

/* ── Blog ─────────────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); border: 1px solid var(--light-gray);
  overflow: hidden; transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card-img { height: 200px; background-size: cover; background-position: center; background-color: var(--light-gray); }
.blog-card-body { padding: 20px 22px; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.blog-tag {
  font-size: 0.75rem; background: rgba(26,60,110,.08); color: var(--primary);
  padding: 3px 10px; border-radius: var(--radius-xl); font-weight: 500;
}
.blog-card-body h3 {
  font-size: 1.05rem; color: var(--text); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-snippet {
  font-size: 0.88rem; color: var(--text-light); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 16px;
}
.blog-meta { font-size: 0.78rem; color: var(--mid-gray); display: flex; gap: 12px; align-items: center; }

/* Blog post page */
.blog-post { max-width: 760px; margin: 0 auto; }
.blog-post-header { margin-bottom: 36px; }
.blog-post-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 32px; }
.blog-post-content { font-size: 1.05rem; line-height: 1.85; color: var(--dark-gray); }
.blog-post-content h2,.blog-post-content h3 { color: var(--primary); margin: 32px 0 12px; }
.blog-post-content p { margin-bottom: 20px; }
.blog-post-content img { border-radius: var(--radius-sm); margin: 24px 0; }
.blog-post-content blockquote {
  border-left: 4px solid var(--secondary); padding: 12px 20px;
  background: var(--off-white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; margin: 24px 0;
}
.blog-post-content ul,.blog-post-content ol { padding-left: 24px; margin-bottom: 20px; }
.blog-post-content li { margin-bottom: 8px; }

/* ── Team ─────────────────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}
.team-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); text-align: center;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.team-card-img { height: 240px; background-size: cover; background-position: center top; background-color: var(--light-gray); }
.team-card-body { padding: 20px 16px; }
.team-card-body h3 { color: var(--primary); margin-bottom: 4px; font-size: 1.1rem; }
.team-designation { color: var(--secondary-dark); font-size: 0.88rem; font-weight: 600; margin-bottom: 10px; }
.team-bio { font-size: 0.85rem; color: var(--text-light); }

/* ── Testimonials Slider ─────────────────────────────────── */
.testimonials-slider { overflow: hidden; position: relative; }
.testimonials-track { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.testimonial-slide { min-width: 100%; padding: 0 16px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 40px; text-align: center;
  max-width: 680px; margin: 0 auto;
}
.testimonial-quote { font-size: 3rem; color: var(--secondary); line-height: 1; margin-bottom: 16px; }
.testimonial-text { font-size: 1.05rem; line-height: 1.75; color: var(--dark-gray); font-style: italic; margin-bottom: 24px; }
.testimonial-author { font-weight: 700; color: var(--primary); }
.testimonial-score { color: var(--secondary); font-size: 0.88rem; margin-top: 4px; }
.testimonials-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }

/* ── CTA Section ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white); text-align: center; padding: 80px 24px;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { opacity: 0.88; font-size: 1.1rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ Accordion ────────────────────────────────────────── */
.accordion-list { max-width: 760px; margin: 0 auto; }
.accordion-item {
  border: 1px solid var(--light-gray); border-radius: var(--radius-sm);
  margin-bottom: 8px; overflow: hidden; transition: var(--transition);
}
.accordion-item.open { box-shadow: var(--shadow-sm); }
.accordion-header {
  padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; background: var(--white); user-select: none;
}
.accordion-header h4 { font-size: 1rem; color: var(--primary); font-weight: 600; }
.accordion-header .icon { font-size: 1.2rem; color: var(--mid-gray); transition: var(--transition); }
.accordion-item.open .accordion-header { background: var(--primary); }
.accordion-item.open .accordion-header h4 { color: var(--white); }
.accordion-item.open .accordion-header .icon { color: var(--secondary); transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-body-inner { padding: 20px 22px; color: var(--dark-gray); font-size: 0.95rem; background: var(--off-white); }
.accordion-item.open .accordion-body { max-height: 400px; }

/* ── Map Section ──────────────────────────────────────────── */
.map-section { height: 380px; background: var(--light-gray); }
.map-section iframe { width: 100%; height: 100%; border: none; }
.map-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; color: var(--mid-gray);
}
.map-placeholder .map-icon { font-size: 3rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.75); }
.footer-main { padding: 64px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer-brand h3 { color: var(--white); margin-bottom: 12px; font-size: 1.2rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.75); transition: var(--transition); font-size: 1rem;
}
.social-btn:hover { background: var(--secondary); color: var(--primary); }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 0.95rem; letter-spacing: 0.5px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.88rem; color: rgba(255,255,255,.65); transition: var(--transition);
}
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; margin-bottom: 10px;
}
.footer-contact-item .icon { font-size: 1rem; color: var(--secondary); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark-gray); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.95rem; transition: var(--transition);
  background: var(--white); color: var(--text);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,60,110,.1); }
.form-control.error { border-color: var(--accent-red); }
.form-hint { font-size: 0.78rem; color: var(--mid-gray); margin-top: 4px; }
.form-error { font-size: 0.82rem; color: var(--accent-red); margin-top: 4px; }

/* ── Student Dashboard ────────────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--header-h)); margin-top: var(--header-h); }
.dashboard-sidebar {
  background: var(--primary); color: var(--white);
  padding: 32px 0; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.sidebar-profile { padding: 0 20px 28px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
.sidebar-avatar {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  margin: 0 auto 12px; overflow: hidden; border: 3px solid rgba(255,255,255,.2);
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-name { font-weight: 700; margin-bottom: 2px; }
.sidebar-id { font-size: 0.78rem; opacity: 0.65; }
.sidebar-nav { padding: 16px 12px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: var(--radius-sm); color: rgba(255,255,255,.7); font-size: 0.9rem;
  font-weight: 500; transition: var(--transition); margin-bottom: 2px;
}
.sidebar-nav a:hover,.sidebar-nav a.active {
  background: rgba(255,255,255,.12); color: var(--white);
}
.sidebar-nav a .nav-icon { width: 20px; text-align: center; flex-shrink: 0; }
.dashboard-main { padding: 36px; background: var(--off-white); }
.dash-page-title { font-size: 1.6rem; color: var(--primary); margin-bottom: 28px; font-weight: 700; }

/* Dashboard cards */
.dash-stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.dash-stat-card {
  background: var(--white); border-radius: var(--radius-md); padding: 20px;
  box-shadow: var(--shadow-sm); border-left: 4px solid var(--primary); text-align: center;
}
.dash-stat-card .stat-icon { font-size: 1.6rem; margin-bottom: 6px; }
.dash-stat-card .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.dash-stat-card .stat-label { font-size: 0.78rem; color: var(--mid-gray); font-weight: 500; }
.dash-card {
  background: var(--white); border-radius: var(--radius-md); padding: 24px;
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.dash-card-title { font-size: 1.05rem; color: var(--primary); font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--light-gray); }

/* Info rows */
.info-row { display: flex; padding: 10px 0; border-bottom: 1px solid var(--light-gray); }
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 0.85rem; color: var(--mid-gray); font-weight: 600; min-width: 140px; }
.info-value { font-size: 0.9rem; color: var(--text); }

/* Status badges */
.badge {
  display: inline-block; padding: 3px 12px; border-radius: var(--radius-xl);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px;
}
.badge-success { background: rgba(39,174,96,.12); color: var(--accent); }
.badge-warning { background: rgba(232,184,75,.15); color: var(--secondary-dark); }
.badge-danger  { background: rgba(231,76,60,.10); color: var(--accent-red); }
.badge-primary { background: rgba(26,60,110,.10); color: var(--primary); }
.badge-muted   { background: var(--light-gray); color: var(--mid-gray); }

/* ── Admin Panel ──────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--primary-dark); color: var(--white);
  padding: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-brand {
  padding: 20px 18px; background: rgba(0,0,0,.2);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px;
}
.admin-nav { padding: 12px 8px; }
.admin-nav-section { font-size: 0.68rem; color: rgba(255,255,255,.35); padding: 12px 12px 4px; letter-spacing: 1px; text-transform: uppercase; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--radius-sm); color: rgba(255,255,255,.65); font-size: 0.85rem;
  transition: var(--transition); margin-bottom: 1px; font-weight: 500;
}
.admin-nav a:hover,.admin-nav a.active { background: rgba(255,255,255,.1); color: var(--white); }
.admin-nav a .nav-icon { width: 18px; text-align: center; }
.admin-main { padding: 32px; background: var(--off-white); min-height: 100vh; }
.admin-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-page-header h1 { font-size: 1.5rem; color: var(--primary); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th {
  background: var(--primary); color: var(--white); padding: 12px 16px;
  text-align: left; font-weight: 600; font-size: 0.82rem;
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--light-gray); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(26,60,110,.03); }
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); background: var(--white); }

/* Admin cards */
.admin-card { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 24px; }
.admin-card-title { font-size: 1rem; color: var(--primary); font-weight: 700; margin-bottom: 20px; }

/* Rich text editor area */
.rich-editor-wrapper { border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.rich-editor-toolbar {
  background: var(--light-gray); padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 4px;
  border-bottom: 1px solid var(--border);
}
.rich-btn {
  padding: 5px 10px; background: var(--white); border: 1px solid var(--border);
  border-radius: 4px; font-size: 0.82rem; cursor: pointer; transition: var(--transition);
}
.rich-btn:hover { background: var(--primary); color: var(--white); }
.rich-editor {
  min-height: 320px; padding: 16px; outline: none; background: var(--white);
  font-size: 0.95rem; line-height: 1.7;
}

/* ── Toast Notifications ─────────────────────────────────── */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--primary); color: var(--white); padding: 14px 20px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  font-size: 0.9rem; min-width: 260px; display: flex; align-items: center; gap: 10px;
  animation: slideIn 0.3s ease; pointer-events: all;
}
.toast.success { background: var(--accent); }
.toast.error   { background: var(--accent-red); }
@keyframes slideIn { from{transform:translateX(110%);opacity:0} to{transform:translateX(0);opacity:1} }

/* ── Misc / Pages ─────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white); padding: 80px 0 60px; margin-top: var(--header-h);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { opacity: 0.88; font-size: 1.05rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; opacity: 0.75; margin-bottom: 16px; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb-sep { opacity: 0.5; }

/* Alert boxes */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.3); color: #1e7e46; }
.alert-error   { background: rgba(231,76,60,.1);  border: 1px solid rgba(231,76,60,.3);  color: #b03030; }
.alert-info    { background: rgba(26,60,110,.08); border: 1px solid rgba(26,60,110,.2);  color: var(--primary); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-size: 0.9rem; transition: var(--transition); color: var(--dark-gray);
}
.page-btn:hover,.page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* WhatsApp Floating Button — deep teal */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 58px; height: 58px;
  background: linear-gradient(135deg, #0a6e6e 0%, #0d8a8a 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(10,110,110,.50);
  transition: var(--transition);
  color: var(--white); font-size: 1.6rem; text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(10,110,110,.65);
  background: linear-gradient(135deg, #085858 0%, #0a7272 100%);
}
.whatsapp-float .tooltip {
  position: absolute; right: 70px; background: var(--primary); color: var(--white);
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 0.82rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translateX(4px); transition: var(--transition);
}
.whatsapp-float:hover .tooltip { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first breakpoints
   1024px  tablet landscape / small desktop
    768px  tablet portrait / large phone landscape
    480px  phone portrait (primary target)
══════════════════════════════════════════════════════════════ */

/* ── 1024px — tablet adjustments ─────────────────────────── */
@media (max-width: 1024px) {

  /* Public pages */
  .feature-detail { grid-template-columns: 1fr; gap: 36px; }
  .feature-detail.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Student dashboard — sidebar moves to top */
  .dashboard-layout {
    grid-template-columns: 1fr;
    margin-top: 0;
  }
  .dashboard-sidebar {
    position: relative;
    height: auto;
    padding: 16px 0 8px;
  }
  .sidebar-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 12px 20px 12px;
  }
  .sidebar-avatar { margin: 0; width: 48px; height: 48px; flex-shrink: 0; }
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 16px;
  }
  .sidebar-nav a {
    padding: 8px 12px;
    font-size: 0.82rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    margin-bottom: 0;
  }
  .sidebar-nav hr { display: none; }
  .dashboard-main { padding: 24px 20px; }

  /* Admin panel — sidebar moves to top */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: relative;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }
  .admin-sidebar-brand { flex: 0 0 auto; border-bottom: none; }
  .admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px;
    flex: 1;
  }
  .admin-nav-section { display: none; }
  .admin-nav a {
    padding: 7px 10px;
    font-size: 0.78rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    margin-bottom: 0;
  }
  .admin-nav a .nav-icon { margin-right: 2px; }
  .admin-main { padding: 24px 20px; min-height: auto; }

  /* Admin two-col sidebar forms → stack */
  .admin-layout .admin-card + .admin-card { margin-top: 0; }
}

/* ── 768px — phone landscape / small tablet ──────────────── */
@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* ── HEADER ── */
  .site-nav { display: none; }
  .mobile-toggle { display: flex; }
  .site-logo .logo-text span { display: none; } /* hide tagline on mobile */

  /* Hide auth buttons from header on mobile — accessible via hamburger menu */
  .header-actions .btn { display: none; }

  /* Tighten header inner padding */
  .site-header .inner { padding: 0 14px; }

  /* Shrink logo text on mobile */
  .site-logo .logo-text { font-size: 0.95rem; }
  .site-logo img { height: 36px; }
  .site-logo { gap: 8px; }

  /* ── HERO ── */
  .hero-slider { height: 72vh; min-height: 420px; max-height: 560px; }
  .hero-slide-content { padding: 0 20px; }
  .hero-slide-content h1 { font-size: clamp(1.7rem,6vw,2.4rem); margin-bottom: 14px; }
  .hero-slide-content p { font-size: 0.95rem; margin-bottom: 22px; }
  .hero-badge { font-size: 0.75rem; padding: 4px 12px; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .slider-prev { left: 10px; width: 40px; height: 40px; }
  .slider-next { right: 10px; width: 40px; height: 40px; }
  .scroll-indicator { display: none; }

  /* ── HIGHLIGHTS BAR ── */
  .highlights-inner { flex-direction: column; gap: 16px; align-items: flex-start; padding: 0 24px; }
  .highlight-item { gap: 12px; }
  .highlight-icon { width: 44px; height: 44px; font-size: 1.2rem; }

  /* ── SECTION PADDING ── */
  .section-pad { padding: 52px 0; }
  .section-pad-sm { padding: 32px 0; }
  .section-header { margin-bottom: 36px; }

  /* ── GRIDS → single column ── */
  .services-grid,
  .countries-grid,
  .packages-grid,
  .blog-grid,
  .team-grid,
  .universities-grid { grid-template-columns: 1fr; }

  /* ── CLASSES TABS → pill row that wraps ── */
  .classes-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
    padding: 6px;
  }
  .tab-btn {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
    font-size: 0.82rem;
    padding: 9px 12px;
  }

  /* ── FEATURE DETAIL ── */
  .feature-detail, .feature-detail.reverse { direction: ltr; }
  .feature-detail { gap: 24px; }
  .feature-media { border-radius: var(--radius-sm); }

  /* ── PACKAGE CARDS ── */
  .packages-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .package-qty { font-size: 2.4rem; }

  /* ── BLOG ── */
  .blog-grid { grid-template-columns: 1fr; }
  .blog-post { padding: 0 4px; }
  .blog-post-cover { border-radius: var(--radius-sm); }

  /* ── FOOTER ── */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-social { justify-content: center; }

  /* ── MISC ── */
  /* nav-bubble mobile handled separately above */
  .cta-section { padding: 52px 20px; }
  .cta-actions { flex-direction: column; align-items: center; gap: 10px; }
  .cta-actions .btn { width: 100%; max-width: 340px; justify-content: center; }
  .whatsapp-float { bottom: 16px; right: 16px; width: 52px; height: 52px; font-size: 1.4rem; }
  .whatsapp-float .tooltip { display: none; }

  /* ── REGISTRATION SECTION ── */
  .registration-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .registration-grid > div:last-child {
    order: -1; /* Card first on mobile */
  }
  /* Prevent text overflow in registration section */
  #registration-section { overflow-x: hidden; }
  #registration-section .container { padding: 0 16px; }

  /* ── PAGE HERO ── */
  .page-hero { padding: 56px 0 40px; }
  .page-hero h1 { font-size: clamp(1.5rem,5vw,2rem); }

  /* ── ACCORDION ── */
  .accordion-header h4 { font-size: 0.92rem; }

  /* ── TESTIMONIALS ── */
  .testimonial-card { padding: 28px 20px; }
  .testimonial-text { font-size: 0.95rem; }

  /* ── BATCH TABLE — horizontal scroll ── */
  .batch-table { font-size: 0.78rem; }
  .batch-table th, .batch-table td { padding: 8px 10px; }

  /* ── DATA TABLES — horizontal scroll already handled by .table-wrapper ── */
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 9px 10px; }

  /* ── ADMIN PANEL ── */
  .admin-page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .admin-page-header h1 { font-size: 1.25rem; }
  .admin-main { padding: 16px; }
  .dashboard-main { padding: 16px; }

  /* ── STUDENT DASHBOARD ── */
  .dash-stats-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dash-stat-card { padding: 16px 12px; }
  .dash-stat-card .stat-value { font-size: 1.4rem; }

  /* ── ADMIN CARD GRIDS → stack ── */
  /* These use class="admin-resp-grid" added inline by templates */
  .admin-resp-2col,
  .admin-resp-3col { grid-template-columns: 1fr !important; }
}

/* ── 480px — small phone portrait ────────────────────────── */
@media (max-width: 480px) {
  /* Registration section inner padding on very small screens */
  .registration-grid { padding: 0 4px; }
  .registration-grid > div:first-child h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {

  /* ── HERO ── */
  .hero-slider { height: 85vh; min-height: 400px; }
  .hero-slide-content h1 { font-size: 1.6rem; }
  .hero-slide-content p { font-size: 0.88rem; }
  .hero-badge { font-size: 0.7rem; }

  /* ── HEADER ── */
  .site-logo img { height: 32px; }

  /* ── SECTION ── */
  .section-pad { padding: 40px 0; }
  .container { padding: 0 16px; }

  /* ── STATS BAR ── */
  .dash-stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-stat-card { padding: 14px 10px; }
  .stat-icon { font-size: 1.3rem; }
  .stat-value { font-size: 1.2rem; }
  .stat-label { font-size: 0.7rem; }

  /* ── BUTTONS ── */
  .btn-lg { padding: 13px 24px; font-size: 0.95rem; }
  .btn-block { padding: 12px 16px; }

  /* ── FORMS ── */
  .form-control { font-size: 0.92rem; }

  /* ── TABS ── */
  .tab-btn { font-size: 0.78rem; padding: 8px 10px; min-width: 100px; }

  /* ── ADMIN SIDEBAR ── */
  .admin-nav a { font-size: 0.72rem; padding: 6px 8px; }
  .admin-nav a .nav-icon { display: none; } /* icon hidden, text only on tiny screens */
  .admin-sidebar-brand { font-size: 0.82rem; }

  /* ── STUDENT SIDEBAR ── */
  .sidebar-nav a { font-size: 0.78rem; padding: 7px 10px; }
  .sidebar-nav a .nav-icon { font-size: 0.85rem; }

  /* ── TABLE WRAPPER ── */
  .table-wrapper { font-size: 0.78rem; }

  /* ── ADMIN ASSIGNMENT drawer ── */
  /* Full-width on tiny screens */
  #sub-drawer { width: 100vw !important; }

  /* ── PACKAGE CARDS ── */
  .packages-grid { grid-template-columns: 1fr; }
  .package-qty { font-size: 2rem; }

  /* ── BLOG ── */
  .blog-card-body h3 { font-size: 0.95rem; }
  .blog-snippet { -webkit-line-clamp: 2; }

  /* ── PAGE HERO ── */
  .page-hero { padding: 44px 0 28px; }
  .page-hero h1 { font-size: 1.4rem; }
  .breadcrumb { font-size: 0.75rem; flex-wrap: wrap; }

  /* ── FOOTER ── */
  .footer-main { padding: 40px 0 28px; }
  .footer-brand p { font-size: 0.82rem; }
  .footer-col h4 { font-size: 0.88rem; }
  .footer-links a { font-size: 0.82rem; }
  .footer-contact-item { font-size: 0.82rem; }

  /* ── MISC ── */
  .pagination { gap: 5px; }
  .page-btn { width: 34px; height: 34px; font-size: 0.82rem; }
  .alert { font-size: 0.85rem; padding: 12px 14px; }
  .badge { font-size: 0.7rem; padding: 3px 9px; }
  h2 { font-size: clamp(1.4rem,5vw,2rem); }
  h3 { font-size: clamp(1.1rem,4vw,1.4rem); }
}

/* ── Touch target minimum (all interactive elements) ─────── */
@media (max-width: 768px) {
    /*
  a, button, input[type="submit"], input[type="button"],
  .btn, .tab-btn, .page-btn, .slider-dot, .slider-nav-btn {
    min-height: 40px;
  }
  */
  /* Prevent horizontal overflow globally */
  body { overflow-x: hidden; }
  img  { max-width: 100%; }
}

/* ── Admin two-col form grids → stack on tablet ──────────── */
/* Applied via JS class on the grid wrappers at render time */
@media (max-width: 900px) {
  /* Admin: any direct inline 2-col grid becomes single-col */
  .admin-main [style*="grid-template-columns:1fr 1fr"],
  .admin-main [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .admin-main [style*="grid-template-columns:1fr 1fr 1fr"],
  .admin-main [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Fixed-width sidebar forms → stack */
  .admin-main [style*="grid-template-columns:380px"],
  .admin-main [style*="grid-template-columns:340px"],
  .admin-main [style*="grid-template-columns:300px"],
  .admin-main [style*="grid-template-columns: 380px"],
  .admin-main [style*="grid-template-columns: 340px"],
  .admin-main [style*="grid-template-columns: 300px"] {
    grid-template-columns: 1fr !important;
  }
  /* Two-col 1fr + fixed → stack */
  .admin-main [style*="grid-template-columns:1fr 280px"],
  .admin-main [style*="grid-template-columns:1fr 300px"],
  .admin-main [style*="grid-template-columns:1fr 340px"],
  .admin-main [style*="grid-template-columns:1fr 1.4fr"],
  .admin-main [style*="grid-template-columns:1fr 1.6fr"],
  .admin-main [style*="grid-template-columns: 1fr 280px"],
  .admin-main [style*="grid-template-columns: 1fr 300px"],
  .admin-main [style*="grid-template-columns: 1fr 340px"],
  .admin-main [style*="grid-template-columns: 1fr 1.4fr"],
  .admin-main [style*="grid-template-columns: 1fr 1.6fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Blog form sidebar */
  .admin-main [style*="grid-template-columns:1fr 300px"],
  .admin-main [style*="grid-template-columns: 1fr 300px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Dashboard inner grids → stack ───────────────────────── */
@media (max-width: 900px) {
  .dashboard-main [style*="grid-template-columns:1fr 1fr"],
  .dashboard-main [style*="grid-template-columns: 1fr 1fr"],
  .dashboard-main [style*="grid-template-columns:1fr 1.4fr"],
  .dashboard-main [style*="grid-template-columns: 1fr 1.4fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Assignment page create form ─────────────────────────── */
@media (max-width: 900px) {
  /* Assignments: sticky create form becomes normal flow */
  #sub-drawer { width: min(540px, 100vw) !important; }
}

/* ── Classes batch table → card layout on mobile ─────────── */
@media (max-width: 600px) {
  .batch-table thead { display: none; }
  .batch-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    padding: 12px;
  }
  .batch-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.82rem;
  }
  .batch-table tbody td:last-child { border-bottom: none; padding-top: 10px; }
  .batch-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--mid-gray);
    font-size: 0.75rem;
    min-width: 80px;
  }

  /* Data tables → horizontal scroll only (keep column layout) */
  .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 480px; }
}

/* ── Rich editor toolbar wraps ───────────────────────────── */
@media (max-width: 480px) {
  .rich-editor-toolbar { gap: 2px; padding: 6px; }
  .rich-btn { padding: 4px 7px; font-size: 0.75rem; }
  .rich-editor { min-height: 160px; padding: 12px; font-size: 0.88rem; }
}

/* ── Country detail universities grid ───────────────────── */
@media (max-width: 768px) {
  .universities-grid { grid-template-columns: 1fr; }
  .uni-card-img { height: 130px; }
}

/* ── Hero slider controls on mobile ─────────────────────── */
@media (max-width: 480px) {
  .slider-controls { bottom: 72px; } /* clear the nav bubble strip */
  .slider-dot { width: 8px; height: 8px; }
  .slider-dot.active { width: 22px; }
  .slider-nav-btn { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* ── Student assignment detail page ─────────────────────── */
@media (max-width: 600px) {
  .rich-editor-wrapper { border-radius: var(--radius-sm); }
}

/* ── Admin assignment drawer search bar ─────────────────── */
@media (max-width: 600px) {
  #sub-search { width: 100% !important; margin-top: 8px; }
  .admin-page-header > div:first-child,
  .admin-page-header > div { flex-direction: column; }
}

/* ── Fix: admin nav icon + text on narrow screens ────────── */
@media (max-width: 400px) {
  .admin-nav a .nav-icon { display: none; }
  .admin-nav a { font-size: 0.68rem; padding: 5px 7px; }
}

/* ── Highlight items stack on small screens ─────────────── */
@media (max-width: 360px) {
  .highlight-item { flex-direction: column; align-items: flex-start; gap: 6px; }
  .highlight-icon { width: 36px; height: 36px; font-size: 1rem; }
}


/* ═══════════════════════════════════════════════════════════
   SOCIAL FEED — YouTube & Facebook
   Append this block to the bottom of public/css/main.css
════════════════════════════════════════════════════════════ */


/* ── Section ─────────────────────────────────────────────── */
.yt-fb-section { background: var(--off-white); }
.yt-block      { margin-bottom: 72px; }
.fb-block      { padding-top: 64px; border-top: 1px solid var(--light-gray); }

/* ── Heading row: icon badge + h2 centred ────────────────── */
.yt-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.yt-heading-row h2 { margin: 0; color: var(--primary); }

.yt-icon-badge,
.fb-icon-badge {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
}
.yt-icon-badge { background: #ff0000; }
.fb-icon-badge { background: #1877f2; }

/* ═══════════════════════════════════════════════════════════
   CAROUSEL OUTER WRAPPER
   Holds the stage + the two absolute arrows side-by-side
════════════════════════════════════════════════════════════ */
.ytc-outer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

/* ── Arrows ──────────────────────────────────────────────── */
.ytc-arrow {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  /* Subtle bounce animation on desktop hover */
}
.ytc-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
/* Animated bounce on the arrow SVG */
.ytc-arrow--prev:hover svg { animation: arrowBounceLeft  0.4s ease; }
.ytc-arrow--next:hover svg { animation: arrowBounceRight 0.4s ease; }
@keyframes arrowBounceLeft  { 0%,100%{transform:translateX(0)} 50%{transform:translateX(-4px)} }
@keyframes arrowBounceRight { 0%,100%{transform:translateX(0)} 50%{transform:translateX(4px)} }

/* ── Stage: takes all remaining space, shows one slide ───── */
.ytc-stage {
  flex: 1;
  position: relative;
  /* Height is driven by the tallest slide (the active one).
     Inactive slides are absolute so they don't take up space. */
  min-height: 0;
}

/* ── Slides: stacked on top of each other ────────────────── */
.ytc-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  /* Don't let inactive slides affect layout */
}
/* Active slide sits in flow and is visible */
.ytc-slide--active {
  position: relative;   /* back in flow so stage gets correct height */
  opacity: 1;
  pointer-events: auto;
}

/* ── Card inside each slide ──────────────────────────────── */
.ytc-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.ytc-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

/* ── Thumbnail (left half) ───────────────────────────────── */
.ytc-thumb {
  position: relative;
  flex: 0 0 55%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--light-gray);
}
.ytc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.ytc-card:hover .ytc-thumb img { transform: scale(1.04); }

/* Play overlay */
.ytc-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28);
  transition: background 0.3s;
}
.ytc-card:hover .ytc-play-overlay { background: rgba(180,0,0,.52); }

.ytc-play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: transform 0.3s;
}
.ytc-play-btn svg { color: #ff0000; margin-left: 4px; }
.ytc-card:hover .ytc-play-btn { transform: scale(1.1); }

/* Duration badge */
.ytc-duration {
  position: absolute; bottom: 10px; right: 12px;
  background: rgba(0,0,0,.78);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 8px; border-radius: 4px;
}

/* ── Info (right half) ───────────────────────────────────── */
.ytc-info {
  flex: 1;
  padding: 28px 32px;
  display: flex; flex-direction: column; gap: 12px;
  justify-content: center;
}

.ytc-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  margin: 0;
}

.ytc-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.ytc-meta-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--mid-gray);
}

.ytc-watch-cta {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 600;
  color: var(--primary);
}
.ytc-card:hover .ytc-watch-cta { text-decoration: underline; }

/* ── Dots + counter ──────────────────────────────────────── */
.ytc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.ytc-counter {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--mid-gray);
  min-width: 32px;
}

.ytc-dots {
  display: flex; gap: 8px;
}
.ytc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer; padding: 0;
  transition: background 0.25s, width 0.25s, border-radius 0.25s;
}
.ytc-dot.active {
  background: var(--primary);
  width: 26px; border-radius: 5px;
}

/* ── Channel CTA ─────────────────────────────────────────── */
.ytc-channel-cta { text-align: center; margin-top: 32px; }

.ytc-btn {
  border-color: #ff0000; color: #cc0000;
  display: inline-flex; align-items: center;
}
.ytc-btn:hover {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  color: var(--white) !important;
}

/* ═══════════════════════════════════════════════════════════
   FACEBOOK GRID
════════════════════════════════════════════════════════════ */
.fb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.fb-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
  transition: var(--transition);
}
.fb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #1877f2; }
.fb-card-img { width:100%; aspect-ratio:16/9; overflow:hidden; background:var(--light-gray); }
.fb-card-img img { width:100%; height:100%; object-fit:cover; display:block; transition:transform 0.4s; }
.fb-card:hover .fb-card-img img { transform:scale(1.04); }
.fb-card-body { padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
.fb-label {
  display:inline-flex; align-items:center; gap:5px;
  font-size:0.7rem; font-weight:700; color:#1877f2;
  text-transform:uppercase; letter-spacing:0.06em;
  font-family:var(--font-body);
}
.fb-excerpt {
  font-size:0.88rem; color:var(--text-light); line-height:1.65; margin:0; flex:1;
  font-family:var(--font-body);
  display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
}
.fb-meta { display:flex; gap:12px; font-size:0.75rem; color:var(--mid-gray); font-family:var(--font-body); }
.fb-read-more { font-size:0.8rem; font-weight:600; color:var(--primary); font-family:var(--font-body); margin-top:auto; padding-top:4px; }
.fb-card:hover .fb-read-more { text-decoration:underline; }
.fb-btn {
  border-color:#1877f2; color:#1877f2;
  display:inline-flex; align-items:center;
}
.fb-btn:hover { background:#1877f2 !important; border-color:#1877f2 !important; color:var(--white) !important; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

/* Tablet: stack card vertically */
@media (max-width: 900px) {
  .ytc-card { flex-direction: column; }
  .ytc-thumb { flex: none; width: 100%; }
  .ytc-info  { padding: 20px 22px; }
  .ytc-title { font-size: 1.05rem; }
}

/* Mobile: hide arrows, use only swipe + dots */
@media (max-width: 580px) {
  .ytc-outer  { gap: 0; }
  .ytc-arrow  { display: none; }
  .yt-block   { margin-bottom: 48px; }
  .fb-block   { padding-top: 48px; }
  .fb-grid    { grid-template-columns: 1fr; }
  .ytc-info   { padding: 16px 18px; }
}


/* ── Mock Test Tier Label ─────────────────────────────────── */
/* ════════════════════════════════════════════════════════════
   MOCK TESTS PAGE — Refined Representation
   ════════════════════════════════════════════════════════════ */

/* ── Tier pills ──────────────────────────────────────────── */
.tier-pill {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 4px 16px; border-radius: 20px;
  margin-bottom: 12px;
}
.tier-free    { background: rgba(39,174,96,.13); color: #1e7e46; }
.tier-premium { background: rgba(232,184,75,.2);  color: #856404; }

/* ── Free mock — 2-column grid ───────────────────────────── */
.free-mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 40px auto 0;
}

.free-mock-card {
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.free-mock-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent);
}
.free-mock-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.fmc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.fmc-number {
  font-family: var(--font-heading);
  font-size: 3rem; font-weight: 800;
  color: rgba(39,174,96, 0.2); /* Subtle watermark effect */
  line-height: 1;
}
.fmc-badge {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  background: #e8f5e9; color: #2e7d32;
  padding: 4px 10px; border-radius: 12px;
  border: 1px solid rgba(39,174,96,0.2);
}
.fmc-title {
  font-size: 1.25rem; font-weight: 700;
  color: var(--primary); margin-bottom: 12px;
  margin-top: -10px; /* Pull up closer to the number */
}
.fmc-sections {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.fmc-sections span {
  font-size: 0.7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
  background: #f8f9fa;
  color: #666;
  border: 1px solid #eee;
}
.fmc-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto;
}

/* ── Premium mock — Flexible Grid ────────────────────────── */
.premium-mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.premium-mock-card {
  background: var(--white);
  border: 1px solid rgba(232,184,75, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.premium-mock-card::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 3px;
  background: var(--secondary);
  border-radius: 0 0 4px 4px;
}
.premium-mock-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(232,184,75, 0.15);
  border-color: var(--secondary);
}

.pmc-crown {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(232,184,75, 0.1);
  border-radius: 50%;
  color: var(--secondary);
  margin-bottom: 4px;
}
.pmc-number {
  font-family: var(--font-heading);
  font-size: 1rem; font-weight: 700;
  color: var(--primary);
}
.pmc-sections {
  font-size: 0.75rem; font-weight: 600;
  color: #888;
  margin-bottom: 8px;
}
.pmc-btn {
  font-size: 0.8rem; font-weight: 700;
  padding: 10px 0; width: 100%;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: #fff; /* Changed to white for better contrast on gold */
  box-shadow: 0 4px 10px rgba(232,184,75, 0.3);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}
.pmc-btn:hover {
  background: var(--secondary-dark);
  box-shadow: 0 6px 14px rgba(232,184,75, 0.4);
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .free-mock-grid { grid-template-columns: 1fr; max-width: 420px; }
  .premium-mock-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 400px) {
  .premium-mock-grid { grid-template-columns: 1fr; }
}


