/* ===== Pattaya Scuba Club — Global Styles ===== */
:root {
  /* Pattaya palette — deep-sea teal navy + shipwreck rust ("Gateway to Shipwreck").
     Variable names kept from the shared BB Marine template; only values differ. */
  --navy-900: #071c26;
  --navy-800: #0b2836;
  --navy-700: #113a4d;
  --navy-600: #1a5468;
  --cyan-500: #e8792a;
  --cyan-400: #f79b52;
  --cyan-300: #ffc38a;
  --coral: #14b8a6;
  --sand: #f7f0e4;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --text: #10242f;
  --shadow-sm: 0 2px 8px rgba(7, 28, 38, 0.06);
  --shadow-md: 0 8px 24px rgba(7, 28, 38, 0.10);
  --shadow-lg: 0 18px 48px rgba(7, 28, 38, 0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --header-h: 78px;
  --max-w: 1240px;
  --font-display: "Bebas Neue", "Oswald", "Anton", system-ui, sans-serif;
  --font-body: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-800); letter-spacing: .02em; line-height: 1.1; font-weight: 700; }

/* ===== Utility ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 14px;
}
.section { padding: 96px 0; position: relative; }
.section--alt { background: var(--gray-50); }
.section--navy { background: var(--navy-800); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: var(--cyan-400); }
.section-title { font-size: clamp(34px, 5vw, 58px); margin-bottom: 18px; text-transform: uppercase; }
.section-sub { font-size: 17px; color: var(--gray-600); max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section--navy .section-sub { color: rgba(255,255,255,.78); }
.text-center { text-align: center; }
.divider {
  width: 84px; height: 4px; background: var(--cyan-500); margin: 18px auto 26px; border-radius: 4px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px;
  transition: all .25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary { background: var(--cyan-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--cyan-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: var(--white); color: var(--navy-800); border-color: var(--white); }
.btn--dark { background: var(--navy-800); color: var(--white); }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--coral { background: var(--coral); color: var(--white); }
.btn--coral:hover { background: #ff5733; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--small { padding: 10px 20px; font-size: 12px; }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .3s ease;
  height: var(--header-h);
}
.site-header.scrolled { background: rgba(6, 26, 54, 0.98); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); color: var(--white); font-size: 22px; letter-spacing: .08em; text-transform: uppercase; }
/* Horizontal brand lockup (~6.9:1). Cap by width so it never eats the nav. */
.nav__logo img { height: 38px; width: auto; max-width: 270px; display: block; }
.nav__logo span { line-height: 1; }
.nav__logo small { display: block; font-size: 11px; letter-spacing: .3em; color: var(--cyan-400); margin-top: 2px; }
.nav__menu {
  display: flex; align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: nowrap;
}
.nav__menu li { flex: 0 0 auto; }
/* 12 top-level items are carried flat (owner's choice), so the type and the
   horizontal padding are tightened to keep everything on one line. */
.nav__menu a {
  display: block;
  padding: 10px 7px;
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;          /* never break mid-label */
  position: relative;
}
.nav__menu a::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--cyan-500); transition: width .25s ease;
}
.nav__menu a:hover::after, .nav__menu a.is-active::after { width: calc(100% - 14px); }
.nav__menu a:hover { color: var(--cyan-400); }

/* Narrow-desktop tweak: pack tighter before the hamburger kicks in */
@media (max-width: 1280px) and (min-width: 1181px) {
  .nav__menu { gap: 0; }
  .nav__menu a { padding: 10px 9px; font-size: 12px; letter-spacing: .04em; }
  .nav__cta .btn { padding: 10px 14px; font-size: 12px; }
  .nav__logo img { height: 38px; max-width: 180px; }
}
.nav__cta { margin-left: 12px; }
.nav__toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--white); transition: all .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 24px;
    background: var(--navy-900);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: all .3s ease;
    border-top: 1px solid rgba(255,255,255,.08);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__menu li { width: 100%; }
  .nav__menu a { padding: 14px 8px; font-size: 14px; letter-spacing: .08em; border-bottom: 1px solid rgba(255,255,255,.05); width: 100%; white-space: normal; }
  .nav__cta { margin: 16px 0 0; width: 100%; }
  .nav__cta .btn { width: 100%; justify-content: center; }

  /* Mobile: COURSES dropdown becomes inline expanding list */
  .has-dropdown { width: 100%; }
  .has-dropdown > a { display: flex !important; align-items: center; justify-content: space-between; }
  .has-dropdown .dropdown-caret { transition: transform .25s ease; font-size: 12px; }
  .has-dropdown.is-open > a .dropdown-caret { transform: rotate(180deg); }

  /* Override desktop position:absolute → static inline panel */
  .mega-menu {
    position: static !important;
    display: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 0 !important;
  }
  .mega-menu::before { display: none !important; }
  .has-dropdown.is-open > .mega-menu,
  .has-dropdown:focus-within > .mega-menu { display: flex !important; }

  .mega-menu__cats { display: none !important; }   /* hide left-rail on mobile */
  .mega-menu__items {
    padding: 4px 0 !important; min-width: 0 !important; max-width: none !important;
    width: 100%;
  }
  /* Force-show every group; render its category as a header */
  .mega-items { display: block !important; padding: 0 0 8px !important; }
  .mega-items::before {
    content: attr(aria-label);
    display: block;
    padding: 12px 24px 4px;
    color: var(--cyan-400, #5cd6ee);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
  }
  .mega-items a {
    color: rgba(255, 255, 255, .82) !important;
    background: transparent !important;
    padding: 10px 30px !important;
    font-size: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, .04) !important;
  }
  .mega-items a:hover { background: rgba(255, 255, 255, .04) !important; color: var(--cyan-400) !important; }
  .mega-menu__foot {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, .08) !important;
    text-align: center;
    margin-top: 8px;
  }
  .mega-menu__foot a {
    color: var(--cyan-400, #5cd6ee) !important;
    padding: 14px 24px !important;
    width: 100% !important;
    text-align: center;
  }
}

