/* ============================================================
   RESOURCES.CSS — NCERT Resources Section
   Scoped under .resources-page to prevent conflicts.
   Extends existing classes; does NOT override them.
   ============================================================ */

/* ============================================================
   RESOURCES NAV DROPDOWN
   Extends existing .desktop-nav a behavior
   ============================================================ */
.nav-resources-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-resources-trigger {
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue-900);
  cursor: pointer;
  padding: 4px 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
  position: relative;
}
.nav-resources-trigger::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), #06b6d4);
  transition: width .3s cubic-bezier(.22,1,.36,1);
}
.nav-resources-item:hover .nav-resources-trigger::after,
.nav-resources-trigger[aria-expanded="true"]::after { width: 100%; }
.nav-resources-trigger .caret {
  font-size: .65rem;
  transition: transform .25s ease;
}
.nav-resources-trigger[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* Dropdown Panel */
.nav-resources-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px 8px;
  z-index: 9000;
  animation: dropdown-appear .18s ease;
}
@keyframes dropdown-appear {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-resources-item:hover .nav-resources-panel,
.nav-resources-panel.open { display: block; }

.nav-resources-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue-900);
  transition: background .18s, color .18s;
  text-decoration: none;
}
.nav-resources-panel a:hover { background: var(--blue-50); color: var(--blue-600); }
.nav-dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 6px 8px;
}
.nav-dropdown-classes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px 6px 2px;
}
.nav-dropdown-classes a {
  font-size: .78rem;
  padding: 6px 8px;
  justify-content: center;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
}
.nav-dropdown-classes a:hover { border-color: var(--blue-300); }

/* Mobile dropdown */
.mobile-resources-section {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 8px;
  padding-top: 8px;
}
.mobile-resources-label {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--yellow-300);
  padding: 4px 16px;
  display: block;
}
.mobile-resources-classes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 14px;
}
.mobile-resources-classes a {
  font-size: .8rem;
  padding: 7px 4px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-weight: 700;
}
.mobile-resources-classes a:hover,
.mobile-resources-classes a.active {
  background: rgba(251,191,36,.2);
  border-color: rgba(251,191,36,.4);
  color: var(--yellow-300);
}

/* ============================================================
   CLASS NAVIGATION STRIP
   ============================================================ */
.class-nav-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 14px 0;
  position: sticky;
  top: 65px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}
.class-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.class-nav-inner::-webkit-scrollbar { display: none; }
.class-nav-label {
  font-size: .75rem;
  font-weight: 800;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  flex-shrink: 0;
}
.class-nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue-900);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s ease;
  text-decoration: none;
}
.class-nav-pill:hover { background: var(--blue-100); border-color: var(--blue-300); }
.class-nav-pill.active {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}

/* ============================================================
   SUBJECT SECTION HEADER
   ============================================================ */
.subject-section {
  padding: 60px 0 40px;
}
.subject-section:nth-child(odd) { background: var(--white); }
.subject-section:nth-child(even) { background: var(--blue-50); }
.subject-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue-100);
}
.subject-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.subject-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue-900);
  margin: 0;
}
.subject-book-count {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ============================================================
   BOOK CARD — extends .why-card
   ============================================================ */
.book-card {
  /* Inherits .why-card layout */
  display: flex;
  flex-direction: column;
  gap: 0;
}
.book-subject-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
  width: fit-content;
}
.book-chapter-count {
  font-size: .78rem;
  color: var(--gray-500);
  margin: 4px 0 12px;
  font-weight: 600;
}
.book-desc {
  font-size: .85rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.book-primary-btn {
  font-size: .85rem !important;
  padding: 10px 18px !important;
  margin-bottom: 8px;
  width: 100%;
  justify-content: center;
}

/* Chapter accordion toggle */
.book-chapter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue-700);
  cursor: pointer;
  transition: background .2s;
  font-family: 'Nunito', sans-serif;
  margin-top: 4px;
}
.book-chapter-toggle:hover { background: var(--blue-100); }
.book-chapter-toggle .toggle-caret {
  font-size: .7rem;
  transition: transform .25s ease;
}
.book-chapter-toggle.open .toggle-caret { transform: rotate(180deg); }

.book-chapters-list {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--white);
  scrollbar-width: thin;
}
.book-chapters-list.open { display: flex; }
.chapter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: none;
  transition: background .18s;
  gap: 8px;
}
.chapter-link:hover { background: var(--blue-50); color: var(--blue-900); }
.chapter-link .dl-icon { flex-shrink: 0; font-size: .85rem; }

/* ============================================================
   EXEMPLAR SECTION
   ============================================================ */
