/*
Theme Name:  My Sports Injury
Theme URI:   https://mysportsinjury.co.uk
Author:      My Sports Injury
Author URI:  https://mysportsinjury.co.uk
Description: Physiotherapy & Chiropractic clinic theme for My Sports Injury, Manchester & Oldham.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-sports-injury
Tags:        health, sports, physiotherapy, chiropractic
*/

/* =====================================================================
   DESIGN TOKENS
   ===================================================================== */
:root {
  --bg: #F7F8F6;
  --bg-alt: #EEF1EC;
  --bg-card: #FFFFFF;
  --ink: #122019;
  --muted: #5B6B62;
  --muted-dim: #8A968E;
  --accent: #0E6E5A;
  --accent-dim: #0A5646;
  --accent-soft: rgba(14, 110, 90, 0.09);
  --accent-ink: #F7F8F6;
  --line: rgba(18, 32, 25, 0.10);
  --line-strong: rgba(18, 32, 25, 0.20);
  --shadow: 0 1px 2px rgba(18, 32, 25, 0.04), 0 8px 24px rgba(18, 32, 25, 0.06);
  --radius: 14px;
  --maxw: 1320px;
}

/* =====================================================================
   RESET & BASE
   ===================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* =====================================================================
   LAYOUT UTILITIES
   ===================================================================== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.muted {
  color: var(--muted);
}

section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

section.no-line {
  border-top: none;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 6px 16px rgba(18, 140, 126, 0.25);
}

.btn-solid:hover {
  background: linear-gradient(135deg, #20ba5a, #0e7569);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 140, 126, 0.35);
}

.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(18, 140, 126, 0.2);
}

.btn-whatsapp i {
  font-size: 20px;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #20ba5a, #0e7569);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 140, 126, 0.35);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 12px;
}

/* =====================================================================
   NAV / HEADER
   ===================================================================== */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 246, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0);
}

.logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

#nav-toggle {
  display: none;
}

.burger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  padding: 72px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
}

.hero h1 .accent {
  background: linear-gradient(135deg, #25D366, #128C7E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #25D366;
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin: 22px 0 34px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.trust-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-dim);
}

.trust-line strong {
  color: var(--ink);
}

.hero-art {
  position: relative;
  aspect-ratio: 1/1.02;
  border-radius: 20px;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: filter 0.3s ease;
}

/* =====================================================================
   GAIT ANALYSIS OVERLAY
   ===================================================================== */
.gait-analysis-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}

.gait-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(18, 32, 25, 0.75);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 100px;
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gait-rec-dot {
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff3b30;
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0%   { opacity: 0.3; }
  100% { opacity: 1; }
}

.gait-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 3;
}

.gait-metric {
  background: rgba(18, 32, 25, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 8px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gait-val {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.gait-lbl {
  display: block;
  font-size: 9px;
  color: var(--muted-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scanning line effect */
.gait-scan-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), #CFF7E9, var(--accent), transparent);
  box-shadow: 0 0 12px var(--accent);
  opacity: 0;
  animation: scan 4s linear infinite;
  z-index: 2;
}

@keyframes scan {
  0%   { top: 0%; }
  50%  { top: 100%; }
  100% { top: 0%; }
}

/* Video play/pause control */
.video-control-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(18, 32, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  pointer-events: auto;
}

.video-control-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.video-control-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

@media (max-width: 480px) {
  .google-reviews-sec {
    padding: 20px 0 30px !important;
  }
  .gait-analysis-overlay {
    padding: 12px;
  }
  .gait-header {
    font-size: 8.5px;
    padding: 4px 8px;
  }
  .gait-rec-dot {
    width: 6px;
    height: 6px;
  }
  .gait-metric {
    padding: 8px 4px;
    border-radius: 8px;
  }
  .gait-val {
    font-size: 13px;
  }
  .gait-lbl {
    font-size: 7.5px;
    letter-spacing: 0;
  }
  .video-control-btn {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
  }
}

/* =====================================================================
   SECTION HEADS
   ===================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-head h2 .accent {
  background: linear-gradient(135deg, #25D366, #128C7E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #25D366;
}

.section-head p {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
}

/* =====================================================================
   SERVICES GRID
   ===================================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--bg-card);
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: block;
  text-decoration: none;
  color: inherit;
}

.svc-card span {
  width: 100%;
  margin-top: 20px;
}

.svc-card:hover {
  background: var(--bg-card);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(18, 32, 25, 0.08);
  border-color: var(--accent);
}

.svc-card img {
  border-radius: 10px;
}

.svc-card h3 {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0;
  margin: 14px 0 8px;
  color: var(--ink);
}

.svc-card p {
  color: var(--muted);
  margin: 0;
}

/* =====================================================================
   FEATURES
   ===================================================================== */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feat-icon i {
  font-size: 20px;
  color: #24CE68;
}

.feat-card h3 {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.feat-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* =====================================================================
   TEAM CAROUSEL
   ===================================================================== */
.slider-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.slider-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.slider-btn:active {
  transform: translateY(0);
}

.team-container {
  position: relative;
}

.team-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

@media (min-width: 721px) {
  .team-controls {
    position: absolute;
    top: 0;
    right: 24px;
    margin-top: 0;
  }
}

.team-swiper {
  padding: 10px 4px 30px;
  margin: 0 -4px;
  overflow: hidden;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: auto;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(18, 32, 25, 0.1);
}

.team-photo {
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-info {
  padding: 16px 18px 20px;
}

.team-info h3 {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.team-info p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
}

/* =====================================================================
   CASE STORIES
   ===================================================================== */
.cases-container {
  position: relative;
}

.cases-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

@media (min-width: 721px) {
  .cases-controls {
    position: absolute;
    top: 0;
    right: 24px;
    margin-top: 0;
  }
}

.cases-swiper {
  padding: 10px 4px 44px;
  margin: 0 -4px;
  overflow: hidden;
}

.cases-swiper .swiper-pagination-bullet {
  background: var(--muted-dim);
  opacity: 0.4;
  width: 10px;
  height: 10px;
  transition: background 0.3s, opacity 0.3s, transform 0.3s;
}

.cases-swiper .swiper-pagination-bullet-active {
  background: #25D366;
  opacity: 1;
  transform: scale(1.2);
}

.case-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.case-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.8;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.case-card:hover video {
  transform: scale(1.05);
  opacity: 0.95;
}

.case-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.case-card .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(14, 110, 90, 0.35);
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.case-card:hover .play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
}

.case-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  pointer-events: none;
}

.case-label .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #CFF7E9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-label h3 {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  margin-top: 6px;
  color: #fff;
}

/* =====================================================================
   PARTNERS BAND
   ===================================================================== */
.partners-band {
  background: var(--bg-alt);
}

.partners-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 10px 0;
}

.partners-wrap::before,
.partners-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.partners-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt) 20%, transparent);
}

