/* ==========================================================================
   Sipalu Skills Institute — Design tokens
   ========================================================================== */

:root {
  /* Color — navy / white / faint blue / gold palette */
  --ink: #1B2A64;
  --ink-soft: #4D5A85;
  --paper: #FFFFFF;
  --paper-dark: #EAF2FB;
  --paper-darker: #D6E6F7;
  --amber: #D9A441;
  --amber-dark: #B8862E;
  --rust: #96650B;
  --steel: #5A6A94;
  --steel-light: #8E9CC0;
  --line: rgba(27, 42, 100, 0.14);
  --line-strong: rgba(27, 42, 100, 0.28);
  --paper-rgb: 255, 255, 255;

  /* Type */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}

h1 { font-weight: 600; }
h2 { font-weight: 500; }

p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.eyebrow::before {
  content: '';
  width: 1.4em;
  height: 2px;
  background: var(--rust);
  display: inline-block;
}

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  scroll-margin-top: 78px;
}

.section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }

.section--paper-dark { background: var(--paper-dark); }

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }

.section-head {
  max-width: 800px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-top: 0.6rem;
}

.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section--ink .section-head p { color: var(--steel-light); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9em 1.5em;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translate(-2px, -2px); }

.btn--primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--amber);
}

.btn--primary:hover { box-shadow: 6px 6px 0 var(--amber); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.section--ink .btn--ghost { border-color: var(--steel-light); color: var(--paper); }

.btn--ghost:hover { background: rgba(22,35,46,0.06); }

.section--ink .btn--ghost:hover { background: rgba(238,230,211,0.08); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-direction: row;
}

.brand-logo {
  height: 68px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.brand-mark span { color: var(--amber); }

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--steel-light);
  margin-top: 3px;
}

.brand-motto {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--amber);
  margin-top: 2px;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-list a {
  position: relative;
  padding: 0.4em 0;
  color: var(--paper);
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--amber);
  transition: right 0.2s ease;
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { right: 0; }

.nav-list a[aria-current="page"] { color: var(--amber); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* CTA button inside the navy navbar needs to invert to gold — a navy
   primary button would be invisible against the navy bar itself. */
.site-header .btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  box-shadow: none;
}

.site-header .btn--primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  box-shadow: none;
  transform: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--paper);
  border-radius: var(--radius);
  width: 42px;
  height: 38px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span { top: 18px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 480px) {
  .brand-logo { height: 52px; }
  .brand-tag { display: none; }
  .brand-motto { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed;
    inset: 92px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    padding: 2rem var(--gutter);
    gap: 1.6rem;
    font-size: 1.1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-list a {
    color: var(--ink);
  }
  .nav-list a[aria-current="page"] {
    color: var(--rust);
  }
  .nav-list.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-actions .btn--primary { display: none; }
}

/* ==========================================================================
   Hero — blueprint grid + registration marks
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
  var(--paper-dark);
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  position: relative;
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
}

.crop-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--steel);
  opacity: 0.55;
}

.crop-mark--tl { top: 18px; left: var(--gutter); border-right: none; border-bottom: none; }
.crop-mark--tr { top: 18px; right: var(--gutter); border-left: none; border-bottom: none; }
.crop-mark--bl { bottom: 18px; left: var(--gutter); border-right: none; border-top: none; }
.crop-mark--br { bottom: 18px; right: var(--gutter); border-left: none; border-top: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-top: 1rem;
}

.hero-title .measure {
  display: block;
  position: relative;
  padding-bottom: 0.15em;
}

.hero-title .measure::after {
  content: attr(data-measure);
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: none;
}

.hero-lede {
  margin-top: 1.6rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-panel {
  border: 1.5px solid var(--ink);
  background: rgba(var(--paper-rgb), 0.6);
  padding: 1.6rem;
  position: relative;
}

.hero-panel::before {
  content: 'FIELD NOTES';
  position: absolute;
  top: -0.7em;
  left: 1.4rem;
  background: var(--paper);
  padding: 0 0.6em;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.hero-panel li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: baseline;
}

.hero-panel .stat {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--rust);
  line-height: 1;
}

.hero-panel .stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ==========================================================================
   Certificate-ticket cards — signature component
   ========================================================================== */

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.ticket {
  position: relative;
  background: var(--paper);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ticket:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 6px 8px 0 rgba(22,35,46,0.08);
}

/* torn-stub notch */
.ticket::before,
.ticket::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  background: var(--paper);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.ticket::before { left: -12px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ticket::after { right: -12px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

.ticket-seal {
  align-self: flex-start;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  flex-shrink: 0;
}

.ticket-seal svg { width: 26px; height: 26px; stroke: var(--rust); }

.ticket h3 {
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.ticket p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.ticket-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  text-transform: uppercase;
}

/* ==========================================================================
   Feature list (why choose us / values)
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border: 1px solid var(--line-strong);
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--paper);
  padding: 2rem 1.8rem;
}

.section--ink .feature { background: var(--ink); }
.section--ink .feature-grid { background: rgba(238,230,211,0.18); border-color: rgba(238,230,211,0.18); }

.feature .eyebrow { margin-bottom: 0.8rem; }

.feature h3 { font-size: 1.05rem; margin-top: 0.4rem; }

.feature p { margin-top: 0.7rem; color: var(--ink-soft); font-size: 0.95rem; }

.section--ink .feature p { color: var(--steel-light); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-filters button {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  padding: 0.5em 1.1em;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-filters button.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.4rem;
}

.gallery-card {
  display: block;
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--paper-darker);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease;
}

.gallery-card:hover { transform: translateY(-3px); }

.gallery-card-image {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-dark);
}

.gallery-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card-title {
  display: block;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* Uniform thumbnail grid inside the "View Photos" modal */
.lightbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}

.lightbox-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
}

.lightbox-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease;
}

