/* ============================================================
   home.css — Home page styles
   ------------------------------------------------------------
     • Hero: 1 large 4:5 image + 3 floating 1:1 supporting images
     • Trust strip: Est. 1995 · ICSE & ISC · 2000+ Students · 30+ Years
     • Why Us: 6 icon-only benefit cards (3×2 grid)
     • Featured Event: 16:9 image + date + gallery button
     • Home-specific Campus Visit CTA
============================================================ */

/* ============================================================
   1. HERO — 1 main 4:5 image + 3 floating 1:1 supporting
============================================================ */

.home-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(60px, 7vw, 100px); }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 2.5vw, 32px);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 30px 80px -50px rgba(0, 50, 98, 0.25);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

/* ---------- Left side: copy ---------- */
.hero-content { max-width: 560px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}

.hero-card h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--secondary);
  margin-bottom: clamp(20px, 2vw, 28px);
}

.hero-lede {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.7;
  color: #3d5a7a;
  margin-bottom: clamp(28px, 3vw, 38px);
}

/* ---------- 4-item Trust Strip ---------- */
.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 22px);
  padding: clamp(22px, 2.2vw, 28px) 0;
  margin-bottom: clamp(28px, 3vw, 36px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-right: clamp(8px, 1vw, 14px);
}
.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--line);
}
.trust-item strong {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.trust-item span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Dual actions ---------- */
.hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: wrap;
}
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: gap 0.24s ease;
}
.btn-text:hover { gap: 12px; }
.btn-text svg { width: 16px; height: 16px; }

/* ---------- Right side: single 4:5 main image ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: 0;
}

/* The main 4:5 image — completely plain, no styling */
.hero-photo-main {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.hero-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* SINCE 1995 badge sits on the main image */
.since-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--surface);
  color: var(--secondary);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.2);
  z-index: 5;
}
.since-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}

/* ============================================================
   2. WHY US — 6 icon-only benefit cards (3×2 grid)
============================================================ */

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

.wu-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.wu-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;
}
.wu-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}
.wu-head h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--secondary);
}
.wu-head .wu-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #4a6885;
}

.wu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}

.wu-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 3vw, 36px);
  transition: all 0.3s var(--ease-out);
}
.wu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(0, 50, 98, 0.3);
  border-color: var(--secondary-soft);
}

.wu-icon {
  width: 52px; height: 52px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: clamp(18px, 2vw, 24px);
  color: var(--secondary);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.wu-icon svg {
  width: 24px;
  height: 24px;
  /* Ensure SVG inherits the icon's color reliably across browsers */
  stroke: currentColor;
  fill: none;
  transition: stroke 0.3s ease;
}
.wu-card:hover .wu-icon {
  background: var(--secondary);
  color: var(--primary);          /* white icon on navy bg — always readable */
  border-color: var(--secondary);
  transform: scale(1.05);
}
.wu-card:hover .wu-icon svg {
  stroke: var(--primary);         /* explicitly set so the icon never disappears */
}

.wu-card h3 {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--secondary);
}
.wu-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a6885;
  margin: 0;
}

/* ============================================================
   3. FEATURED EVENT — 16:9 image + date + gallery button
============================================================ */

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

.fe-card {
  background: var(--secondary);
  color: var(--primary);
  border-radius: clamp(20px, 2.5vw, 32px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

/* ---------- 16:9 event image ---------- */
.fe-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.fe-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fe-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 50, 98, 0.15), rgba(0, 50, 98, 0.5));
}
.fe-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: var(--surface);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}
.fe-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.fe-play svg { width: 26px; height: 26px; color: var(--secondary); margin-left: 4px; }

/* Event date overlay on the image */
.fe-date {
  position: absolute;
  top: 20px; left: 20px;
  background: var(--surface);
  color: var(--secondary);
  border-radius: 12px;
  padding: 10px 14px;
  z-index: 3;
  text-align: center;
  min-width: 60px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.3);
}
.fe-date .day {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}
.fe-date .month {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
}

/* ---------- Info side ---------- */
.fe-info {
  padding: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fe-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 216, 0, 0.12);
  border: 1px solid rgba(255, 216, 0, 0.25);
  color: var(--accent);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: clamp(20px, 2vw, 28px);
}
.fe-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}
.fe-info h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--primary);
  margin-bottom: clamp(14px, 1.5vw, 20px);
}
.fe-info h2 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.fe-info > p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(240, 248, 255, 0.78);
  margin-bottom: clamp(24px, 2.5vw, 32px);
}

/* Event meta line: date, time, venue */
.fe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(24px, 2.5vw, 32px);
  padding-bottom: clamp(20px, 2vw, 26px);
  border-bottom: 1px solid rgba(240, 248, 255, 0.12);
}
.fe-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(240, 248, 255, 0.85);
  font-weight: 500;
}
.fe-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ---------- Actions ---------- */
.fe-actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  flex-wrap: wrap;
}
.fe-actions .btn-primary {
  background: var(--accent-gradient);
  color: var(--secondary);
  transition: all 0.3s var(--ease);
}
.fe-actions .btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px rgba(255, 216, 0, 0.5);
}
.fe-actions .btn-text {
  color: var(--primary);
}
.fe-actions .btn-text:hover { color: var(--accent); }