.partners-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt) 20%, transparent);
}

.partners-row {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: marquee 35s linear infinite;
}

.partners-row.reverse {
  animation: marquee-reverse 35s linear infinite;
}

.partners-row:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.partner-pill {
  width: 180px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
  min-height: 80px;
}

.partner-pill img {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
  transition: filter 0.2s, opacity 0.2s;
}

.partner-pill:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* =====================================================================
   CPD COURSES
   ===================================================================== */
.cpd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cpd-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cpd-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.cpd-card h3 {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
  margin-bottom: 10px;
  flex-grow: 0;
}

.cpd-card p {
  font-size: 13.5px;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 22px;
}

.cpd-card img {
  width: calc(100% + 56px);
  max-width: none !important;
  margin: -28px -28px 20px -28px;
  aspect-ratio: 3/3;
  object-fit: cover;
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
}

.cpd-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.cpd-feat-badge {
  background: rgba(14, 110, 90, 0.06);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.cpd-meta-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 12px 0;
  margin-bottom: 20px;
  margin-top: auto;
}

.cpd-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cpd-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}

.cpd-meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

/* CPD audience line */
.cpd-audience {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
}

.cpd-audience-icon {
  font-size: 14px;
  flex-shrink: 0;
}

/* CPD card actions row */
.cpd-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.cpd-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  font-size: 13.5px;
  padding: 11px 14px;
}

/* Outline green button variant */
.btn-outline-green {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
}

.btn-outline-green:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* =====================================================================
   COURSE DETAIL MODAL (CDM)
   ===================================================================== */
.cdm-container {
  max-width: 720px !important;
  padding: 0 !important;
  border-radius: 20px;
  overflow: hidden;
}

/* Remove the default padding on inner-wrap for CDM */
.cdm-container .modal-inner-wrap {
  padding: 0 !important;
}

/* Hero image strip */
.cdm-hero {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.cdm-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.6s ease;
}

.cdm-container:hover .cdm-hero-img {
  transform: scale(1.03);
}

.cdm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,15,0.85) 0%, rgba(10,20,15,0.2) 60%, transparent 100%);
  z-index: 1;
}

.cdm-close-btn {
  position: absolute !important;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(255,255,255,0.15) !important;
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.3) !important;
  color: #fff !important;
}

.cdm-close-btn:hover {
  background: rgba(239,68,68,0.85) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.cdm-hero-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 2;
}

.cdm-tag {
  display: inline-block;
  margin-bottom: 8px;
  background: rgba(14,110,90,0.85);
  backdrop-filter: blur(4px);
  color: #CFF7E9;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cdm-title {
  font-family: 'Inter', sans-serif !important;
  text-transform: none !important;
  font-weight: 800 !important;
  font-size: clamp(18px, 3vw, 24px) !important;
  letter-spacing: -0.3px !important;
  color: #fff !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Body */
.cdm-body {
  padding: 28px 32px 32px;
  overflow-y: auto;
  max-height: calc(92vh - 240px);
}

.cdm-body::-webkit-scrollbar { width: 4px; }
.cdm-body::-webkit-scrollbar-track { background: transparent; }
.cdm-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

/* Stats row */
.cdm-stats-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}

