﻿/* ── School2 Student Life page styles ─────────────────────── */

/* ─── SECTION BASE ────────────────────────────────────────── */
.sl2-section {
  padding: 80px;
  background: var(--white);
}
.sl2-section--blue {
  background: var(--blue);
}
.sl2-section--has-hero {
  padding-top: 0;
}

/* ─── SECTION EMOJI + LABEL ──────────────────────────────── */
.sl2-section-emoji {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
.sl2-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.sl2-section--blue .sl2-section-label {
  color: rgba(255, 255, 255, 0.65);
}

/* ─── HEADINGS & DESCRIPTION ─────────────────────────────── */
.sl2-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 14px;
}
.sl2-section--blue h2 {
  color: #fff;
}
.sl2-section-desc {
  font-size: 13.5px;
  color: #555;
  line-height: 1.6;
  max-width: 680px;
}
.sl2-section--blue .sl2-section-desc {
  color: rgba(255, 255, 255, 0.82);
}

/* ─── SPLIT LAYOUT (text left ↔ image right) ─────────────── */
.sl2-section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 44px;
}

/* reversed: image goes left */
.sl2-section-split--rev .sl2-section-main-img {
  order: -1;
  padding-right: 0;
  padding-left: 28px;
}
.sl2-section-split--rev .sl2-section-main-img::after {
  right: auto;
  left: 0;
}

/* 3D image box */
.sl2-section-main-img {
  position: relative;
  padding-right: 28px;
  padding-bottom: 28px;
}
.sl2-section-main-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  background: var(--blue);
  border-radius: 14px;
  z-index: 0;
}
.sl2-section-main-img-box {
  position: relative;
  z-index: 2;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(62, 66, 150, 0.25);
}
.sl2-section-main-img-box .img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #c0c3e0;
}

/* blue bg: white 3D shadow */
.sl2-section--blue .sl2-section-main-img::after {
  background: rgba(255, 255, 255, 0.22);
}
.sl2-section--blue .sl2-section-main-img-box {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.sl2-section--blue .sl2-section-main-img-box .img-wrap {
  background: #aab0d4;
}

/* ─── FULL-WIDTH HERO IMAGE (sports, celebrations) ───────── */
.sl2-full-img-wrap {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 64px;
}
.sl2-full-img-wrap .img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #7a82c4;
}

/* ─── HIGHLIGHTS LABEL + IMAGE GRID ─────────────────────── */
.sl2-highlights-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #aaa;
  margin-top: 40px;
  margin-bottom: 16px;
}
.sl2-section--blue .sl2-highlights-label {
  color: rgba(255, 255, 255, 0.5);
}
.sl2-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sl2-img-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.sl2-img-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}
.sl2-img-card {
  display: flex;
  flex-direction: column;
}
.sl2-img-card .img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #c0c3e0;
  margin-bottom: 9px;
  overflow: hidden;
  flex-shrink: 0;
}
.sl2-section--blue .sl2-img-card .img-wrap {
  background: rgba(255, 255, 255, 0.18);
}
.sl2-img-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.4;
}
.sl2-section--blue .sl2-img-label {
  color: rgba(255, 255, 255, 0.88);
}

/* ─── GALLERY SECTION ─────────────────────────────────────── */
.sl2-gallery {
  padding: 80px;
  background: #f6f7fc;
}
.sl2-gallery-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.sl2-gallery h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 8px;
}
.sl2-gallery > p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 620px;
}
.sl2-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}
.sl2-gallery-item {
  border-radius: 14px;
  overflow: hidden;
}
.sl2-gallery-item .img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: #c0c3e0;
}
.sl2-gallery-item--wide {
  grid-column: span 2;
}
.sl2-gallery-item--tall {
  grid-row: span 2;
}
.sl2-gallery-item--wide-tall {
  grid-column: span 2;
  grid-row: span 2;
}

/* ─── STUDENT LIFE AT A GLANCE ───────────────────────────── */
.sl2-glance {
  padding: 80px;
  background: var(--blue);
  text-align: center;
}
.sl2-glance-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}
.sl2-glance h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 48px;
}
.sl2-glance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.sl2-glance-card {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 32px 18px;
}
.sl2-glance-icon {
  font-size: 30px;
  margin-bottom: 12px;
  display: block;
}
.sl2-glance-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.sl2-glance-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

/* ─── MARQUEE HIGHLIGHTS (Sections 1 & 4) ──────────────── */
.sl2-marquee-outer {
  overflow: hidden;
}
.sl2-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: sl2Marquee 30s linear infinite;
}
.sl2-marquee-track:hover {
  animation-play-state: paused;
}
@keyframes sl2Marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.sl2-marquee-track .sl2-img-card {
  flex: 0 0 200px;
  width: 200px;
}

/* ─── HAS-HERO: gap above + full-width hero image ────────── */
.sl2-section--has-hero {
  overflow: hidden;
  padding-top: 60px;
}
.sl2-full-img-wrap {
  width: calc(100% + 160px);
  margin-left: -80px;
}

/* ─── CLUBS GRID — max-width centered ───────────────────── */
.sl2-img-grid--max-centered {
  max-width: 860px;
  margin: 0 auto;
}

/* ─── FLEX-CENTER GRID for celebrations & leadership ─────── */
.sl2-img-grid--flex-center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.sl2-img-grid--flex-center .sl2-img-card {
  flex: 0 0 calc(20% - 15px);
  min-width: 160px;
}
