/* =========================================================
   Val Institute of Hungary — Homepage Styles
   Brand: Navy + Gold | Stack: Bootstrap 5
   ========================================================= */

:root {
  --navy: #0b1f3a;
  --navy-deep: #071526;
  --navy-mid: #15355e;
  --navy-soft: #1e4a7a;
  --gold: #c5a059;
  --gold-light: #d4b06e;
  --gold-dark: #a6853f;
  --ink: #1a2433;
  --muted: #5c6b7a;
  --line: rgba(11, 31, 58, 0.1);
  --surface: #ffffff;
  --surface-alt: #f3f6f9;
  --surface-tint: #eef3f8;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(11, 31, 58, 0.08);
  --shadow-hover: 0 18px 48px rgba(11, 31, 58, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --header-height: 84px;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy-mid);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform 0.2s ease, box-shadow var(--transition);
}

.btn-gold {
  background: var(--gold);
  border: 2px solid var(--gold);
  color: var(--navy-deep);
}

.btn-gold:hover,
.btn-gold:focus {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.35);
}

.btn-navy {
  background: var(--navy);
  border: 2px solid var(--navy);
  color: var(--white);
}

.btn-navy:hover,
.btn-navy:focus {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.9rem 1.75rem;
}

/* ========== Top Bar ========== */
.top-bar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  padding: 0.55rem 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-contacts,
.top-bar-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar-contacts li,
.top-bar-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.88);
}

.top-bar-contacts a:hover {
  color: var(--gold-light);
}

.top-bar-contacts i {
  color: var(--gold);
  font-size: 0.85rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-translate {
  display: inline-flex;
  align-items: center;
  height: 30px;
  max-height: 30px;
  overflow: hidden;
  line-height: 1;
}

.site-translate .goog-te-gadget {
  font-family: var(--font-body) !important;
  font-size: 0 !important;
  color: transparent !important;
  line-height: 1 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.site-translate .goog-te-gadget > span,
.site-translate .goog-te-gadget > div > a,
.site-translate .goog-logo-link,
.site-translate .goog-te-gadget .goog-te-gadget-icon {
  display: none !important;
}

.site-translate select.goog-te-combo {
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: var(--white) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23c5a059' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.55rem center !important;
  border: 1px solid rgba(197, 160, 89, 0.55) !important;
  border-radius: 4px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 1.6rem 0 0.65rem !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  vertical-align: middle !important;
  width: auto !important;
  min-width: 128px;
}

.site-translate select.goog-te-combo:hover,
.site-translate select.goog-te-combo:focus {
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-color: var(--gold) !important;
  color: var(--white) !important;
}

.site-translate select.goog-te-combo option {
  color: var(--navy-deep);
  background: var(--white);
}

/* Hide Google top banner / branding bar */
body {
  top: 0 !important;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
  visibility: hidden !important;
}

.skiptranslate iframe {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
}

.top-bar-social a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.top-bar-social a:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

/* ========== Header / Nav ========== */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: box-shadow var(--transition), background var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.site-header .navbar {
  padding: 0.65rem 0;
  min-height: var(--header-height);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy) !important;
  padding: 0.5rem 0.7rem !important;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold-dark) !important;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--gold);
}

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  margin-top: 0.35rem !important;
}

.dropdown-item {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  color: var(--ink);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--surface-tint);
  color: var(--navy);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-cta .btn {
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
}

.navbar-toggler {
  border-color: var(--line);
  padding: 0.4rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.25);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding: 4.5rem 0;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 8s ease;
}

