/* Zamzam Medical Institute — Design System */
:root {
  --navy: #0a1f3d;
  --navy-deep: #061428;
  --navy-mid: #143056;
  --green: #1a5c3a;
  --green-light: #247a4d;
  --green-soft: #e8f2ec;
  --accent: #c41e1e;
  --gold: #d4a017;
  --cream: #f7f5f0;
  --ink: #1a2332;
  --muted: #5a6577;
  --line: rgba(10, 31, 61, 0.12);
  --white: #ffffff;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1180px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  touch-action: manipulation;
}

img,
video,
iframe,
embed,
object,
svg {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.5rem, var(--max));
  }
}

/* ——— Top bar ——— */
.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  min-height: 2.35rem;
}

.topbar-url {
  opacity: 0.75;
  font-weight: 500;
}

.topbar a:hover {
  color: var(--white);
}

.topbar-links {
  display: flex;
  gap: 0.35rem 1.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.topbar-links a,
.topbar-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.88);
}

.topbar-links svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ——— Header / Nav ——— */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow 0.3s var(--ease);
}

.site-top.scrolled .site-header {
  box-shadow: 0 10px 30px rgba(10, 31, 61, 0.12);
}

.header-brand-row {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.75rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy) 0%, var(--green) 100%);
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(26, 92, 58, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-top: 0.15rem;
}

.header-brand-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.header-trust {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  padding-right: 1.25rem;
  border-right: 1px solid var(--line);
}

.header-trust span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.header-trust strong {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  background: var(--green);
  color: var(--white) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(26, 92, 58, 0.22);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.header-cta:hover {
  background: var(--green-light) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 92, 58, 0.28);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-nav-row {
  background: var(--navy);
}

.main-nav {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
}

.main-nav > a,
.main-nav .nav-link {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.9rem 0.55rem;
  white-space: normal;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, color 0.2s;
  line-height: 1.25;
  min-height: 3.15rem;
  background: transparent;
  border-top: none;
  border-bottom: none;
  border-left: none;
  font-family: inherit;
  cursor: pointer;
  width: 100%;
}

.main-nav > a:last-child,
.main-nav .nav-item:last-child {
  border-right: none;
}

.main-nav > a:hover,
.main-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.main-nav > a.active,
.main-nav .nav-link.active,
.main-nav .nav-item.is-active > .nav-link {
  background: var(--green);
  color: var(--white);
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.35);
}

.main-nav .nav-item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: stretch;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav .nav-item .nav-link {
  border-right: none;
  flex: 1;
}

.nav-caret {
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-submenu-toggle {
  display: none;
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--navy-deep);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  padding: 0.4rem 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 80;
}

.nav-item.has-children:hover > .nav-submenu,
.nav-item.has-children:focus-within > .nav-submenu,
.nav-item.has-children.open > .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  display: block;
  padding: 0.7rem 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  border: none;
  min-height: 0;
  flex: none;
  white-space: normal;
}

.nav-submenu a:hover,
.nav-submenu a.active {
  background: var(--green);
  color: var(--white);
  box-shadow: none;
}

.page-body {
  max-width: 720px;
}

.page-body img {
  border-radius: 6px;
  margin: 1rem 0;
}

.page-body h2,
.page-body h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 1.5rem 0 0.65rem;
}

.page-body p + p {
  margin-top: 0.85rem;
}

.page-body ul,
.page-body ol {
  margin: 0.75rem 0 0.75rem 1.25rem;
  list-style: disc;
}

.page-body ol {
  list-style: decimal;
}


