/* ================================================================
   NEW HEIGHTS ACADEMY — MAIN PAGE STYLES
   ================================================================ */

/* ── Global resets & base ───────────────────────────────────── */
html { scroll-behavior: smooth; }

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: #0a1f44;
  background: #ffffff;
  margin: 0;
  padding: 0;
}

img { max-width: 100%; display: block; }

/* ── Shared helpers ─────────────────────────────────────────── */
.p-section { padding: 80px 0; }
.p-section-sm { padding: 56px 0; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section heading */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}
.section-heading h2 {
  font-size: 32px;
  font-weight: 700;
  color: #0a1f44;
  margin: 0 0 14px;
  line-height: 1.25;
}
.section-heading .accent-line {
  width: 60px;
  height: 3px;
  background: #f5a623;
  margin: 0 auto;
  border-radius: 3px;
}
.section-heading p {
  margin-top: 16px;
  font-size: 15px;
  color: #5a6a85;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}
.btn-gold {
  background: #f5a623;
  color: #0a1f44;
}
.btn-gold:hover {
  background: #d48c0f;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.40);
}
.btn-outline {
  background: transparent;
  color: #f5a623;
  border: 2px solid #f5a623;
}
.btn-outline:hover {
  background: #f5a623;
  color: #0a1f44;
  transform: translateY(-2px);
}
.btn-green {
  background: #25D366;
  color: #ffffff;
}
.btn-green:hover {
  background: #1da851;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.40);
}

/* ================================================================
   1. HERO SLIDER
   ================================================================ */
.hero-slider-wrap {
  position: relative;
  overflow: hidden;
  background: #0a1f44;
}

.hero-slides {
  position: relative;
  height: 78vh;
  min-height: 520px;
  max-height: 780px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* dark gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,31,68,0.80) 0%,
    rgba(10,31,68,0.50) 55%,
    rgba(10,31,68,0.20) 100%
  );
}

/* text content */
.hero-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 560px;
  z-index: 3;
}

.hero-content .hero-tag {
  display: inline-block;
  background: #f5a623;
  color: #0a1f44;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin: 0 0 32px;
}

/* Arrow buttons */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.50);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(4px);
}

.hero-arrow:hover {
  background: #f5a623;
  border-color: #f5a623;
  color: #0a1f44;
}

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

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  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);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dot.is-active {
  background: #f5a623;
  transform: scale(1.3);
}

/* ── Infrastructure Quick Links ─────────────────────────────── */
.infra-cards {
  background: #f8f9fa;
  padding: 0;
}

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

.infra-card {
  background: #ffffff;
  padding: 40px 28px 36px;
  text-align: center;
  border-right: 1px solid #eaecf0;
  border-top: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.infra-card:last-child { border-right: none; }

.infra-card:hover {
  border-top-color: #f5a623;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10,31,68,0.10);
  z-index: 1;
  position: relative;
}

.infra-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245,166,35,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px;
  color: #f5a623;
  transition: background 0.3s ease, color 0.3s ease;
}

.infra-card:hover .infra-icon {
  background: #f5a623;
  color: #ffffff;
}

.infra-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0a1f44;
  margin: 0 0 6px;
}

.infra-card p {
  font-size: 13px;
  color: #7a8ba5;
  margin: 0;
  line-height: 1.5;
}

/* ================================================================
   2. ABOUT US
   ================================================================ */
.about-section { background: #ffffff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-content .section-heading {
  text-align: left;
  margin-bottom: 24px;
}

.about-content .section-heading .accent-line { margin: 0; }

.about-content p {
  font-size: 15px;
  color: #3d4f6b;
  line-height: 1.85;
  margin-bottom: 18px;
}

/* Stats */
.about-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  padding: 28px 0;
  border-top: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
}

.stat-item { text-align: center; }

.stat-num {
  display: block;
  font-size: 34px;
  font-weight: 700;
  color: #f5a623;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12.5px;
  color: #6b7a99;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Image side */
.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(10,31,68,0.15);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #f5a623;
  color: #0a1f44;
  padding: 18px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(245,166,35,0.40);
  line-height: 1.4;
}

.about-badge span {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

/* ================================================================
   3. ADMISSIONS SECTION
   ================================================================ */
.admissions-section {
  background: #0a1f44;
  position: relative;
  overflow: hidden;
}

/* diagonal lines pattern */
.admissions-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 20px
  );
  pointer-events: none;
}

.admissions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.admissions-left h2 {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 12px;
}

.admissions-left .sub-gold {
  color: #f5a623;
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 28px;
  display: block;
}

.admissions-left ul {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admissions-left ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.6;
}

.admissions-left ul li i {
  color: #f5a623;
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Admission form card */
.admissions-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.25);
}

