/* =========================================================
   WLR Category + Event Pages (Pinegrow-ready)
   Clean, deduplicated, and consistent.
   Includes: catalogue tiles, submenu, flip embeds,
   and /events/live-dialogue/ (Option A, no countdown).
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --wlr-max: 980px;
  --wlr-pad: 1.25rem;
  --wlr-radius: 16px;
  --wlr-border: rgba(0,0,0,.08);
  --wlr-muted: rgba(0,0,0,.65);
  --wlr-bgsoft: rgba(0,0,0,.03);
}

/* ---------- Base layout ---------- */
.wlr-wrap {
  max-width: var(--wlr-max);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem) var(--wlr-pad);
}

/* If using Bootstrap containers, avoid “double padding” feel */
.container .wlr-wrap {
  max-width: var(--wlr-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--wlr-pad);
  padding-right: var(--wlr-pad);
}

/* ---------- Hero + headings ---------- */
.wlr-hero {
  border: 1px solid var(--wlr-border);
  border-radius: var(--wlr-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--wlr-bgsoft);
}

.wlr-kicker {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--wlr-muted);
  margin: 0 0 .5rem 0;
}

.wlr-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 .75rem 0;
}

.wlr-lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--wlr-muted);
  margin: 0;
  max-width: 70ch;
}

/* ---------- Two-column content grid ---------- */
.wlr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 860px){
  .wlr-grid {
    grid-template-columns: 1.2fr .8fr;
  }
}

/* ---------- Cards + text blocks ---------- */
.wlr-card {
  border: 1px solid var(--wlr-border);
  border-radius: var(--wlr-radius);
  padding: 1.1rem;
  background: #fff;
}

.wlr-h2 {
  font-size: 1.1rem;
  margin: 0 0 .5rem 0;
}

.wlr-p {
  margin: 0 0 .75rem 0;
  line-height: 1.65;
}

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

.wlr-list {
  margin: .4rem 0 0 1.1rem;
  padding: 0;
  color: var(--wlr-muted);
}

.wlr-list li {
  margin: .35rem 0;
}

.wlr-note {
  font-size: .95rem;
  color: var(--wlr-muted);
  border-left: 3px solid var(--wlr-border);
  padding-left: .9rem;
  margin: .75rem 0 0 0;
}

.wlr-disclosure {
  margin-top: 1.25rem;
  font-size: .92rem;
  color: var(--wlr-muted);
}

/* Failsafe: prevent adjacent content links from sticking together */
main p a + a {
  margin-left: .6rem;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.wlr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

/* Base button */
.wlr-btn,
a.wlr-btn {
  display: inline-block;
  padding: .48rem .72rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.22);
  text-decoration: none;
  color: inherit;
  background: #fff;
  line-height: 1.15;
  font-size: .95rem;
}

/* Hover */
.wlr-btn:hover,
a.wlr-btn:hover,
.wlr-btn:focus,
a.wlr-btn:focus {
  background: var(--wlr-bgsoft);
  color: inherit;
}

/* Primary */
.wlr-btn-primary,
a.wlr-btn.wlr-btn-primary {
  background: #111;
  color: #fff;
  border-color: #111;
}

.wlr-btn-primary:hover,
.wlr-btn-primary:focus,
a.wlr-btn.wlr-btn-primary:hover,
a.wlr-btn.wlr-btn-primary:focus {
  background: #111;
  color: #fff;
  opacity: .92;
}