.hero-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 16, 30, 0.94) 0%, rgba(7, 21, 38, 0.88) 38%, rgba(11, 31, 58, 0.55) 68%, rgba(11, 31, 58, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 16, 30, 0.5) 0%, transparent 40%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-panel {
  max-width: 560px;
  padding: 2.25rem 2rem 2.35rem;
  background: rgba(5, 16, 30, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 1rem;
}

.hero-brand::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin: 0 0 1.15rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
  margin: 0 0 1.75rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ========== Announcement ========== */
.announce-bar {
  background: var(--surface-tint);
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.announce-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.announce-text {
  flex: 1 1 280px;
  font-size: 0.98rem;
  color: var(--muted);
}

.announce-text strong {
  color: var(--navy);
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
}

/* ========== Sections ========== */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.section-eyebrow.light {
  color: var(--gold-light);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 620px;
  margin: 0 auto 0.5rem;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 3rem;
}

/* About */
.about-media {
  position: relative;
  padding-right: 12%;
  padding-bottom: 12%;
}

.about-media > img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-media-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  border: 6px solid var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.about-media-accent img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-weight: 500;
}

.about-points i {
  color: var(--gold-dark);
  margin-top: 0.35rem;
}

/* Partners logo strip */
.partners-section {
  padding: 3.5rem 0 3.75rem;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.partners-section .section-heading {
  margin-bottom: 2rem;
}

.partners-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.partners-track {
  display: flex;
  width: max-content;
  animation: partners-scroll 35s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partners-slide {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.partner-logo {
  flex: 0 0 auto;
  width: 210px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.partner-logo:hover {
  border-color: rgba(197, 160, 89, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.partner-logo img {
  max-width: 100%;
  max-height: 82px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    row-gap: 1rem;
  }

  .partners-slide[aria-hidden="true"] {
    display: none;
  }

  .partners-track-wrap {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (max-width: 575.98px) {
  .partner-logo {
    width: 180px;
    height: 96px;
    padding: 0.45rem 0.6rem;
  }

  .partner-logo img {
    max-height: 72px;
  }
}

/* Program Cards */
.program-grid {
  align-items: stretch;
}

.program-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(11, 31, 58, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.program-card:hover,
.program-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(197, 160, 89, 0.55);
  color: inherit;
}

.program-media {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--navy-deep);
}

.program-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease;
}

.program-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 38, 0.05) 0%, rgba(7, 21, 38, 0.45) 100%);
  pointer-events: none;
}

.program-media::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  z-index: 1;
}

.program-card:hover .program-media img {
  transform: scale(1.08);
}

.program-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.35rem 1.25rem 1.4rem;
  text-align: center;
}

.program-card h3 {
  font-size: 1.18rem;
  margin: 0 0 0.7rem;
  color: var(--navy);
  line-height: 1.3;
}

.program-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  flex-grow: 1;
  margin: 0 0 1.25rem;
}

.program-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: center;
  min-width: 168px;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
  background: var(--surface-tint);
  border: 1px solid var(--line);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.program-link i {
  font-size: 0.72rem;
  transition: transform var(--transition);
}

.program-card:hover .program-link {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

.program-card:hover .program-link i {
  transform: translateX(4px);
}

@media (max-width: 575.98px) {
  .program-media {
    height: 160px;
  }

  .program-body {
    padding: 1.2rem 1.1rem 1.25rem;
  }
}

/* Feature Cards */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--navy-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Stats */
.stats-section {
  position: relative;
  padding: 5rem 0;
  color: var(--white);
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(20%);
}

.stats-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 21, 38, 0.92) 0%, rgba(21, 53, 94, 0.88) 100%);
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 1.25rem 0.5rem;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* Mission / Vision */
.mv-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  height: 100%;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.mv-card.mission::before {
  background: var(--navy-mid);
}

.mv-card.vision::before {
  background: var(--gold);
}

.mv-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
}

.mv-card.mission .mv-icon {
  background: var(--surface-tint);
  color: var(--navy-mid);
}

.mv-card.vision .mv-icon {
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-dark);
}

.mv-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.mv-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.mv-card li {
  margin-bottom: 0.75rem;
}

.mv-card li:last-child {
  margin-bottom: 0;
}

/* Testimonials */
#testimonialCarousel {
  max-width: 820px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem 2rem;
  margin: 0 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1.75rem;
  line-height: 1.75;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  display: block;
  text-align: left;
}

.t-course {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: left;
}

.carousel-control-prev,
.carousel-control-next {
  width: auto;
  opacity: 1;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background var(--transition);
}

.carousel-control-prev:hover .carousel-btn,
.carousel-control-next:hover .carousel-btn {
  background: var(--gold);
  color: var(--navy-deep);
}

.carousel-indicators {
  margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--navy-mid);
  opacity: 0.35;
  border: 0;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--gold);
}

/* CTA */
.cta-section {
  position: relative;
  padding: 5.5rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 21, 38, 0.94) 0%, rgba(21, 53, 94, 0.86) 100%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-panel {
  max-width: 720px;
  color: var(--white);
}

