/*
Theme Name: Vis17
Theme URI: https://vis17.be
Author: B-Web
Author URI: https://b-web.be
Description: Custom thema voor Vis17, vakantiehuisje aan zee in Koksijde. Gebouwd op maat met ACF voor de bewerkbare onderdelen (foto's, teksten, contactgegevens, huisregels-PDF).
Version: 1.0.0
Requires PHP: 7.4
Text Domain: vis17
*/

/* =========================================================
   Vis17 — Vakantiehuisje aan zee, Koksijde
   Design tokens
   ---------------------------------------------------------
   Kleuren
   --navy      : diepe avondzee / koppen, footer
   --teal      : golf / primaire accentkleur, links, knoppen
   --sand      : duinzand / vakbanden
   --linen     : gebroken wit / paginafond
   --buoy      : reddingsboei-rood / kleine accenten
   --ink       : hoofdtekstkleur
   ========================================================= */

:root {
  --navy: #143247;
  --navy-deep: #0c2534;
  --teal: #3c7f92;
  --teal-light: #6ea8b8;
  --sand: #ecdfc3;
  --sand-deep: #ddc99e;
  --linen: #faf6ee;
  --buoy: #bd4438;
  --ink: #1f2f36;
  --ink-soft: #4c5f68;
  --rope: #d8cba6;
  --white: #ffffff;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;

  --max-width: 1180px;
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* -------------------- Focus visibility -------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--buoy);
  outline-offset: 3px;
}

/* -------------------- Skip link -------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-s);
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* -------------------- Eyebrow / mono labels -------------------- */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--teal);
  display: inline-block;
  margin: 0 0 12px;
}
.eyebrow--onNavy { color: var(--sand); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.12;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--buoy);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(189, 68, 56, 0.65);
}
.btn--primary:hover { background: #a53b30; }

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); }

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

.btn--small { padding: 10px 20px; font-size: 0.9rem; }

/* -------------------- Header / nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 50, 71, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.96rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--buoy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--navy); font-weight: 700; }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  min-height: 640px;
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 37, 52, 0.35) 0%,
    rgba(12, 37, 52, 0.22) 40%,
    rgba(12, 37, 52, 0.88) 100%
  );
}
.hero-content {
  padding: 90px 0 110px;
  max-width: 720px;
}
.hero-content h1 { color: var(--white); }
.hero-content .lede { color: rgba(255,255,255,0.88); font-size: 1.2rem; }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
  margin-top: -2px;
}
.wave-divider svg { width: 100%; height: auto; display: block; }

/* -------------------- Sections -------------------- */
section { padding: 90px 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--sand); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(236, 223, 195, 0.85); }

.section-head {
  max-width: 640px;
  margin: 0 0 50px;
}
.section-head.center { margin-inline: auto; text-align: center; }

/* rope divider, echoes the logo's rope ring */
.rope-rule {
  display: block;
  width: 100%;
  height: 14px;
  margin: 0 0 40px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--rope) 0 6px,
    var(--navy) 6px 12px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  opacity: 0.55;
  border-radius: 999px;
}

/* -------------------- Feature cards -------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 30px 26px;
  box-shadow: 0 18px 40px -28px rgba(20, 50, 71, 0.35);
}
.feature-card .icon {
  width: 46px; height: 46px;
  margin-bottom: 16px;
  color: var(--teal);
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feature-card p { margin: 0; font-size: 0.96rem; }

/* -------------------- Porthole gallery -------------------- */
.porthole-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 28px;
}
.porthole {
  text-align: center;
}
.porthole-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--white);
  outline: 3px solid var(--navy);
  outline-offset: 4px;
  box-shadow: 0 22px 40px -22px rgba(20, 50, 71, 0.45);
  background: var(--sand);
}
.porthole-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.porthole:hover .porthole-frame img { transform: scale(1.08); }
.porthole-bolt {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sand-deep);
  box-shadow: 0 0 0 2px var(--navy) inset;
}
.porthole-bolt.tl { top: 10%; left: 10%; }
.porthole-bolt.tr { top: 10%; right: 10%; }
.porthole-bolt.bl { bottom: 10%; left: 10%; }
.porthole-bolt.br { bottom: 10%; right: 10%; }
.porthole figcaption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