.exemplar-section {
  padding: 80px 0;
}
.exemplar-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.25);
  color: #c4b5fd;
  font-size: .75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.exemplar-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.exemplar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
  border-color: rgba(124,58,237,.3);
}
.exemplar-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.exemplar-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}
.exemplar-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.exemplar-chapter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition: background .18s;
  margin-top: 2px;
}
.exemplar-chapter-link:hover { background: rgba(124,58,237,.2); color: #c4b5fd; }

/* ============================================================
   STANDALONE BREADCRUMB BAR (above the hero)
   ============================================================ */
.res-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: 10px 0;
  width: 100%;
}
.res-breadcrumb-bar .container {
  display: flex;
  align-items: center;
}
.res-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: #64748b;
  list-style: none;
  margin: 0;
  padding: 0;
}
.res-breadcrumb a {
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  transition: color .18s;
}
.res-breadcrumb a:hover { color: var(--blue-600, #2563eb); }
.res-breadcrumb .bc-sep {
  color: #94a3b8;
  font-size: .75rem;
  user-select: none;
}
.res-breadcrumb .bc-current {
  color: #64748b;
  font-weight: 600;
}

/* ============================================================
   RESOURCES HERO TWEAKS (extends .page-hero)
   ============================================================ */
.resources-hero .hero-ctas { justify-content: center; }

/* Class hero stats strip */
.res-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  justify-content: center;
}
.res-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
}
.res-stat-icon { font-size: 1rem; }

/* ============================================================
   RESOURCES LANDING PAGE — Class Grid Cards
   ============================================================ */
.class-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.class-grid-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s;
  text-decoration: none;
  display: block;
}
.class-grid-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}
.class-grid-card .cgc-num {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1;
  margin-bottom: 6px;
}
.class-grid-card .cgc-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-bottom: 10px;
  display: block;
}
.class-grid-card .cgc-subjects {
  font-size: .72rem;
  color: var(--blue-400);
  line-height: 1.5;
}
.class-grid-card.has-exemplar { border-color: rgba(124,58,237,.25); }
.class-grid-card.has-exemplar:hover { border-color: rgba(124,58,237,.5); }
.cgc-exemplar-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  background: rgba(124,58,237,.1);
  color: #7c3aed;
  border: 1px solid rgba(124,58,237,.2);
  margin-top: 8px;
}

/* ============================================================
   INTERNAL CLASS NAVIGATOR (bottom of page)
   ============================================================ */
.class-navigator {
  background: var(--blue-50);
  border-top: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
  padding: 28px 0;
}
.class-navigator-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.class-nav-prev, .class-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--blue-100);
  color: var(--blue-900);
  text-decoration: none;
  transition: all .2s ease;
}
.class-nav-prev:hover, .class-nav-next:hover {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  transform: translateY(-2px);
}
.class-nav-all-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
}
.class-nav-all-link:hover { color: var(--blue-900); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .class-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav-resources-panel { min-width: 220px; left: -10px; transform: none; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
  .class-navigator-inner { flex-direction: column; text-align: center; }
  .subject-section { padding: 40px 0 28px; }
}
@media (max-width: 480px) {
  .class-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nav-dropdown-classes { grid-template-columns: repeat(3, 1fr); }
  .class-nav-pill { font-size: .75rem; padding: 5px 10px; }
}

/* ============================================================
   LOGO HOME LINK — injected by nav-inject.js
   ============================================================ */
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 4px 8px 4px 4px;
  margin: -4px -8px -4px -4px;
  transition: background .2s ease;
}
.logo:hover {
  background: rgba(37, 99, 235, .07);
}
.logo .logo-icon {
  transition: transform .22s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover .logo-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* ============================================================
   PROJECTS SECTION — PAGE HERO
   Used by: projects/index.html and all sub-pages
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900, #1e3a8a) 0%, var(--blue-700, #1d4ed8) 60%, var(--blue-600, #2563eb) 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(99,179,237,.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.page-hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  display: inline-block;
}
.page-hero h1 {
  font-family: 'Sora', 'Nunito', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
}
.page-hero h1 span {
  color: #fbbf24;
}
.page-hero > .container > p,
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 0 24px;
}

/* Hero CTA buttons row */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fbbf24;
  color: #1e3a8a;
  font-size: .92rem;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: all .22s ease;
  border: 2px solid transparent;
}
.btn-yellow:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251,191,36,.35);
}
.btn-ghost-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  font-size: .92rem;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.25);
  transition: all .22s ease;
}
.btn-ghost-hero:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}

/* ============================================================
   PROJECTS STATS STRIP — res-stat-card (card variant)
   ============================================================ */
.res-stat-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  transition: background .2s ease;
}
.res-stat-card:hover {
  background: rgba(255,255,255,.18);
}
.res-stat-icon { font-size: 1.1rem; }
.res-stat-label { white-space: nowrap; }

/* ============================================================
   PROJECT CHIP BADGES
   Used inside project showcase cards in why-card elements
   ============================================================ */
