:root {
  --ink: #172033;
  --muted: #637083;
  --brand: #10213f;
  --brand-2: #1f7a68;
  --accent: #c8a24a;
  --gold: #efd17a;
  --soft: #fbf5e8;
  --paper: #ffffff;
  --line: #d9e4e7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, #fffaf1 0%, #ffffff 48%, #f4f7f2 100%);
}

.site-nav {
  background: rgba(7, 18, 36, 0.94);
  border-top: 0;
  border-bottom: 1px solid rgba(239, 209, 122, 0.16);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  max-width: 280px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-link {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--gold);
}

.navbar-toggler {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switch .btn {
  min-width: 42px;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.language-switch .btn.active {
  color: var(--brand);
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.hero-section {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 18, 36, 0.94), rgba(7, 18, 36, 0.72) 48%, rgba(7, 18, 36, 0.34)),
    url("../images/hero-building.jpg") center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: 0.24;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 64px;
}

.eyebrow,
.section-kicker {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: var(--gold);
}

.hero-section h1 {
  max-width: 880px;
  margin: 12px 0 18px;
  font-size: clamp(2.45rem, 5vw, 5.45rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  color: var(--brand);
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.btn-primary:hover,
.btn-primary:focus {
  color: var(--brand);
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), #ffe59b);
}

.btn i {
  margin-right: 8px;
}

.stats-band {
  padding: 18px 0;
  background:
    linear-gradient(135deg, #071224 0%, #10213f 55%, #1d4b70 100%);
}

.stat-item {
  min-height: 112px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.stat-item strong {
  display: block;
  color: var(--gold);
  font-size: 2.3rem;
  line-height: 1;
}

.stat-item span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.35;
}

.section {
  padding: 88px 0;
}

.muted-section {
  background:
    linear-gradient(180deg, #fbf5e8 0%, #f4f7f2 100%);
}

h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  color: var(--ink);
  font-weight: 600;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.info-strip div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.info-strip i {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 1.6rem;
}

.info-strip span {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading p {
  margin: 0;
}

.program-card {
  min-height: 320px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(20, 35, 59, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.program-card:hover,
.program-card.is-open {
  border-color: rgba(200, 162, 74, 0.42);
  box-shadow: 0 18px 42px rgba(7, 18, 36, 0.12);
  transform: translateY(-4px);
}

.program-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 82px 82px;
  gap: 6px;
  padding: 6px;
  background: #fff;
}

.program-image {
  position: relative;
  min-height: 82px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #d9e4e7;
  background-image:
    linear-gradient(135deg, rgba(31, 95, 116, 0.78), rgba(47, 125, 107, 0.58));
  background-position: center;
  background-size: cover;
}

.program-image:first-child {
  grid-row: span 2;
}

.program-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(20, 35, 59, 0.45));
}

.program-image span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(20, 35, 59, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.program-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.capacity-section {
  color: #fff;
  background: linear-gradient(135deg, #071224 0%, #10213f 52%, #1d4b70 100%);
}

.capacity-section h2,
.capacity-section .section-kicker {
  color: #fff;
}

.capacity-section .section-kicker {
  color: var(--gold);
}

.capacity-section p {
  color: rgba(255, 255, 255, 0.72);
}

.capacity-panel {
  display: grid;
  gap: 20px;
  padding: 30px;
  border: 1px solid rgba(239, 209, 122, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.capacity-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 700;
}

.capacity-label strong {
  color: var(--gold);
}

.capacity-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.capacity-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.partner-carousel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
}

.partner-window {
  overflow: hidden;
}

.partner-track {
  display: flex;
  gap: 14px;
  transition: transform 420ms ease;
  will-change: transform;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 35, 59, 0.08);
}

.carousel-btn:hover,
.carousel-btn:focus {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.partner-card {
  position: relative;
  flex: 0 0 calc((100% - 42px) / 4);
  aspect-ratio: 1 / 1;
  min-height: auto;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background-color: #d9e4e7;
  background-image:
    linear-gradient(135deg, rgba(31, 95, 116, 0.78), rgba(198, 146, 46, 0.38));
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 14px 34px rgba(20, 35, 59, 0.06);
}

.partner-card::after,
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 35, 59, 0.04), rgba(20, 35, 59, 0.62));
}

.partner-card span,
.gallery-item span {
  position: relative;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(20, 35, 59, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.partner-card:hover,
.partner-card:focus {
  color: #fff;
  transform: translateY(-2px);
}

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

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 14px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #d9e4e7;
  background-image:
    linear-gradient(135deg, rgba(31, 95, 116, 0.68), rgba(47, 125, 107, 0.45));
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.gallery-item.wide {
  grid-column: auto;
}

.gallery-item.tall {
  grid-row: auto;
}

.message-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 35, 59, 0.06);
}

.form-control {
  min-height: 48px;
  border-color: var(--line);
  border-radius: 8px;
}

textarea.form-control {
  min-height: 150px;
}

.form-label {
  color: var(--ink);
  font-weight: 700;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

.program-body i {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 1.35rem;
}

.program-content {
  min-width: 0;
}

.program-tag {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--brand-2);
  background: rgba(31, 122, 104, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.program-body h3,
.facility-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.program-content p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.program-detail {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

.program-card.is-open .program-detail {
  display: block;
}

.program-toggle {
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: var(--brand-2);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 800;
}

.facility-list {
  display: grid;
  gap: 14px;
}

.facility-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.facility-item i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand-2);
  font-size: 1.45rem;
}

.facility-item p {
  margin: 7px 0 0;
}

.contact-box {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(20, 35, 59, 0.06);
}

.contact-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
}

.contact-row i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
}

.contact-row strong,
.contact-row span {
  display: block;
}

.contact-row span {
  margin-top: 3px;
  color: var(--muted);
}

.contact-row a {
  display: inline-block;
  margin-top: 3px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-row a:hover,
.contact-row a:focus {
  color: var(--brand-2);
  text-decoration: underline;
}

.site-footer {
  padding: 26px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #132c3e;
}

.site-footer span:first-child {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    padding-top: 16px;
  }

  .language-switch {
    margin-top: 10px;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .info-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    min-height: 860px;
  }

  .hero-content {
    padding-top: 84px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .program-gallery {
    grid-template-rows: 72px 72px;
  }

  .partner-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .partner-card {
    flex-basis: 100%;
  }

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

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .stat-item {
    padding: 18px;
  }

  .stat-item strong {
    font-size: 1.9rem;
  }
}