/* ---------- Catalogue index grid + tiles ---------- */
.wlr-catalogue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 700px){
  .wlr-catalogue-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1060px){
  .wlr-catalogue-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.wlr-tile {
  border: 1px solid var(--wlr-border);
  border-radius: var(--wlr-radius);
  background: #fff;
  padding: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: 220px;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.wlr-tile:after {
  content: "";
  display: block;
  height: 1px;
  background: rgba(0,0,0,.06);
  margin-top: 1rem;
}

.wlr-tile-title {
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 .45rem 0;
}

.wlr-tile-desc {
  margin: 0;
  line-height: 1.55;
  color: var(--wlr-muted);
}

@media (min-width: 700px){
  .wlr-tile-desc {
    min-height: 4.6em;
  }
  .wlr-tile-meta {
    min-height: 1.4em;
  }
}

@media (max-width: 520px){
  .wlr-tile-title {
    font-size: 1.08rem;
  }
  .wlr-tile-desc {
    font-size: .98rem;
  }
}

.wlr-tile-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.wlr-tag {
  display: inline-block;
  font-size: .78rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--wlr-border);
  color: var(--wlr-muted);
  background: var(--wlr-bgsoft);
}

.wlr-section-title {
  font-size: 1.15rem;
  margin: 1.25rem 0 .5rem 0;
}

.wlr-section-lede {
  margin: 0 0 .75rem 0;
  color: var(--wlr-muted);
  line-height: 1.6;
  max-width: 75ch;
}

/* ---------- In-page submenu ---------- */
.wlr-submenu {
  margin-top: 1rem;
}

.wlr-submenu-list {
  list-style: none;
  padding-left: 0;
  margin: .75rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.wlr-submenu-list li {
  margin: 0;
}

.wlr-submenu-list a {
  display: inline-block;
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  text-decoration: none;
  color: inherit;
  background: #fff;
  font-size: .95rem;
  line-height: 1.2;
}

.wlr-submenu-list a:hover,
.wlr-submenu-list a:focus {
  background: var(--wlr-bgsoft);
}

/* ---------- Responsive images ---------- */
.wlr-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wlr-cover img,
.wlr-catalogue-cover img,
.wlr-hero img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--wlr-radius);
}

/* ---------- Catalogue cover + flip layout ---------- */
.wlr-catalogue-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 860px){
  .wlr-catalogue-hero {
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
  }
}

.wlr-cover {
  margin: 0;
}

.wlr-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--wlr-radius);
  border: 1px solid var(--wlr-border);
  background: #fff;
}

.wlr-flip {
  margin-top: 1.5rem;
}

.wlr-flip-embed {
  border: 1px solid var(--wlr-border);
  border-radius: var(--wlr-radius);
  background: #fff;
  overflow: hidden;
}

.wlr-flip-embed iframe {
  width: 100%;
  height: min(78vh, 900px);
  border: 0;
  display: block;
}

/* =========================================================
   EVENTS: Whole Life Field — Live Dialogue
   /events/live-dialogue/
   Option A (no countdown)
   ========================================================= */
.wlr-invite-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.2rem) 0;
  overflow: hidden;
  border: 1px solid var(--wlr-border);
  border-radius: var(--wlr-radius);
}

.wlr-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(.92) saturate(.95);
  transform: scale(1.02);
  z-index: 0;
  pointer-events: none;
}

.wlr-invite-card {
  width: min(920px, 100%);
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--wlr-border);
  border-radius: var(--wlr-radius);
  padding: clamp(1.25rem, 3vw, 2.4rem);
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
  backdrop-filter: blur(6px);
}

.wlr-invite-brand {
  display: flex;
  gap: .6rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: .75rem;
  color: var(--wlr-muted);
  font-size: .95rem;
}

.wlr-invite-brandlink {
  text-decoration: none;
  color: rgba(0,0,0,.72);
  font-weight: 600;
}

.wlr-invite-dot {
  opacity: .6;
}

.wlr-invite-title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 .4rem 0;
}

.wlr-invite-subtitle {
  text-align: center;
  margin: 0 0 1rem 0;
  color: var(--wlr-muted);
  font-weight: 650;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.wlr-invite-lede {
  text-align: center;
  margin: 0 auto 1rem auto;
  max-width: 70ch;
  color: var(--wlr-muted);
  line-height: 1.65;
}

.wlr-invite-when {
  text-align: center;
  font-size: 1.05rem;
  margin: .25rem 0 1.1rem 0;
}

.wlr-invite-theme-note {
  text-align: center;
  margin: -.35rem auto 1.1rem auto;
  max-width: 75ch;
  color: rgba(0,0,0,.68);
  line-height: 1.55;
}

.wlr-invite-theme-note a {
  font-weight: 700;
  text-decoration: none;
}

.wlr-invite-theme-note a:hover {
  text-decoration: underline;
}

.wlr-invite-fineprint {
  text-align: center;
  margin: 1.1rem 0 0 0;
  font-size: .92rem;
  color: var(--wlr-muted);
  line-height: 1.55;
}

/* Buttons for the event page */
.wlr-invite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.25rem;
  min-width: 270px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 14px 28px rgba(0,0,0,.14);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.wlr-invite-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(0,0,0,.18);
  opacity: .98;
}

