﻿/* ── Facilities page styles ─────────────────────────────── */

/* ─── HERO ───────────────────────────────────────────────── */
.fac-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 0 80px;
  overflow: hidden;
}
.fac-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fac-hero-bg .img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #2a2e8a;
}
.fac-hero-bg .img-wrap img {
  object-position: center center;
}
.fac-hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--blue);
  opacity: 0.70;
  z-index: 1;
}
.fac-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.fac-hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}
.fac-hero-content p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
}

/* ─── FACILITY LIST ──────────────────────────────────────── */
.fac-list {
  display: flex;
  flex-direction: column;
}

.fac-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 80px;
  background: var(--white);
}

/* ─── EVEN ITEMS: blue strip ─────────────────────────────── */
.fac-item:nth-child(even) {
  background: var(--blue);
}
.fac-item:nth-child(even) .fac-text h2 {
  color: #fff;
}
.fac-item:nth-child(even) .fac-text p {
  color: rgba(255, 255, 255, 0.82);
}
/* acad-label on blue bg (academics page) */
.fac-item:nth-child(even) .acad-label {
  color: rgba(255, 255, 255, 0.65);
}
.fac-item:nth-child(even) .acad-focus-heading {
  color: rgba(255, 255, 255, 0.6);
}
.fac-item:nth-child(even) .acad-focus-item {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.fac-item:nth-child(even) .acad-focus-item::before {
  background: rgba(255, 255, 255, 0.8);
}
/* 3D image shadow → white block on blue bg */
.fac-item:nth-child(even) .fac-img-3d::after {
  background: rgba(255, 255, 255, 0.22);
}
.fac-item:nth-child(even) .fac-img {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}
.fac-item:nth-child(even) .fac-img .img-wrap {
  background: #aab0d4;
}
/* emoji focus items on blue bg */
.fac-item:nth-child(even) .acad-emoji-item {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
/* stream tags on blue bg (higher secondary) */
.fac-item:nth-child(even) .fac-stream-tag {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Text column */
.fac-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 14px;
}
.fac-text p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #555;
}

/* 3D image wrapper — blue block bottom-right */
.fac-img-3d {
  position: relative;
  padding-right: 28px;
  padding-bottom: 28px;
}
.fac-img-3d::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;
}
.fac-img {
  position: relative;
  z-index: 2;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(62, 66, 150, 0.25);
}
.fac-img .img-wrap {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #c0c3e0;
}
.fac-img .img-wrap img {
  object-position: top center;
}

/* Reversed items: image LEFT, blue block bottom-LEFT */
.fac-item--rev .fac-img-3d {
  padding-right: 0;
  padding-left: 28px;
  order: -1;
}
.fac-item--rev .fac-img-3d::after {
  right: auto;
  left: 0;
}
.fac-item--rev .fac-text h2 {
  text-align: right;
}
.fac-item--rev .fac-text p {
  text-align: right;
}

/* ─── TALL HERO VARIANT — same height as base now ───────── */
.fac-hero--tall {
  min-height: 88vh;
}
.fac-hero-support {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
  max-width: 600px;
}
.fac-hero-btns {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* ─── IMAGE CARD SECTIONS (Facilities / Student Life) ────── */
.fac-img-section {
  padding: 80px;
  background: var(--white);
  text-align: center;
}
.fac-img-section--blue {
  background: #f4f5fb;
}
.fac-img-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.fac-img-section h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 12px;
}
.fac-img-section > p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 40px;
}
.fac-img-grid {
  display: grid;
  gap: 22px;
  margin-top: 44px;
}
.fac-img-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.fac-img-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(62, 66, 150, 0.1);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fac-img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(62, 66, 150, 0.18);
}
.fac-img-card .img-wrap {
  aspect-ratio: 4/3;
  border-radius: 0;
  background: #d8daea;
}
.fac-img-card .img-wrap img {
  object-fit: cover;
}
.fac-img-card-label {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #1e2060;
  text-align: center;
  background: #fff;
}

/* ─── STREAM TAGS (Higher Secondary) ────────────────────── */
.fac-streams {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.fac-stream-tag {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(62, 66, 150, 0.09);
  border-radius: 50px;
  padding: 7px 18px;
  letter-spacing: 0.4px;
}

/* ─── SECTION LABEL (within fac-item) ──────────────────── */
.fac-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.fac-highlights-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 22px;
  margin-bottom: 12px;
  display: block;
}
.fac-item:nth-child(even) .fac-label,
.fac-item:nth-child(even) .fac-highlights-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ─── CHECKMARK HIGHLIGHTS LIST ─────────────────────────── */
.fac-emoji-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fac-emoji-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  padding: 9px 14px;
  background: rgba(62, 66, 150, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}
.fac-item:nth-child(even) .fac-emoji-item {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* ─── SPACES ICON GRID (7-card blue section) ────────────── */
.fac-spaces-section {
  padding: 80px;
  background: var(--blue);
  text-align: center;
}
.fac-spaces-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 48px;
}
.fac-spaces-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}
.fac-spaces-card {
  flex: 0 0 calc(25% - 12px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 28px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  transition: background 0.2s, transform 0.2s;
}
.fac-spaces-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.fac-spaces-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fac-spaces-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── SPACES IMAGE CARDS (school2 facilities redesign) ──── */
.fac-spaces-section {
  text-align: left;
}
.fac-spaces-img-card {
  flex: 0 0 calc(25% - 12px);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, transform 0.2s;
}
.fac-spaces-img-card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.fac-spaces-img-card .img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.fac-spaces-img-label {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.4;
}

/* ─── ACHIEVEMENTS CALLOUT ───────────────────────────────── */
.fac-achievements-section {
  padding: 80px;
  background: var(--blue);
  text-align: center;
}
.fac-achievements-section-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: 12px;
}
.fac-achievements-section h2 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.2;
}
.fac-achievements-section p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.62;
}
