/* ==========================================================================
   Yachting Education — Pure CSS3 Maritime Editorial Design System
   Zero frameworks, zero build steps, WCAG AA/AAA accessible, SEO-ready.
   ========================================================================== */

/* ---------- Self-Hosted Fonts (assets/fonts/) ---------- */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/eb-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../assets/fonts/eb-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/eb-garamond-italic-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/eb-garamond-italic-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Admiralty Palette */
  --navy-950: #071325;
  --navy-900: #0B1D36;
  --navy-800: #142F56;
  --navy-700: #1E447A;
  --navy-100: #EBF0F7;

  /* Nautical Accents */
  --brass: #B38A42;
  --brass-dark: #8E6A2C;
  --brass-light: #DFC388;
  --crimson: #C62828;
  --crimson-dark: #9E1F1F;

  /* Surfaces & Neutrals */
  --paper: #FFFFFF;
  --ivory: #F6F4EF;
  --ivory-deep: #EDE9E0;
  --ink: #162233;
  --slate: #4A5A70;
  --muted: #66758B;
  --border: rgba(11, 29, 54, 0.12);
  --border-strong: rgba(11, 29, 54, 0.22);

  /* Typography */
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout & Rhythm */
  --container: 1200px;
  --container-narrow: 860px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(7, 19, 37, 0.06);
  --shadow-md: 0 10px 30px rgba(7, 19, 37, 0.09);
  --shadow-lg: 0 22px 50px rgba(7, 19, 37, 0.16);
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--navy-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--brass-dark);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.18;
  margin-top: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}

h1 { font-size: clamp(2.35rem, 4.4vw, 3.85rem); }
h2 { font-size: clamp(1.85rem, 3.1vw, 2.75rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.4rem; }

p {
  margin-top: 0;
  margin-bottom: 1.15rem;
  color: var(--slate);
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 1.35rem;
  color: var(--slate);
}

li {
  margin-bottom: 0.45rem;
}

blockquote {
  margin: 1.75rem 0;
  padding: 1.35rem 1.75rem;
  border-left: 3px solid var(--brass);
  background: var(--ivory);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-style: italic;
  color: var(--navy-900);
  line-height: 1.5;
}

blockquote cite {
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-dark);
}

/* ---------- Accessibility Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--navy-900);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.15rem, 3vw, 2rem);
  padding-right: clamp(1.15rem, 3vw, 2rem);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: clamp(3.5rem, 6.5vw, 5.75rem) 0;
}

.section-sm {
  padding: clamp(2.25rem, 4vw, 3.5rem) 0;
}

.bg-ivory {
  background-color: var(--ivory);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bg-navy {
  background-color: var(--navy-900);
  color: rgba(255, 255, 255, 0.88);
}

.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 {
  color: var(--paper);
}

.bg-navy p, .bg-navy li {
  color: rgba(255, 255, 255, 0.78);
}

.bg-navy a {
  color: var(--brass-light);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 0.75rem;
}

.bg-navy .kicker, .hero .kicker, .page-hero .kicker {
  color: var(--brass-light);
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-header.text-center .kicker::after {
  content: "";
  width: 24px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

.lead {
  font-size: clamp(1.06rem, 1.4vw, 1.22rem);
  line-height: 1.68;
  color: var(--slate);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.6rem;
  max-width: 100%;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--crimson);
  color: var(--paper);
  border-color: var(--crimson);
}

.btn-primary:hover {
  background-color: var(--crimson-dark);
  border-color: var(--crimson-dark);
  color: var(--paper);
  box-shadow: 0 6px 18px rgba(198, 40, 40, 0.28);
}

.btn-navy {
  background-color: var(--navy-900);
  color: var(--paper);
  border-color: var(--navy-900);
}

.btn-navy:hover {
  background-color: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}

.btn-outline:hover {
  background-color: var(--navy-900);
  color: var(--paper);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background-color: var(--paper);
  color: var(--navy-900);
  border-color: var(--paper);
}

.btn-sm {
  padding: 0.56rem 1.15rem;
  font-size: 0.84rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* ---------- Top Utility Bar & Sticky Header ---------- */
