/* Shared syllabus page styling for Ignitia's Skills-Lab-based Olympiads
   (IAIO, Finance, Aptitude, Analytical, Data Interpretation, Structured
   Thinking, Applied Intelligence). Product-agnostic class names (oly-*).

   Each page sets two variables inline before this file is used:
     --oly-accent        e.g. #4338CA
     --oly-accent-light  e.g. #818CF8
   Everything below derives from those two colors, so the same CSS
   file produces a distinct look per product with zero duplication. */

:root {
  --oly-ink: #0B1120;
  --oly-ink-2: #111C34;
}

/* ===== HERO ===== */
.oly-hero {
  background: linear-gradient(160deg, var(--oly-ink) 0%, var(--oly-ink-2) 55%, #0B1120 100%);
  padding: 130px 0 64px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
}
@media(max-width:900px){
  .oly-hero{padding-top:100px;}
}
.oly-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.85;
}
.oly-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--oly-ink) 0%, rgba(11,17,32,0.55) 45%, rgba(11,17,32,0.05) 100%);
  z-index: 0;
}
.oly-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 0 24px;   /* add this line */
}
.oly-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--oly-accent-light);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: color-mix(in srgb, var(--oly-accent-light) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--oly-accent-light) 35%, transparent);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.oly-eyebrow .oly-dot-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oly-accent-light);
}
.oly-hero h1 {
  font-size: clamp(20px, 2.5vw, 34px);
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
.oly-hero h1 .oly-accent-text {
  color: var(--oly-accent-light);
}
.oly-hero p.oly-hero-desc {
  color: #A6ADC8;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.oly-hero .btn.btn-ignite {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--oly-accent-light) 40%, transparent), 0 8px 24px -8px color-mix(in srgb, var(--oly-accent) 70%, transparent);
}
.oly-stats-row {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.oly-stat {
  font-family: 'JetBrains Mono', monospace;
}
.oly-stat b {
  display: block;
  font-size: 24px;
  color: #fff;
  font-weight: 600;
}
.oly-stat span {
  font-size: 11px;
  color: #7D869E;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Compact hero variant for per-class pages */
.oly-hero.oly-hero-compact {
  padding: 120px 0 38px;
  border-radius: 0 0 16px 16px;
}
@media(max-width:900px){
  .oly-hero.oly-hero-compact{padding-top:100px;}
}
.oly-hero.oly-hero-compact h1 {
  font-size: 28px;
}
.oly-breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #7D869E;
  margin-bottom: 14px;
}
.oly-breadcrumb a {
  color: var(--oly-accent-light);
  text-decoration: none;
}
.oly-breadcrumb a:hover {
  text-decoration: underline;
}
.oly-breadcrumb span {
  margin: 0 6px;
}
.oly-hero-meta {
  color: #A6ADC8;
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== CLASS PICKER GRID ===== */
.oly-class-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .oly-class-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .oly-class-grid { grid-template-columns: repeat(2, 1fr); }
}
.oly-class-card {
  display: block;
  background: #fff;
  border: 1px solid #E4E6EF;
  border-radius: 14px;
  padding: 16px 14px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.oly-class-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--oly-accent);
  opacity: 0;
  transition: opacity .15s ease;
}
.oly-class-card:hover {
  transform: translateY(-3px);
  border-color: var(--oly-accent);
  box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--oly-accent) 45%, transparent);
}
.oly-class-card:hover::before { opacity: 1; }
.oly-class-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--oly-accent);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.oly-class-id .oly-n {
  background: color-mix(in srgb, var(--oly-accent) 10%, transparent);
  border-radius: 6px;
  padding: 2px 7px;
}
.oly-class-tagline {
  font-size: 13px;
  font-weight: 600;
  color: #0B1120;
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 2.6em;
}
.oly-class-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #9098AC;
  border-top: 1px dashed #E4E6EF;
  padding-top: 9px;
}
.oly-class-meta b {
  color: #0B1120;
  font-size: 13px;
}

/* ===== TOPIC LIST (per-class page) ===== */
.oly-topic-cols {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #9098AC;
  text-transform: uppercase;
  padding: 0 4px;
  margin: 8px 0 12px;
}
.oly-topic-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oly-topic-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid #E4E6EF;
  border-radius: 12px;
  padding: 16px 18px;
  border-left: 3px solid transparent;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.oly-topic-row:hover {
  border-left-color: var(--oly-accent);
  box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--oly-accent) 50%, transparent);
  transform: translateX(2px);
}
.oly-topic-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  color: var(--oly-accent);
  background: color-mix(in srgb, var(--oly-accent) 8%, transparent);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oly-topic-body { flex: 1; min-width: 0; }
.oly-topic-title {
  font-weight: 600;
  color: #0B1120;
  font-size: 14.5px;
  margin-bottom: 4px;
}
.oly-topic-desc {
  color: #6B7280;
  line-height: 1.55;
  font-size: 13px;
  margin: 0;
}

.oly-class-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* ===== CTA BAND ===== */
.oly-cta-band {
  background: linear-gradient(135deg, var(--oly-ink) 0%, var(--oly-ink-2) 100%);
  border-radius: 18px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.oly-cta-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--oly-accent-light);
  margin-bottom: 8px;
}
.oly-cta-band h2 {
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
}
.oly-cta-band p {
  color: #A6ADC8;
  font-size: 13.5px;
  max-width: 440px;
  margin: 0;
}
.oly-cta-btn {
  background: var(--oly-accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--oly-accent-light) 40%, transparent);
}

/* ===== CROSS-LINKS TO OTHER OLYMPIADS ===== */
.oly-crosslinks {
  background: #F7F7FB;
  border: 1px solid #E4E6EF;
  border-radius: 16px;
  padding: 24px 26px;
}
.oly-crosslinks-head {
  font-size: 13px;
  font-weight: 600;
  color: #5B6478;
  margin-bottom: 14px;
}
.oly-crosslinks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
@media (max-width: 900px) {
  .oly-crosslinks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .oly-crosslinks-grid { grid-template-columns: 1fr; }
}
.oly-crosslink {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #E4E6EF;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #0B1120;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.oly-crosslink:hover {
  border-color: var(--cl-accent, #0B1120);
  transform: translateX(2px);
}
.oly-crosslink-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cl-accent, #0B1120);
  flex: none;
}

/* Legacy class names retained as aliases so already-deployed markup
   using the old flat-table styles doesn't break during rollout. */
.oly-syllabus-table { display: none; }