.lightbox-item:hover img { transform: scale(1.06); }

.gallery-modal {
  max-width: 720px;
}

/* Video embeds inside the modal */
.gallery-video-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.2rem;
}

.gallery-video-embed {
  position: relative;
  aspect-ratio: 16/9;
}

.gallery-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Full-size single-photo lightbox */
.photo-lightbox {
  border: none;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  max-width: 92vw;
  max-height: 92vh;
}

.photo-lightbox::backdrop {
  background: rgba(22,35,46,0.85);
}

.photo-lightbox img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
}

.photo-lightbox .course-modal-close {
  top: -14px;
  right: -14px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info dl {
  display: grid;
  gap: 1.4rem;
  margin: 0 0 2rem;
}

.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
}

.contact-info dd {
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
}

.social-row {
  display: flex;
  gap: 0.9rem;
}

.social-row a {
  width: 42px; height: 42px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.social-row a:hover { background: var(--ink); color: var(--paper); }

.social-row svg { width: 18px; height: 18px; }

.map-frame {
  border: 1.5px solid var(--line-strong);
  aspect-ratio: 16/10;
  width: 100%;
  margin-top: 2rem;
}

.form-field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--rust);
}

.form-field textarea { resize: vertical; min-height: 120px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.5rem, 6vw, 4rem) 0 1.6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(238,230,211,0.18);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-grid h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.footer-grid a:hover { color: var(--amber); }

.footer-bottom {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel-light);
}

/* ==========================================================================
   Notice ticker
   ========================================================================== */

.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(238,230,211,0.15);
}

.ticker-inner {
  display: inline-flex;
  padding: 0.55rem 0;
  animation: ticker-scroll 32s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
  .ticker { overflow-x: auto; }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0 2.2rem;
  position: relative;
}

.ticker-item::before {
  content: '\25CF';
  color: var(--amber);
  font-size: 0.5rem;
  margin-right: 0.7rem;
  vertical-align: middle;
}

/* ==========================================================================
   Hero quick-inquiry widget
   ========================================================================== */

.inquiry-panel {
  border: 1.5px solid var(--ink);
  background: rgba(var(--paper-rgb), 0.7);
  padding: 1.6rem;
  position: relative;
}

.inquiry-panel::before {
  content: 'QUICK INQUIRY';
  position: absolute;
  top: -0.7em;
  left: 1.4rem;
  background: var(--paper);
  padding: 0 0.6em;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.inquiry-panel p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.inquiry-panel .form-field { margin-bottom: 1rem; }

.inquiry-panel .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   About section (image + copy)
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-media {
  position: relative;
  aspect-ratio: 4/5;
  border: 1.5px solid var(--line-strong);
  background:
    repeating-linear-gradient(45deg, var(--paper-dark), var(--paper-dark) 10px, var(--paper-darker) 10px, var(--paper-darker) 20px);
}

.about-media .badge {
  position: absolute;
  bottom: -1rem; left: -1rem;
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 1.3rem;
  font-family: var(--font-display);
  text-align: center;
  line-height: 1.1;
  border: 1.5px solid var(--amber);
}

.about-media .badge strong {
  display: block;
  font-size: 1.6rem;
  color: var(--amber);
}

.about-media .badge span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.check-list svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  stroke: var(--rust);
  margin-top: 0.2em;
}