.admissions-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0a1f44;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f5a623;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #5a6a85;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dde2ea;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #0a1f44;
  background: #f8f9fa;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #f5a623;
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
  background: #ffffff;
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 8px;
  margin-top: 6px;
  justify-content: center;
}

/* ================================================================
   4. ACTIVITIES TABS
   ================================================================ */
.activities-section { background: #f8f9fa; }

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid #0a1f44;
  background: #ffffff;
  color: #0a1f44;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn.is-active,
.tab-btn:hover {
  background: #f5a623;
  border-color: #f5a623;
  color: #0a1f44;
}

/* tab panels */
.tab-panel {
  display: none;
  animation: fadeIn 0.45s ease;
}

.tab-panel.is-active { display: grid; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tab-panel {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tab-text h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0a1f44;
  margin: 0 0 16px;
}

.tab-text p {
  font-size: 15px;
  color: #3d4f6b;
  line-height: 1.85;
  margin-bottom: 20px;
}

.tab-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-text ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #3d4f6b;
}

.tab-text ul li i {
  color: #f5a623;
  font-size: 14px;
}

.tab-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(10,31,68,0.12);
}

/* ================================================================
   5. CTA BANNER
   ================================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: #0a1f44;
}

.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,31,68,0.55);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 24px;
}

.cta-content h2 {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
}

.cta-phone {
  font-size: 48px;
  font-weight: 800;
  color: #f5a623;
  margin: 0 0 36px;
  display: block;
  letter-spacing: -1px;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ================================================================
   6. CHAIRMAN & PRINCIPAL
   ================================================================ */
.leadership-section { background: #f8f9fa; }

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.leader-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 32px 32px;
  box-shadow: 0 4px 24px rgba(10,31,68,0.07);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(10,31,68,0.12);
}

.leader-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f5a623;
  margin: 0 auto 20px;
  display: block;
}

.leader-name {
  font-size: 18px;
  font-weight: 700;
  color: #0a1f44;
  margin: 0 0 4px;
}

.leader-title {
  font-size: 13px;
  font-weight: 600;
  color: #f5a623;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 20px;
}

.leader-divider {
  width: 40px;
  height: 2px;
  background: #f0f0f0;
  margin: 0 auto 18px;
}

.leader-quote {
  font-style: italic;
  font-size: 14px;
  color: #6b7a99;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 22px;
}

.leader-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f5a623;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.25s ease;
}

.leader-more:hover { gap: 10px; }

/* ================================================================
   7. NEWS & EVENTS
   ================================================================ */
.news-section { background: #ffffff; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(10,31,68,0.07);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(10,31,68,0.14);
}

.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* ── Highlights / Posters Section ──────────────────────── */
.posters-section { background: #f7f9fc; }

.posters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.poster-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(10,31,68,0.09);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.poster-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(10,31,68,0.17);
}
.poster-card img {
  width: 100%;
  height: auto;      /* full image, zero cropping */
  display: block;
}

@media (max-width: 1024px) {
  .posters-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .posters-grid { grid-template-columns: 1fr; }
}

.news-card-body {
  padding: 22px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-tag {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  color: #d48c0f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #0a1f44;
  line-height: 1.45;
  margin: 0 0 8px;
}

.news-date {
  font-size: 12px;
  color: #9aa5bb;
  margin-bottom: 10px;
}

.news-desc {
  font-size: 13.5px;
  color: #6b7a99;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 16px;
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f5a623;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.25s ease;
}

.news-more:hover { gap: 9px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .about-grid     { gap: 48px; }
  .admissions-grid { gap: 48px; }
}

@media (max-width: 768px) {
  .p-section { padding: 56px 0; }

  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-card { border-right: none; border-bottom: 1px solid #eaecf0; }

  .about-grid,
  .admissions-grid,
  .leadership-grid,
  .tab-panel { grid-template-columns: 1fr; gap: 36px; }

  .about-image-wrap img { height: 300px; }
  .about-badge { bottom: auto; top: 12px; left: 12px; }
  .about-stats { gap: 20px; }

  .news-grid { grid-template-columns: 1fr 1fr; }

  .hero-content { left: 5%; max-width: 90%; }
  .section-heading h2 { font-size: 26px; }
  .cta-content h2 { font-size: 28px; }
  .cta-phone { font-size: 34px; }
}

@media (max-width: 540px) {
  .infra-grid { grid-template-columns: 1fr; }
  .news-grid  { grid-template-columns: 1fr; }
  .hero-slides { height: 60vh; min-height: 400px; }
  .admissions-card { padding: 28px 20px; }
  .leader-card { padding: 32px 20px 24px; }
}
