/* =============================================
   KYEBAMBE GIRLS — HOME PAGE STYLES (index.css)
   ============================================= */

/* ============= HERO SLIDER ============= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--dark-text);
}

.hero-slides-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,87,164,0.72) 0%, rgba(26,26,46,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  background: var(--uniform-orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-content p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.6s both;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary-blue);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* Hero Controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.hero-arrow:hover {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
}

/* ============= HIGHLIGHTS BAR ============= */
.highlights-bar {
  background: var(--primary-blue);
  padding: 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
}

.highlight-item:last-child { border-right: none; }

.highlight-item i {
  font-size: 1.4rem;
  color: var(--gold);
}

.highlight-item:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* ============= ABOUT SNAPSHOT ============= */
.about-snapshot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-snap-img {
  position: relative;
}

.about-snap-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--accent-pink);
}

.about-snap-badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  background: var(--primary-blue);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-snap-badge .big {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.about-snap-badge .small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.about-snap-text p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
}

.about-snap-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11,87,164,0.08);
  color: var(--primary-blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid rgba(11,87,164,0.15);
}

.value-pill i { color: var(--accent-pink); }

/* ============= STATS BANNER ============= */
.stats-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--uniform-brown) 100%);
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.stats-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

.stat-item i {
  font-size: 2.2rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  display: block;
}

.stat-number {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============= HEADTEACHER ============= */
.headteacher-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
}

.headteacher-img-wrap {
  width: 240px;
  height: 280px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 4px solid var(--accent-pink);
  box-shadow: var(--shadow-lg);
}

.headteacher-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.headteacher-info {
  text-align: center;
}

.headteacher-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 4px;
}

.ht-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-pink);
  margin-bottom: 14px;
  font-style: italic;
}

.headteacher-msg {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 40px;
  position: relative;
  border-left: 4px solid var(--primary-blue);
}

.quote-mark {
  font-size: 2.5rem;
  color: var(--primary-blue);
  opacity: 0.3;
  margin-bottom: 16px;
  line-height: 1;
}

.headteacher-msg p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 16px;
}

.headteacher-msg p:last-of-type { margin-bottom: 28px; }

.ht-signature {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 16px;
}

.sig-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-blue);
  font-style: italic;
}

.sig-title {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}

/* ============= ACADEMICS CARDS ============= */
.acad-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid transparent;
}

.acad-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent-pink);
}

.acad-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.6rem;
}

.acad-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-text);
  text-align: center;
  margin-bottom: 18px;
}

.acad-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acad-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
}

.acad-list li i {
  color: var(--green-cta);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ============= WHY KYEBAMBE ============= */
.why-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.why-row:last-child { margin-bottom: 0; }

.why-reverse { direction: rtl; }
.why-reverse > * { direction: ltr; }

.why-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.why-num {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(11,87,164,0.08);
  line-height: 1;
  margin-bottom: -12px;
  font-style: italic;
}

.why-text h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 16px;
}

.why-text p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.9;
}

/* ============= GALLERY PREVIEW ============= */
.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 16px;
}

.gp-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gp-item:hover img {
  transform: scale(1.08);
}

.gp-tall {
  grid-row: span 2;
}

.gp-wide {
  grid-column: span 2;
}

.gp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,87,164,0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gp-item:hover .gp-overlay {
  opacity: 1;
}

.gp-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--accent-pink);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ============= ALUMNI TEASER ============= */
.alumni-teaser {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-text) 100%);
  position: relative;
  overflow: hidden;
}

.alumni-teaser::before {
  content: '★';
  position: absolute;
  font-size: 20rem;
  color: rgba(255,215,0,0.04);
  top: -60px;
  right: -40px;
  pointer-events: none;
  line-height: 1;
}

.alumni-marquee-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.alumni-tag-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
}

.alumni-tag-item i {
  color: var(--gold);
}

.alumni-tag-item:hover {
  background: rgba(255,255,255,0.16);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ============= MAP SECTION ============= */
.map-contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.map-wrap iframe {
  display: block;
  box-shadow: var(--shadow-md);
}

.map-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-info-card i {
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-info-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.6;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .about-snapshot { grid-template-columns: 1fr; gap: 40px; }
  .about-snap-badge { right: 0; }
  .headteacher-layout { grid-template-columns: 260px 1fr; gap: 36px; }
  .why-row { grid-template-columns: 1fr; gap: 28px; }
  .why-reverse { direction: ltr; }
  .map-contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-slider { height: 70vh; min-height: 500px; }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .highlight-item { padding: 16px; font-size: 0.82rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .headteacher-layout { grid-template-columns: 1fr; }
  .headteacher-msg { padding: 28px 22px; }
  .gallery-preview-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gp-tall { grid-row: span 1; }
  .gp-wide { grid-column: span 2; }
  .hero-arrow { width: 42px; height: 42px; font-size: 0.9rem; }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
  .alumni-marquee-row { gap: 10px; }
  .alumni-tag-item { font-size: 0.78rem; padding: 9px 14px; }
}

@media (max-width: 500px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-item::after { display: none; }
  .gallery-preview-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gp-tall, .gp-wide { grid-row: span 1; grid-column: span 1; }
  .gp-item { height: 200px; }
  .hero-btns { gap: 10px; }
  .hero-btns .btn, .hero-btns .btn-outline-white { padding: 11px 18px; font-size: 0.82rem; }
}