/* ===== Courses mega-menu dropdown ===== */
.has-dropdown { position: relative; }
.dropdown-caret { font-size: 10px; margin-left: 4px; transition: transform .2s ease; opacity: .85; }
.has-dropdown:hover > a .dropdown-caret,
.has-dropdown:focus-within > a .dropdown-caret { transform: rotate(180deg); }

.mega-menu {
  position: absolute; top: 100%; left: 0;
  display: none;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  border-radius: 10px;
  overflow: hidden;
  z-index: 200;
  margin-top: 0;
  min-width: 600px;
  padding-top: 0;
  /* Soften the hover-gap: a transparent bridge sits above the menu */
}
.mega-menu::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.has-dropdown:hover > .mega-menu,
.has-dropdown:focus-within > .mega-menu,
.has-dropdown.is-open > .mega-menu { display: flex; flex-direction: column; }

.mega-menu > .mega-menu__cats,
.mega-menu > .mega-menu__items { flex: 0 0 auto; }
.mega-menu { flex-direction: row !important; }

.mega-menu__cats {
  list-style: none; padding: 14px 0; margin: 0;
  background: var(--gray-50, #f5f7fa);
  min-width: 220px;
  border-right: 1px solid rgba(0, 0, 0, .06);
}
.mega-cat { position: relative; }
.mega-cat a {
  display: flex !important; align-items: center; justify-content: space-between;
  padding: 12px 22px !important;
  color: var(--navy-800, #0e2a4e) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px !important;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-left: 3px solid transparent;
  white-space: nowrap;
  border-bottom: none !important;
  width: auto !important;
}
.mega-cat a::after { display: none !important; }
.mega-cat__caret { font-size: 10px; opacity: .35; transition: opacity .2s, transform .2s; }
.mega-cat:hover a, .mega-cat.is-active a {
  background: var(--white);
  border-left-color: var(--cyan-500, #00b6d6);
  color: var(--navy-900, #071c26) !important;
}
.mega-cat:hover .mega-cat__caret, .mega-cat.is-active .mega-cat__caret {
  opacity: 1;
  color: var(--cyan-500);
}

.mega-menu__items {
  padding: 14px 0;
  min-width: 340px;
  max-width: 380px;
}
.mega-items {
  list-style: none; padding: 0; margin: 0;
  display: none;
}
.mega-items.is-active { display: block; }
.mega-items li { width: auto !important; }
.mega-items a {
  display: block !important;
  padding: 9px 26px !important;
  color: var(--gray-700, #4b5b75) !important;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: .01em !important;
  text-transform: none !important;
  white-space: nowrap;
  border-bottom: none !important;
  width: auto !important;
}
/* Section subheaders (e.g. Beginner / Advance / Pro within Recreational) */
.mega-subhead {
  padding: 12px 26px 4px !important;
  color: var(--cyan-500, #00b6d6) !important;
  font-weight: 800 !important;
  font-size: 11px !important;
  letter-spacing: .2em !important;
  text-transform: uppercase !important;
  pointer-events: none;
  list-style: none;
}
.mega-subhead + li a { padding-top: 4px !important; }
.mega-items li.mega-subhead:not(:first-child) { margin-top: 4px; border-top: 1px solid rgba(0,0,0,.06); padding-top: 14px !important; }
.mega-items a::after { display: none !important; }
.mega-items a:hover {
  color: var(--cyan-500, #00b6d6) !important;
  background: rgba(0, 182, 214, .06);
}

.mega-menu__foot {
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: var(--gray-50, #f5f7fa);
  text-align: right;
  /* spans both columns */
  flex-basis: 100%;
}
.mega-menu__foot a {
  display: inline-block !important;
  padding: 12px 22px !important;
  color: var(--cyan-600, #0093ac) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: none !important;
  width: auto !important;
}
.mega-menu__foot a::after { display: none !important; }
.mega-menu__foot a:hover { color: var(--navy-900, #071c26) !important; }
.mega-menu__foot i { margin-left: 6px; font-size: 11px; }

/* Make the mega-menu wrap so foot drops to a new row below the cols */
.mega-menu { flex-wrap: wrap; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  padding: var(--header-h) 0 0;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--navy-900);
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.1) translate(-1%, -1%); }
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  /* deep-sea teal wash + a soft centre vignette so the headline always reads */
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(7,28,38,.15) 0%, rgba(7,28,38,.55) 55%, rgba(7,28,38,.82) 100%),
    linear-gradient(180deg, rgba(7,28,38,.45) 0%, rgba(7,28,38,.28) 38%, rgba(7,28,38,.9) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 60px 24px;
  max-width: 980px;
}
.hero__eyebrow {
  color: var(--cyan-300);
  font-size: 14px; letter-spacing: .35em; text-transform: uppercase;
  margin-bottom: 22px; font-weight: 700;
}
.hero__title {
  font-size: clamp(46px, 8vw, 96px);
  color: var(--white);
  text-transform: uppercase;
  line-height: .95; margin-bottom: 26px;
  text-shadow: 0 4px 34px rgba(0,0,0,.55);
}
/* second line stays white (no vibrating orange); a thin rust rule under it
   carries the brand accent instead of a giant coloured word */
.hero__title span {
  color: var(--white); display: block;
  position: relative; padding-bottom: 18px;
}
.hero__title span::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 96px; height: 4px; border-radius: 3px;
  background: var(--cyan-500);
}
.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 720px; margin: 0 auto 40px;
  color: rgba(255,255,255,.92);
}
.hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--white); font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: .7;
}
.hero__scroll::after {
  content: ""; width: 2px; height: 36px; background: var(--white);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Smaller hero for inner pages */
.hero--inner { min-height: 72vh; }
.hero--inner .hero__title { font-size: clamp(40px, 6vw, 72px); }
.hero--inner .hero__bg img { object-position: center 18%; }
@media (max-width: 720px) {
  .hero--inner { min-height: 64vh; }
}

/* ===== Page intro / breadcrumb ===== */
.page-intro { padding: 80px 0 60px; text-align: center; background: var(--gray-50); }
.page-intro h1 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; margin-bottom: 14px; }
.page-intro p { color: var(--gray-600); max-width: 720px; margin: 0 auto; font-size: 17px; }

/* ===== Services / Feature cards ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px;
}
.feature-card {
  background: var(--white);
  padding: 38px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  border: 1px solid var(--gray-100);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--cyan-300); }
.feature-card__icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-400));
  border-radius: 50%; color: var(--white);
  font-size: 32px;
}
.feature-card h3 { font-size: 22px; margin-bottom: 10px; text-transform: uppercase; }
.feature-card p { color: var(--gray-600); font-size: 15px; }

/* ===== Stats — premium navy KPI strip ===== */
.stats-section {
  position: relative; overflow: hidden;
  padding: 90px 0 !important;
}
/* Decorative radial glows + dotted grid */
.stats-section__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 30%, rgba(0,180,216,.18) 0%, transparent 38%),
    radial-gradient(circle at 82% 70%, rgba(72,202,228,.14) 0%, transparent 42%),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: auto, auto, 28px 28px;
}
.stats-section > .container { position: relative; z-index: 1; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.stat {
  text-align: center; color: var(--white);
  padding: 28px 18px 26px;
  position: relative;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
/* Vertical dividers between stats */
.stat:not(:last-child)::after {
  content: "";
  position: absolute; top: 28%; bottom: 28%; right: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.12), transparent);
}
.stat:hover { transform: translateY(-4px); }

.stat__icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,180,216,.18), rgba(72,202,228,.05));
  border: 1px solid rgba(0,180,216,.3);
  color: var(--cyan-400);
  font-size: 20px;
  position: relative;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 0 0 rgba(0,180,216,0);
}
.stat__icon::before {
  content: "";
  position: absolute; inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,216,.25), transparent 65%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.stat:hover .stat__icon {
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-400));
  border-color: var(--cyan-400);
  color: var(--navy-900);
  box-shadow: 0 8px 24px -6px rgba(0,180,216,.55);
}
.stat:hover .stat__icon::before { opacity: 1; }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(46px, 5.5vw, 72px);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -.01em;
  display: flex; align-items: flex-end; justify-content: center; gap: 2px;
}
.stat__num > span:first-child {
  background: linear-gradient(135deg, #ffffff 0%, #b3e5f0 50%, var(--cyan-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__suffix {
  font-size: .55em;
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: .12em;
}
.stat__label {
  display: block;
  font-size: 12.5px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
  text-align: center;
}
.stat__label::after {
  content: "";
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--cyan-500);
  border-radius: 2px;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.stat:hover .stat__label { color: #fff; }
.stat:hover .stat__label::after { width: 60px; }

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2,1fr); gap: 4px; }
  .stat:nth-child(2)::after { display: none; }
  .stat { padding: 22px 12px; }
  .stat__icon { width: 48px; height: 48px; font-size: 17px; margin-bottom: 14px; }
  .stat__num { font-size: 42px; }
  .stat__label { font-size: 11px; letter-spacing: .18em; }
}

