/* ==========================================================================
   LEGACY GYMNASTICS CLUB — DESIGN SPEC V2 ("CHAMPION'S NIGHT")
   Tokens, Typography, Component Styles & Responsive Layouts
   ========================================================================== */

:root {
  /* Design Tokens */
  --night: #1E1124;
  --plum: #3D2645;
  --plum-hover: #52345D;
  --plum-dark: #2B1A31;
  --plum-tint: #684277;
  --gold: #D8BC7E;
  --gold-deep: #B8995A;
  --ivory: #FBF7EF;
  --mist: #F3EEF6;
  --ink: #2A1F2E;
  --muted: #5E5266;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
  
  /* Font */
  --font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-btn: 16px;
  --radius-card: 24px;
  --radius-photo: 28px;
  --radius-pill: 999px;
  
  /* Hairline borders & rings */
  --gold-ring: 0 0 0 1px rgba(216, 188, 126, 0.45);
  --dark-ring: 0 0 0 1px rgba(61, 38, 69, 0.12);
}

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

html {
  font-family: var(--font-family);
  background-color: var(--ivory);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--font-family);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Focus Ring & Accessibility (Design Spec Section 7) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold) !important;
  outline-offset: 2px !important;
}

/* Scroll Fade-up & Hero Visibility (Design Spec Section 7 & Plan Phase 1 Task 4) */
.lgm-hero {
  opacity: 1 !important;
  transform: none !important;
}

.lgm-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js-scroll-anim .lgm-reveal:not(.lgm-hero):not(.is-revealed) {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  .js-scroll-anim .lgm-reveal.is-revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lgm-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 800;
  color: var(--plum);
  letter-spacing: -0.025em;
  margin-top: 0;
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Standard Section Container & Spacing (Fixes tight section gaps) */
.lgm-section {
  padding: 80px 0;
  position: relative;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .lgm-section {
    padding: 60px 0;
  }
}

@media (min-width: 1024px) {
  .lgm-section {
    padding: 100px 0;
  }
}

/* Background Color Utilities for Sections */
.bg-ivory {
  background-color: var(--ivory) !important;
  color: var(--ink);
}
.bg-plum {
  background-color: var(--plum) !important;
  color: var(--white);
}
.bg-night {
  background-color: var(--night) !important;
  color: var(--white);
}
.bg-mist {
  background-color: var(--mist) !important;
  color: var(--ink);
}
.bg-white {
  background-color: var(--white) !important;
  color: var(--ink);
}

.lgm-section-header {
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .lgm-section-header {
    margin-bottom: 52px;
  }
}
.lgm-section-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

.text-gold { color: var(--gold) !important; }
.text-gold-deep { color: var(--gold-deep) !important; }
.text-plum { color: var(--plum) !important; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--muted) !important; }

/* Section Eyebrow */
.lgm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 0.75rem + 0.2vw, 14px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--plum-tint);
  margin-bottom: 12px;
}
.lgm-eyebrow.on-dark {
  color: var(--gold);
}
.lgm-eyebrow .star {
  color: var(--gold);
  font-size: 1.1em;
}

/* Section Titles */
.lgm-h2 {
  font-size: clamp(1.875rem, 1.2rem + 2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--plum);
  margin-bottom: 16px;
}
.lgm-h2.on-dark {
  color: var(--white);
}

.lgm-lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.lgm-lead.on-dark {
  color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.lgm-btn-gold {
  background-color: var(--gold);
  color: var(--plum);
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(216, 188, 126, 0.28);
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}
.lgm-btn-gold:hover {
  background-color: #ebd7a3;
  color: var(--plum-dark);
  box-shadow: 0 6px 20px rgba(216, 188, 126, 0.4);
}
.lgm-btn-gold:active {
  transform: scale(0.98);
}

.lgm-btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 48px;
}
.lgm-btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.lgm-btn-outline-white:active {
  transform: scale(0.98);
}

.lgm-btn-whatsapp {
  background: rgba(37, 211, 102, 0.16);
  color: #25D366;
  border: 1.5px solid rgba(37, 211, 102, 0.4);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}
.lgm-btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.28);
  border-color: #25D366;
}

/* ==========================================================================
   HEADER & UTILITY BAR (Section 5.1 & 8a)
   ========================================================================== */

.lgm-utility-bar {
  display: none;
  background-color: #140B18;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 1024px) {
  .lgm-utility-bar {
    display: block;
  }
}
.lgm-utility-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lgm-utility-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lgm-utility-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lgm-utility-right a {
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lgm-utility-right a:hover {
  text-decoration: underline;
}

/* Main Site Header */
.lgm-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 9999;
  background: rgba(30, 17, 36, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 188, 126, 0.15);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
@media (min-width: 1024px) {
  .lgm-header {
    position: sticky;
  }
}
.lgm-header.is-scrolled {
  background-color: var(--night);
  border-bottom: 1px solid rgba(216, 188, 126, 0.3);
}

.lgm-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lgm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.lgm-logo-img {
  height: 58px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  display: block;
}
.lgm-brand-text {
  display: flex;
  flex-direction: column;
}
.lgm-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.1;
}
.lgm-brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Nav links for desktop */
.lgm-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
@media (min-width: 1200px) {
  .lgm-nav {
    display: flex;
  }
}
.lgm-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
}
.lgm-nav a:hover, .lgm-nav a.is-active {
  color: var(--gold);
}

.lgm-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lgm-header-phone {
  display: none;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}
@media (min-width: 1280px) {
  .lgm-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}

.lgm-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
}
@media (min-width: 1200px) {
  .lgm-menu-toggle {
    display: none;
  }
}

/* Mobile Menu Drawer */
.lgm-drawer-portal {
  position: fixed;
  inset: 0;
  background-color: var(--night);
  z-index: 10000;
  padding: 24px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.lgm-drawer-portal.is-open {
  display: flex;
}
.lgm-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.lgm-drawer-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lgm-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lgm-drawer-links a {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lgm-drawer-links a:hover {
  color: var(--gold);
}
.lgm-drawer-bottom {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   HERO SECTION (Section 5.2)
   ========================================================================== */

.lgm-hero {
  position: relative;
  min-height: 100svh;
  background-color: var(--night);
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 60px;
}

/* Background image & gradient fade */
.lgm-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.lgm-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0.35;
  filter: brightness(0.9) contrast(1.1);
}
.lgm-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,17,36,0.3) 0%, rgba(30,17,36,0.65) 55%, var(--night) 85%);
}

/* Desktop Hero Watermark & Grid */
.lgm-hero-watermark {
  position: absolute;
  top: 15%;
  left: 5%;
  font-size: 15vw;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 188, 126, 0.07);
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.lgm-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.lgm-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .lgm-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
  }
}

.lgm-hero-text-wrap {
  max-width: 650px;
}

.lgm-hero-h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}
.lgm-gold-text {
  color: var(--gold);
}

.lgm-hero-lead {
  font-size: clamp(1.05rem, 0.95rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.lgm-hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .lgm-hero-cta-group {
    flex-direction: row;
    align-items: center;
  }
}

.lgm-hero-sub-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lgm-hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}
.lgm-hero-trust .stars {
  color: var(--gold);
  font-size: 14px;
}

/* Hero photo display on iPad/Desktop */
.lgm-hero-media {
  display: none;
  position: relative;
}
@media (min-width: 768px) {
  .lgm-hero-media {
    display: block;
  }
}
.lgm-hero-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
.lgm-hero-photo-main {
  grid-column: span 1;
  aspect-ratio: 3/4;
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: var(--gold-ring);
}
.lgm-hero-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lgm-hero-photo-stacked {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lgm-hero-photo-sub {
  aspect-ratio: 4/3;
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: var(--gold-ring);
}
.lgm-hero-photo-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   AGE FINDER BAR (Section 5.4)
   ========================================================================== */

.lgm-age-bar,
.lgm-finder-band {
  background-color: var(--plum);
  color: var(--white);
  padding: 22px 0;
  border-top: 1px solid rgba(216, 188, 126, 0.25);
  border-bottom: 1px solid rgba(216, 188, 126, 0.25);
}
.lgm-age-bar-inner,
.lgm-finder-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 992px) {
  .lgm-age-bar-inner,
  .lgm-finder-content {
    flex-direction: row;
  }
}
.lgm-age-bar-title,
.lgm-finder-label {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
.lgm-age-bar-title i,
.lgm-finder-label i {
  color: var(--gold);
}
.lgm-age-chips,
.lgm-finder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lgm-age-chip,
.lgm-chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(216, 188, 126, 0.4);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.lgm-age-chip:hover, .lgm-age-chip.is-active,
.lgm-chip:hover, .lgm-chip.is-active {
  background-color: var(--gold);
  color: var(--plum);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 188, 126, 0.3);
}

/* ==========================================================================
   PROGRAM CARDS (Section 5.5 - 3 CARDS PER ROW ON DESKTOP)
   ========================================================================== */

.lgm-programs-section {
  padding: 80px 0;
  background-color: var(--ivory);
}

.lgm-programs-grid,
.lgm-programs-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
  margin-bottom: 36px;
}

@media (min-width: 640px) {
  .lgm-programs-grid,
  .lgm-programs-scroll {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  /* Exactly 3 cards per row on desktop */
  .lgm-programs-grid,
  .lgm-programs-scroll {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.lgm-program-card {
  position: relative;
  background-color: var(--mist);
  border: 1px solid rgba(61, 38, 69, 0.08);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lgm-program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(61, 38, 69, 0.09);
  border-color: rgba(216, 188, 126, 0.45);
}

/* Plum Card (Featured / Toddler Tier) */
.lgm-program-card.plum-card,
.lgm-program-card.is-featured {
  background-color: var(--plum);
  color: var(--white);
  border-color: rgba(216, 188, 126, 0.35);
  box-shadow: 0 10px 28px rgba(61, 38, 69, 0.18);
}

.lgm-program-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  color: rgba(61, 38, 69, 0.1);
  letter-spacing: -0.04em;
  pointer-events: none;
}

.lgm-program-card.plum-card .lgm-program-num,
.lgm-program-card.is-featured .lgm-program-num {
  color: rgba(216, 188, 126, 0.2);
}

.lgm-program-age {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.lgm-program-card.plum-card .lgm-program-age,
.lgm-program-card.is-featured .lgm-program-age {
  color: var(--gold);
}

.lgm-program-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--plum);
  margin-bottom: 12px;
}

.lgm-program-card.plum-card .lgm-program-title,
.lgm-program-card.is-featured .lgm-program-title {
  color: var(--white);
}

.lgm-program-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
}

.lgm-program-card.plum-card .lgm-program-desc,
.lgm-program-card.is-featured .lgm-program-desc {
  color: rgba(255, 255, 255, 0.85);
}