.wlr-invite-btn-yt {
  background: #d93025;
}

.wlr-invite-btn-zoom {
  background: #2563eb;
}

@media (max-width: 520px){
  .wlr-invite-btn {
    min-width: 100%;
  }
}

/* Option A: session list */
.wlr-session-list {
  display: grid;
  gap: 1rem;
  margin: .9rem 0 1.1rem 0;
}

.wlr-session {
  border: 1px solid var(--wlr-border);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  padding: 1rem 1.05rem;
}

.wlr-session-head {
  text-align: center;
  margin-bottom: .9rem;
}

.wlr-session-title {
  margin: 0 0 .25rem 0;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}

.wlr-session-meta {
  margin: 0;
  color: var(--wlr-muted);
  line-height: 1.4;
}

.wlr-session-meta-sep {
  margin: 0 .35rem;
  opacity: .6;
}

.wlr-session-theme {
  margin: .45rem 0 0 0;
  color: rgba(0,0,0,.72);
}

.wlr-session-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 520px){
  .wlr-session {
    padding: .95rem;
  }
}

/* === Live Dialogue hero: stacking fix (permanent) === */

/* ===== Responsive full-bleed hero ===== */

/* ================================
   Whole Life Field Invite — mobile responsiveness + “image breathing room”
   Paste this block at the END of wlr-catalogue.css (so it overrides earlier rules)
   ================================ */

/* Hero: give the background image space around the card */
.wlr-invite-hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  overflow: hidden;
}

/* Card: slightly narrower so image can appear at sides */
.wlr-invite-card {
  width: min(860px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Optional: make the background image feel more atmospheric */
.wlr-hero-image {
  filter: brightness(.82) saturate(.95);
}

/* Mobile / small tablets */
@media (max-width: 768px){
  .wlr-invite-hero {
    min-height: 100vh;
    padding: 2rem 1rem;
  }
  .wlr-invite-card {
    width: 94%;
  }
}

/* =========================================================
   Whole Life Field Invite — responsive hero that WORKS
   Desktop: image behind card
   Mobile: image becomes a visible banner above the card
   Paste at END of wlr-catalogue.css
   ========================================================= */

/* --- Desktop / default: background-style hero --- */
.wlr-invite-hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  overflow: hidden;
  isolation: isolate;
}

.wlr-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  filter: brightness(.92) saturate(.95);
  transform: scale(1.02);
  pointer-events: none;
}

.wlr-invite-card {
  position: relative;
  z-index: 1;
  width: min(900px, 92%);
  margin: 0 auto;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
}

/* --- Mobile: make the image a real banner ABOVE the card --- */
@media (max-width: 768px){
  .wlr-invite-hero {
    display: block;
    min-height: auto;
    padding: 0;
    overflow: visible;
  }
  .wlr-hero-image {
    position: relative;
    display: block;
    width: 100%;
    height: 32vh;
    min-height: 220px;
    max-height: 360px;
    transform: none;
    filter: brightness(.95) saturate(.98);
  }
  .wlr-invite-card {
    width: 94%;
    margin: -2rem auto 1.25rem auto;
    border-radius: 16px;
  }
}

/* =========================================================
   M4 PAGE
   Scoped to body.m4-page so it does not affect other pages
   ========================================================= */

body.m4-page {
  background: linear-gradient(180deg, #061f18 0%, #0a2b21 55%, #08241c 100%);
  color: #e9e5d6;
}

body.m4-page .container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

body.m4-page .top-spacer {
  height: 18px;
}

body.m4-page .banner-wrap {
  padding: 12px 0 18px;
}

body.m4-page .banner-card {
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 24px;
  overflow: hidden;
  background: #071e17;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

body.m4-page .hero {
  padding: 40px 0 18px;
}

body.m4-page .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

body.m4-page .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 999px;
  color: #e5c86b;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.m4-page h1,
body.m4-page h2,
body.m4-page h3 {
  color: #f6f1df;
  line-height: 1.1;
}

body.m4-page h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  margin: 0 0 14px;
}

body.m4-page h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 14px;
}

