:root {
  --navy: #0d1f3c;
  --navy-soft: #163058;
  --sky: #53b7f9;
  --gold: #c9963a;
  --gold-bright: #e4b559;
  --gold-soft: #f1dfb6;
  --cream: #fbf7ef;
  --ink: #1b2940;
  --muted: #5e6b7d;
  --line: rgba(15, 39, 71, 0.12);
  --shadow: 0 18px 50px rgba(10, 31, 59, 0.14);
  --radius-xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 150, 58, 0.12), transparent 32%),
    linear-gradient(180deg, #fdfaf4 0%, #f7f0e3 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-ribbon {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 16px;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #9b6f25, var(--gold), var(--gold-bright), var(--gold), #9b6f25);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(214, 166, 72, 0.25);
}

.nav-wrap {
  position: sticky;
  top: 46px;
  z-index: 45;
  padding: 14px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid rgba(201, 150, 58, 0.45);
  background: rgba(13, 31, 60, 0.96);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.brand-copy span {
  display: block;
  margin-top: 2px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.logo-crop {
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgba(228, 181, 89, 0.8);
  box-shadow: 0 10px 24px rgba(10, 31, 59, 0.35);
  background: #fff;
  flex: 0 0 auto;
}

.logo-crop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-bright);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta,
.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-cta {
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
}

.nav-cta:hover {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.button {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
}

.button:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  transform: translateY(-1px);
}

.button-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.button-gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.button-outline {
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.35rem;
}

.mobile-panel {
  display: none;
  margin-top: 10px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(13, 31, 60, 0.98);
  box-shadow: var(--shadow);
  border: 1px solid rgba(201, 150, 58, 0.3);
}

.mobile-panel a {
  display: block;
  padding: 12px 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  min-height: 86vh;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow);
}

.hero-home {
  background:
    linear-gradient(100deg, rgba(7, 21, 41, 0.94), rgba(15, 39, 71, 0.82)),
    url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1800&q=80")
      center/cover;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    rgba(201, 150, 58, 0.05) 0,
    rgba(201, 150, 58, 0.05) 1px,
    transparent 1px,
    transparent 40px
  );
}

.hero-home::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -120px;
  width: 560px;
  height: 560px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(201, 150, 58, 0.12) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 0;
  color: #fff;
  text-align: center;
}

.hero-crest {
  width: 118px;
  height: 118px;
  margin: 0 auto 22px;
  filter: drop-shadow(0 6px 24px rgba(201, 150, 58, 0.42));
}

.hero-crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-rule-line {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-rule-line.right {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-rule-text,
.eyebrow {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-bright);
}

.eyebrow {
  letter-spacing: 0.28em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  margin: 18px auto 0;
  max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.04;
}

.hero p.lead,
.banner-copy {
  margin: 22px auto 0;
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  justify-content: center;
}

.section {
  padding: 88px 0;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--navy);
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 34px 0;
}

.section-intro p,
.copy {
  margin: 16px 0 0;
  line-height: 1.85;
  color: var(--muted);
}

.portal-grid,
.stats-grid,
.grades-grid,
.facility-grid,
.testimonial-grid,
.contact-grid,
.news-grid,
.feature-grid,
.leaders-grid {
  display: grid;
  gap: 24px;
}

.portal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: -120px;
  position: relative;
  z-index: 10;
}

.portal-card,
.glass-card,
.white-card,
.leader-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.portal-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(201, 150, 58, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(10, 31, 59, 0.18);
}

.portal-image-wrap {
  position: relative;
}

.portal-image {
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: 26px;
  filter: brightness(0.88) saturate(0.9);
}

.portal-logo,
.hero-logo-box {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 36px rgba(10, 31, 59, 0.18);
}

.portal-logo {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  border: 3px solid rgba(228, 181, 89, 0.55);
}

.portal-logo img,
.hero-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.chip-dark {
  background: var(--navy);
  color: var(--gold-bright);
}

.chip-sky {
  background: var(--gold);
  color: var(--navy);
}

.portal-card h3 {
  font-size: 2rem;
  color: var(--navy);
}

.portal-card p {
  line-height: 1.8;
  color: var(--muted);
}