.lgm-program-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lgm-program-card.plum-card .lgm-program-meta,
.lgm-program-card.is-featured .lgm-program-meta {
  color: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.lgm-program-meta i {
  color: var(--gold-deep);
  margin-right: 4px;
}

.lgm-program-card.plum-card .lgm-program-meta i,
.lgm-program-card.is-featured .lgm-program-meta i {
  color: var(--gold);
}

.lgm-program-footer {
  margin-top: auto;
}

.lgm-program-btn,
.lgm-card-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.lgm-program-btn:hover,
.lgm-card-link:hover {
  color: var(--gold-deep);
  transform: translateX(4px);
}

.lgm-program-card.plum-card .lgm-program-btn,
.lgm-program-card.plum-card .lgm-card-link,
.lgm-program-card.is-featured .lgm-program-btn,
.lgm-program-card.is-featured .lgm-card-link {
  color: var(--gold);
}

.lgm-program-card.plum-card .lgm-program-btn:hover,
.lgm-program-card.plum-card .lgm-card-link:hover,
.lgm-program-card.is-featured .lgm-program-btn:hover,
.lgm-program-card.is-featured .lgm-card-link:hover {
  color: var(--white);
}

/* ==========================================================================
   GYMNAST OF THE WEEK SPOTLIGHT (Section 5.6)
   ========================================================================== */

.lgm-spotlight-section {
  background-color: var(--night);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.lgm-spotlight-card {
  background-color: var(--plum-dark);
  color: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(216, 188, 126, 0.35);
  padding: 32px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
@media (min-width: 1024px) {
  .lgm-spotlight-card {
    padding: 48px;
  }
}

.lgm-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  /* Photo and text side-by-side on tablet and desktop */
  .lgm-spotlight-grid {
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .lgm-spotlight-grid {
    grid-template-columns: 380px 1fr;
    gap: 52px;
  }
}

.lgm-spotlight-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.lgm-spotlight-photo,
.lgm-spotlight-photo-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-photo);
  box-shadow: var(--gold-ring);
  display: block;
}
.lgm-spotlight-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(30, 17, 36, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.lgm-spotlight-badge {
  background: var(--gold);
  color: var(--plum);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.lgm-spotlight-name {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.lgm-spotlight-achievement {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}
.lgm-spotlight-bio {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

/* First Visit in 3 Steps (under spotlight on iPad/Desktop) */
.lgm-first-visit-steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}
@media (min-width: 768px) {
  .lgm-first-visit-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.lgm-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.lgm-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(216, 188, 126, 0.15);
  color: var(--gold);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.lgm-step-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.lgm-step-text p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ==========================================================================
   FOUNDED BY GYMNASTICS MOMS (Design Recommendations #30 & #78-79)
   ========================================================================== */

.lgm-moms-section {
  padding: 80px 0;
  background-color: var(--ivory);
}
.lgm-moms-card {
  background-color: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(61, 38, 69, 0.08);
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(61, 38, 69, 0.04);
}
@media (min-width: 1024px) {
  .lgm-moms-card {
    padding: 56px 48px;
  }
}
.lgm-moms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 1024px) {
  .lgm-moms-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}
.lgm-moms-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(61, 38, 69, 0.08);
}
.lgm-moms-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lgm-moms-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 32px 0;
}
@media (min-width: 640px) {
  .lgm-moms-points {
    grid-template-columns: 1fr 1fr;
  }
}
.lgm-moms-point-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.lgm-moms-point-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(216, 188, 126, 0.2);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.lgm-moms-point-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 600;
}

/* ==========================================================================
   COACHES SECTION (Section 8a)
   ========================================================================== */

.lgm-coaches-section {
  padding: 80px 0;
  background-color: var(--ivory);
}
.lgm-coaches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .lgm-coaches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .lgm-coaches-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.lgm-coach-card {
  background: var(--mist);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(61, 38, 69, 0.08);
  transition: transform 0.2s ease;
}
.lgm-coach-card:hover {
  transform: translateY(-4px);
}
.lgm-coach-photo {
  aspect-ratio: 1/1;
  overflow: hidden;
}
.lgm-coach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lgm-coach-info {
  padding: 20px;
}
.lgm-coach-chip {
  display: inline-block;
  background: rgba(61, 38, 69, 0.08);
  color: var(--plum);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.lgm-coach-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 4px;
}
.lgm-coach-role {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* ==========================================================================
   BENEFITS TILES ("What your child gains", Section 5.8)
   ========================================================================== */

.lgm-benefits-section {
  padding: 80px 0;
  background-color: var(--white);
}

.lgm-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (min-width: 1024px) {
  .lgm-benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.lgm-benefit-tile {
  background-color: var(--mist);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  border: 1px solid rgba(61, 38, 69, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.lgm-benefit-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(61, 38, 69, 0.08);
  border-color: rgba(216, 188, 126, 0.4);
}
.lgm-benefit-icon,
.lgm-benefit-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(61, 38, 69, 0.07);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}
.lgm-benefit-tile:hover .lgm-benefit-icon,
.lgm-benefit-tile:hover .lgm-benefit-icon-box {
  background-color: var(--plum);
  color: var(--gold);
}
.lgm-benefit-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 8px;
}
.lgm-benefit-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   TODAY AT THE GYM (Timetable Preview, Section 5.7 & 6)
   ========================================================================== */

.lgm-today-section {
  padding: 80px 0;
  background-color: var(--ivory);
}

.lgm-today-table {
  background-color: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(61, 38, 69, 0.08);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(61, 38, 69, 0.04);
}
.lgm-today-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(61, 38, 69, 0.06);
}
.lgm-today-row:last-child {
  border-bottom: none;
}
.lgm-today-time {
  font-size: 15px;
  font-weight: 800;
  color: var(--plum);
  min-width: 140px;
}
.lgm-today-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  flex-grow: 1;
}
.lgm-today-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.lgm-today-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.lgm-badge-trial {
  background: rgba(216, 188, 126, 0.25);
  color: var(--plum);
  border: 1px solid var(--gold);
}
.lgm-badge-invitation {
  background: rgba(61, 38, 69, 0.08);
  color: var(--muted);
}

/* ==========================================================================
   INTERACTIVE CLASS FINDER & TIMETABLE ([lgm_timetable], Section 5.7)
   ========================================================================== */

.lgm-timetable-wrap {
  width: 100%;
  margin: 32px 0;
}

.lgm-tf-step-label {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--plum);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lgm-tf-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Age Filter Chips */
.lgm-tf-age-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.lgm-tf-age-btn {
  background-color: var(--mist);
  color: var(--ink);
  border: 1px solid rgba(61, 38, 69, 0.12);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lgm-tf-age-btn:hover {
  background-color: #ebdff0;
  border-color: var(--plum);
}
.lgm-tf-age-btn.is-active {
  background-color: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}

/* Day Filter Tabs */
.lgm-tf-day-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .lgm-tf-day-tabs {
    grid-template-columns: repeat(6, 1fr);
  }
}
.lgm-tf-day-btn {
  background-color: var(--white);
  color: var(--ink);
  border: 1px solid rgba(61, 38, 69, 0.1);
  padding: 12px 8px;
  border-radius: var(--radius-btn);
  font-family: var(--font-family);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lgm-tf-day-btn:hover {
  border-color: var(--plum);
}
.lgm-tf-day-btn.is-active {
  background-color: var(--plum);
  color: var(--white);
  border-color: var(--plum);
}
.lgm-tf-day-name {
  font-size: 14px;
  font-weight: 800;
  display: block;
}
.lgm-tf-day-count {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
  display: block;
}
.lgm-tf-day-btn.is-active .lgm-tf-day-count {
  color: var(--gold);
}

/* Session Results */
.lgm-tf-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.lgm-tf-count-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--plum);
}

.lgm-tf-session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lgm-tf-session-card {
  background: var(--white);
  border-radius: var(--radius-btn);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(61, 38, 69, 0.08);
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lgm-tf-session-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(61, 38, 69, 0.06);
}

/* Colored accent bar on left */
.lgm-tf-color-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--plum);
}
.lgm-tf-session-card.program-toddler .lgm-tf-color-bar { background-color: #E6A23C; }
.lgm-tf-session-card.program-recreational .lgm-tf-color-bar { background-color: #409EFF; }
.lgm-tf-session-card.program-squads .lgm-tf-color-bar { background-color: #67C23A; }
.lgm-tf-session-card.program-adult .lgm-tf-color-bar { background-color: #909399; }

.lgm-tf-session-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lgm-tf-time {
  font-size: 16px;
  font-weight: 800;
  color: var(--plum);
  min-width: 140px;
}
.lgm-tf-info {
  display: flex;
  flex-direction: column;
}
.lgm-tf-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}
.lgm-tf-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.lgm-tf-session-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lgm-tf-empty {
  background: var(--mist);
  padding: 40px;
  border-radius: var(--radius-card);
  text-align: center;
}
.lgm-tf-empty h3 {
  margin-bottom: 8px;
  color: var(--plum);
}
.lgm-tf-empty p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   VIDEO & BENTO GALLERY (Section 5.9)
   ========================================================================== */

.lgm-video-gallery-section {
  padding: 80px 0;
  background-color: var(--ivory);
}

.lgm-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) {
  .lgm-bento-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* YouTube Click-to-Load Card */
.lgm-video-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background-color: var(--night);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(30, 17, 36, 0.15);
}
.lgm-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.lgm-video-card:hover .lgm-video-poster {
  transform: scale(1.02);
}
.lgm-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 17, 36, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.lgm-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(216, 188, 126, 0.5);
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}
.lgm-video-card:hover .lgm-play-btn {
  transform: scale(1.08);
}
.lgm-video-caption {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.lgm-bento-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lgm-bento-photo-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  max-height: 180px;
}
.lgm-bento-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.lgm-bento-photo-item:hover img {
  transform: scale(1.05);
}

/* Compact Gallery Strip Fallback */
.lgm-gallery-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 32px auto 0 auto;
}
@media (min-width: 768px) {
  .lgm-gallery-grid-compact {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}
.lgm-gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  max-height: 160px;
}
.lgm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.lgm-gallery-item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   PARTIES & CAMPS BAND (Section 5.10)
   ========================================================================== */

.lgm-parties-camps-section {
  padding: 80px 0;
  background-color: var(--white);
}

.lgm-parties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .lgm-parties-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.lgm-band-card {
  position: relative;
  height: 380px;
  border-radius: var(--radius-photo);
  overflow: hidden;
  color: var(--white);
  box-shadow: 0 10px 28px rgba(61, 38, 69, 0.12);
}
.lgm-band-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lgm-band-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61, 38, 69, 0.25) 0%, rgba(61, 38, 69, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.lgm-band-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.lgm-band-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.lgm-band-desc {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ==========================================================================
   REVIEWS ("Loved by Families", Section 5.11)
   ========================================================================== */

.lgm-reviews-section {
  padding: 80px 0;
  background-color: var(--ivory);
}

.lgm-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .lgm-reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lgm-review-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  border: 1px solid rgba(216, 188, 126, 0.3);
  box-shadow: 0 6px 20px rgba(61, 38, 69, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lgm-review-stars {
  color: var(--gold-deep);
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 4px;
}
.lgm-review-quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 24px;
  font-style: italic;
}
.lgm-reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lgm-reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.lgm-reviewer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--plum);
}
.lgm-reviewer-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   LATEST FROM LEGACY (Section 8a)
   ========================================================================== */

.lgm-latest-section {
  padding: 80px 0;
  background-color: var(--white);
}

.lgm-latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .lgm-latest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lgm-post-card {
  background: var(--mist);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(61, 38, 69, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}
.lgm-post-card:hover {
  transform: translateY(-4px);
}
.lgm-post-photo {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.lgm-post-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lgm-post-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.lgm-post-chip {
  align-self: flex-start;
  background: rgba(61, 38, 69, 0.08);
  color: var(--plum);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.lgm-post-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 10px;
  line-height: 1.3;
}
.lgm-post-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}
.lgm-post-link {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   FAQ & FIND US (Section 5.12 & 5.13)
   ========================================================================== */

.lgm-faq-find-section {
  padding: 80px 0;
  background-color: var(--ivory);
}

.lgm-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 1024px) {
  .lgm-faq-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
  }
}

/* Native Details/Summary styling */
.lgm-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lgm-faq-item {
  background: var(--mist);
  border-radius: var(--radius-btn);
  border: 1px solid rgba(61, 38, 69, 0.08);
  overflow: hidden;
}
.lgm-faq-summary {
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 800;
  color: var(--plum);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.lgm-faq-summary::-webkit-details-marker {
  display: none;
}
.lgm-faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--plum);
  transition: transform 0.2s ease;
}
details[open] .lgm-faq-icon {
  transform: rotate(45deg);
}
.lgm-faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* Find Us Card */
.lgm-find-us-card {
  background-color: var(--plum);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  border: 1px solid rgba(216, 188, 126, 0.35);
  box-shadow: 0 10px 30px rgba(61, 38, 69, 0.15);
}
.lgm-find-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.lgm-find-address {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 24px;
}
.lgm-find-hours {
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: var(--radius-btn);
  margin-bottom: 24px;
  font-size: 14px;
}
.lgm-find-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

/* Tap-to-load Map */
.lgm-map-placeholder {
  position: relative;
  height: 200px;
  border-radius: var(--radius-btn);
  overflow: hidden;
  background: var(--plum-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(216, 188, 126, 0.25);
}
.lgm-map-btn {
  background: var(--gold);
  color: var(--plum);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   FOOTER (Section 5.13)
   ========================================================================== */

.lgm-footer {
  background-color: var(--night);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(216, 188, 126, 0.2);
}
.lgm-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (min-width: 768px) {
  .lgm-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}
.lgm-footer-brand h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 8px;
}
.lgm-footer-slogan {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.lgm-footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}
.lgm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lgm-footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}
.lgm-footer-links a:hover {
  color: var(--gold);
}

.lgm-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
@media (min-width: 768px) {
  .lgm-footer-bottom {
    flex-direction: row;
  }
}

/* ==========================================================================
   STICKY BOTTOM BAR (Phone Only, Section 5.3)
   ========================================================================== */

.lgm-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--night);
  border-top: 1px solid rgba(216, 188, 126, 0.25);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) 16px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lgm-bottom-bar.is-visible {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .lgm-bottom-bar {
    display: none !important;
  }
}