.top-bar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--brass-light);
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 82px;
  padding: 0.55rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.rya-header-badge {
  height: 34px;
  width: auto;
  padding-left: 0.8rem;
  border-left: 1px solid var(--border);
  object-fit: contain;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.2rem;
}

.nav-item {
  position: relative;
  margin: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.78rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
  border-radius: var(--radius-sm);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.78rem;
  right: 0.78rem;
  bottom: 0.25rem;
  height: 2px;
  background-color: var(--brass);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-item.active > .nav-link {
  color: var(--navy-900);
  background-color: transparent;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-item.active > .nav-link::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--navy-700);
}

.nav-cta {
  margin-left: 0.75rem;
}

.nav-cta .btn {
  padding: 0.64rem 1.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.015em;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 225px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.45rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1200;
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown:focus-within .dropdown-menu,
.nav-item.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.62rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-900);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.dropdown-menu a:hover,
.dropdown-menu a[aria-current="page"] {
  background: var(--ivory);
  color: var(--brass-dark);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  background: var(--paper);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  cursor: pointer;
}

.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 19, 37, 0.55);
  z-index: 1400;
  backdrop-filter: blur(2px);
}

.mobile-drawer-backdrop.open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--paper);
  z-index: 1500;
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list li {
  margin: 0;
  border-bottom: 1px solid rgba(11, 29, 54, 0.06);
}

.mobile-nav-list a {
  display: block;
  padding: 0.8rem 0.25rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
}

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

.mobile-nav-sub {
  padding-left: 1rem;
  list-style: none;
  margin: 0 0 0.5rem;
}

.mobile-nav-sub li {
  border-bottom: 0;
}

.mobile-nav-sub a {
  padding: 0.48rem 0.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
}

/* ---------- Home Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 76vh, 760px);
  display: flex;
  align-items: flex-end;
  background-color: var(--navy-950);
  overflow: hidden;
  padding: 5.5rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.86;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 19, 37, 0.88) 0%,
    rgba(7, 19, 37, 0.65) 45%,
    rgba(7, 19, 37, 0.14) 100%
  ),
  linear-gradient(
    to top,
    rgba(7, 19, 37, 0.78) 0%,
    rgba(7, 19, 37, 0.1) 42%,
    rgba(7, 19, 37, 0.22) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--paper);
}

.hero-content > * {
  max-width: 650px;
}

.hero h1 {
  color: var(--paper);
  margin-bottom: 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.85rem;
  max-width: 620px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  backdrop-filter: blur(6px);
}

.badge-pill-solid {
  background: var(--navy-100);
  border-color: rgba(11, 29, 54, 0.14);
  color: var(--navy-900);
}

.badge-pill-brass {
  background: rgba(179, 138, 66, 0.14);
  border-color: rgba(179, 138, 66, 0.35);
  color: var(--brass-dark);
}

/* Info Strip below Hero */
.info-strip {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.5rem;
}

.info-strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-left: 2px solid var(--brass);
  padding-left: 0.9rem;
}

.info-strip-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass-light);
  font-weight: 700;
}

.info-strip-value {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--paper);
}

/* ---------- Inner Page Hero ---------- */
.page-hero {
  position: relative;
  background: var(--navy-900);
  color: var(--paper);
  padding: clamp(3.25rem, 6vw, 5rem) 0;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 19, 37, 0.92) 0%, rgba(11, 29, 54, 0.78) 100%);
  z-index: 1;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.page-hero-inner > * {
  max-width: 760px;
}

.page-hero h1 {
  color: var(--paper);
  margin-bottom: 0.8rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.12rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumbs a {
  color: var(--brass-light);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* ---------- Grids & Split Layouts ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}

.grid-2-center {
  align-items: center;
}

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

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

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

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(179, 138, 66, 0.4);
}

.card-media {
  position: relative;
  overflow: hidden;
  background: var(--navy-100);
  aspect-ratio: 16 / 10;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card-hover:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
}

.price-tag {
  font-family: var(--font-sans);
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--navy-900);
  line-height: 1.15;
}

.price-tag small {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Framed Editorial Photo */
.editorial-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--navy-100);
}

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

.editorial-caption {
  padding: 0.75rem 1rem;
  background: var(--paper);
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- Stats Row (Why RYA) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--navy-900);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.45;
}

