/* ================================================================
   IVANA RAKULJIĆ — Shared Stylesheet
   Fonts: Aleo (body) + Zilla Slab (headings)
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=Zilla+Slab:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────────── */
:root {
  --beige:      #EAE0D5;
  --beige-mid:  #D5C9BA;
  --beige-dark: #BFB09E;
  --olive:      #585B49;
  --olive-dk:   #404438;
  --olive-lt:   #6E7260;
  --white:      #FAF7F3;
  --text-dark:  #2C2E25;
  --nav-h:      72px;
}

/* ── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Aleo', Georgia, serif;
  background: var(--beige);
  color: var(--olive-dk);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Zilla Slab', Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(42px, 5.5vw, 78px); }
h2 { font-size: clamp(30px, 4vw, 54px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 24px); font-weight: 600; }

p { font-size: 17px; line-height: 1.85; font-weight: 400; }
.lead { font-size: 19px; line-height: 1.9; font-weight: 300; }
.small { font-size: 15px; line-height: 1.75; }
.eyebrow {
  font-family: 'Zilla Slab', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: block;
}
em { font-style: italic; }
strong { font-weight: 700; }

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}
.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 60px;
}
section { width: 100%; }

/* ── SPACING ─────────────────────────────────────────────────────── */
.pt-xl  { padding-top: 120px; }
.pb-xl  { padding-bottom: 120px; }
.py-xl  { padding: 120px 0; }
.py-lg  { padding: 88px 0; }
.py-md  { padding: 64px 0; }
.mb-xs  { margin-bottom: 12px; }
.mb-sm  { margin-bottom: 20px; }
.mb-md  { margin-bottom: 36px; }
.mb-lg  { margin-bottom: 56px; }

/* ── COLORS ──────────────────────────────────────────────────────── */
.bg-beige   { background-color: var(--beige);    color: var(--olive-dk); }
.bg-olive   { background-color: var(--olive);    color: var(--beige);    }
.bg-olive-dk{ background-color: var(--olive-dk); color: var(--beige);    }
.bg-white   { background-color: var(--white);    color: var(--olive-dk); }

/* Text on olive backgrounds → always beige */
.bg-olive   p, .bg-olive h1, .bg-olive h2, .bg-olive h3, .bg-olive h4,
.bg-olive-dk p, .bg-olive-dk h1, .bg-olive-dk h2, .bg-olive-dk h3, .bg-olive-dk h4 {
  color: inherit;
}
.bg-olive .eyebrow, .bg-olive-dk .eyebrow { opacity: 0.55; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: 'Zilla Slab', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

.btn-primary {
  background: var(--olive);
  color: var(--beige);
}
.btn-primary:hover { background: var(--olive-dk); }

.btn-light {
  background: var(--beige);
  color: var(--olive);
}
.btn-light:hover { background: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--beige);
  border: 1.5px solid rgba(234,224,213,0.4);
}
.btn-outline:hover {
  background: rgba(234,224,213,0.08);
  border-color: var(--beige);
}

.btn-outline-dark {
  background: transparent;
  color: var(--olive);
  border: 1.5px solid var(--olive);
}
.btn-outline-dark:hover {
  background: var(--olive);
  color: var(--beige);
}

/* ── RULE / DIVIDER ──────────────────────────────────────────────── */
.rule {
  width: 48px;
  height: 2px;
  background: currentColor;
  opacity: 0.2;
  display: block;
}

/* ── GRID ────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: center; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }

/* ── CARD ────────────────────────────────────────────────────────── */
.card {
  padding: 44px 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,0.1); }