.lgm-bottom-bar-btn-main {
  flex-grow: 1;
  background-color: var(--gold);
  color: var(--plum);
  font-weight: 800;
  font-size: 15px;
  height: 54px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.lgm-bottom-bar-square {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  flex-shrink: 0;
}
.lgm-bottom-bar-whatsapp {
  background-color: var(--whatsapp);
  color: var(--white);
}
.lgm-bottom-bar-call {
  background-color: var(--plum-hover);
  color: var(--white);
}

/* Body bottom padding on mobile for sticky bar */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
  }
}

/* ==========================================================================
   FLUENT FORMS STYLING ("CHAMPION'S NIGHT" THEME)
   ========================================================================== */

.fluentform {
  font-family: var(--font-family) !important;
}
.fluentform .ff-el-input--label label {
  color: var(--white) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-bottom: 6px !important;
  display: block;
}
.fluentform input.ff-el-form-control,
.fluentform select.ff-el-form-control,
.fluentform textarea.ff-el-form-control {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: var(--white) !important;
  border-radius: var(--radius-btn) !important;
  padding: 12px 18px !important;
  font-size: 15px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: var(--font-family) !important;
}
.fluentform input.ff-el-form-control:focus,
.fluentform select.ff-el-form-control:focus,
.fluentform textarea.ff-el-form-control:focus {
  border-color: var(--gold) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(216, 188, 126, 0.35) !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
}
.fluentform select.ff-el-form-control option {
  background-color: var(--plum-dark) !important;
  color: var(--white) !important;
}
.fluentform .ff-btn-submit {
  background-color: var(--gold) !important;
  color: var(--plum) !important;
  font-family: var(--font-family) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  border-radius: var(--radius-btn) !important;
  border: none !important;
  padding: 16px 28px !important;
  cursor: pointer !important;
  width: 100% !important;
  min-height: 52px !important;
  box-shadow: 0 4px 14px rgba(216, 188, 126, 0.3) !important;
  transition: all 0.2s ease !important;
  margin-top: 12px;
}
.fluentform .ff-btn-submit:hover {
  background-color: #ebd7a3 !important;
  transform: translateY(-2px);
}
.fluentform .ff_t_c, .fluentform .ff_t_c a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 13px !important;
}
.fluentform .ff_t_c a {
  color: var(--gold) !important;
  text-decoration: underline !important;
}
.fluentform .ff-el-form-check-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
/* ==========================================================================
   FLOATING WHATSAPP (iPad & Desktop, Section 5.14)
   ========================================================================== */

.lgm-floating-whatsapp {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--whatsapp);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 9990;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
@media (min-width: 768px) {
  .lgm-floating-whatsapp {
    display: flex;
  }
}
.lgm-floating-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.08);
}



/* ==========================================================================
   HOMEPAGE LAYOUT PASS
   Rules for components the homepage markup already uses but that had no
   styles, plus one spacing rhythm: section → header → content → cards.
   ========================================================================== */

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

/* Header → content: 44px mobile, 56px desktop */
.lgm-section-header { margin-bottom: 44px; }
@media (min-width: 768px) {
  .lgm-section-header { margin-bottom: 56px; }
}
.lgm-section-header .lgm-h2 { margin-bottom: 14px; }

/* ---- First visit: three numbered steps (a real sequence, so numbers are right) ---- */
.lgm-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .lgm-steps-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.lgm-step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 188, 126, 0.25);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.lgm-step-card .lgm-step-num {
  width: 48px;
  height: 48px;
  font-size: 20px;
  background: var(--gold);
  color: var(--plum);
  border-color: var(--gold);
  margin-bottom: 24px;
}
.lgm-step-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
  margin: 0 0 10px;
}
.lgm-step-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* ---- Birthday parties & camps: two equal cards, photo cropped to one ratio ---- */
.lgm-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 992px) {
  .lgm-events-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
.lgm-event-card {
  background: var(--white);
  border: 1px solid rgba(61, 38, 69, 0.07);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(61, 38, 69, 0.08);
  display: flex;
  flex-direction: column;
}
.lgm-event-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--plum-dark);
}
.lgm-event-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.lgm-event-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(30, 17, 36, 0.85);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
}
.lgm-event-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.lgm-event-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--plum);
  margin: 0 0 12px;
}
.lgm-event-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}
.lgm-event-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(61, 38, 69, 0.08);
  display: grid;
  gap: 10px;
}
.lgm-event-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.lgm-event-list li i {
  margin-top: 4px;
  font-size: 12px;
}
/* Button row sits at the bottom of every card so the cards line up */
.lgm-event-body > div:last-child {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Secondary buttons used on light sections */
.lgm-btn-plum {
  background: var(--plum);
  color: var(--white);
  font-family: var(--font-family);
  font-weight: 800;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.lgm-btn-plum:hover { background: var(--plum-hover); }
.lgm-btn-print {
  background: var(--plum);
  color: var(--white);
  transition: all 0.2s ease;
}
.lgm-btn-print:hover,
.lgm-btn-print:focus {
  background: var(--plum-hover);
  color: #FFD700 !important;
}
.lgm-btn-print:hover i,
.lgm-btn-print:focus i {
  color: #FFD700 !important;
}

.lgm-btn-outline-dark {
  background: transparent;
  color: var(--plum);
  font-family: var(--font-family);
  font-weight: 700;
  border: 1.5px solid rgba(61, 38, 69, 0.3);
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lgm-btn-outline-dark:hover {
  border-color: var(--plum);
  background: rgba(61, 38, 69, 0.05);
}

/* ---- FAQ + visit: two columns on desktop, stacked on phone ---- */
.lgm-two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 992px) {
  .lgm-two-col-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
}
.lgm-faq-accordion {
  display: grid;
  gap: 12px;
}
.lgm-faq-accordion details {
  background: var(--white);
  border: 1px solid rgba(61, 38, 69, 0.08);
  border-radius: var(--radius-btn);
  overflow: hidden;
}
.lgm-faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--plum);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lgm-faq-question::-webkit-details-marker { display: none; }
.lgm-faq-arrow {
  color: var(--gold-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.lgm-faq-accordion details[open] > .lgm-faq-question .lgm-faq-arrow {
  transform: rotate(180deg);
}
.lgm-faq-accordion details > .lgm-faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* Spotlight text column may shrink inside its grid */
.lgm-spotlight-info { min-width: 0; }

/* ==========================================================================
   FULL-PAGE SPACING CORRECTIONS
   1. Theme adds ~1.5em top margin to every h1/h2 (78px desktop, 48px phone).
      Headings in our sections start at the top of their own box instead.
   2. Section padding tightened: 100→88px desktop, 60→52px phone.
   3. Hero: shorter stage, smaller headline, tighter lead/CTA/trust rhythm.
   4. Program cards no longer forced to 360px tall when stacked on phone.
   ========================================================================== */

.lgm-hero h1,
.lgm-section h1,
.lgm-section h2,
.lgm-section h3,
.lgm-moms-section h2,
.lgm-spotlight-info h2 {
  margin-top: 0;
}

/* Section rhythm */
.lgm-section,
.lgm-moms-section {
  padding-top: 88px;
  padding-bottom: 88px;
}
.lgm-section-header {
  margin-bottom: 48px;
}
@media (max-width: 767px) {
  .lgm-section,
  .lgm-moms-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }
  .lgm-section-header {
    margin-bottom: 32px;
  }
}

/* Hero */
.lgm-hero {
  min-height: min(100svh, 820px);
  padding-top: 96px;
  padding-bottom: 64px;
}
.lgm-hero-h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
  margin-bottom: 16px;
}
.lgm-hero-lead {
  margin-bottom: 28px;
}
.lgm-hero-cta-group {
  margin-bottom: 24px;
}
.lgm-hero-trust {
  font-size: 14px;
}
.lgm-hero-sub-btns {
  grid-template-columns: repeat(2, auto);
}
.lgm-hero-sub-btns a {
  white-space: nowrap;
}

/* Program cards: natural height when stacked on phone */
@media (max-width: 639px) {
  .lgm-program-card {
    min-height: 0;
    padding: 24px 22px;
  }
}

/* Program cards on phone: swipeable row instead of six stacked cards */
@media (max-width: 639px) {
  .lgm-programs-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin-left: -20px;
    margin-right: -20px;
    padding: 4px 20px 16px;
    scroll-padding: 0 20px;
    scrollbar-width: none;
  }
  .lgm-programs-grid::-webkit-scrollbar {
    display: none;
  }
  .lgm-program-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* Phone header: the sticky bottom bar already carries "Book Free Trial",
   so the header button is hidden here and the club name stays on one line. */
@media (max-width: 767px) {
  .lgm-header-actions .lgm-btn-gold {
    display: none;
  }
  .lgm-brand-sub {
    white-space: nowrap;
  }
}

/* Hero trust line: keep the stars on one line; text wraps beside them */
.lgm-hero-trust { align-items: flex-start; }
.lgm-hero-trust .stars { white-space: nowrap; flex-shrink: 0; }

/* ==========================================================================
   TODAY AT THE GYM: row layout fixes
   Desktop: time | class | age | badge, each in its own column with a gap.
   Phone: time and class on their own lines, age and badge on one line below.
   ========================================================================== */

.lgm-today-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 110px max-content;
  align-items: center;
  column-gap: 24px;
  padding: 18px 24px;
}
.lgm-today-time {
  min-width: 0;
  white-space: nowrap;
}
.lgm-today-name {
  flex-grow: 0;
  min-width: 0;
}
.lgm-today-meta {
  white-space: nowrap;
  text-align: right;
}
.lgm-today-row > div:last-child {
  justify-self: end;
}
.lgm-today-badge {
  display: inline-block;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  padding: 5px 12px;
}
.lgm-today-caption {
  max-width: 840px;
  margin: 0 auto 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 639px) {
  .lgm-today-row {
    grid-template-columns: minmax(0, 1fr) max-content;
    row-gap: 6px;
    column-gap: 16px;
    padding: 16px 18px;
  }
  .lgm-today-time,
  .lgm-today-name {
    grid-column: 1 / -1;
  }
  .lgm-today-meta {
    grid-column: 1;
    text-align: left;
  }
  .lgm-today-row > div:last-child {
    grid-column: 2;
    grid-row: 3;
  }
}

/* Today schedule: whole day in two stacked cards (Afternoon, Evening) */
.lgm-today-cards {
  display: grid;
  gap: 24px;
}
.lgm-today-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(61, 38, 69, 0.08);
}
.lgm-today-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--plum);
}
.lgm-today-card-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* Today schedule: Afternoon and Evening side by side on desktop */
@media (min-width: 992px) {
  .lgm-today-cards {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
  }
  .lgm-today-cards .lgm-today-row {
    grid-template-columns: 150px minmax(0, 1fr) 84px max-content;
    column-gap: 16px;
    padding: 16px 20px;
  }
  .lgm-today-cards .lgm-today-time {
    font-size: 14px;
  }
  .lgm-today-cards .lgm-today-card-head {
    padding: 18px 20px 14px;
  }
}

/* Official partnership strip (Abu Dhabi Early Childhood Authority), under the age finder.
   Logo and slogan are placed side by side on desktop, stacked on phone. */
.lgm-partner-strip {
  background-color: #F4F0E9;
  border-bottom: 1px solid rgba(61, 38, 69, 0.08);
  padding: 12px 0;
}
.lgm-partner-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lgm-partner-logo {
  display: block;
  width: 110px;
  height: auto;
}
.lgm-partner-slogan-img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
}
@media (min-width: 768px) {
  .lgm-partner-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 32px;
  }
  .lgm-partner-logo {
    width: 150px;
  }
  .lgm-partner-slogan-img {
    width: 400px;
    max-width: none;
  }
}
@media (max-width: 639px) {
  .lgm-partner-strip {
    padding: 10px 0;
  }
}

/* Header: menu drawer below 1200px so the nav never overlaps or wraps.
   Booking button and club name stay on one line at every width. */
.lgm-header-actions .lgm-btn-gold,
.lgm-brand-name {
  white-space: nowrap;
}

/* Headings: one section-heading scale (clamp above), card titles at 20px,
   and no inline font-size overrides on section headings. */
.lgm-section-header .lgm-h2,
.lgm-h2 {
  line-height: 1.12;
}