.cdm-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  background: var(--bg-alt);
}

.cdm-stat:last-child {
  border-right: none;
}

.cdm-stat svg {
  flex-shrink: 0;
  color: var(--accent);
}

.cdm-stat > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cdm-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-dim);
  font-family: 'JetBrains Mono', monospace;
}

.cdm-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Short desc */
.cdm-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 18px;
}

/* Topics/badges row */
.cdm-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.cdm-topics .cpd-feat-badge {
  font-size: 12px;
  padding: 5px 12px;
}

/* Modules heading */
.cdm-modules-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.cdm-modules-header svg {
  color: var(--accent);
  flex-shrink: 0;
}

.cdm-modules-header h4 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.2px;
  text-transform: none;
}

/* Module accordion items */
.cdm-modules {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}

.cdm-module-item {
  border-bottom: 1px solid var(--line);
}

.cdm-module-item:last-child {
  border-bottom: none;
}

.cdm-module-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  cursor: pointer;
  user-select: none;
  list-style: none;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: 'Inter', sans-serif;
}

.cdm-module-toggle::-webkit-details-marker { display: none; }

.cdm-module-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1px;
  transition: background 0.2s, color 0.2s;
}

.cdm-module-item[open] .cdm-module-num,
.cdm-module-item.open .cdm-module-num {
  background: var(--accent);
  color: #fff;
}

.cdm-module-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
  line-height: 1.4;
}

.cdm-module-arrow {
  width: 18px;
  height: 18px;
  color: var(--muted-dim);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  margin-top: 4px;
}

.cdm-module-item[open] .cdm-module-arrow,
.cdm-module-item.open .cdm-module-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.cdm-module-body {
  padding: 0 0 18px 44px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  display: none;
}

.cdm-module-item[open] .cdm-module-body,
.cdm-module-item.open .cdm-module-body {
  display: block;
}

/* CTA row */
.cdm-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cdm-cta-row .btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
  justify-content: center;
}

.cdm-book-btn {
  font-size: 14.5px !important;
}

.cdm-wa-btn {
  font-size: 14.5px !important;
}

@media (max-width: 600px) {
  .cdm-hero { height: 180px; }
  .cdm-body { padding: 20px; max-height: calc(92vh - 180px); }
  .cdm-stats-row { flex-direction: column; }
  .cdm-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .cdm-stat:last-child { border-bottom: none; }
  .cdm-cta-row { flex-direction: column; }
  .cpd-actions { flex-direction: column; }
  .cpd-actions .btn { flex: none; width: 100%; }
}

@media (max-width: 900px) {
  .cdm-stat-value { font-size: 12px; }
}


/* =====================================================================
   GOOGLE REVIEWS
   ===================================================================== */
.google-reviews-sec {
  background: var(--bg-alt);
  padding: 80px 0 60px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
}

.google-swiper-container {
  margin: 0 auto;
  position: relative;
  padding: 0px 50px 20px;
}

.google-card {
  background: var(--bg-card);
  color: var(--ink);
  border-radius: 16px;
  padding: 48px 36px 36px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 35px rgba(18, 32, 25, 0.08);
  margin: 36px 15px 15px;
}

.google-avatar-wrapper {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background: #FFFFFF;
}

.google-avatar-monogram {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 24px;
  font-family: 'Inter', sans-serif;
}

.google-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #FFFFFF;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.google-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #122019;
}

.google-card .review-date {
  font-size: 12px;
  color: #8A968E;
  margin-bottom: 12px;
  display: block;
}

.google-card .stars-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}

.google-card .stars-container svg.star {
  fill: #FFC107;
  width: 16px;
  height: 16px;
}

.google-card .stars-container svg.verified {
  margin-left: 4px;
}

.google-card blockquote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #2D3E35;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.google-rating-summary {
  text-align: center;
  margin-top: 32px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.google-rating-summary.in img {
  height: 60px;
}

.google-rating-summary svg {
  margin-right: 2px;
}

.google-rating-summary strong {
  color: var(--ink);
}

/* Google Video Reviews */
.google-video-card {
  position: relative;
  border-radius: 16px;
  margin: 36px 15px 15px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #000;
  box-shadow: 0 10px 35px rgba(18, 32, 25, 0.15);
  cursor: pointer;
  padding: 0 !important;
}

.review-video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.google-review-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, opacity 0.3s ease;
  z-index: 2;
}

.video-play-overlay:hover {
  background: rgba(0, 0, 0, 0.35);
}

.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(14, 110, 90, 0.4);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Play/Pause state controls */
.google-video-card.video-playing .play-svg  { display: none !important; }
.google-video-card.video-playing .pause-svg { display: block !important; }

