/* ============================================================
   academics.css — Academics page specific styles
   ------------------------------------------------------------
     • Hero: 16:9 classroom image with overlay content
     • Curriculum: 4 colour-coded stream cards
       (Languages · Science · Commerce · Arts)
============================================================ */

/* ============================================================
   1. ACADEMICS HERO — 16:9 classroom image with overlay text
============================================================ */

.academics-hero {
  position: relative;
  padding: clamp(24px, 3vw, 40px) 0 clamp(60px, 7vw, 100px);
}

.ah-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: clamp(20px, 2.5vw, 32px);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 50, 98, 0.4);
}

.ah-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark gradient overlay so text stays readable */
.ah-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 30, 60, 0.85) 0%,
    rgba(0, 30, 60, 0.6) 45%,
    rgba(0, 30, 60, 0.15) 100%
  );
  z-index: 1;
}

/* Content sits on top of the image */
.ah-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 80px);
  max-width: 720px;
  color: var(--primary);
}

.ah-bread {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 248, 255, 0.7);
  margin-bottom: clamp(18px, 2vw, 24px);
}
.ah-bread .sep { color: rgba(240, 248, 255, 0.4); }
.ah-bread .here { color: var(--accent); }

.ah-content h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: clamp(16px, 2vw, 24px);
  color: var(--primary);
}
.ah-content h1 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.ah-content p {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: rgba(240, 248, 255, 0.85);
  max-width: 540px;
  margin: 0 0 clamp(24px, 3vw, 32px) 0;
}

.ah-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1.5vw, 20px);
}
.ah-meta-item {
  background: rgba(240, 248, 255, 0.08);
  border: 1px solid rgba(240, 248, 255, 0.15);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(240, 248, 255, 0.92);
  backdrop-filter: blur(4px);
}

/* ============================================================
   2. CURRICULUM STREAMS — 4 colour-coded cards
============================================================ */

.curriculum-streams {
  padding: clamp(40px, 5vw, 80px) 0;
}

.cs-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 56px);
}
.cs-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  width: fit-content;
  margin-bottom: 18px;
}
.cs-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}
.cs-head h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--secondary);
}
.cs-head .cs-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #4a6885;
}

/* The 4 stream cards */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}

.cs-card {
  --stream-color: var(--secondary);
  --stream-bg: var(--primary-soft);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}

/* Top colour bar (the stream's accent colour) */
.cs-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--stream-color);
}

.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(0, 50, 98, 0.25);
  border-color: var(--stream-color);
}

/* ---------- Stream colour themes ---------- */
.cs-card.languages {
  --stream-color: #E76F51;       /* warm coral red */
  --stream-bg: #FCEFEA;
}
.cs-card.science {
  --stream-color: #2A9D8F;       /* teal */
  --stream-bg: #E6F4F1;
}
.cs-card.commerce {
  --stream-color: #E9A24B;       /* warm amber */
  --stream-bg: #FBF1DF;
}
.cs-card.arts {
  --stream-color: #9B5DE5;       /* royal purple */
  --stream-bg: #F1E8FB;
}

/* ---------- ISC 11 & 12 Group colour themes (5 groups) ---------- */
.cs-card.group-1 {                 /* PCMB — green */
  --stream-color: #2D9355;
  --stream-bg: #E5F4EB;
}
.cs-card.group-2 {                 /* PCB + Tamil — pink/magenta */
  --stream-color: #D62859;
  --stream-bg: #FBE6EC;
}
.cs-card.group-3 {                 /* PCM + CS — blue */
  --stream-color: #2563D6;
  --stream-bg: #E5EEFB;
}
.cs-card.group-4 {                 /* PCM + AI — purple */
  --stream-color: #6B3FCF;
  --stream-bg: #ECE5FA;
}
.cs-card.group-5 {                 /* Commerce — orange */
  --stream-color: #E66B1F;
  --stream-bg: #FBE9DC;
}

/* Stream icon */
.cs-icon {
  width: 52px; height: 52px;
  background: var(--stream-bg);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--stream-color);
  margin-bottom: clamp(18px, 2vw, 24px);
  transition: all 0.3s ease;
}
.cs-card:hover .cs-icon {
  background: var(--stream-color);
  color: var(--surface);
}
.cs-icon svg { width: 24px; height: 24px; }

/* Stream meta tag (above title) */
.cs-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stream-color);
  margin-bottom: 8px;
}

.cs-card h3 {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: clamp(16px, 1.8vw, 22px);
  color: var(--secondary);
}

/* Subject list */
.cs-list {
  list-style: none;
  margin: 0 0 clamp(18px, 2vw, 24px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.cs-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #3d5a7a;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.cs-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.cs-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--stream-color);
  flex-shrink: 0;
}

/* Number of subjects badge */
.cs-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stream-color);
  background: var(--stream-bg);
  padding: 7px 12px;
  border-radius: 100px;
  width: fit-content;
}
.cs-count strong {
  font-size: 13px;
  font-weight: 800;
}

/* ============================================================
   3. RESPONSIVE
============================================================ */

@media (max-width: 980px) {
  .ah-stage { aspect-ratio: 4 / 5; }
  .ah-content { padding: 28px; max-width: 100%; }
  .cs-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ah-stage { aspect-ratio: 3 / 4; }
  .ah-meta { gap: 8px; }
  .ah-meta-item { padding: 6px 12px; font-size: 11px; }
}

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

/* ============================================================
   3-column curriculum grid (Languages / Science / Commerce)
   Updated from 4 streams to 3 streams
============================================================ */
.cs-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) {
  .cs-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cs-grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   5-column grid for ISC 11 & 12 Groups
   Desktop: 3 cards on top row, 2 cards centered on bottom row
   Uses 6-col grid: each card spans 2 cols → row 2 starts at col 2
============================================================ */
.cs-grid-5 {
  grid-template-columns: repeat(6, 1fr);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.cs-grid-5 .cs-card:nth-child(1) { grid-column: 1 / span 2; }
.cs-grid-5 .cs-card:nth-child(2) { grid-column: 3 / span 2; }
.cs-grid-5 .cs-card:nth-child(3) { grid-column: 5 / span 2; }
.cs-grid-5 .cs-card:nth-child(4) { grid-column: 2 / span 2; }
.cs-grid-5 .cs-card:nth-child(5) { grid-column: 4 / span 2; }

@media (max-width: 1100px) {
  .cs-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .cs-grid-5 .cs-card:nth-child(n) { grid-column: auto; }
}
@media (max-width: 640px) {
  .cs-grid-5 { grid-template-columns: 1fr; }
}

/* Stream description (between heading and subject list) */
.cs-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(0, 50, 98, 0.7);
  margin: -4px 0 16px;
}
.cs-card.languages .cs-desc,
.cs-card.science .cs-desc,
.cs-card.commerce .cs-desc,
.cs-card.group-1 .cs-desc,
.cs-card.group-2 .cs-desc,
.cs-card.group-3 .cs-desc,
.cs-card.group-4 .cs-desc,
.cs-card.group-5 .cs-desc { color: rgba(0, 50, 98, 0.78); }