/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(6, 20, 40, 0.88) 0%, rgba(10, 31, 61, 0.72) 45%, rgba(26, 92, 58, 0.55) 100%),
    radial-gradient(ellipse at 20% 30%, rgba(36, 122, 77, 0.35), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(20, 48, 86, 0.5), transparent 45%),
    linear-gradient(180deg, #0a1f3d, #143056);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}

.hero-dna {
  position: absolute;
  right: -5%;
  top: 10%;
  width: min(42vw, 420px);
  height: 70%;
  opacity: 0.18;
  pointer-events: none;
  animation: float-dna 12s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.35rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand em {
  font-style: normal;
  color: #7dcea0;
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: 0.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  line-height: 1.35;
  margin: 1.25rem 0 0.75rem;
  max-width: 28ch;
  animation: rise 0.9s 0.12s var(--ease) both;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 42ch;
  margin-bottom: 1.75rem;
  animation: rise 0.9s 0.22s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s 0.32s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 650;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-light);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-solid {
  background: var(--navy);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--navy-mid);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-green {
  background: linear-gradient(135deg, var(--green) 0%, #0f3d28 100%);
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.section-navy .eyebrow,
.section-green .eyebrow {
  color: #9fd4b5;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.section-navy .section-head h2,
.section-green .section-head h2 {
  color: var(--white);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-navy .section-head p,
.section-green .section-head p {
  color: rgba(255, 255, 255, 0.8);
}

/* ——— Department grid (simple / inner pages) ——— */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.dept-tile {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.dept-tile:nth-child(2) { border-top-color: var(--green); }
.dept-tile:nth-child(3) { border-top-color: #2c5282; }
.dept-tile:nth-child(4) { border-top-color: var(--accent); }
.dept-tile:nth-child(5) { border-top-color: #1a4a6e; }
.dept-tile:nth-child(6) { border-top-color: #0d7377; }

.dept-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 31, 61, 0.1);
}

.dept-tile h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.dept-tile p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.dept-tile .link-arrow {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
}

.dept-tile .link-arrow::after {
  content: " →";
}

/* ——— Departments showcase (home) ——— */
.dept-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f3f6f4 0%, var(--cream) 45%, #eef3f0 100%);
}

.dept-section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(26, 92, 58, 0.08), transparent 45%),
    radial-gradient(ellipse at 90% 80%, rgba(10, 31, 61, 0.08), transparent 40%);
}

.dept-section .container {
  position: relative;
  z-index: 1;
}

.dept-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.dept-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(10, 31, 61, 0.08);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  perspective: 800px;
  transform: translateY(36px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.7s var(--ease),
    opacity 0.7s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s;
  transition-delay: calc(var(--d, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  .dept-card,
  .dept-card-media img,
  .dept-icon,
  .dept-link::after,
  .dept-num {
    transition: none !important;
    animation: none !important;
  }

  .dept-card {
    transform: none;
    opacity: 1;
  }
}

.dept-card.reveal.visible,
.dept-card.visible {
  transform: none;
  opacity: 1;
}

.dept-card.reveal.visible:hover,
.dept-card.visible:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(10, 31, 61, 0.14);
}

.dept-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  z-index: 3;
  transition: border-color 0.35s;
}

.dept-card:hover::before {
  border-color: rgba(26, 92, 58, 0.35);
}

.dept-card-media {
  position: relative;
  height: 168px;
  overflow: hidden;
  background: var(--navy);
}

.dept-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(6, 20, 40, 0.55) 100%
  );
  z-index: 1;
  transition: opacity 0.4s;
}

.dept-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 0.8s var(--ease);
}

.dept-card:hover .dept-card-media img {
  transform: scale(1.18);
}

.dept-card:nth-child(1) { --accent-line: var(--navy); }
.dept-card:nth-child(2) { --accent-line: var(--green); }
.dept-card:nth-child(3) { --accent-line: #2c5282; }
.dept-card:nth-child(4) { --accent-line: var(--accent); }
.dept-card:nth-child(5) { --accent-line: #1a4a6e; }
.dept-card:nth-child(6) { --accent-line: #0d7377; }

.dept-card-body {
  position: relative;
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 3px solid var(--accent-line, var(--navy));
}

.dept-num {
  position: absolute;
  top: -1.6rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(10, 31, 61, 0.08);
  z-index: 2;
  transition: color 0.35s, transform 0.45s var(--ease);
}

.dept-card:hover .dept-num {
  color: rgba(26, 92, 58, 0.18);
  transform: translateY(-4px);
}

.dept-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  transition: background 0.35s, color 0.35s, transform 0.45s var(--ease);
}

.dept-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dept-card:hover .dept-icon {
  background: var(--green);
  color: var(--white);
  transform: scale(1.08) rotate(-6deg);
}

.dept-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: 1.3;
  transition: color 0.3s;
}

.dept-card:hover .dept-card-body h3 {
  color: var(--green);
}

.dept-card-body p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
  flex: 1;
  line-height: 1.55;
}

.dept-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.02em;
}

.dept-link::after {
  content: "→";
  display: inline-block;
  transition: transform 0.35s var(--ease);
}

.dept-card:hover .dept-link::after {
  transform: translateX(6px);
}

@keyframes dept-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 92, 58, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(26, 92, 58, 0); }
}