.google-video-card.video-playing .video-play-overlay { opacity: 0; }
.google-video-card.video-playing .review-video-wrapper:hover .video-play-overlay { opacity: 1; }

/* Mute button */
.video-mute-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s, background 0.2s;
  padding: 0;
}

.video-mute-btn:hover { transform: scale(1.05); background: rgba(0, 0, 0, 0.8); }
.video-mute-btn .volume-mute { display: none; }
.video-mute-btn.muted .volume-up   { display: none; }
.video-mute-btn.muted .volume-mute { display: block; }

.google-swiper-prev,
.google-swiper-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 32, 25, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.google-swiper-prev:hover,
.google-swiper-next:hover {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-color: var(--accent);
  color: #fff;
}

.google-swiper-prev { left: 0; }
.google-swiper-next { right: 0; }

@media(max-width: 768px) {
  .google-swiper-prev,
  .google-swiper-next { display: none; }
  .google-swiper-container { padding: 0px 10px 20px; }
}

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.review-swiper {
  padding-top: 40px;
  margin-top: -40px;
  padding-bottom: 40px;
}

.review-swiper .swiper-pagination-bullet {
  background: var(--muted-dim);
  opacity: 0.4;
  width: 10px;
  height: 10px;
  transition: background 0.3s, opacity 0.3s, transform 0.3s;
}

.review-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.2);
}

.review-swiper .swiper-slide {
  height: auto;
}

.testi {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px 36px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  box-shadow: var(--shadow);
  height: 100%;
  margin-top: 36px;
}

.testi-avatar {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  box-shadow: var(--shadow);
  object-fit: cover;
  background: var(--bg-alt);
}

.testi .mark {
  font-family: 'Anton', sans-serif;
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: -10px;
  align-self: center;
}

.testi blockquote {
  margin: 0;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--ink);
  flex-grow: 1;
}

.testi cite {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  width: 100%;
  padding-top: 14px;
  margin-top: 14px;
  display: block;
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-grid-layout {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: flex-start;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-promo-card {
  position: relative;
  background: #0b1511;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 3/3;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faq-card-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 30px 0;
  opacity: 0.12;
  font-family: 'Anton', sans-serif;
  font-size: 40px;
  line-height: 1;
  color: #ff5e3a;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 3;
  mix-blend-mode: overlay;
}

.faq-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.faq-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 21, 17, 0.15) 30%, rgba(11, 21, 17, 0.85) 90%);
  z-index: 3;
}

.faq-card-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: rgba(18, 32, 25, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
  color: #fff;
}

.faq-card-close:hover {
  background: #ff5e3a;
  border-color: #ff5e3a;
  transform: scale(1.1);
}

.faq-card-close svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.faq-card-content {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-card-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF;
  width: 100%;
  padding: 14px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
  text-decoration: none;
}

.faq-card-btn:hover {
  transform: translateY(-2px);
  background: #ff5e3a;
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 94, 58, 0.35);
}

.faq-card-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 900px) {
  .faq-grid-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .faq-promo-card {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }
}

/* FAQ accordion */
details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 400;
  transition: transform .2s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 14px 0 0;
  max-width: 640px;
}

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band {
  background: linear-gradient(135deg, #0E6E5A, #0A5646 70%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: clamp(28px, 4vw, 42px);
  max-width: 520px;
  color: #fff;
}

.cta-band .accent {
  background: linear-gradient(135deg, #25D366, #128C7E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #25D366;
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cta-band .btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

.cta-band .btn-solid {
  background: #fff;
  color: var(--accent-dim);
  box-shadow: none;
}

.cta-band .btn-solid:hover {
  background: #EFF6F3;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 40px;
  margin-bottom: 48px;
}

.foot-brand p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 280px;
  margin-top: 14px;
}

.foot-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 16px;
}

.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  padding: 6px 0;
  transition: color .15s;
}

.foot-col a:hover {
  color: var(--accent);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--muted-dim);
  flex-wrap: wrap;
  gap: 12px;
}

.foot-bottom img {
  height: 40px;
}

.socials {
  display: flex;
  gap: 14px;
}

.socials a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials a:hover {
  border-color: var(--accent);
}

.foot-brand .socials {
  margin-top: 20px;
}

.foot-contact-item {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
  padding: 8px 0 !important;
}

.foot-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--muted-dim);
  transition: color .15s;
}

.foot-contact-item:hover svg {
  color: var(--accent);
}

.foot-newsletter p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.5;
}