/* ---------- Syllabus / Course Detail Cards ---------- */
.syllabus-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.syllabus-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.meta-list li {
  background: var(--ivory);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--navy-700);
  margin: 0;
  font-size: 0.92rem;
}

.meta-list strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-900);
  margin-bottom: 0.2rem;
}

/* ---------- Filter Pills & Interactive Schedule ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  padding: 0.52rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--paper);
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--navy-900);
}

.filter-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--paper);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 1.25rem 1.75rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.schedule-row:hover {
  border-color: rgba(179, 138, 66, 0.55);
  box-shadow: var(--shadow-sm);
}

.schedule-date-box {
  background: var(--ivory);
  border-left: 3px solid var(--brass);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
}

.schedule-month {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass-dark);
}

.schedule-days {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--navy-900);
  margin-top: 0.15rem;
}

.schedule-info h3 {
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
}

.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.schedule-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

/* Monthly Course Calendar (js/calendar.js + data/events.json) */
.ye-calendar {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 1.1rem 1.35rem;
  background: var(--navy-900);
  color: #fff;
}

.cal-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.cal-toolbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.cal-nav-btn:hover,
.cal-nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--brass-light);
}

.cal-nav-today {
  font-size: 0.84rem;
  padding: 0 0.9rem;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
}

.cal-weekday {
  padding: 0.65rem 0.5rem;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--border);
  gap: 1px;
}

.cal-cell {
  min-height: 108px;
  padding: 0.45rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cal-cell--outside {
  background: #FAF9F6;
}

.cal-cell--outside .cal-day-num {
  color: rgba(102, 117, 139, 0.5);
}

.cal-cell--today {
  background: #F4F7FB;
}

.cal-day-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.cal-cell--today .cal-day-num > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.78rem;
}

.cal-today-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brass-dark);
}

.cal-day-events {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cal-event {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.28rem 0.45rem;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}

.cal-event:hover,
.cal-event:focus-visible {
  filter: brightness(0.94);
}

.cal-event.is-selected {
  box-shadow: 0 0 0 2px var(--navy-900);
}

.cal-ev-start { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.cal-ev-mid   { border-radius: 0; }
.cal-ev-end   { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Category colors */
.cal-ev-course   { background: var(--navy-800); color: #fff; }
.cal-ev-icc      { background: var(--crimson); color: #fff; }
.cal-ev-offshore { background: var(--brass-dark); color: #fff; }
.cal-ev-private  { background: var(--navy-100); color: var(--navy-900); }

.cal-footer {
  padding: 0.75rem 1.25rem;
  background: var(--ivory);
  border-top: 1px solid var(--border);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
}

.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cal-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-detail-panel {
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.cal-detail-card {
  padding: 1.25rem 1.35rem;
}

.cal-detail-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cal-detail-title {
  margin: 0.45rem 0 0.2rem;
  font-size: 1.25rem;
  color: var(--navy-900);
}

.cal-detail-date {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brass-dark);
}

.cal-detail-meta {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--slate);
}

.cal-detail-notes {
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
  color: var(--ink);
}

.cal-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cal-detail-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--ivory);
  color: var(--navy-900);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.cal-detail-close:hover {
  background: var(--ivory-deep);
}

.cal-empty-note {
  padding: 1rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.cal-month-list {
  padding: 1rem 1.35rem;
}

.cal-month-list-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.cal-month-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cal-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--navy-900);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.cal-summary-chip:hover {
  background: var(--navy-100);
  border-color: var(--navy-700);
}

.cal-loading,
.cal-error {
  padding: 2rem 1.35rem;
  text-align: center;
  color: var(--slate);
}

@media (max-width: 720px) {
  .cal-cell {
    min-height: 76px;
    padding: 0.3rem;
  }
  .cal-today-tag {
    display: none;
  }
  .cal-event {
    font-size: 0.7rem;
    padding: 0.2rem 0.3rem;
  }
}

/* ---------- Photo Gallery & Lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy-100);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
  padding: 0;
  display: block;
  width: 100%;
}

.gallery-item.portrait img {
  object-position: center top;
}

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

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

.gallery-item::after {
  content: "View";
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 0.25rem 0.65rem;
  background: rgba(7, 19, 37, 0.78);
  color: var(--paper);
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
}

/* Lightbox Dialog */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(7, 19, 37, 0.94);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1080px, 92vw);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.85rem;
  font-size: 0.92rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Testimonials ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: var(--brass);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.review-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.score-chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy-900);
}

.review-text {
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.68;
  margin: 0;
}

.review-author {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.review-date {
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Forms (Booking & Contact) ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.form-section-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy-900);
  margin: 1.85rem 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.form-section-title:first-child {
  margin-top: 0;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
}

.form-group .required {
  color: var(--crimson);
}

.form-control {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(30, 68, 122, 0.14);
}

textarea.form-control {
  min-height: 115px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  accent-color: var(--navy-900);
  flex-shrink: 0;
}

.form-status {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: #EDF7F1;
  border: 1px solid #8CCBA6;
  color: #15492B;
}

.form-status.error {
  background: #FDF0F0;
  border: 1px solid #E5A4A4;
  color: #7D1B1B;
}

/* Honeypot anti-spam field (hidden from human visitors) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Legal / Conditions Layout ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.legal-toc h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.83rem;
}

.legal-toc li {
  margin-bottom: 0.32rem;
}

.legal-toc a {
  text-decoration: none;
  color: var(--slate);
  display: block;
  padding: 0.22rem 0.4rem;
  border-radius: 3px;
}

.legal-toc a:hover {
  background: var(--paper);
  color: var(--navy-900);
}

.clause-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.clause-block:last-child {
  border-bottom: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.15rem 0;
  font-size: 0.92rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
}

.data-table th {
  background: var(--navy-900);
  color: var(--paper);
  font-weight: 600;
}

.data-table tr:nth-child(even) td {
  background: var(--ivory);
}

/* ---------- Callout & Notice Boxes ---------- */
.notice-box {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  margin: 1.25rem 0;
}

.notice-box-warn {
  border-left-color: var(--crimson);
  background: #FDF7F7;
}

/* ---------- Instructor Profile ---------- */
.instructor-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.25rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  align-items: start;
}

.instructor-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--navy-100);
}

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

.credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1.25rem;
}

/* Homepage Instructor Preview Cards */
.instructor-preview-grid {
  align-items: stretch;
}

.instructor-preview-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: nowrap;
}

.instructor-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--brass);
}

.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.instructor-preview-meta {
  flex: 1;
  min-width: 0;
}

.instructor-preview-meta p {
  font-size: 0.86rem;
  margin-top: 0.2rem;
  margin-bottom: 0;
}

.instructor-preview-cta {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* ---------- Step Cards (How To Book) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  position: relative;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--brass-light);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--paper);
  padding: clamp(3rem, 5.5vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}

.cta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
}

.cta-banner h2 {
  color: var(--paper);
  margin-bottom: 0.45rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.84);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a {
  color: var(--brass-light);
}

.site-footer a:hover {
  color: var(--paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.15fr;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo-wrap {
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.footer-logo-wrap img {
  height: 26px;
  width: auto;
}

.site-footer h3 {
  color: var(--paper);
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.footer-links li {
  margin-bottom: 0.48rem;
  color: rgba(255, 255, 255, 0.84);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brass-light);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  text-decoration: none;
  transition: background-color var(--transition), border-color var(--transition);
}

.social-link:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--navy-950);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .info-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; max-height: none; }
}

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4, .split-asymmetric, .review-grid, .steps-grid, .stats-grid, .meta-list {
    grid-template-columns: 1fr;
  }
  .instructor-card {
    grid-template-columns: 1fr;
  }
  .instructor-photo {
    max-width: 340px;
  }
  .schedule-row {
    grid-template-columns: 1fr;
  }
  .schedule-action {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .rya-header-badge {
    display: none;
  }
}

@media (max-width: 560px) {
  .top-bar { display: none; }
  .brand-logo { height: 26px; }
  .info-strip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 480px; padding: 3.5rem 0 2.75rem; }
  .btn { white-space: normal; padding: 0.78rem 1.25rem; }
  .btn-group .btn { width: 100%; }
  .instructor-preview-header { flex-direction: column; align-items: flex-start; }
}

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

@media print {
  .top-bar, .site-header, .site-footer, .cta-banner, .btn, .filter-bar, .legal-toc {
    display: none !important;
  }
  body { color: #000; background: #fff; }
}