.about-content-panel {
  display: none;
}

.about-content-panel.is-active {
  display: block;
}

.about-full-content {
  margin-top: 1.2rem;
}

.about-full-content p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.about-pillar-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-pillar-grid.is-active {
  display: grid;
}

.about-see-less-wrap {
  display: none;
}

.about-see-less-wrap.is-active {
  display: block;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-pillar {
  background: var(--paper-dark);
  border: 1.5px solid var(--paper-darker);
  border-radius: 14px;
  padding: 1.6rem;
}

.about-pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.about-pillar-icon svg { width: 22px; height: 22px; stroke: var(--ink); }

.about-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 0.6rem;
}

.about-pillar p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .about-pillar-grid {
    grid-template-columns: 1fr;
  }
}

.about-flow {
  overflow: hidden; /* clearfix — contains the float so the section doesn't collapse to zero height */
}

.about-flow .about-media {
  float: left;
  width: 42%;
  margin-right: 1.5rem;
  margin-bottom: 2.5rem;
  margin-top: 20px;
}

@media (max-width: 860px) {
  .about-flow .about-media {
    float: none;
    width: 100%;
    margin-right: 0;
  }
}

.about-pillar-grid,
.about-see-less-wrap {
  clear: both;
}

/* ==========================================================================
   Faculty cards
   ========================================================================== */

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.6rem;
}

.faculty-card {
  text-align: center;
}

.faculty-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background:
    repeating-linear-gradient(45deg, var(--paper-dark), var(--paper-dark) 6px, var(--paper-darker) 6px, var(--paper-darker) 12px);
  border: 2px solid var(--rust);
}

.faculty-card h3 { font-size: 1.05rem; }

.faculty-card .role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--rust);
  text-transform: uppercase;
  margin-top: 0.4rem;
  display: block;
}

.faculty-card .trade {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Testimonials — horizontal carousel
   ========================================================================== */

.testimonial-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-track {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1.5px solid var(--line);
  padding: 1.8rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--amber);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}

.testimonial-card p.quote {
  font-size: 0.98rem;
  color: var(--ink-soft);
  min-height: 96px;
}

.testimonial-person {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  flex-shrink: 0;
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-person strong { display: block; font-size: 0.92rem; }
.testimonial-person span { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel); margin-top: 0.2rem; }

.testimonial-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.testimonial-nav:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

@media (max-width: 640px) {
  .testimonial-nav { display: none; } /* native swipe handles it on touch screens */
  .testimonial-card { flex-basis: 82vw; }
}

/* ==========================================================================
   Top contact bar
   ========================================================================== */

.topbar {
  background: var(--ink);
  color: var(--steel-light);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem var(--gutter);
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar-info a:hover { color: var(--amber); }

.topbar-social { display: flex; gap: 0.8rem; }
.topbar-social a { display: flex; }
.topbar-social svg { width: 15px; height: 15px; }
.topbar-social a:hover { color: var(--amber); }

@media (max-width: 640px) { .topbar-social { display: none; } }

/* ==========================================================================
   Notice ticker
   ========================================================================== */

.notice-ticker {
  background: var(--amber);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
}

.notice-ticker .wrap { display: flex; align-items: center; padding: 0.55rem 0; gap: 1rem; }

.notice-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--amber);
  padding: 0.3em 0.7em;
  flex-shrink: 0;
}

.notice-track-wrap { overflow: hidden; flex: 1; }

.notice-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.notice-track span { white-space: nowrap; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.notice-ticker:hover .notice-track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .notice-track { animation: none; }
  .notice-track-wrap { overflow-x: auto; }
}

/* ==========================================================================
   Quick inquiry card (hero)
   ========================================================================== */

.quick-inquiry {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 1.6rem;
  margin-top: 1.4rem;
  box-shadow: 5px 5px 0 rgba(22,35,46,0.1);
}

.quick-inquiry h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.quick-inquiry p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}

.quick-inquiry .form-field { margin-bottom: 0.9rem; }
.quick-inquiry .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   About media block
   ========================================================================== */

.about-media {
  position: relative;
  border: 1.5px solid var(--ink);
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(45deg, var(--paper-dark), var(--paper-dark) 10px, var(--paper-darker) 10px, var(--paper-darker) 20px);
  display: flex;
  align-items: flex-end;
}