.dept-card:hover .dept-icon {
  animation: dept-pulse 1.4s ease-out;
}

/* ——— Courses we offer ——— */
.courses-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.courses-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(26, 92, 58, 0.06), transparent 40%),
    radial-gradient(ellipse at 100% 100%, rgba(10, 31, 61, 0.05), transparent 40%);
  pointer-events: none;
}

.courses-section .container {
  position: relative;
  z-index: 1;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.course-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s,
    background 0.3s;
  transition-delay: calc(var(--d, 0) * 60ms);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10, 31, 61, 0.1);
  border-color: rgba(26, 92, 58, 0.25);
  background: var(--white);
}

.course-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  background:
    linear-gradient(135deg, #0a1f3d 0%, #143056 50%, #1a5c3a 100%);
  color: #ffffff;
  border: none;
  overflow: hidden;
}

.course-featured:hover {
  background:
    linear-gradient(135deg, #0a1f3d 0%, #143056 50%, #1a5c3a 100%);
  border-color: transparent;
  box-shadow: 0 22px 50px rgba(10, 31, 61, 0.28);
  transform: translateY(-4px);
}

.course-featured-inner {
  padding: 2rem 2.25rem;
  color: #ffffff;
}

.course-featured-inner h3,
.course-featured-inner .course-desc,
.course-featured-inner .course-level,
.course-featured-inner .course-duration,
.course-featured-inner .course-meta li {
  color: inherit;
}

.course-featured-inner h3 {
  color: #ffffff !important;
}

.course-featured-inner .course-desc {
  color: rgba(255, 255, 255, 0.92) !important;
  margin-bottom: 1.15rem;
}

.course-featured-inner .course-level {
  color: #b8e6c8 !important;
}

.course-featured .course-card-top {
  grid-column: auto;
}

.course-card.course-featured h3,
.course-featured h3 {
  grid-column: auto;
  color: #ffffff !important;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  margin-bottom: 0.65rem;
}

.course-card.course-featured > p,
.course-card.course-featured .course-desc,
.course-featured p,
.course-featured .course-desc {
  grid-column: auto;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.02rem;
  max-width: 62ch;
}

.course-featured .course-meta {
  grid-column: auto;
}

.course-featured .course-meta li {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
}

.course-featured .course-footer {
  grid-column: auto;
  border-top-color: rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
}

.course-featured .course-level {
  color: #b8e6c8 !important;
}

.course-featured .course-duration {
  color: rgba(255, 255, 255, 0.8) !important;
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.course-tag {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
}

.course-tag-soft {
  background: var(--green-soft);
  color: var(--green);
}

.course-featured .course-tag {
  background: var(--gold);
  color: var(--navy-deep);
}

.course-duration {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.course-featured .course-duration {
  color: rgba(255, 255, 255, 0.7);
}

.course-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease);
}

.course-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.course-card:hover .course-icon {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  transform: scale(1.06);
}

.course-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.course-card > p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1.15rem;
  flex: 1;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.course-meta li {
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.course-level {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
}

.course-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.2s, transform 0.2s;
}

.course-card:hover .course-more {
  color: var(--green);
}

.courses-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--green-soft);
  border-left: 4px solid var(--green);
}