.newsletter-form {
  display: flex;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.newsletter-form input {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  flex-grow: 1;
  outline: none;
  width: 100%;
}

.newsletter-form input::placeholder {
  color: var(--muted-dim);
}

.newsletter-form button {
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.newsletter-form button:hover {
  background: var(--accent-dim);
}

/* =====================================================================
   REVEAL ANIMATION
   ===================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   FLOATING WHATSAPP
   ===================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(18, 140, 126, 0.4);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float i {
  font-size: 26px;
  color: #FFFFFF;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 20px rgba(18, 140, 126, 0.6);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid #25D366;
  border-radius: 50%;
  opacity: 0;
  animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* =====================================================================
   DEPOSIT PAYMENT MODAL
   ===================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.75);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(10, 20, 15, 0.35), 0 0 0 1px rgba(14, 110, 90, 0.12);
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  max-height: 92vh;
  overflow-y: auto;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

/* Scrollbar styling */
.modal-container::-webkit-scrollbar { width: 4px; }
.modal-container::-webkit-scrollbar-track { background: transparent; }
.modal-container::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

/* Gradient accent bar at top */
.modal-container::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #0E6E5A, #25D366, #128C7E);
  background-size: 200% 100%;
  animation: modalBarShimmer 3s linear infinite;
}

@keyframes modalBarShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.modal-inner-wrap {
  padding: 28px 32px 32px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.modal-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.3px;
}

.modal-subtitle {
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.01em;
}

.modal-close-btn {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.form-group label {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.form-group label span.required {
  color: #ef4444;
  margin-left: 2px;
}

.form-input {
  background: var(--bg-alt);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
  font-family: 'Inter', sans-serif;
}

.form-input::placeholder { color: var(--muted-dim); }

.form-input:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 110, 90, 0.12);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-msg {
  font-size: 11.5px;
  color: #ef4444;
  display: none;
  margin-top: -2px;
  font-weight: 500;
}

.form-group.has-error .error-msg {
  display: block;
}

.offer-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.offer-title span.required {
  color: #ef4444;
  margin-left: 2px;
}

.offer-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.offer-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
  background: var(--bg-alt);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.2s, background 0.2s;
}

.offer-option:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Styled Toggle Switches */
.offer-option input[type="radio"] {
  display: none;
}

.switch-slider {
  width: 44px;
  height: 24px;
  background: var(--line-strong);
  border-radius: 12px;
  position: relative;
  transition: background 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
}

.switch-slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  top: 3px;
  left: 3px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.offer-option input[type="radio"]:checked + .switch-slider {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 110, 90, 0.15);
}

.offer-option input[type="radio"]:checked + .switch-slider::after {
  transform: translateX(20px);
}

.offer-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.coupon-container {
  display: flex;
  gap: 8px;
}

.coupon-input {
  flex-grow: 1;
  background: var(--bg-alt);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.coupon-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 110, 90, 0.12);
}

.coupon-btn {
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.coupon-btn:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.payment-submit-btn {
  background: linear-gradient(135deg, #16a34a 0%, #0E6E5A 60%, #128C7E 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 17px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  margin-top: 12px;
  box-shadow: 0 8px 24px rgba(14, 110, 90, 0.3);
  position: relative;
  overflow: hidden;
}

.payment-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.payment-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14, 110, 90, 0.4);
}

.payment-submit-btn:active {
  transform: scale(0.98) translateY(0);
}

/* =====================================================================
   FLUENT FORMS CUSTOM STYLING (MODAL OVERRIDES)
   ===================================================================== */

/* Form wrapper spacing */
#payment-modal .modal-form-wrapper {
  padding-top: 0 !important;
}

#payment-modal .fluentform .ff-el-group.hidden,
#payment-modal .fluentform .ff-el-group.ff_hidden_field_container,
#payment-modal .fluentform .ff-el-group:has(input[name="course_title"]) {
  display: none !important;
}

#payment-modal .fluentform .ff-el-group {
  margin-bottom: 18px !important;
}

/* Labels */
#payment-modal .fluentform .ff-el-input--label label {
  font-size: 13px !important;
  font-weight: 650 !important;
  color: var(--ink) !important;
  font-family: 'Inter', sans-serif !important;
  letter-spacing: 0.01em !important;
  margin-bottom: 7px !important;
}

/* Required asterisk */
#payment-modal .fluentform .ff-el-input--label label .ff-asterisk {
  color: #ef4444 !important;
}

/* Input fields */
#payment-modal .fluentform input[type="text"],
#payment-modal .fluentform input[type="email"],
#payment-modal .fluentform input[type="tel"],
#payment-modal .fluentform input[type="number"],
#payment-modal .fluentform select,
#payment-modal .fluentform textarea {
  background: var(--bg-alt) !important;
  border: 1.5px solid var(--line-strong) !important;
  border-radius: 10px !important;
  padding: 13px 16px !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  color: var(--ink) !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
  box-shadow: none !important;
  outline: none !important;
  width: 100% !important;
}

#payment-modal .fluentform input::placeholder,
#payment-modal .fluentform textarea::placeholder {
  color: var(--muted-dim) !important;
}

#payment-modal .fluentform input[type="text"]:focus,
#payment-modal .fluentform input[type="email"]:focus,
#payment-modal .fluentform input[type="tel"]:focus,
#payment-modal .fluentform select:focus,
#payment-modal .fluentform textarea:focus {
  background: #ffffff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(14, 110, 90, 0.12) !important;
}