.cta-panel h2 {
  color: var(--white);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.cta-panel > p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 52ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.cta-contact {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.cta-contact a {
  color: var(--gold-light);
  font-weight: 600;
}

.cta-contact a:hover {
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 4.5rem;
}

.footer-top {
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand:hover {
  color: var(--gold-light);
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-about {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 34ch;
}

.footer-social {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  gap: 0.55rem;
}

.footer-app-badge {
  display: inline-block;
  line-height: 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  transition: opacity var(--transition), transform var(--transition);
}

.footer-app-badge img {
  width: 150px;
  height: auto;
  display: block;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
}

.footer-app-badge:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

.footer-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.footer-contact i {
  color: var(--gold);
  margin-top: 0.3rem;
}

.footer-contact span {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.15rem;
}

.footer-contact a,
.footer-contact p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  font-size: 0.95rem;
}

.footer-contact a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 1040;
  box-shadow: var(--shadow);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--navy-deep);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* Hero content visible on load */
.hero .reveal {
  opacity: 0;
}

.hero .reveal.is-visible {
  opacity: 1;
}

/* ========== Responsive ========== */
@media (max-width: 1199.98px) {
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.45rem 0.55rem !important;
  }

  .brand-text {
    display: none;
  }

  .nav-cta {
    margin: 0.75rem 0 0.25rem;
  }

  .navbar-collapse {
    padding: 1rem 0 1.25rem;
    border-top: 1px solid var(--line);
    margin-top: 0.75rem;
  }

  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .dropdown-menu {
    border: 0;
    box-shadow: none;
    background: var(--surface-alt);
    margin-top: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: min(78vh, 640px);
    padding: 3.5rem 0;
  }

  .hero-panel {
    max-width: 100%;
    padding: 1.75rem 1.5rem 1.9rem;
  }

  .about-media {
    padding-right: 8%;
    padding-bottom: 8%;
    max-width: 480px;
    margin: 0 auto 1rem;
  }

  .testimonial-card {
    margin: 0 1.5rem;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .top-bar-contacts li:nth-child(2) span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 70vh;
    padding: 3rem 0;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

  .hero-panel {
    padding: 1.5rem 1.25rem 1.65rem;
    border-radius: var(--radius-sm);
    border-left-width: 4px;
  }

  .hero-brand {
    letter-spacing: 0.12em;
    font-size: 0.75rem;
  }

  .announce-inner {
    text-align: left;
  }

  .announce-inner .btn {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .testimonial-card {
    margin: 0 0.25rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .cta-actions .btn,
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand img {
    width: 52px;
    height: 52px;
  }

  .stat-num {
    font-size: 2.1rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }
}

/* ========== Inner Pages ========== */
.page-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(5, 16, 30, 0.92) 0%, rgba(11, 31, 58, 0.78) 55%, rgba(11, 31, 58, 0.55) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .breadcrumb {
  margin-bottom: 0.85rem;
  --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.45);
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
}

.page-hero .breadcrumb-item.active {
  color: var(--gold-light);
}

.page-hero .breadcrumb-item a:hover {
  color: var(--gold-light);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 0.65rem;
}

.page-hero-lead {
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.about-intro p {
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.why-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.why-block .why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.why-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.why-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.why-block li {
  margin-bottom: 0.45rem;
}

.why-block li:last-child {
  margin-bottom: 0;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(197, 160, 89, 0.4);
}

.contact-info-card .ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.contact-info-card .ci-role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.35rem;
}

.contact-info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.contact-info-card a {
  font-weight: 500;
  word-break: break-word;
}

.contact-aside {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
}

.contact-aside h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.contact-aside-item {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.contact-aside-item:last-child {
  margin-bottom: 0;
}

.contact-aside-item i {
  color: var(--gold);
  margin-top: 0.25rem;
}

.contact-aside-item span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.2rem;
}

.contact-aside-item a,
.contact-aside-item p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.contact-aside-item a:hover {
  color: var(--gold-light);
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  height: 100%;
}

.contact-form-card h2 {
  font-size: 1.55rem;
  margin-bottom: 0.5rem;
}

.contact-form-card .form-lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.contact-form .form-control {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface-alt);
}

.contact-form .form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.2);
  background: var(--white);
}

.contact-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.contact-form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.contact-map {
  border: 0;
  border-radius: var(--radius);
  width: 100%;
  height: 360px;
  box-shadow: var(--shadow);
}

/* Fees */
.fees-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.fees-table {
  margin: 0;
  width: 100%;
}

.fees-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 1rem 1.15rem;
  border: 0;
  white-space: nowrap;
}