.courses-cta p {
  font-size: 0.95rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}

/* ——— Stats strip ——— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat span {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ——— Training modules ——— */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.module {
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--line);
}

.module-head {
  padding: 1rem 1.15rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
}

.module:nth-child(1) .module-head { background: var(--navy); }
.module:nth-child(2) .module-head { background: var(--green); }
.module:nth-child(3) .module-head { background: #3d2b6b; }
.module:nth-child(4) .module-head { background: #1a2332; }

.module-body {
  padding: 1.15rem;
}

.module-body p {
  font-size: 0.92rem;
  color: var(--muted);
}

.module-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.85rem;
  color: var(--navy);
}

/* ——— Info row ——— */
.info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.info-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-item svg {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.info-item strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.35rem;
}

.info-item span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}

/* ——— Split panels ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.panel {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.panel-green {
  background: var(--green-soft);
  border-color: transparent;
}

.panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0;
  font-size: 0.98rem;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.why-item {
  text-align: center;
  padding: 0.5rem;
}

.why-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
}

.why-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.why-item h4 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.why-item p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ——— Page hero (inner) ——— */
.page-hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  background:
    linear-gradient(135deg, rgba(6, 20, 40, 0.95) 0%, rgba(26, 92, 58, 0.85) 100%),
    linear-gradient(180deg, var(--navy), var(--navy-mid));
  color: var(--white);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(125, 206, 160, 0.15), transparent 65%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: #9fd4b5;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 48ch;
  opacity: 0.88;
  font-size: 1.1rem;
}

.date-badge {
  display: inline-block;
  color: #ff6b6b;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.loc-pill {
  display: inline-block;
  background: var(--navy-deep);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ——— Content prose ——— */
.prose {
  max-width: 720px;
}

.prose p + p {
  margin-top: 1rem;
}

.prose h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

/* ——— Leadership / members ——— */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.leader {
  padding: 1.35rem;
  background: var(--white);
  border-left: 3px solid var(--green);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-left-color: var(--green);
}

.leader .role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.35rem;
}

.leader h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.leader p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ——— News ——— */
.news-list {
  display: grid;
  gap: 1rem;
}

.news-item {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.news-date {
  background: var(--navy);
  color: var(--white);
  padding: 0.65rem 0.75rem;
  text-align: center;
  min-width: 4.5rem;
}

.news-date .day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
}

.news-date .mon {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

.news-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.news-item p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-block:last-child {
  border-bottom: none;
}

.contact-block h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.contact-block p {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* ——— CTA banner ——— */
.cta-banner {
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

.cta-banner .tagline {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-grid h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fd4b5;
  margin-bottom: 1rem;
}

.footer-grid ul li {
  margin-bottom: 0.45rem;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-contact li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ——— Reveal animation ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-dna {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}

/* ——— Announcement ticker ——— */
.announce-bar {
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 600;
}

.announce-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}

.announce-label svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.announce-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.announce-track {
  display: flex;
  gap: 2.5rem;
  padding: 0.65rem 0;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.announce-track span {
  white-space: nowrap;
  position: relative;
  padding-left: 1.1rem;
}

.announce-track span::before {
  content: "●";
  position: absolute;
  left: 0;
  opacity: 0.7;
  font-size: 0.55rem;
  top: 50%;
  transform: translateY(-45%);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.announce-bar:hover .announce-track {
  animation-play-state: paused;
}

/* ——— Notices & moving info ——— */
.info-ticker-section {
  background: var(--cream);
  padding-bottom: 0;
}

.notices-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Notification image carousel — one slide visible, auto-rotates */
.notice-images {
  margin: 0 0 1.75rem;
}

.notice-images-slider {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--navy-deep);
  box-shadow: 0 12px 32px rgba(6, 20, 40, 0.12);
}

.notice-image-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  color: inherit;
  text-decoration: none;
  cursor: default;
  z-index: 0;
}

a.notice-image-slide {
  cursor: pointer;
}

.notice-image-slide.is-active {
  display: block;
  z-index: 1;
  animation: notice-fade-in 0.55s var(--ease);
}

@keyframes notice-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.notice-image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notice-image-slide::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 20, 40, 0.78) 0%,
    rgba(6, 20, 40, 0.35) 45%,
    rgba(6, 20, 40, 0.2) 100%
  );
  pointer-events: none;
}