.about-media-badge {
  position: absolute;
  top: -14px;
  right: -18px;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 3px solid var(--paper);
  font-family: var(--font-display);
}

.about-media-badge strong { font-size: 1.3rem; line-height: 1; }
.about-media-badge span { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.2rem; }

.about-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.about-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.about-list svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.2rem; stroke: var(--rust); }

/* ==========================================================================
   Faculty
   ========================================================================== */

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.6rem;
}

.faculty-card {
  border: 1.5px solid var(--line-strong);
  padding: 1.6rem;
  text-align: center;
}

.faculty-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--paper-dark);
  border: 1.5px solid var(--ink);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--rust);
}

.faculty-card h3 { font-size: 1.05rem; }
.faculty-card .eyebrow { margin: 0.5rem 0; justify-content: center; }
.faculty-card .eyebrow::before { display: none; }
.faculty-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.testimonial-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  padding: 1.8rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--amber);
  line-height: 1;
  display: block;
  margin-bottom: 0.4rem;
}

.testimonial-card p.quote {
  font-size: 0.98rem;
  color: var(--ink-soft);
  min-height: 96px;
}

.testimonial-person {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.testimonial-person strong { display: block; font-size: 0.92rem; }
.testimonial-person span { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel); margin-top: 0.2rem; }

/* ==========================================================================
   News
   ========================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

.news-card {
  border: 1.5px solid var(--line-strong);
  display: flex;
  flex-direction: column;
}

.news-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.news-card-body h3 { font-size: 0.95rem; }
.news-card-body p { font-size: 0.85rem; color: var(--ink-soft); }
.news-card-body .btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Hero feature diamonds — diagonal, curved-edge highlight cards
   ========================================================================== */

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.2rem;
}

.feature-diamond {
  transform: skewX(-8deg);
  border: 1.5px solid var(--paper-darker);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--paper-dark);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-diamond:hover {
  transform: skewX(-8deg) translateY(-4px);
  border-color: var(--amber);
  box-shadow: 6px 8px 0 var(--paper-darker);
}

.hero-features > .feature-diamond:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

.hero-features > .feature-diamond:nth-child(2) {
  grid-column: 2 / 4;
  grid-row: 2;
}

.hero-features > .feature-diamond:nth-child(3) {
  grid-column: 1 / 3;
  grid-row: 3;
}

.hero-features > .feature-diamond:nth-child(4) {
  grid-column: 2 / 4;
  grid-row: 4;
}

.feature-diamond-inner {
  transform: skewX(8deg);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.feature-diamond-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-diamond-icon svg { width: 20px; height: 20px; stroke: var(--ink); }

.feature-diamond-inner h4 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.15;
}

.feature-diamond-inner p {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0;
  margin-top: 0.4rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .hero-features {
    grid-template-columns: 1fr;
  }
  .hero-features > .feature-diamond:nth-child(1),
  .hero-features > .feature-diamond:nth-child(2),
  .hero-features > .feature-diamond:nth-child(3),
  .hero-features > .feature-diamond:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 480px) {
  .feature-diamond { transform: skewX(-4deg); }
  .feature-diamond:hover { transform: skewX(-4deg) translateY(-4px); }
  .feature-diamond-inner { transform: skewX(4deg); padding: 1rem; }
}
/* ==========================================================================
   Training type cards — Paid / Free (hardcoded section above Programs)
   ========================================================================== */

.training-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.8rem;
}

@media (max-width: 720px) {
  .training-type-grid { grid-template-columns: 1fr; }
}

.training-type-card {
  background: var(--paper);
  border: 1.5px solid var(--paper-darker);
  border-radius: 14px;
  padding: 1.8rem;
}

.training-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.training-type-icon svg { width: 22px; height: 22px; stroke: var(--ink); }

.training-type-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
}