/* ===== Course / Card grid ===== */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.course-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s ease;
  border: 1px solid var(--gray-100);
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card__img {
  position: relative; height: 220px; overflow: hidden; background: var(--navy-800);
}
.course-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .course-card__img img { transform: scale(1.08); }
.course-card__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--cyan-500); color: var(--navy-900);
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.course-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-card h3 { font-size: 22px; margin-bottom: 10px; text-transform: uppercase; }
.course-card p { color: var(--gray-600); font-size: 15px; margin-bottom: 18px; flex: 1; }
.course-card__meta { display: flex; gap: 14px; font-size: 13px; color: var(--gray-600); margin-bottom: 16px; flex-wrap: wrap; }
.course-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card__link {
  font-weight: 700; font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--navy-700); display: inline-flex; align-items: center; gap: 6px;
  border-top: 1px solid var(--gray-100); padding-top: 16px;
}
.course-card__link:hover { color: var(--cyan-500); gap: 10px; }

/* ===== Image gallery / mosaic ===== */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 14px;
}
.mosaic__item { overflow: hidden; border-radius: var(--radius-md); position: relative; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic__item:hover img { transform: scale(1.06); }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item--wide { grid-column: span 2; }
@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mosaic__item--wide, .mosaic__item--tall { grid-row: auto; grid-column: auto; }
}

/* ===== Pricelist table ===== */
.price-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); color: var(--text);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 40px;
}
.price-table thead { background: var(--navy-800); color: var(--white); }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--gray-100); }
.price-table th { font-family: var(--font-display); font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.price-table tbody tr { color: var(--text); }
.price-table tbody td { color: var(--text); }
.price-table tbody tr:hover { background: var(--gray-50); }
.price-table td:last-child { font-weight: 700; color: var(--navy-700); white-space: nowrap; }
.price-table .row-head td { background: var(--gray-100); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--navy-800); }
/* When in navy section, force readable colors */
.section--navy .price-table tbody td { color: var(--text); }
.section--navy .price-table tbody td:last-child { color: var(--navy-700); }
/* Deep-link from courses.html "See Pricing": leave space below the fixed header
   when jumping to a row, and flash the row briefly so the user sees what was clicked. */