/* Benefit cards: one column on phone so titles sit on one or two lines */
@media (max-width: 639px) {
  .lgm-benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* Header logo: larger on every width, kept inside the 64px header bar */
@media (min-width: 768px) {
  .lgm-logo-img {
    height: 60px;
    max-width: 76px;
  }
}

/* Phone number lives in the utility bar; hours drop out below 1280px to make room */
.lgm-utility-phone a {
  color: inherit;
  font-weight: 600;
}
.lgm-utility-phone a:hover {
  color: var(--gold);
}
@media (max-width: 1279px) {
  .lgm-utility-hours {
    display: none;
  }
}

/* Utility bar and footer contact links: inherit colour, underline on hover */
.lgm-utility-item a {
  color: inherit;
}
.lgm-utility-item a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Footer: Registration & Waiver link in yellow so parents can find it */
.lgm-footer-highlight {
  color: #FFD93D !important;
  font-weight: 700;
}
.lgm-footer-highlight:hover {
  text-decoration: underline;
}

/* "Join now" pill in the utility bar (desktop and tablet) */
.lgm-utility-join {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--plum) !important;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-left: 12px;
  text-decoration: none;
}
.lgm-utility-join:hover {
  background: #ebd7a3;
  text-decoration: none;
}

/* Utility bar: keep each item on one line; email moves to the footer below 1280px */
.lgm-utility-item {
  white-space: nowrap;
}
@media (max-width: 1279px) {
  .lgm-utility-email {
    display: none;
  }
}

/* Top bar: phone number is plain text; WhatsApp link beside it (no call popup on desktop) */
.lgm-utility-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #25D366 !important;
  font-weight: 700;
}
.lgm-utility-wa:hover {
  text-decoration: underline;
}

/* Homepage hero: sized to its content, starting near the top, not a fixed 820px box */
.lgm-hero.lgm-reveal {
  min-height: auto;
  padding-top: 56px;
  padding-bottom: 48px;
}
@media (max-width: 767px) {
  .lgm-hero.lgm-reveal {
    padding-top: 96px;
  }
}

/* Top bar: "Join now" is a secondary outline pill so "Book Free Trial" keeps the solid gold;
   Parent Portal Login uses ivory text instead of gold. */
.lgm-utility-join {
  background: transparent !important;
  color: var(--ivory) !important;
  border: 1.5px solid rgba(251, 247, 239, 0.55);
  padding: 3px 13px;
}
.lgm-utility-join:hover {
  background: rgba(251, 247, 239, 0.1) !important;
  border-color: var(--ivory);
}
.lgm-utility-right a:not(.lgm-utility-join) {
  color: var(--ivory);
}

/* Current page in the menu: yellow underline under the link (desktop) and yellow text (phone menu) */
.lgm-nav a {
  position: relative;
}
.lgm-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 2px;
  background: #FFD93D;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.lgm-nav a.is-active::after,
.lgm-nav a:hover::after {
  transform: scaleX(1);
}
.lgm-nav a.is-active {
  color: #FFD93D;
}
.lgm-drawer-links a.is-active span {
  color: #FFD93D;
}

/* Inner-page heroes (Classes, Timetable, Contact, Free Trial, archives): tighter top spacing.
   Page content sets inline padding, so !important is needed. Phone keeps room for the fixed header. */
.lgm-hero:not(.lgm-reveal) {
  min-height: auto !important;
  padding-top: 56px !important;
  padding-bottom: 48px !important;
}
@media (max-width: 767px) {
  .lgm-hero:not(.lgm-reveal) {
    padding-top: 96px !important;
  }
}

/* Birthday Parties page: editable price table, print button, and a clean print layout */
.lgm-print-btn {
  background: var(--plum);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.lgm-print-btn:hover {
  background: var(--plum-hover);
}
.lgm-print-hide {
  margin-top: 24px;
}
@media print {
  .lgm-header, .lgm-utility-bar, .lgm-footer, .lgm-bottom-bar,
  .lgm-floating-whatsapp, .lgm-print-hide, .lgm-age-bar, .lgm-partner-strip,
  #wpadminbar {
    display: none !important;
  }
  body, html {
    background: #FFFFFF !important;
  }
  .lgm-hero {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  a {
    color: #000 !important;
    text-decoration: none !important;
  }
  .wp-block-table td, .wp-block-table th {
    border: 1px solid #999 !important;
  }
  h2, table, ol, ul {
    page-break-inside: avoid;
  }
}

/* Birthday Parties page: content gutters, centred width, and a price table that scrolls sideways on phone */
.page-id-177 h2,
.page-id-177 p,
.page-id-177 ol,
.page-id-177 ul,
.page-id-177 .wp-block-buttons,
.page-id-177 .wp-block-table {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.page-id-177 .wp-block-table {
  overflow-x: auto;
  padding-top: 0;
  padding-bottom: 0;
}
.page-id-177 .wp-block-table table {
  min-width: 620px;
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.page-id-177 .wp-block-table th,
.page-id-177 .wp-block-table td {
  padding: 12px 10px;
  vertical-align: top;
  text-align: left;
  border: 1px solid rgba(61, 38, 69, 0.15);
}
.page-id-177 .wp-block-table thead th {
  background: var(--plum);
  color: var(--white);
}
.page-id-177 h2 {
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--plum);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
}
.page-id-177 .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.page-id-177 .wp-block-button__link {
  background: var(--gold);
  color: var(--plum);
  font-weight: 800;
  border-radius: var(--radius-btn);
  padding: 12px 22px;
  text-decoration: none;
}

/* Birthday Parties: information cards, two per row on desktop, one per row on phone */
.page-id-177 .wp-block-columns {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 24px;
  box-sizing: border-box;
}
.page-id-177 .wp-block-column {
  margin: 0;
  min-width: 0;
}
.page-id-177 .lgm-bday-card {
  background: var(--white);
  border: 1px solid rgba(61, 38, 69, 0.1);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 28px rgba(61, 38, 69, 0.06);
  padding: 28px 28px 24px;
  margin: 24px 0;
  height: calc(100% - 48px);
  box-sizing: border-box;
}
.page-id-177 .lgm-bday-card h2 {
  margin: 0 0 14px;
  padding: 0;
  max-width: none;
  font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.75rem);
}
.page-id-177 .lgm-bday-card p,
.page-id-177 .lgm-bday-card ol,
.page-id-177 .lgm-bday-card ul {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.page-id-177 .lgm-bday-card ol,
.page-id-177 .lgm-bday-card ul {
  padding-left: 20px;
}
.page-id-177 .lgm-bday-card li {
  margin-bottom: 8px;
  line-height: 1.55;
}
.page-id-177 .lgm-bday-card p.has-small-font-size {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.page-id-177 .wp-block-columns .wp-block-column .lgm-bday-card {
  margin-top: 0;
  margin-bottom: 0;
}
.page-id-177 .wp-block-columns {
  margin-bottom: 24px;
}
@media (max-width: 781px) {
  .page-id-177 .wp-block-columns {
    flex-direction: column;
    align-items: stretch;
  }
  .page-id-177 .lgm-bday-card {
    height: auto;
  }
}

/* Full-width card (nut-free notice) keeps the same gutters as the rest of the page */
.page-id-177 .lgm-bday-card {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 40px);
}
.page-id-177 .wp-block-column .lgm-bday-card {
  max-width: none;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

/* Cards in a row share the same height; content grows the card instead of spilling out */
.page-id-177 .wp-block-columns {
  align-items: stretch;
}
.page-id-177 .wp-block-column {
  display: flex;
  flex-direction: column;
}
.page-id-177 .wp-block-column .lgm-bday-card {
  flex: 1 1 auto;
  height: auto;
  margin: 0;
}

/* Birthday Parties: brochure-style package cards (Bronze, Silver, Gold) */
.page-id-177 .lgm-pkg {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(61, 38, 69, 0.12);
  border-radius: 28px;
  padding: 30px 26px 26px;
  box-shadow: 0 12px 30px rgba(61, 38, 69, 0.07);
  height: 100%;
  box-sizing: border-box;
  margin: 12px 0 0;
}
.page-id-177 .lgm-pkg p,
.page-id-177 .lgm-pkg ul {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.page-id-177 .lgm-pkg h3 {
  margin: 0 0 4px;
  padding: 0;
  max-width: none;
  font-size: 26px;
  font-weight: 800;
  color: var(--plum);
}
.page-id-177 .lgm-pkg-tier {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 6px;
  color: #A8722F;
}
.page-id-177 .lgm-pkg-silver .lgm-pkg-tier { color: #6B7280; }
.page-id-177 .lgm-pkg-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
}
.page-id-177 .lgm-pkg-price {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: var(--plum);
  margin: 0 0 4px;
}
.page-id-177 .lgm-pkg-cur {
  font-size: 16px;
  font-weight: 700;
  color: var(--plum-tint);
  margin-right: 4px;
}
.page-id-177 .lgm-pkg-extra {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(61, 38, 69, 0.1);
}
.page-id-177 .lgm-pkg-list,
.page-id-177 .lgm-icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-id-177 .lgm-pkg-list li,
.page-id-177 .lgm-icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}
.page-id-177 .lgm-pkg-list li i,
.page-id-177 .lgm-icon-list li i {
  color: var(--plum-tint);
  width: 18px;
  margin-top: 4px;
  flex-shrink: 0;
  text-align: center;
}
.page-id-177 .lgm-pkg-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--plum);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  margin: 0;
}
/* Gold: dark card with a gold border, like the brochure's featured package */
.page-id-177 .lgm-pkg-gold {
  background: var(--night);
  border-color: var(--gold);
  box-shadow: 0 16px 40px rgba(30, 17, 36, 0.25);
}
.page-id-177 .lgm-pkg-gold h3,
.page-id-177 .lgm-pkg-gold .lgm-pkg-price {
  color: var(--white);
}
.page-id-177 .lgm-pkg-gold .lgm-pkg-tier,
.page-id-177 .lgm-pkg-gold .lgm-pkg-cur {
  color: var(--gold);
}
.page-id-177 .lgm-pkg-gold .lgm-pkg-meta,
.page-id-177 .lgm-pkg-gold .lgm-pkg-extra {
  color: rgba(255, 255, 255, 0.7);
}
.page-id-177 .lgm-pkg-gold .lgm-pkg-extra {
  border-bottom-color: rgba(216, 188, 126, 0.25);
}
.page-id-177 .lgm-pkg-gold .lgm-pkg-list li {
  color: rgba(255, 255, 255, 0.9);
}
.page-id-177 .lgm-pkg-gold .lgm-pkg-list li i {
  color: var(--gold);
}
/* Package columns: equal heights in a row, stacked on phone */
.page-id-177 .wp-block-columns:has(.lgm-pkg) {
  align-items: stretch;
  padding-top: 24px;
}
.page-id-177 .wp-block-columns:has(.lgm-pkg) .wp-block-column {
  display: flex;
  flex-direction: column;
}
.page-id-177 .wp-block-columns:has(.lgm-pkg) .lgm-pkg {
  flex: 1 1 auto;
}
/* Icons on the information cards */
.page-id-177 .lgm-bday-card .lgm-icon-list li i {
  color: var(--plum-tint);
}

/* Gold package badge: larger pill with room around the text */
.page-id-177 .lgm-pkg-badge {
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 9px 22px;
  line-height: 1.2;
}

/* Badge sits inside a paragraph, which the card rules zero out; target it directly for side padding */
.page-id-177 .lgm-pkg p.lgm-pkg-badge {
  padding: 9px 26px;
}

/* Nut-free notice: clear alert style, crimson title and border (matches the brochure) */
.page-id-177 .lgm-nut-card {
  background: #FDF2F8;
  border: 2px solid #BE185D;
  box-shadow: none;
}
.page-id-177 .lgm-nut-card h2 {
  color: #9D174D;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.page-id-177 .lgm-nut-card p {
  color: #831843;
  font-size: 16px;
  line-height: 1.6;
}

/* Print: logo top right on every printed page; space below the Print button on screen */
.lgm-print-only {
  display: none;
}
.lgm-print-hide {
  margin-bottom: 72px;
}
@media print {
  .lgm-print-only {
    display: block !important;
    position: fixed;
    top: 12px;
    right: 14px;
    width: 90px;
    height: 90px;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 4px;
    box-sizing: border-box;
    z-index: 9999;
  }
  .lgm-print-only img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* Birthday Parties booking form: keep it inside the page gutters */
.page-id-177 .fluentform,
.page-id-177 .ff-default {
  max-width: 1040px;
  margin: 0 auto 24px;
  padding: 0 20px;
  box-sizing: border-box;
}
.page-id-177 .fluentform .ff-el-group {
  margin-bottom: 14px;
}
.page-id-177 .fluentform .ff-btn-submit {
  background: var(--gold);
  color: var(--plum);
  font-weight: 800;
  border-radius: var(--radius-btn);
  padding: 14px 28px;
  border: none;
}

/* Birthday Parties enquiry form sits on a dark card, like the free-trial form, so its labels are readable */
.page-id-177 .fluentform {
  background: var(--plum-dark);
  border: 1px solid rgba(216, 188, 126, 0.3);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: 0 16px 40px rgba(30, 17, 36, 0.18);
}
.page-id-177 .fluentform label,
.page-id-177 .fluentform .ff-el-input--label label {
  color: var(--white);
  font-weight: 700;
}
.page-id-177 .fluentform input,
.page-id-177 .fluentform select,
.page-id-177 .fluentform textarea {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-btn);
}
.page-id-177 .fluentform input::placeholder,
.page-id-177 .fluentform textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.page-id-177 .fluentform select option {
  color: var(--ink);
}
.page-id-177 .fluentform .ff-el-form-check-label,
.page-id-177 .fluentform .ff-el-form-check label,
.page-id-177 .fluentform p,
.page-id-177 .fluentform a {
  color: rgba(255, 255, 255, 0.85);
}

/* No-nuts icon: a crimson roundel beside the heading */
.page-id-177 .lgm-nut-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #BE185D;
  color: #BE185D;
  font-size: 22px;
  vertical-align: middle;
  margin-right: 8px;
}
/* Package note: keep it readable under the cards */
.page-id-177 .has-small-font-size {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin-top: 16px;
}