/* -------------------- Location / split -------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.split-copy ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
.split-copy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
}
.split-copy li svg { flex: none; margin-top: 3px; color: var(--buoy); }

.photo-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-m);
  box-shadow: 0 26px 50px -30px rgba(20, 50, 71, 0.5);
}
/* .tall / .short now sit on the button wrapper (grid item) instead
   of directly on the <img>, since gallery photos are wrapped in a
   lightbox-trigger button. */
.photo-stack .tall { grid-row: span 2; height: 100%; }
.photo-stack .short { height: 100%; }

/* -------------------- House rules teaser strip -------------------- */
.rules-strip {
  background: var(--white);
  border: 1px solid rgba(20,50,71,0.1);
  border-radius: var(--radius-m);
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.rules-strip .icon-buoy {
  width: 40px; height: 40px;
  color: var(--buoy);
  flex: none;
}
.rules-strip-text { display: flex; align-items: center; gap: 18px; flex: 1 1 320px; }
.rules-strip h4 { margin: 0 0 4px; font-family: var(--font-body); font-size: 1.02rem; color: var(--navy); }
.rules-strip p { margin: 0; font-size: 0.92rem; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(236, 223, 195, 0.82);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(236, 223, 195, 0.14);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand span {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.2rem;
}
.footer h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--sand);
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: inherit; }
.footer a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.84rem;
  color: rgba(236, 223, 195, 0.55);
}

/* -------------------- Contact page -------------------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 22px dashed rgba(236, 223, 195, 0.15);
}
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.page-hero .lede { color: rgba(236, 223, 195, 0.85); }

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.card {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 60px -32px rgba(20, 50, 71, 0.35);
  padding: 44px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.field .hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 400;
  margin-left: 4px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-s);
  border: 1.5px solid #d9d1bf;
  background: var(--linen);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--teal);
  background: var(--white);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 18px;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: #eef6ee;
  color: #2d6a4f;
  font-size: 0.92rem;
  display: none;
}
.form-status.is-visible { display: block; }

.contact-info-card {
  background: var(--navy);
  color: var(--sand);
  border-radius: var(--radius-l);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card .info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-info-card .info-row svg { flex: none; margin-top: 3px; color: var(--sand); }
.contact-info-card .info-row strong { display: block; color: var(--white); font-size: 0.92rem; }
.contact-info-card .info-row span, .contact-info-card .info-row a { font-size: 0.92rem; color: rgba(236,223,195,0.85); text-decoration: none; }
.contact-info-card .info-row a:hover { color: var(--white); }

.mini-rules {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(236,223,195,0.2);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .porthole-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr; }
  .photo-stack { order: -1; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links { 
    position: fixed;
    inset: 64px 16px auto 16px;
    background: var(--linen);
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px;
    border-radius: var(--radius-m);
    box-shadow: 0 30px 60px -20px rgba(20,50,71,0.35);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
  }
  .nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--navy);
  }
  .feature-grid { grid-template-columns: 1fr; }
  .porthole-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .hero { min-height: 92vh; }
  .card, .contact-info-card { padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .rules-strip { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------
   Contact Form 7 — restyle default output to match .field / .btn
   ------------------------------------------------------------- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-s);
  border: 1.5px solid #d9d1bf;
  background: var(--linen);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  outline: none;
}
.wpcf7 textarea { resize: vertical; min-height: 120px; }

.wpcf7-form-control-wrap { display: block; }

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--buoy);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(189, 68, 56, 0.65);
  transition: transform 0.18s ease, background 0.18s ease;
  margin-top: 26px;
}
.wpcf7 input[type="submit"]:hover { transform: translateY(-2px); background: #a53b30; }
.wpcf7 input[type="submit"]:disabled { opacity: 0.6; cursor: default; transform: none; }

.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  color: var(--buoy);
  font-size: 0.82rem;
  margin-top: 6px;
}
.wpcf7 .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  font-size: 0.92rem;
  border: none !important;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #eef6ee;
  color: #2d6a4f;
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  background: #fbeceb;
  color: #a53b30;
}
.wpcf7 form.invalid .wpcf7-response-output {
  background: #fdf3e3;
  color: #8a5a10;
}
.wpcf7-spinner { margin-left: 10px; }

/* -------------------------------------------------------------
   Lightbox trigger reset (wraps gallery + omgeving photos)
   ------------------------------------------------------------- */