.price-table tr[id] { scroll-margin-top: 100px; }
.price-table tr:target { animation: priceRowFlash 2.4s ease-out; }
.price-table tr:target td { background: #fff8e1; }
@keyframes priceRowFlash {
  0%   { background: #fff3a0; }
  60%  { background: #fff8e1; }
  100% { background: transparent; }
}
/* Inside the navy Tec section, use a darker highlight that's still readable on white cells */
.section--navy .price-table tr:target td { background: #fff8e1; color: var(--text); }

/* ===== Package cards ===== */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.pkg-card {
  background: var(--white); color: var(--text);
  border-radius: var(--radius-lg);
  padding: 36px 30px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 14px;
  border-top: 6px solid var(--cyan-500);
  transition: all .3s ease;
}
.pkg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pkg-card p, .pkg-card li, .pkg-card ul, .pkg-card div { color: var(--text); }
.pkg-card--featured { background: var(--navy-800); color: var(--white); border-top-color: var(--coral); }
.pkg-card--featured h3 { color: var(--white); }
.pkg-card--featured .pkg-card__price { color: var(--cyan-400); }
.pkg-card--featured p,
.pkg-card--featured li,
.pkg-card--featured ul,
.pkg-card--featured div { color: var(--white); }
.pkg-card h3 { font-size: 24px; text-transform: uppercase; color: var(--navy-800); }
.pkg-card.pkg-card--featured h3 { color: var(--white); }
.pkg-card__price { font-family: var(--font-display); font-size: 42px; color: var(--navy-700); line-height: 1; }
.pkg-card__price small { font-size: 14px; opacity: .7; letter-spacing: .15em; text-transform: uppercase; }
.pkg-card ul { list-style: none; padding: 0; margin: 10px 0; }
.pkg-card li { padding: 7px 0; padding-left: 26px; position: relative; font-size: 15px; }
.pkg-card li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--cyan-500); font-weight: 700;
}
.pkg-card--featured li::before { color: var(--cyan-400); }
/* Inside navy section, regular cards stay readable */
.section--navy .pkg-card { color: var(--text); }
.section--navy .pkg-card p,
.section--navy .pkg-card li { color: var(--text); }
.section--navy .pkg-card--featured,
.section--navy .pkg-card--featured p,
.section--navy .pkg-card--featured li { color: var(--white); }

/* ===== Defensive fix: any white-bg card inside a navy section must NOT inherit white text ===== */
.section--navy .course-card,
.section--navy .feature-card:not([style*="background"]),
.section--navy .info-block,
.section--navy .testimonial,
.section--navy .itinerary { color: var(--text); }
.section--navy .course-card h1,
.section--navy .course-card h2,
.section--navy .course-card h3,
.section--navy .course-card h4,
.section--navy .feature-card:not([style*="background"]) h3,
.section--navy .info-block h3,
.section--navy .info-block h4,
.section--navy .testimonial,
.section--navy .testimonial__name { color: var(--navy-800); }
.section--navy .course-card p,
.section--navy .course-card__meta,
.section--navy .feature-card:not([style*="background"]) p,
.section--navy .info-block p,
.section--navy .info-block li,
.section--navy .testimonial__quote { color: var(--gray-600); }
.section--navy .course-card__link { color: var(--navy-700); }

/* ===== Itinerary list ===== */
.itinerary {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.itinerary__row {
  display: grid; grid-template-columns: 100px 1fr;
  padding: 14px 0; border-bottom: 1px solid var(--gray-100);
  align-items: center;
}
.itinerary__row:last-child { border-bottom: none; }
.itinerary__time {
  font-family: var(--font-display); font-size: 22px; color: var(--cyan-500);
  letter-spacing: .05em;
}
.itinerary__what { font-size: 16px; color: var(--gray-800); }

/* ===== Info cards (includes/bring) ===== */
.info-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .info-2col { grid-template-columns: 1fr; } }
.info-block {
  background: var(--white); padding: 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.info-block h4 { font-size: 18px; text-transform: uppercase; margin-bottom: 16px; color: var(--navy-700); letter-spacing: .1em; }
.info-block ul { list-style: none; }
.info-block li { padding: 8px 0 8px 28px; position: relative; font-size: 15px; color: var(--gray-800); }
.info-block li::before { content: "●"; position: absolute; left: 6px; color: var(--cyan-500); }

/* ===== About / Two-column ===== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.two-col__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.two-col__img img { width: 100%; height: 100%; object-fit: cover; }
.two-col__text h2 { font-size: clamp(32px, 4vw, 48px); text-transform: uppercase; margin-bottom: 18px; }
.two-col__text p { color: var(--gray-600); margin-bottom: 14px; font-size: 16px; }

/* ===== CTA banner ===== */
.cta-banner {
  position: relative; padding: 100px 0; color: var(--white);
  background-image: linear-gradient(rgba(6,26,54,.78), rgba(6,26,54,.85)), url('../images/home/reef-aerial.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(34px, 5vw, 58px); text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.cta-banner p { font-size: 18px; max-width: 640px; margin: 0 auto 30px; opacity: .9; }
.cta-banner .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900); color: rgba(255,255,255,.78);
  padding: 80px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--white); font-size: 16px; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 20px; }
.footer__logo img { height: 56px; width: auto; max-width: 100%; margin-bottom: 16px; }
.footer__about p { font-size: 15px; line-height: 1.7; }
.footer ul { list-style: none; }
.footer li { padding: 5px 0; font-size: 15px; }
.footer li a:hover { color: var(--cyan-400); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ico { color: var(--cyan-400); width: 18px; flex-shrink: 0; margin-top: 3px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; flex-wrap: wrap;
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--white);
  transition: all .25s ease;
}
.footer__social a:hover { background: var(--cyan-500); color: var(--navy-900); }

/* ===== Floating contact ===== */
.float-contact {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  display: flex; flex-direction: column; gap: 10px;
}
.float-contact a {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 22px;
  box-shadow: 0 6px 18px rgba(6,26,54,.25), 0 2px 4px rgba(6,26,54,.15);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.float-contact a:hover {
  transform: translateX(-4px) scale(1.08);
  box-shadow: 0 10px 24px rgba(6,26,54,.35), 0 3px 6px rgba(6,26,54,.2);
}
/* Tooltip on hover */
.float-contact a::after {
  content: attr(aria-label);
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--navy-900); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .25s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.float-contact a:hover::after { opacity: 1; transform: translateY(-50%) translateX(-2px); }

/* Close button (last item) */
.float-contact__close {
  width: 36px; height: 36px;
  margin-top: 4px;
  align-self: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--navy-800);
  border: 1px solid rgba(6, 26, 54, .12);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6, 26, 54, .18);
  transition: all .25s ease;
}
.float-contact__close:hover {
  background: var(--navy-800); color: #fff;
  transform: scale(1.08);
}
.float-contact.is-closed > a,
.float-contact.is-closed > .float-contact__close { display: none; }

/* Reopen button (appears after close) */
.float-contact__reopen {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-400));
  color: var(--navy-900);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(0, 180, 216, .35), 0 2px 4px rgba(6, 26, 54, .15);
  transition: all .25s ease;
}
.float-contact__reopen:hover { transform: scale(1.08); box-shadow: 0 10px 22px rgba(0, 180, 216, .5); }
.float-contact.is-closed > .float-contact__reopen { display: flex; }
.float-contact .wa  { background: #25D366; }
.float-contact .me  { background: linear-gradient(135deg, #00B2FF, #006AFF 50%, #8A3AB9); }
.float-contact .ln  { background: #06C755; }
.float-contact .gm  { background: linear-gradient(135deg, #1A73E8, #4285F4); }
.float-contact .ig  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.float-contact .fb  { background: #1877F2; }
.float-contact .tel { background: var(--cyan-500); }

/* ===== Google Maps embed (keyless, responsive) ===== */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--gray-100);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-embed__caption {
  margin-top: 14px; font-size: 14.5px; color: var(--gray-600); text-align: center;
}
.map-embed__caption a { color: var(--cyan-500); font-weight: 600; }
@media (max-width: 720px) { .map-embed { aspect-ratio: 4 / 3; } }

/* ===== Animated brand mark (small looping logo clip) ===== */
.brand-loop { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.brand-loop__media { display: flex; justify-content: center; }
.brand-loop__video {
  width: 100%; max-width: 260px; height: auto; display: block;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.brand-loop__text h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.brand-loop__text p { color: var(--gray-600); max-width: 620px; }
.brand-loop__text .tag-list { margin-top: 20px; }
@media (max-width: 860px) {
  .brand-loop { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .brand-loop__text .tag-list { justify-content: center; }
  .brand-loop__video { max-width: 210px; }
}

/* ===== FAQ accordion (native <details>, no JS needed) ===== */
.faq-section { padding-top: 54px; padding-bottom: 54px; }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] { border-color: var(--cyan-500); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-800);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "\f078";                       /* chevron-down */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--cyan-500); font-size: 13px; transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(180deg); }
.faq-item summary:hover { color: var(--cyan-600, var(--cyan-500)); }
.faq-item__body { padding: 0 20px 20px; color: var(--gray-600); line-height: 1.7; }
.faq-item__body a { color: var(--cyan-500); font-weight: 600; text-decoration: underline; }
.faq-section .eyebrow i { margin-right: 6px; }
@media (max-width: 720px) {
  .faq-item summary { font-size: 15px; padding: 15px 44px 15px 16px; }
  .faq-item__body { padding: 0 16px 16px; font-size: 14.5px; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* When GSAP drives the animations it sets inline styles per frame; kill the CSS
   transition so the two don't fight, and let GSAP own opacity/transform. */
html.gsap-ready .reveal { transition: none; }
/* Anti-FOUC: hide hero content until the GSAP load-in runs. A failsafe timeout
   in the <head> removes .gsap-anim if GSAP never loads, so content can't get
   stuck hidden. Reduced-motion users never get this class. */
html.gsap-anim .hero__content > * { opacity: 0; }

/* ===== Slider ===== */
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; transition: transform .6s ease; }
.slider__slide { min-width: 100%; }
.slider__dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.slider__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all .25s; }
.slider__dot.active { background: var(--cyan-400); width: 28px; border-radius: 6px; }

/* ===== Testimonial ===== */
.testimonial {
  background: var(--white); padding: 36px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); text-align: center;
  border: 1px solid var(--gray-100);
}
.testimonial__quote { font-style: italic; color: var(--gray-800); font-size: 16px; margin-bottom: 18px; line-height: 1.7; }
.testimonial__stars { color: #ffb400; margin-bottom: 12px; font-size: 18px; }
.testimonial__name { font-weight: 700; color: var(--navy-700); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.testimonial__role { color: var(--gray-400); font-size: 13px; }

/* ===== Schedule image ===== */
.schedule-img {
  max-width: 700px; margin: 0 auto;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg);
}

/* ===== Partner strip ===== */
.partners {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: center; align-items: center;
  padding: 40px 0; opacity: .8;
}
.partners img { max-height: 70px; width: auto; filter: grayscale(1); transition: filter .3s; }
.partners img:hover { filter: grayscale(0); }

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all .3s ease;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card__img {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--navy-800);
}
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card__img img { transform: scale(1.06); }
.blog-card__category {
  position: absolute; top: 14px; left: 14px;
  background: var(--cyan-500); color: var(--navy-900);
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
}
.blog-card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta {
  display: flex; gap: 14px; font-size: 12px;
  color: var(--gray-400); margin-bottom: 12px;
  letter-spacing: .08em; text-transform: uppercase;
}
.blog-card h3 {
  font-size: 22px; line-height: 1.2; margin-bottom: 12px;
  text-transform: uppercase; color: var(--navy-800);
}
.blog-card__excerpt {
  color: var(--gray-600); font-size: 15px; margin-bottom: 18px;
  flex: 1; line-height: 1.6;
}
.blog-card__read {
  font-weight: 700; font-size: 13px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--navy-700);
  display: inline-flex; align-items: center; gap: 6px;
  border-top: 1px solid var(--gray-100); padding-top: 16px;
}
.blog-card__read:hover { color: var(--cyan-500); gap: 10px; }

/* Featured (large) blog card */
.blog-featured {
  grid-column: span 2;
  display: grid; grid-template-columns: 1.2fr 1fr;
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-md);
}
@media (max-width: 760px) {
  .blog-featured { grid-column: span 1; grid-template-columns: 1fr; }
}
.blog-featured .blog-card__img { aspect-ratio: auto; min-height: 320px; }
.blog-featured .blog-card__body { padding: 40px; justify-content: center; }
.blog-featured h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 16px; text-transform: uppercase;
  line-height: 1.1;
}
.blog-featured .blog-card__excerpt { font-size: 16px; }

/* Category filter */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 50px;
}
.blog-filter {
  padding: 10px 22px; border-radius: 999px;
  background: var(--gray-100); color: var(--gray-600);
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; cursor: pointer;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.blog-filter:hover, .blog-filter.is-active {
  background: var(--navy-800); color: var(--white);
}

/* ===== Blog article (single post) ===== */
.article {
  background: var(--white);
  max-width: 820px; margin: 0 auto;
  padding: 0 24px;
}
.article__breadcrumb {
  font-size: 13px; color: var(--gray-600);
  margin-bottom: 24px; letter-spacing: .05em;
}
.article__breadcrumb a:hover { color: var(--cyan-500); }
.article__breadcrumb span { color: var(--gray-400); margin: 0 8px; }
.article__category {
  display: inline-block;
  background: var(--cyan-500); color: var(--navy-900);
  padding: 6px 16px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article__title {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05; margin-bottom: 22px;
  text-transform: uppercase;
}
.article__meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  color: var(--gray-600); font-size: 14px;
  padding-bottom: 32px; margin-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
}
.article__meta span { display: inline-flex; align-items: center; gap: 8px; }
.article__hero {
  margin: 0 -24px 40px;
  border-radius: 0;
  overflow: hidden;
}
.article__hero img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }

.article-body {
  font-size: 17px; line-height: 1.8;
  color: var(--gray-800);
}
.article-body > * { margin-bottom: 22px; }
.article-body h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 50px 0 18px;
  text-transform: uppercase;
  color: var(--navy-800);
}
.article-body h3 {
  font-size: 22px;
  margin: 36px 0 14px;
  color: var(--navy-700);
}
.article-body p { color: var(--gray-800); }
.article-body a { color: var(--cyan-500); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--navy-700); }
.article-body strong { color: var(--navy-800); }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 10px; }
.article-body blockquote {
  border-left: 4px solid var(--cyan-500);
  background: var(--gray-50);
  padding: 22px 26px;
  font-style: italic;
  color: var(--navy-800);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body img {
  max-width: 100%; height: auto;
  border-radius: var(--radius-md);
  margin: 30px 0;
  box-shadow: var(--shadow-md);
}
/* Image alignment from the editor */
.article-body img.align-left,  .article-body figure.align-left  { float: left;  margin: 8px 26px 18px 0; max-width: 50%; }
.article-body img.align-right, .article-body figure.align-right { float: right; margin: 8px 0 18px 26px; max-width: 50%; }
.article-body img.align-center, .article-body figure.align-center { display: block; margin-left: auto; margin-right: auto; }
.article-body figure { margin: 30px 0; max-width: 100%; }
.article-body figure img { margin: 0; }
.article-body figcaption {
  text-align: center; font-size: 14px;
  color: var(--gray-400); margin-top: 10px;
  font-style: italic;
}

/* Tables inside an article (inserted via the editor) */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 26px 0;
  display: block;          /* allow horizontal scroll on narrow screens */
  overflow-x: auto;
}
.article-body table th,
.article-body table td {
  border: 1px solid var(--gray-200);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.article-body table th { background: var(--navy-800); color: #fff; font-weight: 700; white-space: nowrap; }
.article-body table tr:nth-child(even) td { background: var(--gray-50); }

/* Responsive video / map embeds */
.article-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius-md);
  margin: 30px 0;
  box-shadow: var(--shadow-md);
}
.article-body::after { content: ""; display: table; clear: both; }  /* clear floated images */