/* Print button: space below it, so the footer does not sit against it */
.page-id-177 .lgm-print-hide {
  display: flow-root;
  margin: 0;
  padding: 24px 0 96px;
}

/* Booking forms (Free Trial and Birthday Parties): two fields per row on desktop and tablet,
   one per row on phone. Notes, consent and the submit button always span the full width. */
@media (min-width: 768px) {
  .fluentform fieldset {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 0;
    border: 0;
    margin: 0;
    padding: 0;
  }
  .fluentform fieldset > .ff-el-group:has(textarea),
  .fluentform fieldset > .ff-el-group:has(input[type="checkbox"]),
  .fluentform fieldset > .ff_submit_btn_wrapper {
    grid-column: 1 / -1;
  }
}
.fluentform fieldset > input[type="hidden"],
.fluentform .ff-form-inline-style {
  display: none;
}

/* Parties & Camps: tabs under the hero */
.lgm-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 188, 126, 0.3);
  border-radius: 999px;
}
.lgm-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 24px;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}
.lgm-tab:hover {
  color: var(--white);
}
.lgm-tab.is-active {
  background: var(--gold);
  color: var(--plum);
  font-weight: 800;
}
.page-id-177 .lgm-tab-panel[hidden] {
  display: none;
}
.page-id-177 .lgm-tab-panel {
  padding-top: 8px;
}

/* Homepage heading link */
.lgm-h2-link {
  color: inherit;
  text-decoration: none;
}
.lgm-h2-link span {
  color: var(--gold-deep);
  transition: transform 0.2s ease;
  display: inline-block;
}
.lgm-h2-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 6px;
}
.lgm-h2-link:hover span {
  transform: translateX(4px);
}

/* Print button: centred under the booking form */
.page-id-177 .lgm-print-hide {
  text-align: center;
}

/* Print button: a full-width row, so the button centres under the form */
.page-id-177 .lgm-print-hide {
  display: block;
  width: 100%;
  max-width: none;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.page-id-177 .lgm-print-hide .lgm-print-btn {
  display: inline-block;
}

/* Footer: About link under the brand slogan */
.lgm-footer-about {
  display: inline-block;
  margin-top: 10px;
  color: #FFD93D;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.lgm-footer-about:hover {
  text-decoration: underline;
}

/* Feedback page: safeguarding alert and the form on a dark card (same look as the booking forms) */
.lgm-safeguard-alert {
  background: #FDF2F8;
  border: 2px solid #BE185D;
  border-radius: var(--radius-card);
  padding: 24px 28px;
  color: #831843;
  margin-bottom: 8px;
}
.lgm-safeguard-title {
  font-size: 18px;
  font-weight: 800;
  color: #9D174D;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.lgm-safeguard-title i {
  margin-right: 6px;
}
.lgm-safeguard-alert p {
  margin: 0;
  line-height: 1.6;
}
.lgm-safeguard-alert a {
  color: #9D174D;
  font-weight: 800;
  text-decoration: underline;
}
.page-id-42 .fluentform {
  max-width: 1040px;
  margin: 0 auto 40px;
  padding: 32px 28px;
  background: var(--plum-dark);
  border: 1px solid rgba(216, 188, 126, 0.3);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 40px rgba(30, 17, 36, 0.18);
  box-sizing: border-box;
}
.page-id-42 .fluentform label {
  color: var(--white);
  font-weight: 700;
}
.page-id-42 .fluentform input,
.page-id-42 .fluentform select,
.page-id-42 .fluentform textarea {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-btn);
}
.page-id-42 .fluentform input::placeholder,
.page-id-42 .fluentform textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.page-id-42 .fluentform select option {
  color: var(--ink);
}
.page-id-42 .fluentform p,
.page-id-42 .fluentform a,
.page-id-42 .fluentform .ff-el-form-check-label {
  color: rgba(255, 255, 255, 0.85);
}

/* Step cards on light sections: dark text on white cards */
.lgm-steps-light .lgm-step-card {
  background: var(--white);
  border-color: rgba(61, 38, 69, 0.12);
  box-shadow: 0 10px 28px rgba(61, 38, 69, 0.06);
}
.lgm-steps-light .lgm-step-title {
  color: var(--plum);
}
.lgm-steps-light .lgm-step-desc {
  color: var(--muted);
}
.lgm-steps-light .lgm-step-num {
  background: var(--gold);
  color: var(--plum);
  border-color: var(--gold);
}

/* About page: story and info cards, two per row on desktop, one per row on phone */
.page-id-39 .lgm-about-card {
  background: var(--white);
  border: 1px solid rgba(61, 38, 69, 0.1);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 28px rgba(61, 38, 69, 0.06);
  padding: 28px;
  margin: 0 0 24px;
  height: 100%;
  box-sizing: border-box;
}
.page-id-39 .lgm-about-wide {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  width: calc(100% - 40px);
}
.page-id-39 .wp-block-columns {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 24px;
  box-sizing: border-box;
  align-items: stretch;
}
.page-id-39 .wp-block-column {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.page-id-39 .wp-block-column .lgm-about-card {
  margin: 0 0 24px;
}
.page-id-39 .lgm-about-card h2,
.page-id-39 .lgm-about-card h3 {
  color: var(--plum);
  margin: 0 0 12px;
}
.page-id-39 .lgm-about-card h2 { font-size: 1.6rem; }
.page-id-39 .lgm-about-card h3 { font-size: 1.25rem; }
.page-id-39 .lgm-about-card p {
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 12px;
}
.page-id-39 .lgm-about-card .lgm-icon-list li i {
  color: var(--plum-tint);
  width: 18px;
  margin-top: 4px;
}
.page-id-39 .lgm-about-card .lgm-icon-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  color: var(--ink);
}
.page-id-39 .lgm-about-cta {
  max-width: 1040px;
  margin: 8px auto 64px;
  padding: 0 20px;
  justify-content: center;
}

/* Blog page: latest posts as cards, two per row on desktop, one per row on phone */
.page-id-8 .wp-block-latest-posts {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 20px 8px;
  box-sizing: border-box;
}
.page-id-8 .wp-block-latest-posts.is-grid {
  gap: 24px;
}
.page-id-8 .wp-block-latest-posts__list li {
  background: var(--white);
  border: 1px solid rgba(61, 38, 69, 0.1);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 28px rgba(61, 38, 69, 0.06);
  padding: 22px;
  margin: 0;
  overflow: hidden;
}
.page-id-8 .wp-block-latest-posts__featured-image img {
  border-radius: 16px;
  margin-bottom: 14px;
}
.page-id-8 .wp-block-latest-posts__post-title {
  color: var(--plum);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.25;
  text-decoration: none;
}
.page-id-8 .wp-block-latest-posts__post-date {
  color: var(--muted);
  font-size: 13px;
}
.page-id-8 .wp-block-latest-posts__post-excerpt {
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}
.page-id-8 .has-small-font-size {
  text-align: center;
  color: var(--muted);
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .page-id-8 .wp-block-latest-posts.is-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Footer: four columns (About, Announcements, Classes, Parents & Portals), ECA-style uppercase headings */
.lgm-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px) {
  .lgm-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 36px;
  }
}
@media (min-width: 1024px) {
  .lgm-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
  }
}
.lgm-footer-col h4 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.lgm-footer-blurb {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 14px 0 16px;
  max-width: 340px;
}
.lgm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lgm-footer-links li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.lgm-footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.lgm-footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}
.lgm-footer-contact li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.lgm-footer-contact li i {
  margin-top: 4px;
  width: 14px;
  flex-shrink: 0;
}
.lgm-footer-cta {
  display: inline-block;
  margin-top: 6px;
  color: #FFD93D;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.lgm-footer-cta:hover {
  text-decoration: underline;
}
.lgm-footer-areas {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}
.lgm-footer-areas strong {
  color: rgba(255, 255, 255, 0.7);
}
.lgm-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.lgm-footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.lgm-footer-bottom-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Footer: three columns (About, Classes & News, Parents & Portals) */
@media (min-width: 1024px) {
  .lgm-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 48px;
  }
}

/* Footer: three equal columns; keep "ages 2–18" on one line */
.lgm-nowrap {
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .lgm-footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}
.lgm-footer-blurb {
  max-width: 300px;
}

