/* ============================================================
   Menopause Masterclass — Frontend Styles
   Author: EldinR. (https://eldinr.com)
   ============================================================ */

.mm-wrap-frontend *, .mm-wrap-frontend *::before, .mm-wrap-frontend *::after {
  box-sizing: border-box;
}

.mm-wrap-frontend {
  --mm-purple-deep: #2D1B69;
  --mm-purple-mid:  #4A2C99;
  --mm-gold:        #C9A84C;
  --mm-gold-light:  #E8C96A;
  --mm-cream:       #FAF8F5;
  --mm-white:       #FFFFFF;
  --mm-dark:        #1A1A2A;
  --mm-gray-soft:   #F0EDE8;
  --mm-body:        #3A3A4A;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--mm-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── HERO ─────────────────────────────────────────────────── */
#mm-page-hero {
  background: var(--mm-purple-deep);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#mm-page-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,44,153,0.5) 0%, transparent 70%);
  border-radius: 50%;
}
#mm-page-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.mm-page-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.mm-badge-pill {
  display: inline-block;
  background: var(--mm-gold);
  color: var(--mm-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.mm-page-hero-headline {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  color: var(--mm-white);
  line-height: 1.2;
  margin: 0 0 18px;
}
.mm-page-hero-sub {
  font-size: clamp(1rem, 3vw, 1.15rem);
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  margin: 0 auto 36px;
  max-width: 560px;
}
.mm-hero-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  max-width: 720px;
  margin: 0 auto 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mm-hero-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  border-radius: 16px;
}
.mm-hero-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.mm-hero-pill {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--mm-white);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.mm-section { padding: 80px 24px; }
.mm-section-inner { max-width: 860px; margin: 0 auto; }
.mm-section-inner-wide { max-width: 1020px; margin: 0 auto; }
.mm-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mm-gold);
  margin-bottom: 14px;
  display: block;
}
.mm-section-headline {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--mm-dark);
  line-height: 1.2;
  margin: 0 0 12px;
}
.mm-section-headline.mm-white { color: var(--mm-white); }
.mm-section-sub {
  font-size: 1rem;
  color: var(--mm-body);
  opacity: 0.75;
  margin-bottom: 48px;
  max-width: 600px;
}

/* ── MODULES GRID ─────────────────────────────────────────── */
.mm-modules-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 48px;
}
.mm-single-module { margin-top: 0; }

/* ── MODULE CARD ──────────────────────────────────────────── */
.mm-module-card {
  background: var(--mm-cream);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(45,27,105,0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mm-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 48px rgba(45,27,105,0.14);
}

.mm-module-header {
  background: var(--mm-purple-deep);
  padding: 22px 30px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.mm-module-card.mm-bonus .mm-module-header {
  background: linear-gradient(135deg, #A07830, var(--mm-gold-light));
}
.mm-module-number {
  background: var(--mm-gold);
  color: var(--mm-dark);
  font-weight: 800;
  font-size: 1rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mm-module-card.mm-bonus .mm-module-number {
  background: var(--mm-white);
  color: var(--mm-purple-deep);
}
.mm-module-header-text { flex: 1; }
.mm-module-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
  display: block;
}
.mm-module-card.mm-bonus .mm-module-tag { color: rgba(255,255,255,0.75); }
.mm-module-title {
  color: var(--mm-white);
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.08rem);
  line-height: 1.35;
}

/* ── VIDEO PLAYER ─────────────────────────────────────────── */
.mm-video-player-wrap { background: var(--mm-dark); }

.mm-video-embed-area {
  position: relative;
  width: 100%;
  background: #0d0820;
  max-width: 320px;
  margin: 0 auto;
}
.mm-video-embed-ratio {
  position: relative;
  padding-bottom: 177.78%;
  height: 0;
  overflow: hidden;
}
.mm-video-embed-ratio iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.mm-video-coming-soon {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(45,27,105,0.92) 0%, rgba(26,26,42,0.98) 100%);
}
.mm-play-btn {
  width: 72px; height: 72px;
  background: rgba(201,168,76,0.12);
  border: 2px solid var(--mm-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}
.mm-play-btn svg {
  width: 26px; height: 26px;
  fill: var(--mm-gold);
  margin-left: 4px;
}
.mm-vc-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── TAB STRIP ────────────────────────────────────────────── */
.mm-tab-strip-outer {
  background: var(--mm-white);
  border-bottom: 1px solid rgba(45,27,105,0.1);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mm-tab-strip-outer::-webkit-scrollbar { display: none; }
.mm-tab-strip {
  display: flex;
  min-width: max-content;
  padding: 0 8px;
}
.mm-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px 11px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(58,58,74,0.5);
  white-space: nowrap;
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.mm-tab-btn:hover { color: var(--mm-purple-mid); background: transparent !important; }
.mm-tab-btn.active {
  color: var(--mm-purple-deep);
  font-weight: 700;
  border-bottom-color: var(--mm-gold);
  background: transparent !important;
}
.mm-tab-num-badge {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--mm-gray-soft);
  color: rgba(58,58,74,0.6);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.mm-tab-btn.active .mm-tab-num-badge {
  background: var(--mm-gold);
  color: var(--mm-dark);
}
.mm-module-card.mm-bonus .mm-tab-btn.active .mm-tab-num-badge {
  background: var(--mm-purple-deep);
  color: white;
}

/* ── VIDEO INFO ───────────────────────────────────────────── */
.mm-video-info {
  padding: 20px 30px 22px;
  background: var(--mm-white);
  border-bottom: 1px solid rgba(45,27,105,0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mm-video-info-left { flex: 1; min-width: 200px; }
.mm-video-info-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--mm-dark);
  line-height: 1.35;
  margin: 0 0 5px;
}
.mm-video-info-desc {
  font-size: 0.8rem;
  color: var(--mm-body);
  opacity: 0.7;
  line-height: 1.6;
  font-weight: 300;
  max-width: 580px;
  margin: 0;
}
.mm-video-info-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.mm-video-duration-badge {
  background: var(--mm-gray-soft);
  color: var(--mm-purple-mid);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.mm-video-nav-row { display: flex; gap: 6px; }
.mm-vid-nav-btn {
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(45,27,105,0.18);
  background: var(--mm-white);
  color: var(--mm-purple-mid);
  transition: all 0.2s;
}
.mm-vid-nav-btn:hover { border-color: var(--mm-purple-mid); background: rgba(74,44,153,0.05); }
.mm-vid-nav-btn.mm-next {
  background: var(--mm-purple-deep);
  color: white;
  border-color: var(--mm-purple-deep);
}
.mm-vid-nav-btn.mm-next:hover { background: var(--mm-purple-mid); border-color: var(--mm-purple-mid); }
.mm-vid-nav-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }

/* ── MODULE CONTENT ───────────────────────────────────────── */
.mm-module-content {
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mm-for-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mm-gold);
  margin-bottom: 8px;
  display: block;
}
.mm-for-block p { font-size: 0.87rem; color: var(--mm-body); line-height: 1.65; margin: 0; }

.mm-module-takeaways {
  padding: 0 30px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mm-takeaway-tag {
  background: var(--mm-white);
  border: 1px solid rgba(45,27,105,0.12);
  color: var(--mm-purple-mid);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
}

/* ── JOURNAL ──────────────────────────────────────────────── */
#mm-journal { background: var(--mm-purple-deep); }
.mm-journal-intro {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 640px;
}
.mm-journal-download-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.mm-journal-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }
.mm-journal-download-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--mm-white);
  margin: 0 0 10px;
  line-height: 1.3;
}
.mm-journal-download-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  font-style: italic;
}
.mm-journal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 32px;
}
.mm-journal-feature {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 0.77rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
}
.mm-btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--mm-gold), var(--mm-gold-light));
  color: var(--mm-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  padding: 18px 36px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mm-btn-download:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,0.5); color: var(--mm-dark); }