/* ============================================================
   4. HOME CTA — Campus Visit (unique to home page)
============================================================ */

.home-cta { padding: clamp(40px, 5vw, 80px) 0 clamp(60px, 7vw, 100px); }

.hc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 2.5vw, 32px);
  padding: clamp(36px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hc-card::before {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  border: 1px solid var(--line);
  border-radius: 50%;
  top: -110px; right: -60px;
  pointer-events: none;
}
.hc-card::after {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  background: var(--primary-soft);
  border-radius: 50%;
  bottom: -70px; left: -40px;
  z-index: 0;
  pointer-events: none;
}
.hc-text, .hc-stats { position: relative; z-index: 1; }

.hc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--secondary);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: clamp(18px, 2vw, 26px);
}
.hc-pill::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
}
.hc-text h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--secondary);
  margin-bottom: clamp(14px, 1.5vw, 20px);
}
.hc-text > p {
  font-size: 15px;
  line-height: 1.7;
  color: #4a6885;
  margin-bottom: clamp(24px, 2.5vw, 32px);
}
.hc-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  flex-wrap: wrap;
}
.hc-stats {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 28px);
  padding-left: clamp(0px, 3vw, 32px);
  border-left: 1px solid var(--line);
}
.hc-stat strong {
  display: block;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--secondary);
  line-height: 1;
}
.hc-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

/* ============================================================
   5. RESPONSIVE
============================================================ */

@media (max-width: 980px) {
  .hero-card { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  /* On mobile, use a more accommodating aspect so the full campus is visible */
  .hero-photo-main {
    aspect-ratio: 4 / 3;
  }
  .hero-photo-main img {
    object-position: center;
  }
  .wu-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .wu-cards { grid-template-columns: repeat(2, 1fr); }
  .fe-card { grid-template-columns: 1fr; }
  .hc-card { grid-template-columns: 1fr; }
  .hc-stats { flex-direction: row; flex-wrap: wrap; border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: clamp(24px, 3vw, 32px); }
  .hc-stat { flex: 1; min-width: 100px; }
}

@media (max-width: 640px) {
  .hero-trust { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2)::after { display: none; }
  .wu-cards { grid-template-columns: 1fr; }
  .fe-meta { gap: 14px; }
  /* Even wider on small phones so the building is more visible */
  .hero-photo-main {
    aspect-ratio: 5 / 4;
  }
}

/* ============================================================
   SCHOOL HIGHLIGHTS — Replaces Featured Event when no event
============================================================ */
.school-highlights { padding: clamp(40px, 5vw, 80px) 0; }

.sh-card {
  background: var(--secondary);
  color: var(--primary);
  border-radius: clamp(20px, 2.5vw, 32px);
  padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px);
  position: relative;
  overflow: hidden;
}

/* Subtle yellow glow — top right corner */
.sh-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: clamp(240px, 30vw, 420px);
  height: clamp(240px, 30vw, 420px);
  background: radial-gradient(circle, rgba(255, 216, 0, 0.15) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* ─── Header ─── */
.sh-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(36px, 4vw, 56px);
  position: relative;
  z-index: 1;
}
.sh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 216, 0, 0.14);
  border: 1px solid rgba(255, 216, 0, 0.28);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 18px;
}
.sh-pill .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.sh-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin: 0 0 16px;
}
.sh-head h2 .serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.sh-intro {
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.65;
  color: rgba(240, 248, 255, 0.72);
  margin: 0;
}

/* ─── Highlights grid ─── */
.sh-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2vw, 28px);
  position: relative;
  z-index: 1;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.sh-item {
  display: flex;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 26px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.sh-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 216, 0, 0.25);
  transform: translateY(-3px);
}
.sh-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: var(--accent);
  color: var(--secondary);
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -8px rgba(255, 216, 0, 0.4);
}
.sh-icon svg { width: 22px; height: 22px; }
.sh-body { flex: 1; min-width: 0; }
.sh-stat {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.sh-body h3 {
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.sh-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(240, 248, 255, 0.68);
  margin: 0;
}

/* ─── CTA row ─── */
.sh-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 32px);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.sh-cta .btn-primary {
  background: var(--accent);
  color: var(--secondary);
  border-radius: 100px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 12px 28px -12px rgba(255, 216, 0, 0.45);
}
.sh-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(255, 216, 0, 0.55);
}
.sh-cta .btn-primary svg {
  width: 18px; height: 18px;
  transition: transform 0.3s ease;
}
.sh-cta .btn-primary:hover svg {
  transform: translateX(3px);
}
.sh-cta .btn-text {
  color: rgba(240, 248, 255, 0.72);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease, gap 0.3s ease;
  text-decoration: none;
}
.sh-cta .btn-text:hover {
  color: var(--accent);
  gap: 12px;
}
.sh-cta .btn-text svg { width: 16px; height: 16px; }

/* ─── Mobile responsive ─── */
@media (max-width: 720px) {
  .sh-grid { grid-template-columns: 1fr; }
  .sh-item { padding: 20px; }
  .sh-icon { width: 42px; height: 42px; border-radius: 10px; }
  .sh-icon svg { width: 20px; height: 20px; }
  .sh-cta { flex-direction: column; gap: 16px; }
  .sh-cta .btn-primary { width: 100%; justify-content: center; }
}