/* Checkboxes & Radios — card style */
#payment-modal .fluentform .ff-el-form-check {
  background: var(--bg-alt) !important;
  border: 1.5px solid var(--line-strong) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  margin-bottom: 8px !important;
  transition: border-color 0.2s, background 0.2s !important;
  cursor: pointer !important;
}

#payment-modal .fluentform .ff-el-form-check:hover {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

#payment-modal .fluentform .ff-el-form-check input[type="checkbox"],
#payment-modal .fluentform .ff-el-form-check input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--accent) !important;
  margin-right: 10px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  border-radius: 4px !important;
}

#payment-modal .fluentform .ff-el-form-check-label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
}

/* Coupon / promo section — button inline RIGHT of input */
/* Exact Fluent Forms coupon structure: .ff_coupon_wrapper > .ff-el-input--content > .ff_input-group */
#payment-modal .fluentform .ff_input-group,
#payment-modal .fluentform .ff-coupon-row,
#payment-modal .fluentform .ff-coupon-wrap,
#payment-modal .fluentform .ff-coupon-wrapper,
#payment-modal .fluentform .ff-coupon-field-wrapper,
#payment-modal .fluentform [data-field_type="coupon"] .ff-el-input--content,
#payment-modal .fluentform .ff-el-group[data-field_type="coupon"] .ff-el-input--content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  align-items: stretch !important;
}

/* Input grows to fill available space */
#payment-modal .fluentform .ff_input-group input,
#payment-modal .fluentform .ff-coupon-row input,
#payment-modal .fluentform .ff-coupon-wrap input,
#payment-modal .fluentform .ff-coupon-wrapper input,
#payment-modal .fluentform .ff-coupon-field-wrapper input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  border-radius: 10px !important;
}

/* Button container (.ff_input-group-append) */
#payment-modal .fluentform .ff_input-group-append {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: stretch !important;
}

/* Apply Coupon clickable span/button */
#payment-modal .fluentform .ff_input-group-text,
#payment-modal .fluentform .ff_input-group-append span,
#payment-modal .fluentform .ff_input-group-append button,
#payment-modal .fluentform .ff-coupon-row button,
#payment-modal .fluentform .ff-coupon-wrap button,
#payment-modal .fluentform .ff-coupon-wrapper button,
#payment-modal .fluentform .ff-coupon-field-wrapper button,
#payment-modal .fluentform button.ff-coupon-btn,
#payment-modal .fluentform .ff-btn-coupon {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--accent) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 0 20px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: background 0.2s, transform 0.15s !important;
  height: auto !important;
  min-height: 46px !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
}

#payment-modal .fluentform .ff_input-group-text:hover,
#payment-modal .fluentform .ff_input-group-append span:hover,
#payment-modal .fluentform .ff_input-group-append button:hover,
#payment-modal .fluentform .ff-coupon-row button:hover,
#payment-modal .fluentform .ff-coupon-wrap button:hover,
#payment-modal .fluentform .ff-coupon-wrapper button:hover,
#payment-modal .fluentform button.ff-coupon-btn:hover,
#payment-modal .fluentform .ff-btn-coupon:hover {
  background: var(--accent-dim) !important;
  transform: translateY(-1px) !important;
}

/* Notice / alert text inside modal */
#payment-modal .fluentform .ff-message-show,
#payment-modal .fluentform .ff-el-input--content .error,
#payment-modal .fluentform .ff-response-message {
  font-size: 12.5px !important;
  font-family: 'Inter', sans-serif !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  margin-top: 4px !important;
  line-height: 1.5 !important;
}

/* Error messages */
#payment-modal .fluentform .error,
#payment-modal .fluentform .has-error .ff-el-input--content {
  color: #dc2626 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  font-family: 'Inter', sans-serif !important;
  margin-top: 5px !important;
}

/* Payment method notice */
#payment-modal .fluentform .ff-payment-method-not-found,
#payment-modal .fluentform p {
  font-size: 13px !important;
  color: var(--muted) !important;
  font-family: 'Inter', sans-serif !important;
  background: var(--bg-alt) !important;
  border-left: 3px solid var(--accent) !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 10px 14px !important;
  line-height: 1.6 !important;
  margin: 0 0 8px 0 !important;
}

/* Submit button */
#payment-modal .fluentform button.ff-btn-submit,
#payment-modal .fluentform button[type="submit"] {
  background: linear-gradient(135deg, #16a34a 0%, #0E6E5A 60%, #128C7E 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 17px 32px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  display: block !important;
  width: 100% !important;
  margin-top: 20px !important;
  box-shadow: 0 8px 24px rgba(14, 110, 90, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
}

#payment-modal .fluentform button.ff-btn-submit:hover,
#payment-modal .fluentform button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(14, 110, 90, 0.4) !important;
}