.mm-btn-download svg { width: 20px; height: 20px; flex-shrink: 0; }
.mm-download-note { margin-top: 14px; font-size: 0.75rem; color: rgba(255,255,255,0.4); }

/* ── PROGRESS ─────────────────────────────────────────────── */
#mm-progress { background: var(--mm-cream); }
.mm-progress-intro { font-size: 1rem; color: var(--mm-body); opacity: 0.8; margin-bottom: 16px; }
.mm-progress-bar-wrap {
  background: var(--mm-gray-soft);
  border-radius: 50px;
  height: 8px;
  margin-bottom: 32px;
  overflow: hidden;
}
.mm-progress-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--mm-purple-mid), var(--mm-gold));
  transition: width 0.5s ease;
  width: 0%;
}
.mm-progress-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mm-purple-mid);
  margin-bottom: 28px;
  display: block;
}
.mm-progress-track { display: flex; flex-direction: column; gap: 12px; }
.mm-progress-item {
  background: var(--mm-white);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mm-progress-item:hover { border-color: rgba(45,27,105,0.15); box-shadow: 0 4px 16px rgba(45,27,105,0.07); }
.mm-progress-item.completed { background: rgba(201,168,76,0.06); border-color: rgba(201,168,76,0.3); }
.mm-progress-checkbox {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(45,27,105,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.mm-progress-item.completed .mm-progress-checkbox { background: var(--mm-gold); border-color: var(--mm-gold); }
.mm-progress-checkbox svg {
  width: 13px; height: 13px;
  stroke: var(--mm-dark);
  stroke-width: 2.5;
  fill: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.mm-progress-item.completed .mm-progress-checkbox svg { opacity: 1; }
.mm-progress-name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mm-dark);
}
.mm-progress-item.completed .mm-progress-name {
  color: rgba(58,58,74,0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(201,168,76,0.5);
}
.mm-progress-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(100,100,120,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mm-progress-item.completed .mm-progress-status { color: var(--mm-gold); }
.mm-progress-reset {
  margin-top: 20px;
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: rgba(100,100,120,0.45);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}
.mm-progress-reset:hover { color: var(--mm-purple-mid); }

/* ── FOOTER ───────────────────────────────────────────────── */
.mm-footer {
  background: var(--mm-dark);
  padding: 40px 24px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  line-height: 2;
}
.mm-footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
.mm-footer a:hover { color: var(--mm-gold); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .mm-module-header { padding: 18px 20px; }
  .mm-module-content { grid-template-columns: 1fr; padding: 20px 16px; }
  .mm-module-takeaways { padding: 0 16px 20px; }
  .mm-journal-download-box { padding: 36px 24px; }
  .mm-video-info { padding: 16px 20px 18px; flex-direction: column; }
  .mm-video-info-right { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
@media (max-width: 400px) {
  .mm-tab-btn { padding: 12px 12px 10px; font-size: 0.72rem; }
}

/* --- FIX FOR HOVER RED --- */

.mm-tab-strip .mm-tab-btn,
.mm-tab-strip .mm-tab-btn:hover,
.mm-tab-strip .mm-tab-btn:focus,
.mm-tab-strip .mm-tab-btn.active {
  background: transparent !important;
  background-color: transparent !important;
}