.feature-grid,
.stats-grid,
.grades-grid,
.facility-grid,
.testimonial-grid,
.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leaders-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.glass-card,
.white-card,
.leader-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(201, 150, 58, 0.15);
  position: relative;
}

.white-card::after,
.glass-card::after,
.leader-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #9b6f25, var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.white-card:hover::after,
.glass-card:hover::after,
.leader-card:hover::after {
  transform: scaleX(1);
}

.stat-number {
  margin-top: 8px;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
}

.card-title {
  font-size: 1.28rem;
  color: var(--navy);
}

.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.photo-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 460px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-banner {
  border-radius: 34px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow);
}

.theme-banner.tstps {
  background:
    linear-gradient(110deg, rgba(13, 31, 60, 0.92), rgba(22, 48, 88, 0.8)),
    url("./public/images/tstps-gate.jpg") center 40% / cover;
}

.theme-banner.nova {
  background:
    linear-gradient(110deg, rgba(13, 31, 60, 0.92), rgba(36, 97, 156, 0.72)),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1600&q=80")
      center/cover;
}

.theme-banner-content {
  padding: 74px 34px;
}

.hero-logo-box {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  margin-bottom: 18px;
  border: 4px solid rgba(255, 255, 255, 0.72);
}

.hero-logo-box img {
  padding: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.16em;
  border: 1px solid rgba(228, 181, 89, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.leader-card {
  overflow: hidden;
  padding: 0;
}

.leader-photo {
  height: 420px;
  overflow: hidden;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-body {
  padding: 28px;
}

.leader-role {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.leader-name {
  font-size: 2rem;
  color: var(--navy);
}

.leader-qual {
  margin-top: 8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.leader-body p {
  margin: 16px 0 0;
  line-height: 1.85;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item span {
  display: block;
  padding: 16px 18px 18px;
  font-weight: 700;
  color: var(--navy);
}

.masonry {
  columns: 3;
  column-gap: 18px;
}

.masonry-card {
  break-inside: avoid;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.masonry-card img {
  width: 100%;
  object-fit: cover;
}

.masonry-card div {
  padding: 16px 18px 18px;
  font-weight: 700;
  color: var(--navy);
}

.faq-item {
  margin-bottom: 14px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  color: var(--navy);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #f7fafc;
  font: inherit;
  color: var(--ink);
}

label {
  display: block;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

label span {
  display: block;
  margin-bottom: 8px;
}

.contact-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.map-placeholder {
  min-height: 320px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(135deg, #edf4f9, #dfeaf3);
  border: 1px solid var(--line);
}

.footer {
  margin-top: 84px;
  background: #0a1529;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  padding: 48px 0;
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.footer ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.footer .card-title {
  color: #fff;
}

.footer-bottom {
  padding: 14px 16px 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(228, 181, 89, 0.16);
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.35);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 800;
}

.whatsapp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 21, 41, 0.84);
  z-index: 70;
}

.lightbox.open {
  display: flex;
}

.lightbox-card {
  position: relative;
  width: min(960px, 100%);
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
}

.lightbox-card img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
}

.lightbox-copy {
  padding: 20px 24px 26px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  cursor: pointer;
}

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .portal-grid,
  .feature-grid,
  .stats-grid,
  .grades-grid,
  .facility-grid,
  .testimonial-grid,
  .news-grid,
  .leaders-grid,
  .gallery-grid,
  .contact-grid,
  .footer-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .masonry {
    columns: 2;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .portal-grid {
    margin-top: 26px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .top-ribbon {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .nav-wrap {
    top: 56px;
  }

  .nav {
    border-radius: 26px;
    padding: 14px 16px;
  }

  .brand-copy strong {
    font-size: 0.98rem;
  }

  .brand-copy span {
    letter-spacing: 0.14em;
    font-size: 0.67rem;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero p.lead {
    font-size: 1rem;
  }

  .portal-card h3,
  .section h2,
  .leader-name {
    font-size: 1.8rem;
  }

  .masonry {
    columns: 1;
  }

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

  .logo-crop {
    width: 52px;
    height: 52px;
  }
}