.project-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.project-chip {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
/* Purple — Coding & Games */
.project-chip-purple {
  background: rgba(124,58,237,.12);
  color: #7c3aed;
  border: 1px solid rgba(124,58,237,.25);
}
/* Cyan — AI Projects */
.project-chip-cyan {
  background: rgba(6,182,212,.1);
  color: #0891b2;
  border: 1px solid rgba(6,182,212,.25);
}
/* Gold — Student Presentations */
.project-chip-gold {
  background: rgba(245,158,11,.1);
  color: #d97706;
  border: 1px solid rgba(245,158,11,.25);
}
/* Green — Excel Projects */
.project-chip-green {
  background: rgba(16,185,129,.1);
  color: #059669;
  border: 1px solid rgba(16,185,129,.25);
}
/* Blue — Certificates */
.project-chip-blue {
  background: rgba(37,99,235,.1);
  color: #1d4ed8;
  border: 1px solid rgba(37,99,235,.25);
}

/* ============================================================
   RESPONSIVE — PROJECT PAGES
   ============================================================ */
@media (max-width: 768px) {
  .page-hero { padding: 52px 0 40px; }
  .page-hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .res-stats-strip { gap: 10px 16px; }
  .res-stat-card { padding: 8px 14px; font-size: .8rem; }
}
@media (max-width: 480px) {
  .project-chip-row { gap: 6px; }
  .project-chip { font-size: .68rem; padding: 3px 10px; }
}

/* ============================================================
   COMPARE SECTION — SIDE-BY-SIDE SPLIT LAYOUT
   Used by: compare/ sub-pages
   ============================================================ */
.compare-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.compare-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--blue-100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.compare-col:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}
.compare-col-head {
  padding: 22px 24px 18px;
  text-align: center;
  border-bottom: 2px solid var(--blue-100);
}
.compare-col-head .compare-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}
.compare-col-head h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-900);
  margin: 0 0 6px;
}
.compare-col-head .compare-subtitle {
  font-size: .8rem;
  color: var(--gray-500);
  font-weight: 600;
}
/* Blue variant (Option A) */
.compare-col.col-a .compare-col-head {
  background: linear-gradient(135deg, var(--blue-50) 0%, rgba(37,99,235,.08) 100%);
}
/* Gold variant (Option B) */
.compare-col.col-b .compare-col-head {
  background: linear-gradient(135deg, rgba(251,191,36,.08) 0%, rgba(245,158,11,.12) 100%);
  border-bottom-color: rgba(245,158,11,.25);
}
.compare-col.col-b {
  border-color: rgba(245,158,11,.3);
}
.compare-col.col-b:hover {
  border-color: rgba(245,158,11,.6);
}
.compare-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.compare-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--blue-50);
  font-size: .88rem;
  color: var(--gray-700);
  line-height: 1.55;
}
.compare-feature:last-child { border-bottom: none; }
.compare-feature .cf-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.compare-feature strong {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}

/* Winner badge */
.compare-winner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 10px;
}
.compare-verdict {
  background: var(--blue-50);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border-left: 4px solid var(--blue-600);
  margin-top: 32px;
}
.compare-verdict h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-900);
  margin: 0 0 10px;
}
.compare-verdict p {
  font-size: .92rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin: 0;
}

/* Section background alternation for compare pages */
.compare-section-light {
  background: var(--white);
  padding: 72px 0;
}
.compare-section-alt {
  background: var(--blue-50);
  padding: 72px 0;
}
.compare-section-dark {
  background: linear-gradient(135deg, var(--blue-900, #0f2861), var(--blue-700, #1e4ea0));
  padding: 72px 0;
}

/* ============================================================
   RESPONSIVE — COMPARE SECTION
   ============================================================ */
@media (max-width: 768px) {
  .compare-split { grid-template-columns: 1fr; gap: 20px; }
  .compare-section-light,
  .compare-section-alt,
  .compare-section-dark { padding: 48px 0; }
  .compare-verdict { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .compare-col-head { padding: 18px 16px 14px; }
  .compare-feature { padding: 12px 16px; font-size: .84rem; }
}

/* ============================================================
   CLASS DISCOVERY GRID — CBSE RESOURCES HUB
   ============================================================ */
.class-discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 40px auto 0;
}
.class-discovery-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}
.class-discovery-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--blue-600), #06b6d4);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.class-discovery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(15, 40, 97, 0.08);
  border-color: transparent;
}
.class-discovery-card:hover::before {
  opacity: 1;
}
.class-discovery-card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.class-discovery-card:hover .class-discovery-card-icon {
  transform: scale(1.15) rotate(5deg);
}
.class-discovery-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue-900);
  margin: 0;
  transition: color 0.3s ease;
}
.class-discovery-card:hover .class-discovery-card-title {
  color: var(--blue-600);
}
.class-discovery-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray-500);
  margin-top: 6px;
  transition: color 0.3s ease;
}
.class-discovery-card:hover .class-discovery-card-label {
  color: var(--blue-600);
}
.class-discovery-exemplar-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  padding: 2.5px 6.5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .class-discovery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 0 16px;
  }
  .class-discovery-card {
    padding: 22px 12px 18px;
  }
  .class-discovery-card-icon {
    font-size: 1.8rem;
  }
  .class-discovery-card-title {
    font-size: 1rem;
  }
  .class-discovery-card-label {
    font-size: 0.72rem;
  }
}