.fees-table tbody td {
  padding: 0.95rem 1.15rem;
  vertical-align: middle;
  border-color: var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}

.fees-table tbody tr:nth-child(even) {
  background: var(--surface-alt);
}

.fees-table tbody tr:hover {
  background: var(--surface-tint);
}

.fees-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.payment-card,
.policy-card,
.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  height: 100%;
}

.payment-card h3,
.policy-card h3,
.info-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.payment-card ul,
.policy-card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.payment-card li,
.policy-card li {
  margin-bottom: 0.65rem;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.payment-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* Coming soon / centers */
.coming-soon-box {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
}

.coming-soon-box .cs-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold-light);
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.coming-soon-box h2 {
  margin-bottom: 0.75rem;
}

.coming-soon-box p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.coming-soon-box .coming-soon-text {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin: 0.75rem 0 1rem;
}

.trinity-intro {
  margin-bottom: 1.75rem;
}

.trinity-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.trinity-logo-wrap img {
  max-width: 260px;
  width: 100%;
  height: auto;
}

.trinity-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b1f3a;
  box-shadow: var(--shadow);
}

.trinity-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.flag-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.85rem;
}

.flag-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  text-align: center;
  text-decoration: none;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 0.65rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.flag-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.08);
}

.flag-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.flag-card span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
}

.flag-card:hover span {
  color: var(--gold-dark);
}

.center-verify-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.center-verify-card .cv-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}

.center-verify-card h2 {
  margin-bottom: 0.75rem;
}

.center-verify-card p {
  color: var(--muted);
}

.center-verify-card .cv-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.25rem 0 0.35rem;
}

.center-verify-card a {
  font-weight: 600;
  word-break: break-word;
}

/* Trinity / English content */
.english-feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  height: 100%;
}

.english-feature .ef-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-tint);
  color: var(--navy-mid);
  margin-bottom: 0.85rem;
}

.english-feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}

.english-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-bottom: 1.5rem;
}

.content-block h2,
.content-block h3 {
  margin-bottom: 1rem;
}

.content-block p,
.content-block li {
  color: var(--muted);
}

.content-block ul {
  padding-left: 1.15rem;
}

.country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.country-chips span {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
}

.accordion-item {
  border-color: var(--line) !important;
}

.accordion-button {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
}

.accordion-button:not(.collapsed) {
  background: var(--surface-tint);
  color: var(--navy);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(197, 160, 89, 0.2);
}

/* Department / course list pages */
.course-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.5rem;
}

.course-table {
  margin: 0;
}

.course-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.95rem 1.1rem;
  border: 0;
}

.course-table tbody td {
  padding: 0.9rem 1.1rem;
  vertical-align: middle;
  border-color: var(--line);
  font-size: 0.95rem;
}

.course-table tbody tr:nth-child(even) {
  background: var(--surface-alt);
}

.course-table tbody tr:hover {
  background: var(--surface-tint);
}

.course-num {
  width: 48px;
  color: var(--muted);
  font-weight: 600;
}

.course-title-link {
  color: var(--navy);
  font-weight: 600;
}

.course-title-link:hover {
  color: var(--gold-dark);
}

.dept-aside {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 1.85rem 1.5rem;
  position: sticky;
  top: 110px;
}

.dept-aside h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.dept-aside > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.dept-aside-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dept-aside-item i {
  color: var(--gold);
  margin-top: 0.25rem;
}

.dept-aside-item span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.15rem;
}

.dept-aside-item a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  word-break: break-word;
}

.dept-aside-item a:hover {
  color: var(--gold-light);
}

.dept-aside .btn-outline-light {
  border-width: 1px;
}

@media (max-width: 991.98px) {
  .dept-aside {
    position: static;
  }
}

/* Course detail */
.course-visual {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-tint);
}

.course-visual picture,
.course-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.course-visual img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.course-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.fact-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.fact-item span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.fact-item strong {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.course-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.course-list li {
  margin-bottom: 0.45rem;
}

@media (max-width: 575.98px) {
  .course-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .page-hero {
    padding: 3.25rem 0 2.75rem;
  }

  .contact-form-card,
  .contact-aside {
    padding: 1.5rem 1.25rem;
  }

  .contact-map {
    height: 280px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-img,
  .btn,
  .program-card,
  .feature-card {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