.notice-image-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem 1.35rem;
  color: #fff;
  pointer-events: none;
}

.notice-image-caption span {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  line-height: 1.35;
  max-width: 34rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.notice-image-caption em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

a.notice-image-slide:hover .notice-image-caption em,
a.notice-image-slide:focus-visible .notice-image-caption em {
  background: var(--green);
  border-color: var(--green);
}

.notice-images-controls {
  position: absolute;
  right: 0.85rem;
  top: 0.85rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.notice-images-prev,
.notice-images-next {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(6, 20, 40, 0.55);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.notice-images-prev:hover,
.notice-images-next:hover {
  background: var(--green);
  border-color: var(--green);
}

.notice-images-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.2rem;
}

.notice-images-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.notice-images-dot.is-active {
  width: 20px;
  border-radius: 999px;
  background: #fff;
}

.notice-images-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.notice-images-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), #3db87a);
}

.notice-images-slider.is-playing .notice-images-progress span {
  animation: notice-progress 5s linear forwards;
}

@keyframes notice-progress {
  from { width: 0%; }
  to { width: 100%; }
}

@media (max-width: 720px) {
  .notice-images-slider {
    height: 190px;
  }

  .notice-image-caption {
    padding: 0.9rem 1rem 1.1rem;
  }

  .notice-image-caption em {
    display: none;
  }

  .notice-images-controls {
    top: auto;
    bottom: 2.75rem;
    right: 0.65rem;
  }
}

.notice-panel {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.notice-panel-alt {
  border-top: 3px solid var(--green);
}

.notice-panel:not(.notice-panel-alt) {
  border-top: 3px solid var(--accent);
}

.notice-panel-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, #fafbfc, var(--white));
  border-bottom: 1px solid var(--line);
}

.notice-panel-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 0.15rem;
}

.notice-panel-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.notice-bell {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(196, 30, 30, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  animation: bell-soft 2.4s ease-in-out infinite;
}

.notice-bell-green {
  background: var(--green-soft);
  color: var(--green);
}

.notice-bell svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bell-soft {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(12deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(6deg); }
  40% { transform: rotate(0deg); }
}

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  max-height: 340px;
  overflow: hidden;
}

.notice-list li {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid var(--line);
  animation: notice-in 0.6s var(--ease) both;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list li:nth-child(2) { animation-delay: 0.08s; }
.notice-list li:nth-child(3) { animation-delay: 0.16s; }
.notice-list li:nth-child(4) { animation-delay: 0.24s; }

@keyframes notice-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}

.notice-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(26, 92, 58, 0.12);
}

.notice-dot-hot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 30, 30, 0.15);
  animation: pulse-dot 1.6s ease-out infinite;
}

.notice-dot-info {
  background: #2c5282;
  box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.15);
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(196, 30, 30, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(196, 30, 30, 0); }
}