/* Footer: intro row (logo, slogan, description) above three equal columns; no list indent */
.lgm-footer-intro {
  max-width: 640px;
  margin-bottom: 44px;
}
.lgm-footer-brandrow {
  margin-bottom: 12px;
}
.lgm-footer-intro .lgm-footer-blurb {
  max-width: none;
  margin: 12px 0 0;
  font-size: 15px;
}
.lgm-footer .lgm-footer-links,
.lgm-footer .lgm-footer-contact {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.lgm-footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.lgm-footer-contact li i {
  margin-top: 4px;
  width: 14px;
  flex-shrink: 0;
  color: var(--gold);
}
@media (min-width: 1024px) {
  .lgm-footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}

/* Footer description on one line on desktop; wraps on phone */
@media (min-width: 1024px) {
  .lgm-footer-intro {
    max-width: none;
  }
  .lgm-footer-intro .lgm-footer-blurb {
    white-space: nowrap;
  }
}

/* Print header: logo and title at the top of every printed Classes and Parties page; hidden on screen */
.lgm-print-header {
  display: none;
}
@media print {
  .lgm-print-header {
    display: flex !important;
    align-items: center;
    gap: 14px;
    padding: 0 0 12px;
    margin: 0 0 12px;
    border-bottom: 2px solid #3D2645;
  }
  .lgm-print-header img {
    width: 64px;
    height: 64px;
    object-fit: contain;
  }
  .lgm-print-header strong {
    display: block;
    font-size: 18px;
    color: #2B1A31;
  }
  .lgm-print-header span {
    display: block;
    font-size: 15px;
    color: #5E5266;
  }
}
/* Classes page: fees tables */
.lgm-fees-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 64px;
  box-sizing: border-box;
}
.lgm-fees-wrap h2 {
  margin: 36px 0 12px;
  color: var(--plum);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.lgm-fees-wrap .wp-block-table {
  overflow-x: auto;
}
.lgm-fees-wrap .wp-block-table table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
}
.lgm-fees-wrap .wp-block-table th,
.lgm-fees-wrap .wp-block-table td {
  padding: 12px 12px;
  border: 1px solid rgba(61, 38, 69, 0.12);
  text-align: left;
  vertical-align: middle;
}
.lgm-fees-wrap .wp-block-table thead th {
  background: var(--plum);
  color: var(--white);
  font-weight: 800;
}
.lgm-fees-wrap .wp-block-table tbody tr:nth-child(even) td {
  background: #F7F3FA;
}
.lgm-fees-wrap .wp-block-buttons {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lgm-fees-wrap .wp-block-button__link {
  background: var(--gold);
  color: var(--plum);
  font-weight: 800;
  border-radius: var(--radius-btn);
  padding: 12px 22px;
  text-decoration: none;
}
.lgm-fees-wrap .lgm-print-hide {
  margin-top: 16px;
  text-align: left;
}
/* Print: a single clean page of prices */
@media print {
  .lgm-fees-wrap .lgm-print-hide, .lgm-fees-wrap .wp-block-buttons {
    display: none !important;
  }
}

/* ==========================================================================
   PRINT LAYOUT: Classes and Parties & Camps
   Keeps colours, keeps each heading with its table or card, repeats table
   headers, and drops the decorative hero so the page prints compactly.
   ========================================================================== */
@media print {
  @page {
    size: A4;
    margin: 14mm 12mm;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body {
    font-size: 11pt;
  }
  /* Drop the decorative hero and the sticky header on print; the print header carries the title */
  .page-id-6 .lgm-hero,
  .page-id-177 .lgm-hero,
  .page-id-6 .lgm-eyebrow,
  .page-id-177 .lgm-eyebrow {
    display: none !important;
  }
  .page-id-6 .lgm-section,
  .page-id-177 .lgm-section {
    padding: 0 !important;
  }
  .lgm-print-header {
    margin-bottom: 14px;
  }
  .lgm-print-header img {
    width: 54px !important;
    height: 54px !important;
  }
  .lgm-print-header strong {
    font-size: 16px;
  }
  .lgm-print-header span {
    font-size: 13px;
  }
  /* Keep headings with what follows them */
  .page-id-6 h2,
  .page-id-6 h3,
  .page-id-177 h2,
  .page-id-177 h3 {
    break-after: avoid;
    page-break-after: avoid;
    margin-top: 16px;
  }
  .page-id-6 p,
  .page-id-177 p {
    break-after: avoid;
    page-break-after: avoid;
  }
  /* Never split a card, a table row or a list item across pages */
  .lgm-program-card,
  .lgm-pkg,
  .lgm-bday-card,
  .lgm-fees-wrap .wp-block-table tr,
  .lgm-fees-wrap li,
  .page-id-177 li {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  /* Keep each table with its heading, and repeat the table header row on every page */
  .lgm-fees-wrap .wp-block-table,
  .page-id-177 .wp-block-table {
    break-inside: auto;
  }
  .lgm-fees-wrap thead,
  .page-id-177 thead {
    display: table-header-group;
  }
  .lgm-fees-wrap table {
    font-size: 10.5pt;
  }
  .lgm-fees-wrap .wp-block-table th,
  .lgm-fees-wrap .wp-block-table td {
    padding: 6px 8px;
  }
  .lgm-fees-wrap .wp-block-table thead th {
    background: #3D2645 !important;
    color: #FFFFFF !important;
  }
  .lgm-fees-wrap h2 {
    margin-top: 18px;
    font-size: 17pt;
  }
  /* Program cards: two per row, no buttons */
  .lgm-programs-grid {
    gap: 12px !important;
  }
  .lgm-program-card {
    padding: 14px 16px !important;
    min-height: 0 !important;
  }
  .lgm-program-card .lgm-program-footer,
  .lgm-program-card .lgm-program-btn {
    display: none !important;
  }
  .lgm-program-card .lgm-program-desc {
    margin-bottom: 10px;
  }
  .lgm-section {
    break-inside: auto;
  }
  .page-id-6 .lgm-fees-wrap {
    padding: 0 !important;
  }
  /* Good to know: plain list, darker discount line stays readable */
  .lgm-fees-wrap ul {
    margin-top: 6px;
  }
}

/* Links inside FAQ answers look like links: underlined, bold, brand colour */
.lgm-faq-answer a,
details a {
  color: var(--plum);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
  text-underline-offset: 3px;
}
.lgm-faq-answer a:hover,
details a:hover {
  color: var(--plum-tint);
  text-decoration-thickness: 2px;
}

/* FAQ "Still have a question?": readable WhatsApp button beside a Call button */
.lgm-faq-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.lgm-faq-wa,
.lgm-faq-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}
.lgm-faq-wa {
  background: #128C4A;
  color: var(--white);
  border: 1.5px solid #128C4A;
}
.lgm-faq-wa:hover {
  background: #0E7A3E;
}
.lgm-faq-call {
  background: transparent;
  color: var(--plum);
  border: 1.5px solid rgba(61, 38, 69, 0.4);
}
.lgm-faq-call:hover {
  border-color: var(--plum);
  background: rgba(61, 38, 69, 0.05);
}

/* About page buttons: gold with plum text, same as the rest of the site */
.page-id-39 .wp-block-button__link {
  background: var(--gold) !important;
  color: var(--plum) !important;
  font-weight: 800;
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  text-decoration: none;
  border: none;
}
.page-id-39 .wp-block-button__link:hover {
  background: #ebd7a3 !important;
}

/* ==========================================================================
   BLOG POST PAGES: dark header with title, a comfortable reading column, and a closing call to action
   ========================================================================== */
body.single-post article.single-entry .entry-header {
  display: block !important;
  background: var(--night);
  padding: 130px 20px 56px;
  text-align: center;
  margin: 0;
}
body.single-post article.single-entry .entry-header .entry-title,
body.single-post h1.entry-title {
  color: var(--white);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 880px;
  margin: 0 auto 14px;
}
body.single-post article.single-entry .entry-header .entry-meta,
body.single-post article.single-entry .entry-header .entry-meta * {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px;
}
body.single-post article.single-entry .entry-header::before {
  content: "CLUB STORIES";
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
body.single-post article.single-entry .entry-content,
body.single-post article.single-entry .entry-content-wrap {
  max-width: 760px;
  margin: -28px auto 0;
  padding: 44px 40px 40px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 40px rgba(30, 17, 36, 0.08);
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
body.single-post article.single-entry .entry-content h2 {
  font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem);
  color: var(--plum);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(216, 188, 126, 0.5);
}
body.single-post article.single-entry .entry-content h2:first-child {
  margin-top: 0;
}
body.single-post article.single-entry .entry-content p {
  margin: 0 0 18px;
}
body.single-post article.single-entry .entry-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
body.single-post article.single-entry .entry-content ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid rgba(61, 38, 69, 0.07);
}
body.single-post article.single-entry .entry-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
body.single-post article.single-entry .entry-content strong {
  color: var(--plum);
}
body.single-post article.single-entry .entry-content a {
  color: var(--plum);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
}
body.single-post article.single-entry .entry-content img {
  border-radius: 20px;
  margin: 24px 0;
}
body.single-post article.single-entry .entry-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--gold);
  background: #FBF7EF;
  border-radius: 0 16px 16px 0;
  font-size: 1.05em;
}
.lgm-post-cta {
  max-width: 760px;
  margin: 40px auto 80px;
  padding: 36px 32px;
  background: var(--plum-dark);
  border-radius: var(--radius-card);
  border: 1px solid rgba(216, 188, 126, 0.3);
  text-align: center;
  color: var(--white);
  box-sizing: border-box;
}
.lgm-post-cta-title {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.lgm-post-cta p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin: 0 auto 22px;
  max-width: 540px;
}
.lgm-post-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.lgm-post-cta .lgm-btn-outline-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.lgm-post-cta .lgm-btn-outline-dark:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.lgm-post-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  background: #128C4A;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}
.lgm-post-cta-back {
  display: inline-block;
  margin-top: 22px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 767px) {
  body.single-post article.single-entry .entry-header {
    padding: 104px 20px 48px;
  }
  body.single-post article.single-entry .entry-content {
    padding: 28px 22px 28px;
    margin: -24px 14px 0;
    width: auto;
  }
  .lgm-post-cta {
    margin: 32px 14px 64px;
    padding: 28px 20px;
  }
}

/* Post reading column: the site-wide reset sets these properties with !important, so match it */
body.single-post article.single-entry .entry-content,
body.single-post article.single-entry .entry-content-wrap {
  max-width: 760px !important;
  width: auto !important;
  margin: -28px auto 0 !important;
  padding: 44px 40px 40px !important;
  background: var(--white) !important;
  border: none !important;
  box-shadow: 0 16px 40px rgba(30, 17, 36, 0.08) !important;
  border-radius: var(--radius-card) !important;
}
body.single-post article.single-entry .entry-header .entry-categories,
body.single-post article.single-entry .entry-header .entry-categories a,
body.single-post article.single-entry .entry-header .entry-taxonomies,
body.single-post article.single-entry .entry-header .entry-taxonomies a,
body.single-post article.single-entry .entry-header a {
  color: rgba(255, 255, 255, 0.75) !important;
}
@media (max-width: 767px) {
  body.single-post article.single-entry .entry-content,
  body.single-post article.single-entry .entry-content-wrap {
    margin: -24px 14px 0 !important;
    padding: 28px 22px !important;
  }
}

/* Post closing box: its links keep their button or link style; the post-content link rules do not apply here */
body.single-post article.single-entry .entry-content .lgm-post-cta a,
.lgm-post-cta a {
  text-decoration: none !important;
  text-decoration-line: none !important;
}
body.single-post article.single-entry .entry-content .lgm-post-cta a.lgm-btn-gold,
.lgm-post-cta a.lgm-btn-gold {
  color: var(--plum) !important;
  background: var(--gold) !important;
}
body.single-post article.single-entry .entry-content .lgm-post-cta a.lgm-btn-outline-dark,
.lgm-post-cta a.lgm-btn-outline-dark {
  color: var(--white) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
}
body.single-post article.single-entry .entry-content .lgm-post-cta a.lgm-post-cta-wa,
.lgm-post-cta a.lgm-post-cta-wa {
  color: var(--white) !important;
  background: #128C4A !important;
}
body.single-post article.single-entry .entry-content .lgm-post-cta a.lgm-post-cta-back,
.lgm-post-cta a.lgm-post-cta-back {
  color: var(--gold) !important;
}