.article-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 40px 0;
  padding-top: 30px;
  border-top: 1px solid var(--gray-100);
}
.article-tags .tag { background: var(--gray-100); color: var(--gray-600); }
.article-tags .tag:hover { background: var(--navy-800); color: var(--white); }

.article-share {
  display: flex; gap: 12px; align-items: center;
  padding: 20px 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100);
  margin: 30px 0;
}
.article-share span { font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: var(--gray-600); margin-right: 8px; }
.article-share a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gray-100); color: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s ease;
}
.article-share a:hover { background: var(--cyan-500); color: var(--navy-900); transform: translateY(-2px); }

.author-card {
  display: flex; gap: 20px; align-items: center;
  background: var(--gray-50); padding: 26px;
  border-radius: var(--radius-md);
  margin: 40px 0;
}
.author-card__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--navy-800);
}
.author-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-card__name { font-family: var(--font-display); font-size: 20px; color: var(--navy-800); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.author-card__bio { font-size: 14px; color: var(--gray-600); line-height: 1.5; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6, 26, 54, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__img {
  max-width: 92vw; max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: scale(.9);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.1);
  object-fit: contain;
  background: #000;
}
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s;
}
.lightbox__close:hover { background: rgba(255,255,255,.25); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__caption {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: .08em;
  background: rgba(0,0,0,.4); padding: 8px 18px; border-radius: 999px;
}

/* Mark zoomable images */
.zoomable, .mosaic__item img, .course-card__img img, .two-col__img img,
.schedule-img img, .daytrips img, .feature-card img {
  cursor: zoom-in;
}
@media (max-width: 600px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 18px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox { padding: 16px; }
}

/* ===== Dive Sites — route map illustration ===== */
.route-map {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  box-shadow: var(--shadow-lg, 0 24px 60px rgba(8, 22, 46, .18));
  background: var(--navy-900);
}
.route-map img { display: block; width: 100%; height: auto; }
.route-map__caption {
  text-align: center;
  padding: 18px 22px;
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,.08);
}
.route-map__caption i { color: var(--cyan-400); margin-right: 8px; }
.route-map__caption strong { color: var(--cyan-400); font-weight: 700; }

