/* ==========================================================================
   Vidyodaya Academy — about.php only styles
   Loaded only on about.php (via $extraStyles). Reuses the shared design
   system + existing components (story-grid, timeline, steps, faculty-grid,
   topper-grid, stat-strip, cta-banner) — everything below is new visual
   treatment layered on top, or genuinely new sections (hero, collage,
   value-grid, spotlight, experience visual) unique to this page.
   ========================================================================== */

.section--flush-top { padding-top: 0; }
.section-head__intro { color: var(--ink-soft); max-width: 60ch; margin-top: -8px; }

/* ==========================================================================
   About hero — light two-column hero with floating stat cards
   ========================================================================== */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 64px) 0 clamp(56px, 8vw, 88px);
}
.about-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.about-hero__title { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem); font-weight: 800; letter-spacing: -0.01em; }
.about-hero__text { color: var(--ink-soft); max-width: 54ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.08rem); }
.about-hero__cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.about-hero__visual { position: relative; padding: 28px; max-width: 440px; margin-inline: auto; }
.about-hero__frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.about-hero__frame img { width: 100%; height: 100%; object-fit: cover; }

.about-hero__shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.about-hero__shape--circle {
  width: 260px; height: 260px;
  top: -30px; right: -40px;
  background: radial-gradient(circle, var(--accent-soft) 0%, rgba(227, 241, 239, 0) 70%);
}
.about-hero__shape--dot {
  width: 18px; height: 18px;
  left: 6px; bottom: 54px;
  background: var(--yellow);
  box-shadow: var(--shadow-md);
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .about-hero__shape--circle { animation: floatSlow 10s ease-in-out infinite; }
  .about-hero__shape--dot { animation: floatIdle 4.5s ease-in-out infinite; }
}

@media (max-width: 991.98px) {
  .about-hero__grid { grid-template-columns: 1fr; }
  .about-hero__visual { order: -1; max-width: 340px; }
}

/* ==========================================================================
   Our Story — image collage (reuses .story-grid / .story-content)
   ========================================================================== */
.story-collage { position: relative; }
.story-collage__main {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.3;
}
.story-collage__main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.story-collage:hover .story-collage__main img { transform: scale(1.04); }

.story-collage__accent {
  position: absolute;
  z-index: 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--surface);
  transition: transform var(--dur-base) var(--ease);
}
.story-collage__accent img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-collage__accent--1 { width: 40%; aspect-ratio: 1 / 1; bottom: -26px; left: -22px; }
.story-collage__accent--2 { width: 32%; aspect-ratio: 1 / 1; top: -22px; right: -18px; }
.story-collage:hover .story-collage__accent--1 { transform: translateY(-6px); }
.story-collage:hover .story-collage__accent--2 { transform: translateY(6px); }

.story-collage__glow {
  position: absolute;
  width: 180px; height: 180px;
  right: 6%; bottom: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 185, 66, 0.16) 0%, rgba(244, 185, 66, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.story-quote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

@media (max-width: 991.98px) {
  .story-collage { max-width: 420px; margin: 0 auto 64px; }
}

/* ==========================================================================
   Our Journey — timeline enhancements (icons + active-state highlight)
   ========================================================================== */
.timeline-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.timeline-item {
  padding: 16px 20px;
  margin-left: -20px;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  transition: background-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item:not(.is-active) { opacity: 0.72; }
.timeline-item.is-active {
  opacity: 1;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.timeline-item.is-active .timeline-item__icon { background: var(--yellow); color: var(--on-yellow); }

/* ==========================================================================
   Teaching Philosophy — reuses .steps / .step, adds an on-hover arrow
   ========================================================================== */
.philosophy-heading { max-width: 640px; }

/* ==========================================================================
   Why Vidyodaya — dark value grid + inset photograph
   ========================================================================== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}
.value-item {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(248, 250, 252, 0.14);
  transition: transform var(--dur-base) var(--ease), background-color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.value-item:hover {
  transform: translateY(-4px);
  background: rgba(248, 250, 252, 0.05);
  border-color: rgba(248, 250, 252, 0.28);
}
.value-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(244, 185, 66, 0.14);
  color: var(--yellow);
  margin-bottom: 16px;
  transition: transform var(--dur-base) var(--ease);
}
.value-item:hover .value-item__icon { transform: scale(1.08); }
.value-item__title { color: var(--on-navy); font-size: 1.05rem; margin-bottom: 8px; }
.value-item__text { color: var(--on-navy-soft); font-size: 0.92rem; margin: 0; }

.why-vidyodaya__visual {
  margin-top: clamp(40px, 6vw, 56px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  box-shadow: var(--shadow-lg);
}
.why-vidyodaya__visual img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 991.98px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .why-vidyodaya__visual { aspect-ratio: 4 / 3; }
}
@media (max-width: 575.98px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* .topper-carousel (Slick-ified topper-grid) now lives in assets/style.css —
   courses.php's results section reuses it too. */

/* ==========================================================================
   Featured student success (spotlight case study)
   ========================================================================== */
.spotlight-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.spotlight-visual { position: relative; }
.spotlight-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.spotlight-content__title { margin-bottom: 0.4em; }
.spotlight-content__text { color: var(--ink-soft); }
.spotlight-visual__tag {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--yellow);
  color: var(--on-yellow);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.spotlight-quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 18px 0 24px;
}
.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 32px);
  margin: 0 0 28px;
  padding: 0;
}
.spotlight-meta__item dt {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 2px;
}
.spotlight-meta__item dd { margin: 0; color: var(--ink-soft); font-size: 0.85rem; max-width: 16ch; }

@media (max-width: 991.98px) {
  .spotlight-grid { grid-template-columns: 1fr; }
  .spotlight-visual { max-width: 400px; margin-inline: auto; }
}

/* ==========================================================================
   Campus / Learning experience — image with floating info chips
   ========================================================================== */
.experience-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.experience-visual img { width: 100%; height: 100%; object-fit: cover; }
.experience-chips { position: absolute; inset: 0; pointer-events: none; }
.experience-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(248, 250, 252, 0.95);
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}
.experience-chip__icon { color: var(--accent); display: inline-flex; flex-shrink: 0; }
.experience-chip--1 { top: 22px; left: 22px; }
.experience-chip--2 { top: 22px; right: 22px; }
.experience-chip--3 { bottom: 22px; left: 22px; }
.experience-chip--4 { bottom: 22px; right: 22px; }

@media (max-width: 767.98px) {
  .experience-visual { aspect-ratio: 3 / 4; }
  .experience-chips {
    position: static;
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
    gap: 8px;
  }
  .experience-chip { position: static; margin: 0; }
}
@media (max-width: 575.98px) {
  .experience-chip { font-size: 0.78rem; padding: 9px 12px; }
}