#payment-modal .fluentform button.ff-btn-submit:active,
#payment-modal .fluentform button[type="submit"]:active {
  transform: scale(0.98) translateY(0) !important;
}

/* =====================================================================
   SINGLE CPD COURSE PAGE
   ===================================================================== */

/* ── Hero ── */
.sc-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 56px;
}

.sc-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 18, 13, 0.92) 0%,
    rgba(8, 18, 13, 0.60) 50%,
    rgba(8, 18, 13, 0.25) 100%
  );
  z-index: 0;
}

.sc-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Breadcrumb */
.sc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.sc-breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}

.sc-breadcrumb a:hover {
  color: #CFF7E9;
}

.sc-breadcrumb span:last-child {
  color: rgba(255,255,255,0.8);
}

/* Tag pill */
.sc-tag {
  display: inline-block;
  margin-bottom: 14px;
  background: rgba(14,110,90,0.75);
  backdrop-filter: blur(6px);
  color: #CFF7E9;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hero title */
.sc-title {
  font-family: 'Inter', sans-serif !important;
  text-transform: none !important;
  font-weight: 900 !important;
  font-size: clamp(28px, 4.5vw, 52px) !important;
  letter-spacing: -0.5px !important;
  color: #ffffff !important;
  line-height: 1.1 !important;
  margin: 0 0 14px !important;
  max-width: 820px;
}

/* Hero lead */
.sc-lead {
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  line-height: 1.6;
  margin: 0 0 28px;
}

/* Stats strip */
.sc-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.sc-stat-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 9px 16px;
  color: #fff;
}

.sc-stat-chip svg {
  flex-shrink: 0;
  color: #4ADE80;
}

.sc-chip-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.55);
  font-family: 'JetBrains Mono', monospace;
  margin-right: 4px;
}

.sc-stat-chip strong {
  font-size: 13.5px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

/* Hero CTAs */
.sc-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.sc-book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sc-book-btn svg {
  fill: currentColor;
  width: 16px;
  height: 16px;
}

/* ── Main layout ── */
.sc-main {
  background: var(--bg);
  padding: 64px 0 80px;
}

.sc-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

/* ── Section titles ── */
.sc-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif !important;
  text-transform: none !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  color: var(--ink) !important;
  margin: 0 0 18px !important;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.sc-section-title svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── Badges ── */
.sc-badges-section {
  margin-bottom: 44px;
}

.sc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sc-badge {
  font-size: 13px !important;
  padding: 6px 14px !important;
}

/* ── Modules section ── */
.sc-modules-section {
  margin-bottom: 36px;
}

.sc-modules {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sc-module-item {
  border-bottom: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0; /* Clear global details padding */
}

.sc-module-item:last-child {
  border-bottom: none;
}

.sc-module-toggle {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}

/* Hide global summary::after (the plus/cross icon) */
.sc-module-toggle::after {
  content: none !important;
  display: none !important;
}

.sc-module-toggle::-webkit-details-marker { display: none; }

.sc-module-item[open] .sc-module-toggle,
.sc-module-toggle:hover {
  background: var(--bg-alt);
}

.sc-module-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  transition: background 0.2s, color 0.2s;
}

.sc-module-item[open] .sc-module-num {
  background: var(--accent);
  color: #fff;
}

.sc-module-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  flex: 1;
  line-height: 1.4;
  padding-top: 4px;
  font-family: 'Inter', sans-serif;
}

.sc-module-arrow {
  width: 20px;
  height: 20px;
  color: var(--muted-dim);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.2s;
  margin-top: 6px;
}

.sc-module-item[open] .sc-module-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.sc-module-body {
  padding: 0 22px 20px 70px;
}

.sc-module-body p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* No modules fallback */
.sc-no-modules {
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 14.5px;
  color: var(--muted);
}

.sc-no-modules a {
  color: var(--accent);
  font-weight: 600;
}

/* Back link */
.sc-back-link {
  margin-top: 8px;
}

.sc-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.15s;
}

.sc-back-link a:hover {
  color: var(--accent);
}

/* ── Sidebar ── */
.sc-sidebar {
  position: sticky;
  top: 100px;
}

.sc-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sc-sidebar-img-wrap {
  overflow: hidden;
  max-height: 200px;
}

.sc-sidebar-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sc-sidebar-card:hover .sc-sidebar-img {
  transform: scale(1.04);
}

.sc-sidebar-body {
  padding: 24px;
}

.sc-sidebar-tag {
  margin-bottom: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  display: inline-block;
}

.sc-sidebar-title {
  font-family: 'Inter', sans-serif !important;
  text-transform: none !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  letter-spacing: -0.2px !important;
  color: var(--ink) !important;
  margin: 0 0 18px !important;
  line-height: 1.35 !important;
}

.sc-sidebar-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.sc-sidebar-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  background: var(--bg-alt);
}

.sc-sidebar-meta li:last-child {
  border-bottom: none;
}

.sc-sidebar-meta svg {
  color: var(--accent);
  flex-shrink: 0;
}