.notice-list strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.notice-list p {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.notice-list time {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
}

.moving-info {
  background: var(--navy-deep);
  color: var(--white);
  padding: 1.1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.moving-row {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.moving-row + .moving-row {
  margin-top: 0.65rem;
}

.moving-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.moving-track-reverse {
  animation: marquee-reverse 50s linear infinite;
}

.moving-track span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.moving-row-b .moving-track span {
  background: rgba(26, 92, 58, 0.35);
  border-color: rgba(159, 212, 181, 0.25);
  color: #c8edd6;
}

@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.moving-info:hover .moving-track {
  animation-play-state: paused;
}

/* ——— Banner slider ——— */
.banner-slider {
  position: relative;
  height: min(78vh, 640px);
  overflow: hidden;
  background: var(--navy-deep);
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.banner-slide.active img {
  transform: scale(1);
}

.banner-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 20, 40, 0.92) 0%,
    rgba(10, 31, 61, 0.72) 42%,
    rgba(26, 92, 58, 0.45) 100%
  );
}

.banner-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 4rem 0 4.5rem;
  color: var(--white);
}

.banner-caption .eyebrow {
  color: #9fd4b5;
}

.banner-caption h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  max-width: 16ch;
  margin: 0.4rem 0 0.75rem;
}

.banner-caption p {
  max-width: 42ch;
  opacity: 0.9;
  margin-bottom: 1.35rem;
  font-size: 1.08rem;
}

.banner-nav {
  position: absolute;
  bottom: 1.5rem;
  right: max(1.25rem, calc((100% - var(--max)) / 2));
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.banner-dot.active,
.banner-dot:hover {
  background: var(--white);
  transform: scale(1.15);
}

.banner-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.banner-arrows button {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(6, 20, 40, 0.45);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s;
}

.banner-arrows button:hover {
  background: rgba(26, 92, 58, 0.85);
}

/* ——— Promo banner (legacy) ——— */
.promo-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 280px;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.promo-banner-text {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-banner-text .date-badge {
  margin-bottom: 0.5rem;
}

.promo-banner-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.65rem;
  line-height: 1.2;
}

.promo-banner-text p {
  opacity: 0.85;
  margin-bottom: 1.35rem;
  max-width: 42ch;
}

.promo-banner-media {
  position: relative;
  min-height: 240px;
}

.promo-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ——— Featured training promo ——— */
.feature-promo {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}

.feature-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(26, 92, 58, 0.35), transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(20, 48, 86, 0.5), transparent 45%);
  pointer-events: none;
}

.feature-promo-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 420px;
  align-items: stretch;
}

.feature-promo-copy {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.feature-promo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.feature-date {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: rgba(196, 30, 30, 0.18);
  border: 1px solid rgba(255, 107, 107, 0.45);
  color: #ff8a8a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.feature-loc {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
}

.feature-promo-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
  line-height: 1.15;
  margin-bottom: 0.85rem;
  max-width: 16ch;
}

.feature-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.35rem;
  max-width: 42ch;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.feature-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
}

.feature-chips strong {
  color: #9fd4b5;
  font-weight: 700;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-actions .btn-primary {
  box-shadow: 0 10px 28px rgba(26, 92, 58, 0.4);
}

.feature-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.feature-promo-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.feature-promo-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    var(--navy-deep) 0%,
    rgba(6, 20, 40, 0.35) 28%,
    transparent 55%
  );
  pointer-events: none;
}

.feature-promo-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent 55%,
    rgba(6, 20, 40, 0.55) 100%
  );
  pointer-events: none;
}

.feature-promo-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: scale(1.06);
  transition: transform 8s ease;
}

.feature-promo:hover .feature-promo-visual img {
  transform: scale(1.12);
}

.feature-promo-badge {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  border-left: 4px solid var(--green);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: badge-float 4s ease-in-out infinite;
}

.feature-promo-badge span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.15rem;
}

.feature-promo-badge strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Stats under promo */
.feature-stats {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10, 31, 61, 0.95), var(--navy));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(159, 212, 181, 0.35);
  transform: translateY(-3px);
}

.stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(26, 92, 58, 0.35);
  color: #9fd4b5;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: hidden;
}