.lightbox-trigger {
  display: block;
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  text-align: left;
}
.lightbox-trigger:focus-visible {
  outline: 3px solid var(--buoy);
  outline-offset: 3px;
}

/* -------------------------------------------------------------
   Lightbox overlay (enlarge-photo modal)
   ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 37, 52, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 60px 90px;
}
.lightbox.is-open { display: flex; }
.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-m);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.65);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 30px;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 680px) {
  .lightbox { padding: 90px 16px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 22px; }
  .lightbox-close { width: 38px; height: 38px; font-size: 22px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* -------------------------------------------------------------
   Language switcher (NL / FR) - only renders once Polylang is
   active with 2+ languages, see vis17_language_switcher().
   ------------------------------------------------------------- */
.lang-switch {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.lang-switch a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 5px 8px;
  border-radius: 6px;
}
.lang-switch a.is-active {
  color: var(--navy);
  font-weight: 700;
  background: var(--sand);
}
.nav-links li:empty { display: none; }

/* -------------------------------------------------------------
   Activiteiten page - post cards + pagination
   ------------------------------------------------------------- */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 70px 0;
}
.activity-card {
  background: var(--white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 18px 40px -28px rgba(20, 50, 71, 0.35);
  display: flex;
  flex-direction: column;
}
.activity-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.activity-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.activity-card-media:hover img { transform: scale(1.06); }
.activity-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.activity-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.activity-card-body h3 { font-size: 1.2rem; margin: 8px 0 10px; }
.activity-card-body h3 a { text-decoration: none; color: var(--navy); }
.activity-card-body h3 a:hover { color: var(--teal); }
.activity-card-body p { font-size: 0.94rem; margin-bottom: 14px; }
.activity-readmore {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--buoy);
}
.activity-readmore:hover { color: #a53b30; }

.activity-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 80px;
}
.activity-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--white);
  border: 1.5px solid rgba(20, 50, 71, 0.12);
}
.activity-pagination .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.activity-pagination .page-numbers:hover:not(.current) { border-color: var(--teal); color: var(--teal); }

@media (max-width: 980px) {
  .activity-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .activity-grid { grid-template-columns: 1fr; gap: 22px; padding: 50px 0; }
}

/* -------------------------------------------------------------
   Extra mobile refinements (phones under ~480px specifically -
   the 680px breakpoint above already handles tablets/large
   phones reasonably, this tightens things further down)
   ------------------------------------------------------------- */
@media (max-width: 480px) {
  .container { padding: 0 18px; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.55rem; }

  .hero { min-height: 100vh; }
  .hero-content { padding: 70px 0 60px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; text-align: center; }

  section { padding: 48px 0; }

  .brand-text { font-size: 1.1rem; }
  .brand img { width: 36px; height: 36px; }

  .porthole-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }

  .card, .contact-info-card { padding: 22px; }
  .page-hero { padding: 130px 0 60px; }

  .rules-strip { padding: 20px 20px; }
  .rules-strip .btn { width: 100%; justify-content: center; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