/* Post closing box: smaller, and the three buttons sit in one row (phone first, buttons share the width) */
.lgm-post-cta {
  max-width: 560px;
  margin: 32px auto 64px;
  padding: 26px 14px 22px;
}
.lgm-post-cta-title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.lgm-post-cta p {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 auto 18px;
}
.lgm-post-cta-buttons {
  flex-wrap: nowrap !important;
  gap: 8px;
}
.lgm-post-cta-buttons > a {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 6px !important;
  font-size: 12.5px !important;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  border-radius: var(--radius-btn);
}
.lgm-post-cta-buttons > a.lgm-post-cta-wa {
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.lgm-post-cta-back {
  font-size: 14px;
  margin-top: 18px;
}
@media (min-width: 768px) {
  .lgm-post-cta {
    max-width: 640px;
    padding: 30px 28px 26px;
  }
  .lgm-post-cta-title {
    font-size: 1.4rem;
  }
  .lgm-post-cta p {
    font-size: 1rem;
  }
  .lgm-post-cta-buttons > a {
    padding: 13px 14px !important;
    font-size: 15px !important;
    white-space: nowrap;
  }
}

/* Post header: less empty space above the title on desktop; phone keeps room for the fixed header */
body.single-post article.single-entry .entry-header {
  padding: 48px 20px 56px !important;
}
@media (max-width: 767px) {
  body.single-post article.single-entry .entry-header {
    padding: 100px 20px 48px !important;
  }
}

/* Post featured image: a banner above the article card, the same width as the card, not cut off underneath it.
   Phone first; room for the fixed header. Kadence's 2:3 ratio class has no padding rule, so the image was stretched. */
body.single-post .article-post-thumbnail {
  position: relative;
  z-index: 2;
  height: auto !important;
  padding: 96px 16px 0 !important;
  margin: 0 !important;
  max-width: none;
  overflow: visible;
}
body.single-post .article-post-thumbnail .post-thumbnail-inner {
  position: static !important;
  height: auto !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}
body.single-post .article-post-thumbnail img.post-top-featured {
  display: block !important;
  width: 100% !important;
  max-width: 560px;
  height: auto !important;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(30, 17, 36, 0.12);
}
@media (min-width: 768px) {
  body.single-post .article-post-thumbnail {
    padding: 40px 20px 0 !important;
  }
  body.single-post .article-post-thumbnail img.post-top-featured {
    aspect-ratio: 16 / 9;
  }
}

/* Phone: Kadence's full-bleed alignwide/alignfull blocks use 100vw and negative offsets, which push these wider
   than the screen. Keep the featured image and the related-posts strip at the container width on single posts. */
body.single-post .article-post-thumbnail.alignwide,
body.single-post .entry-related.alignfull,
body.single-post .entry-related.alignwide {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* The club logo post (ID 237) is a logo, not a photo: keep it as a small centred badge */
body.postid-237 .article-post-thumbnail {
  padding: 104px 20px 24px !important;
}
body.postid-237 .article-post-thumbnail img.post-top-featured {
  width: 150px !important;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
@media (min-width: 768px) {
  body.postid-237 .article-post-thumbnail {
    padding: 40px 20px 24px !important;
  }
  body.postid-237 .article-post-thumbnail img.post-top-featured {
    width: 200px !important;
  }
}

/* Post title: smaller and balanced across lines, so long titles don't stack into 4 tall lines */
body.single-post article.single-entry .entry-header .entry-title,
body.single-post h1.entry-title {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.6rem);
  line-height: 1.15;
  max-width: 720px;
  text-wrap: balance;
}
body.single-post article.single-entry .entry-content p,
body.single-post article.single-entry .entry-content li {
  text-wrap: pretty;
}

/* Blog listing (/blog/): article cards in a grid with cropped images */
.page-id-8 .wp-block-latest-posts__list {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) {
  .page-id-8 .wp-block-latest-posts__list {
    grid-template-columns: 1fr 1fr;
  }
}
.page-id-8 .wp-block-latest-posts__list li {
  display: flex;
  flex-direction: column;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}
.page-id-8 .wp-block-latest-posts__featured-image {
  margin: 0;
}
.page-id-8 .wp-block-latest-posts__featured-image img {
  width: 100% !important;
  height: 220px !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: 0 !important;
  margin: 0 !important;
  display: block;
}
.page-id-8 .wp-block-latest-posts__list li > * {
  padding-left: 22px;
  padding-right: 22px;
}
.page-id-8 .wp-block-latest-posts__post-title {
  display: block;
  margin: 18px 22px 8px;
  padding: 0;
}
.page-id-8 .wp-block-latest-posts__post-date {
  display: block;
  margin: 0 22px 10px;
  padding: 0;
}
.page-id-8 .wp-block-latest-posts__post-excerpt {
  margin: 0 22px 22px;
  padding: 0;
}
.page-id-8 .wp-block-latest-posts__list li {
  background: var(--white) !important;
  border: 1px solid rgba(61, 38, 69, 0.1);
  border-radius: var(--radius-card) !important;
  box-shadow: 0 10px 28px rgba(61, 38, 69, 0.07);
}

/* Blog cards: images run to the card edges; a branded panel stands in where a post has no image */
.page-id-8 .wp-block-latest-posts__list li > *:not(.wp-block-latest-posts__featured-image) {
  padding-left: 22px;
  padding-right: 22px;
}
.page-id-8 .wp-block-latest-posts__list li > .wp-block-latest-posts__featured-image {
  padding: 0 !important;
  margin: 0 !important;
}
.page-id-8 .wp-block-latest-posts__list li:not(:has(.wp-block-latest-posts__featured-image))::before {
  content: "CLUB STORIES";
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  background: linear-gradient(135deg, var(--plum-dark), var(--plum-tint));
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 14px;
}

/* Blog listing: centred grid with equal gutters on both sides (cards no longer touch the screen edge) */
.page-id-8 .wp-block-latest-posts {
  width: calc(100% - 40px) !important;
  max-width: 1040px !important;
  margin: 40px auto 8px !important;
  padding: 0 !important;
  box-sizing: border-box;
}
.page-id-8 .wp-block-latest-posts__list {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* The article list and the block are one element: centre it here, with equal gutters */
.page-id-8 ul.wp-block-latest-posts,
.page-id-8 .wp-block-latest-posts__list.wp-block-latest-posts {
  width: calc(100% - 40px) !important;
  max-width: 1040px !important;
  margin: 40px auto 8px !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Previous and next post cards under the article: a tidy two-column row, not styled as the post header */
body.single-post .post-navigation .nav-links {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1040px;
  margin: 40px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}
body.single-post article.loop-entry {
  position: static !important;
  left: auto !important;
  width: 100% !important;
  margin: 0 !important;
}
body.single-post .post-navigation .nav-previous,
body.single-post .post-navigation .nav-next {
  width: 100%;
  min-width: 0;
}

/* "Similar Posts" under a post: keep it inside the page width, three cards per row on desktop */
body.single-post .entry-related {
  padding: 40px 0 72px;
  background: transparent;
}
body.single-post .entry-related-inner-content {
  width: calc(100% - 40px) !important;
  max-width: 1040px !important;
  margin: 0 auto !important;
  left: auto !important;
  transform: none !important;
  padding: 0 !important;
  box-sizing: border-box;
}
body.single-post .entry-related-title {
  color: var(--plum);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin: 0 0 20px;
  text-align: center;
}
body.single-post .entry-related-carousel,
body.single-post .entry-related-carousel .splide__track {
  width: 100% !important;
  overflow: hidden;
}
body.single-post .entry-related .splide__slide,
body.single-post .entry-related .kadence-posts-list > li {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 12px !important;
  box-sizing: border-box;
}
body.single-post .entry-related article.loop-entry {
  background: var(--white);
  border: 1px solid rgba(61, 38, 69, 0.1);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 28px rgba(61, 38, 69, 0.07);
  overflow: hidden;
}

/* Similar Posts cards: show the title and date, and give phone cards full width */
body.single-post .entry-related .entry-header {
  display: block !important;
  background: transparent !important;
  padding: 14px 18px 4px !important;
  margin: 0 !important;
  text-align: left !important;
}
body.single-post .entry-related .entry-header::before {
  content: none !important;
}
body.single-post .entry-related .entry-title,
body.single-post .entry-related .entry-title a {
  color: var(--plum) !important;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  margin: 0 0 6px;
}
body.single-post .entry-related .entry-meta,
body.single-post .entry-related .entry-meta * {
  color: var(--muted) !important;
  font-size: 13px;
}
body.single-post .entry-related .entry-content-wrap {
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
@media (max-width: 767px) {
  body.single-post .entry-related .splide__slide,
  body.single-post .entry-related .kadence-posts-list > li {
    width: 100% !important;
  }
}

/* Similar Posts on phone: a simple stacked list, no sideways slider */
@media (max-width: 767px) {
  body.single-post .entry-related .splide__track {
    overflow: visible !important;
  }
  body.single-post .entry-related .splide__list,
  body.single-post .entry-related .kadence-posts-list {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
    transform: none !important;
    margin: 0;
    padding: 0;
  }
  body.single-post .entry-related .splide__slide,
  body.single-post .entry-related .kadence-posts-list > li {
    width: 100% !important;
    padding: 0 !important;
  }
}

/* Similar Posts: hide the slider's looping copies so each post appears once */
body.single-post .entry-related .splide__slide--clone,
body.single-post .entry-related .splide__slide.is-clone {
  display: none !important;
}

/* Post header: plum from the club logo, instead of the darker night colour */
body.single-post article.single-entry .entry-header {
  background: linear-gradient(135deg, #3D2645 0%, #2B1A31 100%) !important;
}

/* Gallery social buttons: Instagram and Facebook side by side */
.lgm-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Footer bottom bar: Instagram, Facebook and WhatsApp icons */
.lgm-footer-social {
  display: inline-flex;
  gap: 10px;
  margin-right: 8px;
}
.lgm-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(216, 188, 126, 0.45);
  color: var(--gold);
  font-size: 16px;
  text-decoration: none;
}
.lgm-footer-social a:hover {
  background: var(--gold);
  color: var(--plum);
}

/* Social icons on light backgrounds (Contact, Blog) */
.lgm-social-light a {
  color: var(--plum);
  border-color: rgba(61, 38, 69, 0.3);
}
.lgm-social-light a:hover {
  background: var(--plum);
  color: var(--gold);
}
.lgm-social-center {
  justify-content: center;
  margin: 28px auto 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.lgm-blog-follow {
  margin: 8px auto 56px;
}
.lgm-follow-text {
  color: var(--muted);
  font-weight: 700;
  margin-right: 6px;
}
/* Footer intro row: icons sit beside the logo on desktop */
.lgm-footer-social-top {
  margin-left: 24px;
  margin-right: 0;
  align-self: center;
}
@media (max-width: 767px) {
  .lgm-footer-social-top {
    margin-left: 0;
    margin-top: 12px;
  }
}

/* Footer logo row: logo, name and social icons on one line */
.lgm-footer-brandrow {
  flex-wrap: nowrap !important;
  align-items: center;
}
.lgm-footer-social-top {
  margin: 0 0 0 20px !important;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .lgm-footer-social-top {
    margin: 0 0 0 16px !important;
  }
  /* Phone: the icons wrap onto their own line instead of running past the right edge */
  .lgm-footer-brandrow {
    flex-wrap: wrap !important;
  }
  .lgm-footer-social-top {
    margin: 14px 0 0 !important;
    flex-shrink: 1;
  }
}

/* Gallery: three photos or videos per row on tablet and desktop; two per row on phone */
.lgm-gallery-full-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}
@media (min-width: 768px) {
  .lgm-gallery-full-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
  }
}
.lgm-gallery-full-grid .lgm-gallery-card img,
.lgm-gallery-full-grid .lgm-gallery-card video {
  height: 240px !important;
}
@media (max-width: 767px) {
  .lgm-gallery-full-grid .lgm-gallery-card img,
  .lgm-gallery-full-grid .lgm-gallery-card video {
    height: 180px !important;
  }
}

/* Gallery: separate Photos and Videos sections */
.lgm-gallery-heading {
  color: var(--plum);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  margin: 0 0 20px;
  text-align: left;
}
.lgm-gallery-heading-videos {
  margin-top: 56px;
}
.lgm-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .lgm-video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.lgm-video-card {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 20px rgba(30, 17, 36, 0.12);
}
.lgm-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
}

/* Photo viewer: click a gallery photo to see it full size */
.lgm-lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 94vw;
  max-height: 94vh;
}
.lgm-lightbox::backdrop {
  background: rgba(20, 12, 24, 0.88);
}
.lgm-lightbox-img {
  display: block;
  max-width: 94vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lgm-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--plum);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.lgm-lightbox {
  position: fixed;
  inset: 0;
  margin: auto;
}

/* Gallery photos shrink to fit inside their card (no cropping) */
.lgm-gallery-full-grid .lgm-gallery-card {
  background: #F4F0E9;
}
.lgm-gallery-full-grid .lgm-gallery-card img {
  object-fit: contain !important;
  background: #F4F0E9;
}

/* Photo viewer close button: fixed in the top-right corner of the screen, X centred in its circle */
.lgm-lightbox-close {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 10001;
  width: 46px !important;
  height: 46px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 30px !important;
  font-weight: 400;
  line-height: 1 !important;
  color: var(--plum) !important;
}
.lgm-lightbox-close:hover {
  background: #ebd7a3;
}

/* Gallery photo cards: rounded, white, the photo inset and centred, lifts slightly on hover */
.lgm-gallery-full-grid .lgm-gallery-card {
  background: var(--white) !important;
  border-radius: 22px !important;
  box-shadow: 0 8px 24px rgba(61, 38, 69, 0.08) !important;
  border: 1px solid rgba(61, 38, 69, 0.08);
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lgm-gallery-full-grid .lgm-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(61, 38, 69, 0.14) !important;
}
.lgm-gallery-full-grid .lgm-gallery-card img {
  border-radius: 14px !important;
  background: #F4F0E9 !important;
  width: 100% !important;
  height: 220px !important;
}
@media (min-width: 768px) {
  .lgm-gallery-full-grid .lgm-gallery-card img {
    height: 240px !important;
  }
}

/* Two videos per row: put YouTube (or any video) blocks inside a Group block with the class lgm-video-2col */
.lgm-video-2col {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-left: 0;
  margin-right: 0;
}
@media (min-width: 768px) {
  .lgm-video-2col {
    grid-template-columns: 1fr 1fr;
  }
}
.lgm-video-2col > .wp-block-embed,
.lgm-video-2col > figure.wp-block-embed {
  margin: 0 !important;
  width: 100%;
  max-width: none;
}
.lgm-video-2col .wp-block-embed__wrapper,
.lgm-video-2col iframe {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

/* Three images per row: put Image blocks inside a Group block with the class lgm-photo-3col (two per row on phone) */
.lgm-photo-3col {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-left: 0;
  margin-right: 0;
}
@media (min-width: 768px) {
  .lgm-photo-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
.lgm-photo-3col > .wp-block-image {
  margin: 0 !important;
  background: var(--white);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(61, 38, 69, 0.08);
  border: 1px solid rgba(61, 38, 69, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lgm-photo-3col > .wp-block-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(61, 38, 69, 0.14);
}
.lgm-photo-3col > .wp-block-image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #F4F0E9;
  border-radius: 14px;
  margin: 0;
}
@media (min-width: 768px) {
  .lgm-photo-3col > .wp-block-image img {
    height: 240px;
  }
}

/* Gallery Group blocks: video block sizing inside the two-per-row group */
.lgm-video-2col > .wp-block-video {
  margin: 0 !important;
}
.lgm-video-2col video {
  width: 100%;
  border-radius: 16px;
  background: #000;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Group blocks wrap their children in an inner container: apply the grid to that container */
.lgm-photo-3col > .wp-block-group__inner-container,
.lgm-video-2col > .wp-block-group__inner-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
}
@media (min-width: 768px) {
  .lgm-photo-3col > .wp-block-group__inner-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .lgm-video-2col > .wp-block-group__inner-container {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
.lgm-photo-3col > .wp-block-group__inner-container > *,
.lgm-video-2col > .wp-block-group__inner-container > * {
  min-width: 0;
}

/* ===== Gallery Group blocks: final override (outer group is block-level; inner container holds the grid) ===== */
.lgm-photo-3col,
.lgm-video-2col {
  display: block !important;
  grid-template-columns: none !important;
  width: 100%;
  max-width: 1176px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.lgm-photo-3col {
  margin-bottom: 56px !important;
}
.lgm-photo-3col > .wp-block-group__inner-container,
.lgm-video-2col > .wp-block-group__inner-container {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.lgm-photo-3col > .wp-block-group__inner-container {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.lgm-video-2col > .wp-block-group__inner-container {
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .lgm-photo-3col > .wp-block-group__inner-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .lgm-video-2col > .wp-block-group__inner-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Photo cards (Image blocks inside the inner container) */
.lgm-photo-3col > .wp-block-group__inner-container > .wp-block-image {
  margin: 0 !important;
  background: var(--white);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(61, 38, 69, 0.08);
  border: 1px solid rgba(61, 38, 69, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lgm-photo-3col > .wp-block-group__inner-container > .wp-block-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(61, 38, 69, 0.14);
}
.lgm-photo-3col > .wp-block-group__inner-container > .wp-block-image img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #F4F0E9;
  border-radius: 14px;
  margin: 0;
}
@media (min-width: 768px) {
  .lgm-photo-3col > .wp-block-group__inner-container > .wp-block-image img {
    height: 240px;
  }
}

/* Video blocks inside the inner container */
.lgm-video-2col > .wp-block-group__inner-container > .wp-block-video,
.lgm-video-2col > .wp-block-group__inner-container > .wp-block-embed {
  margin: 0 !important;
  min-width: 0;
}
.lgm-video-2col > .wp-block-group__inner-container > .wp-block-video video {
  width: 100%;
  border-radius: 16px;
  background: #000;
  aspect-ratio: 16 / 9;
  height: auto;
}

/* Portrait YouTube Shorts embeds: keep them phone-sized instead of filling the page width */
.wp-block-embed.wp-embed-aspect-9-16 {
  max-width: min(360px, 100%);
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Videos: two per row at every width. The Shorts embed sits inside the video group, so it fills its cell. */
.lgm-video-2col > .wp-block-group__inner-container {
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}
@media (min-width: 768px) {
  .lgm-video-2col > .wp-block-group__inner-container {
    gap: 24px !important;
  }
}
.lgm-video-2col .wp-embed-aspect-9-16 {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
}
.lgm-video-2col > .wp-block-group__inner-container > .wp-block-video video {
  aspect-ratio: auto;
}

/* Video cards: on desktop and tablet, keep each portrait video at a sensible size inside its cell */
@media (min-width: 768px) {
  .lgm-video-2col > .wp-block-group__inner-container > .wp-block-video,
  .lgm-video-2col > .wp-block-group__inner-container > .wp-block-embed {
    max-width: 360px;
    width: 100%;
    justify-self: center;
  }
}
@media (min-width: 768px) {
  .lgm-video-2col .wp-embed-aspect-9-16 {
    max-width: 360px !important;
  }
}

/* ==========================================================================
   BLOG ARCHIVE: Champion's Night Dark Hero & Card Grid (Phone-first)
   ========================================================================== */
/* Block-built LGM heroes (Classes, Contact, About): let the content fill the
   hero width so the centered heading is centered on the page, not shrunk to its text. */
.wp-block-group.lgm-hero > .wp-block-group__inner-container {
  width: 100%;
}

/* The blog hero is now printed by lgm_blog_page_hero() (same as Announcements); hide Kadence's version. */
body.blog .entry-hero {
  display: none !important;
}

/* Full-width dark hero, same as the Announcements and other LGM pages.
   Kadence wraps the page in a boxed container; remove that inset for the hero only.
   The card list keeps its own container (#primary below). */
body.blog #wrapper.site,
body.blog #inner-wrap,
body.blog .content-container,
body.blog .site-main,
body.blog .entry-hero,
body.blog .entry-hero-container-inner {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
body.blog .entry-hero .hero-section-overlay {
  display: none !important;
}
/* Kadence paints the inner box plum; let the dark hero section show through instead. */
body.blog #inner-wrap .entry-hero.post-archive-hero-section .entry-hero-container-inner,
body.blog #inner-wrap .entry-hero.post-archive-hero-section .hero-container {
  background: transparent !important;
  background-color: transparent !important;
}
/* Remove Kadence's inner padding and minimum height so the spacing matches the other heroes. */
body.blog #inner-wrap .entry-hero.post-archive-hero-section,
body.blog #inner-wrap .entry-hero.post-archive-hero-section .entry-hero-container-inner,
body.blog #inner-wrap .entry-hero.post-archive-hero-section .hero-container,
body.blog #inner-wrap .entry-hero.post-archive-hero-section .entry-header {
  min-height: 0 !important;
  margin-top: 0 !important;
}
body.blog #inner-wrap .entry-hero.post-archive-hero-section .entry-hero-container-inner,
body.blog #inner-wrap .entry-hero.post-archive-hero-section .hero-container,
body.blog #inner-wrap .entry-hero.post-archive-hero-section .entry-header {
  padding: 0 !important;
}
body.blog .entry-hero.post-archive-hero-section {
  background: var(--night) !important;
  padding: 104px 16px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  body.blog .entry-hero.post-archive-hero-section {
    padding: 120px 24px 40px;
  }
}
body.blog .entry-hero .entry-header::before {
  content: "★ NEWS & STORIES";
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 14px;
}
body.blog .entry-hero h1,
body.blog .entry-hero h1.page-title,
body.blog .entry-hero h1.entry-title {
  color: var(--white);
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 16px;
}
body.blog .entry-hero .title-entry-excerpt p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 14px + 0.3vw, 17px);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* Blog Archive Container & Grid */
body.blog #primary.content-area {
  margin: 40px auto 80px !important;
  max-width: 1200px !important;
  padding: 0 16px !important;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  body.blog #primary.content-area {
    margin: 56px auto 100px !important;
    padding: 0 24px !important;
  }
}
body.blog #archive-container.kadence-posts-list {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
@media (min-width: 768px) {
  body.blog #archive-container.kadence-posts-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}
@media (min-width: 1100px) {
  body.blog #archive-container.kadence-posts-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
body.blog .entry-list-item {
  display: flex;
  margin: 0;
  padding: 0;
}
body.blog article.loop-entry {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white) !important;
  border-radius: var(--radius-card) !important;
  border: 1px solid rgba(61, 38, 69, 0.08);
  box-shadow: 0 10px 28px rgba(61, 38, 69, 0.06);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}
body.blog article.loop-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(61, 38, 69, 0.12);
}
body.blog article.loop-entry .post-thumbnail {
  display: block;
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--plum-dark);
}
body.blog article.loop-entry .post-thumbnail .post-thumbnail-inner {
  height: 100%;
}
body.blog article.loop-entry .post-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 0 !important;
  margin: 0 !important;
  transition: transform 0.35s ease;
}
body.blog article.loop-entry:hover .post-thumbnail img {
  transform: scale(1.03);
}
body.blog article.loop-entry .entry-content-wrap {
  padding: 22px 20px 24px !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  body.blog article.loop-entry .entry-content-wrap {
    padding: 26px 24px 28px !important;
  }
}
body.blog article.loop-entry .entry-header {
  display: block !important;
  margin-bottom: 12px;
}
body.blog article.loop-entry .entry-taxonomies {
  margin-bottom: 8px;
}
body.blog article.loop-entry .entry-taxonomies a {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}
body.blog article.loop-entry h2.entry-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
}
body.blog article.loop-entry h2.entry-title a {
  color: var(--plum);
  text-decoration: none;
  transition: color 0.2s ease;
}
body.blog article.loop-entry h2.entry-title a:hover {
  color: var(--gold-deep);
}
body.blog article.loop-entry .entry-meta {
  font-size: 13px;
  color: rgba(26, 26, 26, 0.65);
  margin-bottom: 12px;
}
body.blog article.loop-entry .entry-meta a {
  color: inherit;
  text-decoration: none;
}
body.blog article.loop-entry .entry-summary {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 18px;
  flex-grow: 1;
}
body.blog article.loop-entry .entry-summary p {
  margin: 0;
}
body.blog article.loop-entry .entry-footer .more-link,
body.blog article.loop-entry .entry-actions a {
  color: var(--plum);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.blog article.loop-entry .entry-footer .more-link:hover,
body.blog article.loop-entry .entry-actions a:hover {
  color: var(--gold-deep);
}

/* Pagination on Blog Archive */
body.blog .pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
body.blog .pagination .nav-links a,
body.blog .pagination .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(61, 38, 69, 0.15);
  background: var(--white);
  color: var(--plum);
}
body.blog .pagination .nav-links span.current {
  background: var(--plum);
  color: var(--gold);
  border-color: var(--plum);
}

/* Responsive Embeds & Videos in Single Posts */
body.single-post .entry-content .wp-block-video,
body.single-post .entry-content .wp-block-embed,
body.single-post .entry-content figure.wp-block-embed-youtube {
  margin: 28px 0;
  max-width: 100%;
}
body.single-post .entry-content .wp-block-video video {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(30, 17, 36, 0.08);
  display: block;
}
body.single-post .entry-content .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(30, 17, 36, 0.08);
}
body.single-post .entry-content .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
body.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

/* ==========================================================================
   EDITABLE GALLERY & VIDEO BLOCKS (Phase 3: Phone-first)
   ========================================================================== */
.wp-block-gallery.lgm-gallery-full-grid,
.page-id-7 .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  margin: 0 0 40px !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .wp-block-gallery.lgm-gallery-full-grid,
  .page-id-7 .wp-block-gallery {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
  }
}
@media (min-width: 1100px) {
  .wp-block-gallery.lgm-gallery-full-grid,
  .page-id-7 .wp-block-gallery {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
  }
}

.wp-block-gallery.lgm-gallery-full-grid .wp-block-image,
.page-id-7 .wp-block-gallery .wp-block-image {
  margin: 0 !important;
  width: 100% !important;
  background: var(--white);
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(61, 38, 69, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
  box-sizing: border-box;
}
.wp-block-gallery.lgm-gallery-full-grid .wp-block-image:hover,
.page-id-7 .wp-block-gallery .wp-block-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(61, 38, 69, 0.12);
}

/* Core Image blocks inside LGM photo containers (Phase 5) */
.lgm-hero-photo-main figure.wp-block-image,
.lgm-hero-photo-sub figure.wp-block-image,
.lgm-moms-photo figure.wp-block-image,
.lgm-bento-photo-item figure.wp-block-image,
.lgm-event-photo figure.wp-block-image {
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
.lgm-hero-photo-main figure.wp-block-image img,
.lgm-hero-photo-sub figure.wp-block-image img,
.lgm-moms-photo figure.wp-block-image img,
.lgm-bento-photo-item figure.wp-block-image img,
.lgm-event-photo figure.wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.wp-block-gallery.lgm-gallery-full-grid .wp-block-image img,
.page-id-7 .wp-block-gallery .wp-block-image img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  display: block;
  border-radius: 12px !important;
  cursor: zoom-in;
}
@media (min-width: 768px) {
  .wp-block-gallery.lgm-gallery-full-grid .wp-block-image img,
  .page-id-7 .wp-block-gallery .wp-block-image img {
    height: 220px !important;
  }
}
@media (min-width: 1100px) {
  .wp-block-gallery.lgm-gallery-full-grid .wp-block-image img,
  .page-id-7 .wp-block-gallery .wp-block-image img {
    height: 260px !important;
  }
}

/* Core Video Block in Gallery and LGM sections */
.page-id-7 .wp-block-video,
.page-id-7 .lgm-video-card,
.wp-block-video.lgm-video-card {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 6px 20px rgba(30, 17, 36, 0.12);
  margin: 0 0 32px;
}
.page-id-7 .wp-block-video video,
.page-id-7 .lgm-video-card video,
.wp-block-video.lgm-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 16px;
  background: #000;
}