/* ===== Dive Sites — route comparison cards ===== */
.route-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.route-summary__card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md, 14px);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow-sm, 0 4px 14px rgba(8, 22, 46, .08));
  border-top: 4px solid var(--cyan-500);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.route-summary__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 12px 30px rgba(8, 22, 46, .14));
}
.route-summary__card--r1 { border-top-color: #e63946; }
.route-summary__card--r2 { border-top-color: #2a9d8f; }
.route-summary__card--r3 { border-top-color: #8338ec; }
.route-summary__card--r4 { border-top-color: #f4a261; }
.route-summary__card--r5 { border-top-color: #ffb703; }
.route-summary__num {
  position: absolute; top: 12px; right: 18px;
  font-family: var(--font-display);
  font-size: 48px; line-height: 1;
  color: var(--gray-100, #eef2f6);
  letter-spacing: -.02em;
  pointer-events: none;
}
.route-summary__title,
.route-summary__card h3 {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 24px;
  letter-spacing: .04em;
  color: var(--navy-900);
  margin: 0 0 6px;
  position: relative;
  z-index: 1;
}
.route-summary__sites {
  font-size: 13px;
  color: var(--gray-600, #5a6877);
  margin: 0 0 14px;
  line-height: 1.5;
}
.route-summary__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px;
  color: var(--navy-800);
}
.route-summary__meta li {
  display: flex; align-items: center; gap: 10px;
}
.route-summary__meta i {
  width: 16px;
  color: var(--cyan-500);
  text-align: center;
}
.route-summary__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--navy-900);
  text-decoration: none;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100, #eef2f6);
}
.route-summary__link:hover { color: var(--cyan-500); }
.route-summary__link i { transition: transform .2s ease; }
.route-summary__link:hover i { transform: translateX(3px); }

/* ===== Dive Sites — zone navigation pills ===== */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.zone-pill {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  color: var(--navy-800);
  font-weight: 700; font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .25s ease;
  text-decoration: none;
}
.zone-pill:hover {
  background: var(--navy-800); color: #fff;
  border-color: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.zone-pill__num {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-400));
  color: var(--navy-900);
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.zone-pill:hover .zone-pill__num {
  background: #fff; color: var(--navy-900);
}

/* Zone section header */
.zone-header {
  display: flex; gap: 24px; align-items: flex-start;
  margin-bottom: 40px;
}
.zone-header__num {
  font-family: var(--font-display);
  font-size: clamp(50px, 7vw, 86px);
  line-height: .9;
  color: var(--cyan-500);
  flex-shrink: 0;
  letter-spacing: -.02em;
  -webkit-text-stroke: 2px var(--navy-800);
}
.section--navy .zone-header__num {
  color: var(--cyan-400);
  -webkit-text-stroke: 2px transparent;
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.zone-header .section-title {
  text-align: left;
  margin: 4px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}
.zone-header .eyebrow { margin-bottom: 6px; }
.section--navy .zone-header .muted { color: rgba(255,255,255,.78) !important; }
@media (max-width: 720px) {
  .zone-header { flex-direction: column; gap: 8px; }
  .zone-header__num { font-size: 60px; }
}

/* ===== Misc ===== */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--cyan-500); color: var(--navy-900);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.tag--outline { background: transparent; color: var(--navy-700); border: 1.5px solid var(--navy-700); }

/* ===== Responsive tweaks ===== */
@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .hero { min-height: 90vh; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .float-contact a { width: 50px; height: 50px; font-size: 22px; }
}

/* =========================================================
   ===== MOBILE-ONLY OVERRIDES (≤ 720px) =====
   Everything below only applies on phones — desktop layout
   is preserved exactly as designed.
   ========================================================= */
@media (max-width: 720px) {
  /* --- Body & containers tightened --- */
  body { font-size: 15px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-title { font-size: clamp(28px, 8vw, 36px) !important; line-height: 1.05; }
  .section-sub { font-size: 15px; margin-bottom: 36px; padding: 0 8px; }
  .eyebrow { font-size: 11px; letter-spacing: .18em; margin-bottom: 10px; }

  /* --- Header / mobile menu polish --- */
  :root { --header-h: 68px; }
  .nav__logo img { height: 40px; }
  .nav__logo { font-size: 17px; gap: 10px; }
  .nav__logo small { font-size: 9px; letter-spacing: .22em; }
  .nav__menu { padding: 18px !important; }
  .nav__menu a { font-size: 14px; padding: 16px 6px !important; }

  /* --- Hero — fix overlapping title & SCROLL indicator --- */
  .hero { min-height: 88vh; padding-top: 90px; }
  .hero__content { padding: 32px 18px 24px; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .25em; margin-bottom: 14px; }
  .hero__title { font-size: clamp(34px, 9vw, 44px) !important; margin-bottom: 18px; }
  .hero__sub { font-size: 14px; margin-bottom: 24px; line-height: 1.55; padding: 0 6px; }
  .hero__ctas { gap: 10px; padding: 0 10px; }
  .hero__ctas .btn { padding: 13px 20px; font-size: 12px; width: 100%; justify-content: center; }
  /* Hide scroll cue on mobile — it overlaps CTAs on smaller screens */
  .hero__scroll { display: none; }
  /* Inner-page heroes are shorter still */
  .hero--inner { min-height: 56vh; padding-top: 90px; }
  .hero--inner .hero__title { font-size: clamp(30px, 8.5vw, 40px) !important; }

  /* --- Page intro --- */
  .page-intro { padding: 60px 0 40px; }
  .page-intro h1 { font-size: clamp(28px, 8vw, 38px); }
  .page-intro p { font-size: 15px; padding: 0 8px; }

  /* --- Buttons --- */
  .btn { padding: 13px 22px; font-size: 12px; }
  .btn--small { padding: 9px 16px; font-size: 11px; }

  /* --- Feature / Course / Pkg / Blog cards stack cleanly --- */
  .feature-grid,
  .course-grid,
  .pkg-grid,
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 28px 22px; }
  .feature-card__icon { width: 60px; height: 60px; font-size: 26px; }
  .feature-card h3 { font-size: 19px; }
  .feature-card p { font-size: 14px; }
  .course-card__img { height: 200px; }
  .course-card__body { padding: 20px; }
  .course-card h3 { font-size: 19px; }
  .course-card p { font-size: 14px; }
  .pkg-card { padding: 28px 22px; border-radius: var(--radius-md); }
  .pkg-card h3 { font-size: 21px; }
  .pkg-card__price { font-size: 36px; }
  .pkg-card li { font-size: 14px; padding: 6px 0 6px 22px; }
  .blog-featured { grid-column: span 1; grid-template-columns: 1fr; }
  .blog-featured .blog-card__img { min-height: 200px; }
  .blog-featured .blog-card__body { padding: 24px; }
  .blog-featured h2 { font-size: 22px; }

  /* --- Stats --- */
  .stats { grid-template-columns: repeat(2,1fr); gap: 22px; padding: 30px 0; }
  .stat__num { font-size: 38px; }
  .stat__label { font-size: 11px; }

  /* --- Two-column layouts stack --- */
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col > * { min-width: 0; }
  .two-col__text h2 { font-size: 26px; }
  .two-col__text p { font-size: 14.5px; }
  .schedule-img { width: 100%; max-width: 100%; }

  /* --- Pricelist headers on very narrow phones — smaller font so "PROGRAMME"
         etc. don't wrap awkwardly --- */
  .price-table th { font-size: 12.5px; letter-spacing: .04em; padding: 8px 8px; }
  .price-table td { padding: 9px 8px; font-size: 13px; }

  /* --- Mosaic gallery: simpler grid --- */
  .mosaic { grid-template-columns: repeat(2,1fr); grid-auto-rows: 130px; gap: 8px; }
  .mosaic__item--tall, .mosaic__item--wide { grid-row: auto; grid-column: auto; }

  /* --- Tables on mobile: let cells wrap so the table fits the viewport.
         The right-most cell (price) keeps its own nowrap (set on
         `.price-table td:last-child` above) so "5,500 THB" stays on one line. --- */
  .price-table { display: block; overflow-x: auto; font-size: 14px; -webkit-overflow-scrolling: touch; }
  .price-table thead, .price-table tbody, .price-table tr { display: table; width: 100%; table-layout: fixed; }
  .price-table th, .price-table td { padding: 10px 12px; word-wrap: break-word; white-space: normal; }
  .price-table td:last-child, .price-table th:last-child { white-space: nowrap; }
  /* Hide the "Max Depth" column on mobile — only on tables that have 4 columns
     (Beginner / Advance / Technical). 3-column tables (Day Trips / Pro / Cave)
     are left untouched because they have no 4th child. */
  .price-table tr:has(> :nth-child(4)) > :nth-child(3) { display: none; }

  /* --- Itinerary --- */
  .itinerary { padding: 22px 18px; }
  .itinerary__row { grid-template-columns: 76px 1fr; padding: 10px 0; }
  .itinerary__time { font-size: 18px; }
  .itinerary__what { font-size: 14px; }

  /* --- Info cards (includes / bring) --- */
  .info-2col { gap: 16px; }
  .info-block { padding: 22px 20px; }
  .info-block h4 { font-size: 16px; }
  .info-block li { font-size: 14px; padding: 6px 0 6px 22px; }

  /* --- Testimonial --- */
  .testimonial { padding: 26px 22px; }
  .testimonial__quote { font-size: 14.5px; }

  /* --- CTA banner --- */
  .cta-banner { padding: 60px 0; background-attachment: scroll; }
  .cta-banner h2 { font-size: clamp(26px, 7vw, 36px); }
  .cta-banner p { font-size: 15px; padding: 0 8px; }
  .cta-banner .btn-row { flex-direction: column; gap: 12px; padding: 0 16px; }
  .cta-banner .btn-row .btn { width: 100%; justify-content: center; }

  /* --- Footer --- */
  .site-footer { padding: 56px 0 20px; }
  .footer-grid { gap: 30px; margin-bottom: 36px; }
  .footer h4 { margin-bottom: 14px; font-size: 15px; }
  .footer li { font-size: 14px; }
  .footer__logo img { height: 46px; width: auto; max-width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; }

  /* --- Floating contact: smaller and tighter --- */
  .float-contact { right: 14px; bottom: 14px; gap: 8px; }
  .float-contact a { width: 44px; height: 44px; font-size: 18px; }

  /* --- Blog filters: tighter --- */
  .blog-filters { gap: 6px; margin-bottom: 32px; }
  .blog-filter { padding: 8px 14px; font-size: 11px; letter-spacing: .1em; }
  .blog-card__body { padding: 20px; }
  .blog-card h3 { font-size: 18px; }
  .blog-card__excerpt { font-size: 14px; }

  /* --- Article (blog post) --- */
  .article { padding: 0 16px; }
  .article__title { font-size: clamp(26px, 7.5vw, 36px); line-height: 1.1; }
  .article__category { font-size: 10px; }
  .article__meta { gap: 12px; font-size: 12px; flex-wrap: wrap; padding-bottom: 24px; margin-bottom: 24px; }
  .article__hero { margin: 0 -16px 30px; }
  .article__hero img { max-height: 280px; }
  .article-body { font-size: 16px; line-height: 1.75; }
  .article-body h2 { font-size: 22px; margin: 38px 0 14px; }
  .article-body h3 { font-size: 19px; margin: 28px 0 10px; }
  .article-body blockquote { padding: 18px 20px; font-size: 15px; }
  .article-body ul, .article-body ol { padding-left: 20px; }
  .article-tags { gap: 6px; }
  .article-tags .tag { font-size: 11px; padding: 4px 10px; }
  .article-share { flex-wrap: wrap; gap: 8px; padding: 16px 0; }
  .article-share a { width: 34px; height: 34px; font-size: 14px; }
  .author-card { padding: 18px; gap: 14px; }
  .author-card__avatar { width: 56px; height: 56px; }
  .author-card__name { font-size: 17px; }
  .author-card__bio { font-size: 13px; }

  /* --- Divider --- */
  .divider { margin: 14px auto 20px; height: 3px; width: 64px; }

  /* --- Pretty tap target for any .tag links --- */
  .tag, .blog-filter, .btn { -webkit-tap-highlight-color: transparent; }

  /* --- Prevent any element from forcing horizontal scroll --- */
  body, .container, .section, header, footer, article, section { max-width: 100%; }
  img, video { max-width: 100%; height: auto; }
}

/* ===== Extra-small screens (≤ 420px) — additional tightening ===== */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .section { padding: 48px 0; }
  .hero__title { font-size: 32px !important; }
  .hero--inner .hero__title { font-size: 28px !important; }
  .nav__logo small { display: none; }
  .nav__logo img { height: 36px; }
  .nav__logo { font-size: 15px; }
  .float-contact a { width: 42px; height: 42px; font-size: 16px; }
  .float-contact { right: 10px; bottom: 10px; gap: 6px; }
  .section-title { font-size: 26px !important; }
  .article__title { font-size: 26px; }
  .article-body { font-size: 15.5px; }
}