.stat-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.stat-card .stat-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
}

/* ——— Message / Director ——— */
.message-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.message-photo {
  position: relative;
  min-height: 360px;
  background: var(--navy);
}

.message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.message-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 20, 40, 0.55), transparent 50%);
}

.message-body {
  padding: 2.75rem 2.5rem;
}

.message-body blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  color: var(--navy);
  font-style: italic;
  margin: 1rem 0 1.25rem;
  quotes: none;
}

.message-body .msg-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.message-sign {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.message-sign strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.1rem;
}

.message-sign span {
  font-size: 0.9rem;
  color: var(--green);
  font-weight: 600;
}

/* ——— Image gallery ——— */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 0.85rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(6, 20, 40, 0.85));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ——— Home news cards ——— */
.news-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.news-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10, 31, 61, 0.1);
}

.news-card-img {
  height: 180px;
  overflow: hidden;
  background: var(--navy);
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.news-card:hover .news-card-img img {
  transform: scale(1.05);
}

.news-card-body {
  padding: 1.35rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-meta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.news-card p {
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1rem;
}

.news-card .link-arrow {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
}

/* ——— Registration ——— */
.reg-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.reg-info {
  padding: 2rem;
  background: var(--navy);
  color: var(--white);
}

.reg-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.reg-info p {
  opacity: 0.88;
  margin-bottom: 1.25rem;
}

.reg-info .check-list li {
  color: rgba(255, 255, 255, 0.92);
}

.reg-info .check-list li::before {
  background: var(--green-light);
}

.reg-form-wrap {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.reg-form-wrap h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.reg-form-wrap > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.reg-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.reg-form .full {
  grid-column: 1 / -1;
}

.reg-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.reg-form input,
.reg-form select,
.reg-form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--cream);
  border-radius: 4px;
  color: var(--ink);
}

.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  background: var(--white);
}

.reg-form textarea {
  min-height: 100px;
  resize: vertical;
}

.alert {
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.alert-success {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(26, 92, 58, 0.25);
}

.alert-error {
  background: #fde8e8;
  color: var(--accent);
  border: 1px solid rgba(196, 30, 30, 0.25);
}

/* ——— Image feature strip ——— */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-img {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.feature-img .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 20, 40, 0.88) 0%, rgba(6, 20, 40, 0.2) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: var(--white);
}