/* ── QUOTE / TESTIMONIAL ─────────────────────────────────────────── */
.testimonial {
  padding: 40px;
  border-left: 3px solid currentColor;
  opacity: 0.9;
}
.testimonial p {
  font-style: italic;
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.testimonial cite {
  font-family: 'Zilla Slab', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: normal;
  opacity: 0.6;
}

/* ── IMAGE HELPERS ───────────────────────────────────────────────── */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.img-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.img-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.img-landscape {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.img-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.img-square {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.img-square img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(88,91,73,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.15);
}
.nav.nav-light.scrolled {
  background: rgba(234,224,213,0.97);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Zilla Slab', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--beige);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.nav-light .nav-logo { color: var(--olive-dk); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: 'Zilla Slab', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(234,224,213,0.8);
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--beige); }
.nav-light .nav-links a { color: rgba(88,91,73,0.7); }
.nav-light .nav-links a:hover { color: var(--olive-dk); }
.nav-cta {
  background: var(--beige);
  color: var(--olive) !important;
  padding: 10px 22px;
  font-size: 11px !important;
  transition: background 0.25s, transform 0.25s !important;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--white) !important; transform: translateY(-2px); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--beige);
  transition: all 0.3s;
}
.nav-light .nav-burger span { background: var(--olive); }

/* ── MOBILE NAV ──────────────────────────────────────────────────── */
.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--olive-dk);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  font-family: 'Zilla Slab', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--beige);
  letter-spacing: -0.01em;
}

/* ── HERO ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.hero-left {
  background: var(--olive);
  display: flex;
  align-items: center;
  padding: 120px 80px 100px;
}
.hero-right {
  position: relative;
  overflow: hidden;
  background: var(--beige-mid);
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.1s; }
.fade-up.d2 { transition-delay: 0.2s; }
.fade-up.d3 { transition-delay: 0.3s; }
.fade-up.d4 { transition-delay: 0.4s; }
.fade-up.d5 { transition-delay: 0.5s; }

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-in.visible { opacity: 1; }

/* ── ACCORDION ───────────────────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid rgba(88,91,73,0.15);
}
.accordion-item.on-olive {
  border-bottom-color: rgba(234,224,213,0.12);
}
.accordion-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  font-family: 'Zilla Slab', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--olive-dk);
  transition: color 0.25s;
}
.on-olive .accordion-btn { color: var(--beige); }
.accordion-icon {
  width: 32px;
  height: 32px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
  font-size: 18px;
  line-height: 1;
}
.accordion-btn.open .accordion-icon { transform: rotate(45deg); background: currentColor; }
.accordion-btn.open .accordion-icon::after { filter: invert(1); }
.accordion-icon::after { content: '+'; font-weight: 300; }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body-inner {
  padding: 0 0 28px;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--olive-lt);
}
.on-olive .accordion-body-inner { color: var(--beige-mid); }

/* ── PROGRAM MODULE LIST ─────────────────────────────────────────── */
.module-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid rgba(234,224,213,0.1);
}
.module-num {
  font-family: 'Zilla Slab', serif;
  font-size: 13px;
  font-weight: 700;
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(234,224,213,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--beige-mid);
  flex-shrink: 0;
}
.module-title {
  font-family: 'Zilla Slab', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 8px;
}
.module-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--beige-mid);
  line-height: 1.7;
}