body.m4-page h3 {
  font-size: 1.2rem;
  margin: 0 0 14px;
}

body.m4-page .lead {
  font-size: 1.12rem;
  color: #e9e5d6;
  max-width: 62ch;
}

body.m4-page .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

body.m4-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #d6af45;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: 0.2s ease;
}

body.m4-page .btn-primary {
  background: linear-gradient(180deg, #ebcf76 0%, #c89a27 100%);
  color: #132117;
  box-shadow: 0 8px 18px rgba(214, 175, 69, 0.22);
}

body.m4-page .btn-secondary {
  background: transparent;
  color: #e5c86b;
}

body.m4-page .btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

/* ===== M4 PANEL — Banner-Matched Styling ===== */
body.m4-page .panel {
  background: linear-gradient(
    180deg,
    #0b2f25 0%,
    #07241c 55%,
    #041a14 100%
  );
  box-shadow:
    inset 0 0 40px rgba(214, 175, 69, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(214, 175, 69, 0.45);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

body.m4-page .panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(214, 175, 69, 0.08) 45%,
    rgba(214, 175, 69, 0.15) 50%,
    rgba(214, 175, 69, 0.08) 55%,
    transparent 100%
  );
  opacity: 0.35;
  pointer-events: none;
}

body.m4-page .panel h3 {
  color: #f6f1df;
  font-size: 1.3rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

body.m4-page .event-meta {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

body.m4-page .meta-item {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(214, 175, 69, 0.2);
}

body.m4-page .meta-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.m4-page .meta-label {
  color: #e5c86b;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

body.m4-page section {
  padding: 26px 0;
}

body.m4-page .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

body.m4-page .card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

body.m4-page .card p,
body.m4-page .book-box p,
body.m4-page .faq-item p,
body.m4-page .small-note {
  color: #c8c2af;
}

body.m4-page .feature-kicker {
  color: #e5c86b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

body.m4-page .book-box {
  background: linear-gradient(
    180deg,
    rgba(214, 175, 69, 0.08) 0%,
    rgba(214, 175, 69, 0.03) 100%
  );
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 18px;
  padding: 24px;
}

body.m4-page .faq-list {
  display: grid;
  gap: 16px;
}

body.m4-page .faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 14px;
  padding: 18px 20px;
}

body.m4-page .footer-cta {
  padding: 20px 0 56px;
}

body.m4-page .footer-box {
  text-align: center;
  padding: 30px 22px;
  background: linear-gradient(
    180deg,
    rgba(214, 175, 69, 0.10) 0%,
    rgba(255,255,255,0.03) 100%
  );
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

@media (max-width: 980px) {
  body.m4-page .hero-grid,
  body.m4-page .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.m4-page .container {
    width: min(1200px, calc(100% - 20px));
  }

  body.m4-page .panel,
  body.m4-page .card,
  body.m4-page .book-box,
  body.m4-page .footer-box {
    padding: 18px;
  }

  body.m4-page .cta-row {
    flex-direction: column;
  }

  body.m4-page .btn {
    width: 100%;
  }
}
/* ===== FORCE M4 CARD GRID FIX ===== */

body.m4-page .cards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

body.m4-page .card {
  display: block !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(214, 175, 69, 0.28) !important;
  border-radius: 18px !important;
  padding: 24px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18) !important;
}

@media (max-width: 980px) {
  body.m4-page .cards {
    grid-template-columns: 1fr !important;
  }
}
/* ===== M4 PANEL FINAL FIX (contrast + banner match) ===== */

body.m4-page .panel {
    background: linear-gradient(
        180deg,
        #0b2f25 0%,
        #07241c 55%,
        #041a14 100%
    ) !important;

    border: 1px solid rgba(214, 175, 69, 0.45) !important;
    border-radius: 18px !important;

    box-shadow:
        inset 0 0 40px rgba(214, 175, 69, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.35) !important;

    color: #ffffff !important; /* CRITICAL: fixes readability */
}

/* heading */
body.m4-page .panel h3 {
    color: #f6f1df !important;
}

/* labels */
body.m4-page .panel .meta-label {
    color: #e5c86b !important;
}

/* content values */
body.m4-page .panel .meta-item {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(214, 175, 69, 0.2) !important;
}
/* ===== M4 PANEL FINAL FIX (contrast + banner match) ===== */

body.m4-page .panel {
    background: linear-gradient(
        180deg,
        #0b2f25 0%,
        #07241c 55%,
        #041a14 100%
    ) !important;

    border: 1px solid rgba(214, 175, 69, 0.45) !important;
    border-radius: 18px !important;

    box-shadow:
        inset 0 0 40px rgba(214, 175, 69, 0.08),
        0 12px 28px rgba(0, 0, 0, 0.35) !important;

    color: #ffffff !important; /* CRITICAL: fixes readability */
}

/* heading */
body.m4-page .panel h3 {
    color: #f6f1df !important;
}

/* labels */
body.m4-page .panel .meta-label {
    color: #e5c86b !important;
}

/* content values */
body.m4-page .panel .meta-item {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(214, 175, 69, 0.2) !important;
}
/* =========================================================
   M4 PAGE
   Scoped to body.m4-page so it does not affect other pages
   ========================================================= */

body.m4-page {
  background: linear-gradient(180deg, #061f18 0%, #0a2b21 55%, #08241c 100%);
  color: #e9e5d6;
}

body.m4-page .m4-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

body.m4-page .top-spacer {
  height: 18px;
}

body.m4-page .banner-wrap {
  padding: 12px 0 18px;
}

body.m4-page .banner-card {
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 24px;
  overflow: hidden;
  background: #071e17;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

body.m4-page .banner-card img {
  display: block;
  width: 100%;
  height: auto;
}

body.m4-page .hero {
  padding: 40px 0 18px;
}

body.m4-page .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

body.m4-page .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 999px;
  color: #e5c86b;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.m4-page h1,
body.m4-page h2,
body.m4-page h3 {
  color: #f6f1df;
  line-height: 1.1;
}

body.m4-page h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  margin: 0 0 14px;
}

body.m4-page h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 14px;
}

body.m4-page h3 {
  font-size: 1.2rem;
  margin: 0 0 14px;
}

body.m4-page .lead {
  font-size: 1.12rem;
  color: #e9e5d6;
  max-width: 62ch;
}

body.m4-page .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  position: relative;
  z-index: 3;
}

body.m4-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #d6af45;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: 0.2s ease;
  position: relative;
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
}

body.m4-page .btn-primary {
  background: linear-gradient(180deg, #ebcf76 0%, #c89a27 100%);
  color: #132117;
  box-shadow: 0 8px 18px rgba(214, 175, 69, 0.22);
}

body.m4-page .btn-secondary {
  background: transparent;
  color: #e5c86b;
}

body.m4-page .btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

/* Panel */
body.m4-page .panel {
  background: linear-gradient(180deg, #0b2f25 0%, #07241c 55%, #041a14 100%);
  box-shadow:
    inset 0 0 40px rgba(214, 175, 69, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(214, 175, 69, 0.45);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

body.m4-page .panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(214, 175, 69, 0.08) 45%,
    rgba(214, 175, 69, 0.15) 50%,
    rgba(214, 175, 69, 0.08) 55%,
    transparent 100%
  );
  opacity: 0.35;
  pointer-events: none;
}

body.m4-page .panel h3,
body.m4-page .event-meta {
  position: relative;
  z-index: 1;
}

body.m4-page .panel h3 {
  color: #f6f1df;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

body.m4-page .event-meta {
  display: grid;
  gap: 14px;
}

body.m4-page .meta-item {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(214, 175, 69, 0.2);
}

body.m4-page .meta-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.m4-page .meta-label {
  color: #e5c86b;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

body.m4-page section {
  padding: 26px 0;
}

body.m4-page .cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.m4-page .card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

body.m4-page .card p,
body.m4-page .book-box p,
body.m4-page .faq-item p,
body.m4-page .small-note {
  color: #c8c2af;
}

body.m4-page .feature-kicker {
  color: #e5c86b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

body.m4-page .book-box {
  background: linear-gradient(
    180deg,
    rgba(214, 175, 69, 0.08) 0%,
    rgba(214, 175, 69, 0.03) 100%
  );
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 18px;
  padding: 24px;
}

body.m4-page .faq-list {
  display: grid;
  gap: 16px;
}

body.m4-page .faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 14px;
  padding: 18px 20px;
}

body.m4-page .footer-cta {
  padding: 20px 0 56px;
}

body.m4-page .footer-box {
  text-align: center;
  padding: 30px 22px;
  background: linear-gradient(
    180deg,
    rgba(214, 175, 69, 0.10) 0%,
    rgba(255,255,255,0.03) 100%
  );
  border: 1px solid rgba(214, 175, 69, 0.28);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

@media (max-width: 980px) {
  body.m4-page .hero-grid,
  body.m4-page .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.m4-page .m4-wrap {
    width: min(1200px, calc(100% - 20px));
  }

  body.m4-page .panel,
  body.m4-page .card,
  body.m4-page .book-box,
  body.m4-page .footer-box {
    padding: 18px;
  }

  body.m4-page .cta-row {
    flex-direction: column;
  }

  body.m4-page .btn {
    width: 100%;
  }
}
/* =========================================================
   M4 PAGE — POLISH PASS
   Add this at the very bottom of style.css
   ========================================================= */

body.m4-page .hero {
  padding: 56px 0 28px;
}

body.m4-page h1 {
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

body.m4-page h2 {
  letter-spacing: -0.01em;
}

body.m4-page .lead {
  font-size: 1.14rem;
  line-height: 1.7;
}

body.m4-page .eyebrow {
  box-shadow: inset 0 0 0 1px rgba(214, 175, 69, 0.08);
}

body.m4-page .banner-card {
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.30),
    inset 0 0 0 1px rgba(214, 175, 69, 0.06);
}

body.m4-page .panel {
  padding: 26px;
  box-shadow:
    inset 0 0 46px rgba(214, 175, 69, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.36);
}

body.m4-page .panel h3 {
  margin-bottom: 18px;
}

body.m4-page .meta-item {
  line-height: 1.55;
}

body.m4-page .cta-row {
  gap: 16px;
  margin-top: 28px;
}

body.m4-page .btn {
  min-height: 50px;
  padding: 0 22px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

body.m4-page .btn-primary {
  box-shadow: 0 12px 26px rgba(214, 175, 69, 0.34);
}

body.m4-page .btn-primary:hover {
  box-shadow: 0 16px 30px rgba(214, 175, 69, 0.40);
}

body.m4-page .btn-secondary:hover {
  background: rgba(214, 175, 69, 0.08);
}

body.m4-page .cards {
  margin-top: 8px;
}

body.m4-page .card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

body.m4-page .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.26);
  border-color: rgba(214, 175, 69, 0.42);
}

body.m4-page .card h3 {
  margin-bottom: 12px;
}

body.m4-page .card p {
  line-height: 1.7;
}

body.m4-page .feature-kicker {
  margin-bottom: 12px;
}

body.m4-page .book-box,
body.m4-page .faq-item,
body.m4-page .footer-box {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
}

body.m4-page .book-box {
  padding: 28px;
}

body.m4-page .faq-item {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

body.m4-page .faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border-color: rgba(214, 175, 69, 0.38);
}

body.m4-page .footer-box {
  padding: 34px 26px;
}

body.m4-page .footer-box .lead {
  margin-top: 4px;
}

body.m4-page .small-note {
  margin-top: 14px;
  font-size: 0.94rem;
  line-height: 1.6;
}

@media (max-width: 980px) {
  body.m4-page .hero {
    padding: 42px 0 20px;
  }

  body.m4-page .panel,
  body.m4-page .book-box,
  body.m4-page .footer-box {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  body.m4-page .hero {
    padding: 34px 0 16px;
  }

  body.m4-page .lead {
    font-size: 1.05rem;
  }

  body.m4-page .btn {
    min-height: 48px;
  }

  body.m4-page .card:hover,
  body.m4-page .faq-item:hover {
    transform: none;
  }
}