.feature-img h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.feature-img p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .header-trust { display: none; }
  .main-nav a,
  .main-nav .nav-link {
    font-size: 0.72rem;
    padding: 0.8rem 0.3rem;
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }

  .header-nav-row {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    box-shadow: 0 16px 36px rgba(10, 31, 61, 0.25);
    max-height: min(70vh, 480px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header-nav-row.open { display: block; }
  .site-header { position: relative; }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav > a,
  .main-nav .nav-link {
    flex: none;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.95rem;
    padding: 0.95rem 1.25rem;
    white-space: normal;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 0;
  }

  .main-nav > a.active,
  .main-nav .nav-link.active,
  .main-nav .nav-item.is-active > .nav-link {
    box-shadow: inset 3px 0 0 #7dcea0;
  }

  .main-nav .nav-item {
    flex: none;
    flex-direction: column;
    border-right: none;
    position: relative;
  }

  .main-nav .nav-item .nav-link {
    padding-right: 3rem;
  }

  .main-nav .nav-link .nav-caret {
    display: none;
  }

  .nav-submenu-toggle {
    display: flex;
    position: absolute;
    right: 0.5rem;
    top: 0.55rem;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    z-index: 2;
  }

  .nav-item.open > .nav-submenu-toggle svg {
    transform: rotate(180deg);
  }

  .nav-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    display: none;
    padding: 0;
    min-width: 0;
  }

  .nav-item.open > .nav-submenu {
    display: block;
  }

  .nav-submenu a {
    padding: 0.75rem 1.25rem 0.75rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .dept-grid,
  .dept-showcase,
  .courses-grid { grid-template-columns: repeat(2, 1fr); }

  .course-featured {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .announce-label { display: none; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-cards { grid-template-columns: 1fr 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }

  .gallery-item:first-child {
    grid-row: span 1;
    grid-column: span 2;
  }

  .leader-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-brand-inner {
    gap: 0.75rem;
    min-height: 4rem;
  }

  .header-brand-right {
    gap: 0.65rem;
    flex-shrink: 1;
    min-width: 0;
  }

  .brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .header-cta {
    padding: 0.55rem 0.8rem;
    font-size: 0.75rem !important;
  }

  .stats,
  .info-row,
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  .split,
  .contact-grid,
  .leader-grid,
  .notices-layout,
  .promo-banner,
  .feature-promo-main,
  .message-section,
  .reg-layout,
  .feature-strip,
  .why-grid,
  .reg-form { grid-template-columns: 1fr; }

  .feature-promo-main { min-height: 0; }
  .feature-promo-visual { min-height: 240px; }

  .feature-promo-visual::before {
    background: linear-gradient(180deg, var(--navy-deep) 0%, transparent 40%);
  }

  .feature-promo-copy {
    max-width: none;
    padding: 1.75rem 1.25rem;
  }

  .hero-dna {
    opacity: 0.08;
    width: min(55vw, 280px);
  }

  .banner-slider { height: min(62vh, 440px); }
  .message-photo { min-height: 240px; }
  .message-body { padding: 1.75rem 1.25rem; }

  .reg-info,
  .reg-form-wrap { padding: 1.35rem 1.15rem; }

  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero h1 { max-width: none; }

  .topbar-loc { display: none; }

  .topbar-url {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .section { padding-block: clamp(2.5rem, 6vw, 4rem); }

  .btn-row,
  .hero-actions,
  .courses-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .btn-row .btn,
  .hero-actions .btn,
  .courses-cta .btn { margin-left: 0 !important; }
}

@media (max-width: 560px) {
  .dept-grid,
  .module-grid,
  .stats,
  .stats-row,
  .info-row,
  .why-grid,
  .footer-grid,
  .news-cards,
  .gallery-grid,
  .reg-form,
  .feature-strip,
  .dept-showcase,
  .courses-grid,
  .leader-grid { grid-template-columns: 1fr; }

  .courses-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .courses-cta .btn {
    width: 100%;
    text-align: center;
  }

  .gallery-item:first-child { grid-column: span 1; }
  .gallery-grid { grid-template-rows: none; }
  .gallery-item { min-height: 180px; }
  .news-item { grid-template-columns: 1fr; }

  .hero { min-height: auto; }
  .hero-content { padding: 2.25rem 0 2.75rem; }

  .hero h1,
  .banner-caption h2 { font-size: clamp(1.55rem, 7vw, 2.1rem); }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
  }

  .brand-text strong { font-size: 1.05rem; }
  .brand-text span {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .header-cta {
    font-size: 0 !important;
    padding: 0.55rem 0.7rem;
    min-width: 44px;
    min-height: 40px;
  }

  .header-cta::after {
    content: "Register";
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .topbar { font-size: 0.72rem; }
  .topbar-links a[href^="mailto"] { display: none; }

  .banner-slider { height: min(58vh, 380px); }
  .banner-caption { padding: 1.25rem 0 1.75rem; }
  .feature-promo-visual { min-height: 200px; }
  .message-photo { min-height: 200px; }

  .reg-form input,
  .reg-form select,
  .reg-form textarea,
  input,
  select,
  textarea {
    font-size: 16px !important;
    max-width: 100%;
  }

  .site-top,
  .site-header,
  .header-brand-row,
  .header-nav-row,
  .banner-slider,
  .section,
  .page-hero,
  main,
  footer {
    max-width: 100%;
    overflow-x: clip;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}