/* ── BODY PARTS ──────────────────────────────────────────────────── */
.body-parts-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  overflow: hidden;
}
.body-part {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(234,224,213,0.1);
  transition: background 0.3s;
}
.body-part:last-child { border-right: none; }
.body-part:hover { background: rgba(255,255,255,0.06); }
.body-part-emoji { font-size: 28px; margin-bottom: 12px; }
.body-part-name {
  font-family: 'Zilla Slab', serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.body-part-desc {
  font-size: 12px;
  color: var(--beige-mid);
  line-height: 1.5;
}

/* ── TESTIMONIAL SLIDER ──────────────────────────────────────────── */
.slider-wrap { overflow: hidden; position: relative; }
.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.slide {
  min-width: 100%;
  padding: 0 4px;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--beige-dark);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.dot.active { background: var(--beige); transform: scale(1.3); }

/* ── STAT BLOCK ──────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.stat-block {
  padding: 48px 40px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(234,224,213,0.07);
}
.stat-num {
  font-family: 'Zilla Slab', serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  color: var(--beige);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 14px;
  font-weight: 300;
  color: var(--beige-mid);
  line-height: 1.5;
}

/* ── INCLUDES GRID ───────────────────────────────────────────────── */
.includes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.include-item {
  padding: 36px 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(234,224,213,0.06);
  display: flex;
  gap: 20px;
  align-items: start;
}
.include-icon {
  width: 44px;
  height: 44px;
  background: rgba(234,224,213,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.include-text h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--beige);
  margin-bottom: 6px;
  font-family: 'Zilla Slab', serif;
  letter-spacing: 0;
}
.include-text p {
  font-size: 14px;
  color: var(--beige-mid);
  line-height: 1.65;
  font-weight: 300;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--olive-dk);
  color: var(--beige);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand {
  font-family: 'Zilla Slab', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 15px;
  font-weight: 300;
  color: var(--beige-mid);
  line-height: 1.75;
  max-width: 300px;
}
.footer-col h4 {
  font-family: 'Zilla Slab', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--beige-dark);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a {
  font-size: 15px;
  font-weight: 400;
  color: var(--beige-mid);
  transition: color 0.25s;
}
.footer-col ul li a:hover { color: var(--beige); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(234,224,213,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; color: var(--beige-dark); font-weight: 300; }

/* ── PAGE HERO (subpages) ────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 72px;
  background: var(--olive);
}
.page-hero h1 { color: var(--beige); }
.page-hero .lead { color: var(--beige-mid); margin-top: 20px; }

/* ── BODY-MAP SECTION ────────────────────────────────────────────── */
.price-block {
  text-align: center;
  padding: 60px 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(234,224,213,0.1);
}
.price-num {
  font-family: 'Zilla Slab', serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--beige);
  line-height: 1;
  margin-bottom: 8px;
}
.price-currency {
  font-size: 28px;
  vertical-align: super;
  margin-right: 4px;
}
.price-label {
  font-size: 13px;
  color: var(--beige-dark);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container, .container-narrow { padding: 0 40px; }
  .nav-inner { padding: 0 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .body-parts-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container, .container-narrow { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .py-xl { padding: 72px 0; }
  .py-lg { padding: 56px 0; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-left { padding: 80px 32px; }
  .hero-right { min-height: 360px; }
  .grid-2, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .includes-grid { grid-template-columns: 1fr; }
  .body-parts-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  h1 { font-size: clamp(36px, 8vw, 52px); }
  h2 { font-size: clamp(28px, 6vw, 40px); }
  .hero-left { padding: 40px 24px 60px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   MOBILE FIX — override inline grid styles na mobilu
   Ovo je ključno jer inline style="grid-template-columns:1fr 1fr"
   ne poštuje CSS media query bez ovog trika
   ================================================================ */

@media (max-width: 768px) {

  /* Svi inline gridi s 2+ stupca → na mob 1 stupac */
  *[style*="grid-template-columns: 1fr 1fr"],
  *[style*="grid-template-columns:1fr 1fr"],
  *[style*="grid-template-columns: 1fr 2fr"],
  *[style*="grid-template-columns:1fr 2fr"],
  *[style*="grid-template-columns: 2fr 1fr"],
  *[style*="grid-template-columns:2fr 1fr"],
  *[style*="grid-template-columns: 5fr 7fr"],
  *[style*="grid-template-columns:5fr 7fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* 3 stupca → 1 stupac na mobu */
  *[style*="grid-template-columns: 1fr 1fr 1fr"],
  *[style*="grid-template-columns:1fr 1fr 1fr"],
  *[style*="grid-template-columns: repeat(3, 1fr)"],
  *[style*="grid-template-columns:repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* 7-stupac body parts → 2 stupca */
  *[style*="grid-template-columns: repeat(7, 1fr)"],
  *[style*="grid-template-columns:repeat(7, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Stat grid s 3 → 1 */
  *[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero split */
  .hero-split {
    grid-template-columns: 1fr !important;
  }
  .hero-right {
    min-height: 300px;
    max-height: 320px;
  }

  /* Programs side by side */
  .ivr-programs {
    grid-template-columns: 1fr !important;
  }

  /* Nav adjustments */
  .nav-inner {
    padding: 0 20px !important;
  }

  /* Container padding */
  .container, .container-narrow {
    padding: 0 20px !important;
  }

  /* Hero left padding */
  .hero-left {
    padding: 64px 24px 56px !important;
  }

  /* Section padding */
  .py-xl { padding: 64px 0 !important; }
  .py-lg { padding: 48px 0 !important; }

  /* Inline padding on cards */
  *[style*="padding: 56px 52px"],
  *[style*="padding:56px 52px"],
  *[style*="padding: 64px 52px"],
  *[style*="padding:64px 52px"],
  *[style*="padding: 60px 52px"],
  *[style*="padding:60px 52px"] {
    padding: 40px 24px !important;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Includes grid */
  .includes-grid {
    grid-template-columns: 1fr !important;
  }

  /* Body parts grid */
  .body-parts-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Hide admin nav on mobile if inside admin */
  .admin-nav { display: none; }

  /* Buttons full width on mobile where needed */
  .cta-buttons-mobile {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .cta-buttons-mobile .btn {
    text-align: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 34px !important; }
  h2 { font-size: 26px !important; }

  /* Single column for everything on very small screens */
  .stat-grid {
    grid-template-columns: 1fr !important;
  }
  *[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ================================================================
   LMS / MEMBER PLATFORM EXTENSION
   ================================================================ */
.lms-body { background: var(--beige); }
.lms-main { padding-top: var(--nav-h); min-height: 100vh; }
.lms-nav { background: rgba(234,224,213,0.96); backdrop-filter: blur(14px); }
.lms-hero-section { padding: 96px 0 72px; }
.lms-section-head { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:36px; }
.lms-program-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:24px; }
.lms-program-card, .lms-mini-card, .lms-empty-card, .lms-auth-card, .lms-module-card, .lms-pdf-card {
  background: var(--white);
  border: 1px solid rgba(88,91,73,0.12);
  padding: 36px;
  box-shadow: 0 18px 52px rgba(64,68,56,0.08);
}
.lms-program-card h3, .lms-mini-card h3 { margin: 16px 0 14px; }
.lms-program-card p, .lms-mini-card p, .lms-empty-card p { color: var(--olive-lt); margin-bottom: 24px; }
.lms-mini-card strong { display:block; font-family:'Zilla Slab',serif; font-size:24px; margin-bottom:22px; color:var(--olive); }
.lms-progress { height: 9px; background: rgba(88,91,73,0.12); overflow:hidden; margin: 26px 0 10px; }
.lms-progress span { display:block; height:100%; background: var(--olive); transition: width .4s ease; }
.lms-progress-light { background: rgba(234,224,213,0.14); max-width:540px; }
.lms-progress-light span { background: var(--beige); }
.lms-card-meta { color: var(--olive-lt); font-size: 13px; margin-bottom: 24px; }
.lms-alert { max-width: 1120px; margin: 18px auto; padding: 14px 18px; border: 1px solid rgba(88,91,73,.18); background: var(--white); color: var(--olive-dk); font-size: 15px; }
.lms-alert.success { background: rgba(88,91,73,.1); border-color: rgba(88,91,73,.18); }
.lms-alert.error { background: rgba(158,71,59,.1); border-color: rgba(158,71,59,.22); color: #7e3a32; }
.lms-auth-wrap { min-height: calc(100vh - var(--nav-h)); display:flex; align-items:center; justify-content:center; padding:72px 24px; background: var(--beige); }
.lms-auth-card { width:100%; max-width:520px; }
.lms-auth-card h1 { margin-bottom: 18px; }
.lms-auth-card h2 { margin-bottom: 24px; }
.lms-form { display:flex; flex-direction:column; gap:14px; margin-top:28px; }
.lms-form label { font-family:'Zilla Slab',serif; font-size:12px; text-transform:uppercase; letter-spacing:.16em; font-weight:700; color:var(--olive-lt); }
.lms-form input, .lms-form textarea, .lms-form select {
  width:100%; padding:15px 16px; border:1px solid rgba(88,91,73,.22); background:var(--beige); color:var(--olive-dk); font-family:'Aleo',Georgia,serif; font-size:16px;
}
.lms-muted { color: var(--olive-lt); }
.lms-muted a, .lms-back { border-bottom:1px solid currentColor; font-weight:700; }
.lms-checkout-wrap { padding: 96px 0; min-height: calc(100vh - var(--nav-h)); }
.lms-checkout-grid { display:grid; grid-template-columns:1fr 520px; gap:72px; align-items:start; }
.lms-price-box { margin: 38px 0; padding: 28px; background: var(--olive); color: var(--beige); display:inline-flex; flex-direction:column; gap:6px; min-width:240px; }
.lms-price-box span { font-family:'Zilla Slab',serif; font-size:38px; font-weight:700; }
.lms-price-box small { color: var(--beige-mid); }
.lms-secure-list { list-style:none; display:flex; flex-direction:column; gap:14px; color:var(--olive-lt); }
.lms-secure-list li::before { content:'✓'; margin-right:10px; color:var(--olive); font-weight:700; }
.lms-module-list { display:flex; flex-direction:column; gap:28px; }
.lms-module-card h2 { margin-bottom: 12px; }
.lms-module-card > p { color: var(--olive-lt); margin-bottom: 22px; }
.lms-lesson-list { display:flex; flex-direction:column; gap:10px; }
.lms-lesson-row { display:flex; align-items:center; gap:16px; padding:18px; background:var(--beige); border:1px solid rgba(88,91,73,.12); transition: all .2s ease; }
.lms-lesson-row:hover { transform: translateX(4px); background: var(--beige-mid); }
.lms-lesson-row small { display:block; margin-top:3px; color:var(--olive-lt); }
.lms-check { width:30px; height:30px; display:inline-grid; place-items:center; border:1px solid rgba(88,91,73,.28); border-radius:50%; font-weight:700; flex-shrink:0; }
.lms-check.done { background:var(--olive); color:var(--beige); border-color:var(--olive); }
.lms-lesson-shell { padding: 76px 0 96px; }
.lms-lesson-shell h1 { margin: 18px 0 34px; }
.lms-video-guard { position:relative; width:100%; aspect-ratio:16/9; background:var(--olive-dk); margin-bottom:32px; overflow:hidden; box-shadow:0 24px 64px rgba(64,68,56,.18); }
.lms-video-guard iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.lms-video-note { position:absolute; left:16px; bottom:14px; background:rgba(64,68,56,.82); color:var(--beige); font-size:12px; padding:7px 10px; pointer-events:none; }
.lms-content { background:var(--white); padding:40px; border:1px solid rgba(88,91,73,.12); margin-bottom:28px; }
.lms-content p, .lms-content li { color:var(--olive-dk); margin-bottom:16px; }
.lms-content ul, .lms-content ol { list-style: initial; padding-left:24px; margin-bottom:18px; }
.lms-pdf-card { margin-bottom: 28px; }
.lms-complete-form { margin: 32px 0; }
.lms-lesson-nav { display:grid; grid-template-columns:1fr 1fr; gap:20px; border-top:1px solid rgba(88,91,73,.14); padding-top:28px; }
.lms-lesson-nav div:last-child { text-align:right; }
.lms-empty-card { text-align:center; max-width:720px; margin:0 auto; }
@media (max-width: 860px) {
  .lms-section-head, .lms-checkout-grid { display:block; }
  .lms-section-head .btn { margin-top:20px; }
  .lms-checkout-grid .lms-auth-card { margin-top:42px; }
  .lms-program-card, .lms-mini-card, .lms-empty-card, .lms-auth-card, .lms-module-card, .lms-pdf-card, .lms-content { padding:26px; }
  .lms-lesson-nav { grid-template-columns:1fr; }
  .lms-lesson-nav div:last-child { text-align:left; }
}

/* LMS upgrade: dashboard, sidebar lessons, protected embeds */
.lms-nav-user { color: var(--olive-lt); font-size: 13px; font-weight: 700; margin-left: 8px; }
.lms-dashboard-summary { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:20px; margin-bottom:46px; }
.lms-summary-card { background:var(--beige); border:1px solid rgba(88,91,73,.12); padding:26px; box-shadow:0 18px 48px rgba(64,68,56,.06); }
.lms-summary-card strong { display:block; font-family:'Zilla Slab',serif; font-size:34px; color:var(--olive); margin:12px 0 4px; line-height:1; }
.lms-summary-card p { color:var(--olive-lt); margin:0; }
.lms-lesson-shell-with-sidebar { padding-top: 42px; }
.lms-lesson-grid { display:grid; grid-template-columns: 330px minmax(0,1fr); gap:34px; align-items:start; }
.lms-lesson-sidebar { position:sticky; top:calc(var(--nav-h) + 22px); max-height:calc(100vh - var(--nav-h) - 44px); overflow:auto; padding-right:4px; }
.lms-sidebar-home { display:inline-block; margin-bottom:16px; color:var(--olive); font-weight:800; border-bottom:1px solid currentColor; }
.lms-sidebar-card { background:var(--white); border:1px solid rgba(88,91,73,.12); padding:24px; margin-bottom:18px; box-shadow:0 14px 42px rgba(64,68,56,.06); }
.lms-sidebar-card h3 { font-size:24px; margin:10px 0 0; }
.lms-curriculum-nav { background:var(--white); border:1px solid rgba(88,91,73,.12); padding:18px; box-shadow:0 14px 42px rgba(64,68,56,.06); }
.lms-curriculum-module + .lms-curriculum-module { border-top:1px solid rgba(88,91,73,.12); margin-top:16px; padding-top:16px; }
.lms-curriculum-module h4 { font-family:'Aleo',Georgia,serif; color:var(--olive); font-size:14px; text-transform:uppercase; letter-spacing:.11em; margin:0 0 10px; }
.lms-curriculum-lesson { display:grid; grid-template-columns:24px 1fr; gap:10px; align-items:start; padding:10px 8px; color:var(--olive-lt); border-radius:0; }
.lms-curriculum-lesson strong { font-size:14px; line-height:1.35; font-weight:700; }
.lms-curriculum-lesson span { font-weight:800; color:var(--olive); }
.lms-curriculum-lesson.active { background:var(--beige); color:var(--olive-dk); }
.lms-curriculum-lesson.done span { color:var(--olive); }
.lms-lesson-main-card { min-width:0; }
.lms-lesson-topline { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:18px; color:var(--olive-lt); font-weight:700; }
.lms-video-guard-masked iframe { background:var(--olive-dk); }
.lms-video-note-card { margin:-12px 0 28px; background:rgba(88,91,73,.08); border:1px solid rgba(88,91,73,.12); padding:12px 14px; color:var(--olive-lt); font-size:14px; }
.lms-pdf-inline-card p { color:var(--olive-lt); margin-bottom:18px; }
.lms-pdf-viewer-wrap { position:relative; background:var(--olive-dk); border:1px solid rgba(88,91,73,.18); min-height:72vh; overflow:hidden; box-shadow:0 24px 64px rgba(64,68,56,.16); }
.lms-pdf-frame { width:100%; height:72vh; border:0; display:block; background:var(--white); }
.lms-pdf-watermark { position:absolute; right:14px; top:12px; z-index:2; background:rgba(64,68,56,.72); color:var(--beige); padding:6px 10px; font-size:12px; pointer-events:none; }
@media (max-width: 980px) {
  .lms-dashboard-summary, .lms-lesson-grid { grid-template-columns:1fr; }
  .lms-lesson-sidebar { position:static; max-height:none; overflow:visible; }
}
@media (max-width: 620px) {
  .lms-dashboard-summary { gap:14px; }
  .lms-summary-card { padding:22px; }
  .lms-lesson-topline { display:block; }
  .lms-lesson-topline span { display:block; margin-top:12px; }
  .lms-pdf-viewer-wrap, .lms-pdf-frame { min-height:62vh; height:62vh; }
}