.sc-sidebar-meta span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
  min-width: 68px;
}

.sc-sidebar-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-left: auto;
  text-align: right;
}

.sc-sidebar-book,
.sc-sidebar-wa {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
  font-size: 14px !important;
}

.sc-trust-note {
  font-size: 11.5px;
  color: var(--muted-dim);
  text-align: center;
  margin: 12px 0 0;
  font-family: 'JetBrains Mono', monospace;
}

/* ── CPD card — clickable image/title on homepage ── */
.cpd-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cpd-card-link img {
  transition: transform 0.4s ease, filter 0.3s ease;
}

.cpd-card:hover .cpd-card-link img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.cpd-card-link h3 {
  transition: color 0.2s;
}

.cpd-card:hover .cpd-card-link h3 {
  color: var(--accent);
}

/* Single-button cpd-actions (Book Now only) */
.cpd-actions.single-btn .btn {
  flex: none;
  width: 100%;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sc-layout {
    grid-template-columns: 1fr 300px;
    gap: 32px;
  }
}

@media (max-width: 860px) {
  .sc-layout {
    grid-template-columns: 1fr;
  }

  .sc-sidebar {
    position: static;
    order: -1; /* show sidebar (price card) above content on mobile */
  }

  .sc-hero {
    min-height: 420px;
    padding-bottom: 40px;
  }

  .sc-stats-strip {
    flex-direction: column;
    gap: 8px;
  }

  .sc-module-body {
    padding-left: 22px;
  }
}

/* =====================================================================
   RESPONSIVE BREAKPOINTS

   ===================================================================== */
@media(max-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-head { margin-bottom: 32px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid,
  .cpd-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .testi { padding: 56px 28px 28px; margin-top: 36px; }
  .cta-band { padding: 40px 28px; }
}

@media(max-width: 720px) {
  section { padding: 48px 0; }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform .25s ease;
  }

  .nav-links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  #nav-toggle:checked ~ .nav-links {
    transform: translateY(0);
  }

  .burger { display: flex; }
  .nav-cta .btn-whatsapp { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =====================================================================
   THANK YOU / PAYMENT CONFIRMATION PAGE
   ===================================================================== */
.thanks-page-main {
  background: var(--bg);
  padding: 80px 0 100px;
  min-height: 75vh;
  display: flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

.thanks-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.thanks-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 50px rgba(18, 32, 25, 0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: cardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Entrance glow effect at the top of card */
.thanks-header-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(circle, rgba(14, 110, 90, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(15px);
  pointer-events: none;
}

/* Animated SVG Checkmark */
.success-checkmark-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.checkmark-svg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  display: block;
  box-shadow: 0 8px 24px rgba(18, 140, 126, 0.25);
  animation: checkmarkScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3.5;
  stroke-miterlimit: 10;
  stroke: rgba(255, 255, 255, 0.4);
  fill: none;
  animation: checkmarkStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #ffffff;
  stroke-width: 4;
  animation: checkmarkStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes checkmarkStroke {
  100% { stroke-dashoffset: 0; }
}

@keyframes checkmarkScale {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes cardSlideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Title & Content */
.thanks-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin: 0 0 12px;
}

.thanks-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 32px;
}

/* Summary Box */
.thanks-details-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  text-align: left;
}

.thanks-details-box h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin: 0 0 16px;
}

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.detail-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.detail-value.highlight {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 15px;
}

.thanks-divider {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 40px 0;
}

/* Next Steps */
/* WhatsApp Support Section */
.thanks-whatsapp-section {
  margin-bottom: 40px;
  text-align: center;
}

.whatsapp-contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 10px 30px rgba(18, 32, 25, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.whatsapp-contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(18, 32, 25, 0.05);
  border-color: var(--line-strong);
}

.whatsapp-icon-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.whatsapp-contact-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 8px;
  text-transform: none;
  letter-spacing: 0;
}

.whatsapp-contact-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 20px;
}

.whatsapp-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.whatsapp-cta-wrapper .btn-whatsapp {
  width: 100%;
  max-width: 260px;
}

.whatsapp-number-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Actions */
.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.thanks-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.thanks-actions .btn-primary-outline {
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.thanks-actions .btn-primary-outline:hover {
  background: var(--bg-alt);
  border-color: var(--ink);
}

.thanks-actions .btn-whatsapp {
  background: #25D366;
  border: 1.5px solid #25D366;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.2);
}

.thanks-actions .btn-whatsapp:hover {
  background: #20ba5a;
  border-color: #20ba5a;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Responsive */
@media(max-width: 768px) {
  .thanks-card {
    padding: 32px 24px;
  }
  
  .thanks-title {
    font-size: 26px;
  }
  
  .whatsapp-contact-card {
    padding: 24px 16px;
  }
  
  .thanks-actions {
    flex-direction: column;
  }
  
  .thanks-actions .btn {
    width: 100%;
  }
}