.training-type-card-content > p {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.training-type-card.is-hidden-sibling {
  display: none;
}

.training-type-card.is-expanded {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2.2rem;
  align-items: start;
}

.training-see-more {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  padding: 0;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.training-see-more::after { content: '+'; font-size: 1rem; line-height: 1; }

.training-type-card.is-expanded .training-see-more {
  display: none;
}

.training-type-expanded {
  display: none;
}

.training-type-card.is-expanded .training-type-expanded {
  display: block;
}

.training-type-expanded p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.training-collapse {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rust);
  padding: 0;
}

@media (max-width: 640px) {
  .training-type-card.is-expanded {
    grid-template-columns: 1fr;
  }
}

.training-type-details {
  margin-top: 1rem;
}

.training-type-details summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.training-type-details summary::-webkit-details-marker { display: none; }

.training-type-details summary::after {
  content: '+';
  font-size: 1rem;
  line-height: 1;
}

.training-type-details[open] summary::after { content: '\2212'; }

.training-type-details p {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.training-type-expanded p {
  margin-bottom: 1rem;
}

.training-type-expanded p:last-of-type {
  margin-bottom: 0;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Sector boxes — click a sector to expand its courses below
   ========================================================================== */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

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

@media (max-width: 480px) {
  .sector-grid {
    grid-template-columns: 1fr;
  }
}

.sector-box {
  background: var(--paper);
  border: 1.5px solid var(--paper-darker);
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.sector-box:hover { transform: translateY(-2px); }

.sector-box.is-active {
  background: var(--ink);
  border-color: var(--ink);
}

.sector-box-desc {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.sector-box.is-active .sector-box-desc { color: var(--steel-light); }

.sector-box-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.sector-duration-tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.3em 0.7em;
  border-radius: 20px;
  background: var(--paper-dark);
  color: var(--ink);
  border: 1px solid var(--paper-darker);
  white-space: nowrap;
}

.sector-box.is-active .sector-duration-tag {
  background: rgba(255,255,255,0.12);
  color: var(--paper);
  border-color: rgba(255,255,255,0.25);
}

.sector-box-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.sector-box.is-active .sector-box-name { color: var(--paper); }

.sector-box-count {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
}

.sector-split {
  display: none; /* JS sets to 'grid' when a sector is picked */
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}

.sector-back-link {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rust);
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.5rem;
}

.sector-panel {
  display: none;
}

.sector-panel.is-active {
  display: block;
  animation: sector-expand 0.25s ease;
}

.sector-panel-title {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.sector-switcher {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--paper-dark);
  border: 1.5px solid var(--paper-darker);
  border-radius: 14px;
  padding: 1.2rem;
}

.sector-switcher-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.4rem;
}

.sector-switch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: var(--paper);
  border: 1.5px solid var(--paper-darker);
  border-radius: 8px;
  padding: 0.7em 0.9em;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.sector-switch-item span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
}

.sector-switch-item.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.sector-switch-item.is-active span {
  color: var(--amber);
}

@media (max-width: 860px) {
  .sector-split {
    grid-template-columns: 1fr;
  }
  .sector-switcher {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    top: auto;
  }
  .sector-switch-item {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
.course-modal {
  border: none;
  border-radius: 16px;
  padding: 2rem;
  max-width: 560px;
  width: 90vw;
  box-shadow: 0 20px 60px rgba(22,35,46,0.25);
}

.course-modal::backdrop {
  background: rgba(22,35,46,0.55);
}

.course-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--paper-darker);
  background: var(--paper);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.course-modal-title {
  font-size: 1.4rem;
  margin-top: 0.6rem;
}

.course-modal-short {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.course-modal-body {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.course-modal-body p { margin-bottom: 1em; }
.course-modal-body ul, .course-modal-body ol { margin: 0 0 1em 1.2em; }

.gallery-view-btn {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  background: var(--amber);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.5em 0.9em;
  cursor: pointer;
}

.gallery-video-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.2rem;
}

.gallery-video-embed {
  position: relative;
  aspect-ratio: 16/9;
}

.gallery-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.course-modal {
  max-width: 720px; /* wider than the course modal, since this holds a photo grid */
}

/* Fallback icon shown when a News/Blog post has no featured image */
.news-media-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--paper-dark);
}

.news-media-fallback svg {
  width: 42px;
  height: 42px;
  stroke: var(--steel);
}

.news-media {
  position: relative;
}

.news-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card {
  min-width: 0;
}

.is-hidden-filter,
.is-hidden-page {
  display: none !important;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.page-btn:hover {
  border-color: var(--amber);
}

.page-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5.6rem;
  max-width: 700px;
  margin: 0 auto;
}

.team-card {
  background: var(--paper);
  border: 1.5px solid var(--paper-darker);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 8px 0 var(--paper-dark);
}

.team-photo-frame {
  aspect-ratio: 4 / 5;
  background: var(--paper-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--amber);
}

.team-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.team-card-body {
  padding: 1.1rem;
  text-align: center;
}

.team-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
  margin: 0;
}

.team-position {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--rust);
}

.team-position::before,
.team-position::after {
  content: '';
  width: 1px;
  height: 14px;
  background: var(--rust);
}