/* ================================================
   MedNext Academy — Brand Styles
   ================================================ */

:root {
  --mn-primary: #7B5EA7;
  --mn-primary-dark: #5a4080;
  --mn-primary-light: #9b7ec8;
  --mn-secondary: #F5A623;
  --mn-dark: #1A1A2E;
  --mn-dark-mid: #16213E;
  --mn-gray-light: #f8f9fa;
  --mn-text: #2d3748;
  --mn-text-muted: #718096;
  --mn-white: #ffffff;
  --mn-border: #e2e8f0;
}

/* ---- Reset / Base ---- */
body.mn-page {
  font-family: 'Manrope', 'Inter', sans-serif;
  color: var(--mn-text);
  background: #ffffff;
}

/* ---- Utility ---- */
.mn-bg-dark    { background-color: var(--mn-dark) !important; }
.mn-bg-primary { background-color: var(--mn-primary) !important; }
.mn-bg-light   { background-color: var(--mn-gray-light) !important; }
.mn-text-primary { color: var(--mn-primary) !important; }
.mn-text-secondary { color: var(--mn-secondary) !important; }
.mn-text-white  { color: #ffffff !important; }

/* ---- Buttons ---- */
.mn-btn-primary {
  background-color: var(--mn-primary);
  color: #fff;
  border: 2px solid var(--mn-primary);
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
}
.mn-btn-primary:hover {
  background-color: var(--mn-primary-dark);
  border-color: var(--mn-primary-dark);
  color: #fff;
  text-decoration: none;
}

.mn-btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
}
.mn-btn-outline:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}

.mn-btn-outline-primary {
  background-color: transparent;
  color: var(--mn-primary);
  border: 2px solid var(--mn-primary);
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
}
.mn-btn-outline-primary:hover {
  background-color: var(--mn-primary);
  color: #fff;
  text-decoration: none;
}

.mn-btn-secondary {
  background-color: var(--mn-secondary);
  color: #1A1A2E;
  border: 2px solid var(--mn-secondary);
  padding: 0.7rem 1.8rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  cursor: pointer;
}
.mn-btn-secondary:hover {
  background-color: #d98f1a;
  border-color: #d98f1a;
  color: #1A1A2E;
  text-decoration: none;
}

/* ---- Navbar ---- */
.mn-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
}

.mn-nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mn-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mn-nav-logo:hover { color: var(--mn-primary); text-decoration: none; }

.mn-nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mn-nav-links a {
  color: var(--mn-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  transition: color 0.2s;
}
.mn-nav-links a:hover { color: var(--mn-primary); }

.mn-nav-cta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.mn-nav-login {
  color: var(--mn-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  border: 1.5px solid var(--mn-primary);
  transition: all 0.2s;
}
.mn-nav-login:hover {
  background: var(--mn-primary);
  color: #fff;
  text-decoration: none;
}

/* ---- Hero ---- */
.mn-hero {
  background: linear-gradient(135deg, var(--mn-dark) 0%, #16213E 50%, #0F3460 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.mn-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123,94,167,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.mn-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.mn-hero-content { position: relative; z-index: 2; }

.mn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(123,94,167,0.3);
  border: 1px solid rgba(123,94,167,0.5);
  color: #c4b0e8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mn-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.mn-hero h1 .highlight { color: var(--mn-secondary); }

.mn-hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
}

.mn-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.mn-stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mn-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--mn-secondary);
  line-height: 1;
}
.mn-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.mn-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Visual */
.mn-hero-visual {
  position: relative;
  z-index: 2;
}
.mn-hero-mockup {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}
.mn-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mn-dot { width: 10px; height: 10px; border-radius: 50%; }
.mn-dot-red { background: #ff5f57; }
.mn-dot-yellow { background: #febc2e; }
.mn-dot-green { background: #28c840; }
.mn-mockup-title {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.mn-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(123,94,167,0.35);
  border: 1px solid rgba(123,94,167,0.4);
  color: #c4b0e8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  margin: 0.2rem;
}

/* ---- Section Styles ---- */
.mn-section { padding: 5rem 0; }
.mn-section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--mn-dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.mn-section-subtitle {
  font-size: 1.05rem;
  color: var(--mn-text-muted);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* ---- Mode Cards ---- */
.mn-mode-card {
  background: #fff;
  border: 1.5px solid var(--mn-border);
  border-radius: 12px;
  padding: 1.4rem 1.2rem;
  transition: all 0.25s ease;
  height: 100%;
}
.mn-mode-card:hover {
  border-color: var(--mn-primary);
  box-shadow: 0 8px 24px rgba(123,94,167,0.15);
  transform: translateY(-3px);
}
.mn-mode-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}
.mn-mode-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--mn-dark);
  margin-bottom: 0.35rem;
}
.mn-mode-desc {
  font-size: 0.78rem;
  color: var(--mn-text-muted);
  line-height: 1.5;
  margin: 0;
}
.mn-mode-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--mn-primary);
  background: rgba(123,94,167,0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
  display: inline-block;
}

/* ---- Feature Cards ---- */
.mn-feature-card {
  padding: 2rem 1.5rem;
  border-radius: 12px;
  background: var(--mn-gray-light);
  border: 1.5px solid var(--mn-border);
  height: 100%;
  transition: all 0.25s ease;
}
.mn-feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: var(--mn-primary);
}
.mn-feature-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.mn-feature-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--mn-dark);
  margin-bottom: 0.5rem;
}
.mn-feature-text {
  font-size: 0.88rem;
  color: var(--mn-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---- Subjects Section ---- */
.mn-subjects-section {
  background: var(--mn-primary);
  padding: 5rem 0;
}
.mn-subject-col h5 {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mn-secondary);
  margin-bottom: 1rem;
}
.mn-subject-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mn-subject-list li {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mn-subject-list li::before {
  content: '→';
  color: var(--mn-secondary);
  font-size: 0.75rem;
}

/* ---- Pricing Cards ---- */
.mn-pricing-card {
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--mn-border);
  padding: 2.5rem 2rem;
  text-align: center;
  height: 100%;
  transition: all 0.25s ease;
  position: relative;
}
.mn-pricing-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.mn-pricing-popular {
  border-color: var(--mn-primary);
  box-shadow: 0 8px 32px rgba(123,94,167,0.2);
}
.mn-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--mn-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mn-pricing-plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mn-text-muted);
  margin-bottom: 0.5rem;
}
.mn-pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--mn-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.mn-pricing-price sup {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: top;
  margin-top: 0.5rem;
}
.mn-pricing-period {
  font-size: 0.8rem;
  color: var(--mn-text-muted);
  margin-bottom: 1.5rem;
}
.mn-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}
.mn-pricing-features li {
  font-size: 0.88rem;
  padding: 0.45rem 0;
  color: var(--mn-text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-bottom: 1px solid var(--mn-border);
}
.mn-pricing-features li:last-child { border: none; }
.mn-check { color: #22c55e; font-size: 0.9rem; flex-shrink: 0; margin-top: 0.05rem; }
.mn-cross { color: #ef4444; font-size: 0.9rem; flex-shrink: 0; margin-top: 0.05rem; }

/* ---- Testimonials ---- */
.mn-testimonial-card {
  background: var(--mn-gray-light);
  border-radius: 12px;
  padding: 2rem;
  border: 1.5px solid var(--mn-border);
  height: 100%;
}
.mn-testimonial-stars { color: var(--mn-secondary); font-size: 1rem; margin-bottom: 0.75rem; }
.mn-testimonial-text {
  font-size: 0.92rem;
  color: var(--mn-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.mn-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mn-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mn-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.mn-author-name { font-weight: 700; font-size: 0.88rem; color: var(--mn-dark); margin: 0; }
.mn-author-role { font-size: 0.75rem; color: var(--mn-text-muted); margin: 0; }

/* ---- CTA Section ---- */
.mn-cta-section {
  background: linear-gradient(135deg, var(--mn-dark) 0%, #16213E 100%);
  padding: 5rem 0;
  text-align: center;
}
.mn-cta-section h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.mn-cta-section p { color: rgba(255,255,255,0.7); font-size: 1rem; margin-bottom: 2rem; }

/* ---- Footer ---- */
.mn-footer {
  background: var(--mn-dark);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.7);
}
.mn-footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.mn-footer-logo:hover { color: var(--mn-secondary); text-decoration: none; }
.mn-footer-tagline { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 1.5rem; }
.mn-footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.mn-footer-links { list-style: none; padding: 0; margin: 0; }
.mn-footer-links li { margin-bottom: 0.5rem; }
.mn-footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.mn-footer-links a:hover { color: var(--mn-secondary); text-decoration: none; }
.mn-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.mn-footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.35); }
.mn-social-links { display: flex; gap: 0.75rem; }
.mn-social-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  transition: color 0.2s;
  text-decoration: none;
}
.mn-social-links a:hover { color: var(--mn-secondary); text-decoration: none; }

/* ---- Page Hero ---- */
.mn-page-hero {
  background: linear-gradient(135deg, var(--mn-dark) 0%, #16213E 100%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mn-page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123,94,167,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.mn-page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.mn-page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.mn-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  position: relative;
  z-index: 1;
}
.mn-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.mn-breadcrumb a:hover { color: var(--mn-secondary); }
.mn-breadcrumb span.active { color: var(--mn-secondary); }

/* ---- Accordion (FAQ) ---- */
.mn-accordion .accordion-button {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mn-dark);
  background: #fff;
}
.mn-accordion .accordion-button:not(.collapsed) {
  color: var(--mn-primary);
  background: rgba(123,94,167,0.05);
  box-shadow: none;
}
.mn-accordion .accordion-button:focus { box-shadow: none; }
.mn-accordion .accordion-body {
  font-size: 0.9rem;
  color: var(--mn-text-muted);
  line-height: 1.7;
}
.mn-accordion .accordion-item {
  border: 1.5px solid var(--mn-border);
  border-radius: 8px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

/* ---- Comparison Table ---- */
.mn-compare-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.mn-compare-table th {
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}
.mn-compare-table td {
  padding: 0.75rem 1.25rem;
  font-size: 0.87rem;
  text-align: center;
  border-top: 1px solid var(--mn-border);
  color: var(--mn-text);
}
.mn-compare-table td:first-child { text-align: left; font-weight: 500; }
.mn-compare-table thead tr { background: var(--mn-dark); color: #fff; }
.mn-compare-table thead th:first-child { text-align: left; }
.mn-compare-col-highlight { background: rgba(123,94,167,0.06); }

/* ---- Contact / Form ---- */
.mn-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--mn-border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--mn-text);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
.mn-form-control:focus { border-color: var(--mn-primary); }
.mn-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mn-dark);
  margin-bottom: 0.4rem;
  display: block;
}

/* ---- Course Cards ---- */
.mn-course-card {
  border: 1.5px solid var(--mn-border);
  border-radius: 12px;
  background: #fff;
  padding: 1.5rem;
  height: 100%;
  transition: all 0.25s ease;
  position: relative;
}
.mn-course-card:hover {
  border-color: var(--mn-primary);
  box-shadow: 0 8px 24px rgba(123,94,167,0.12);
  transform: translateY(-3px);
}
.mn-course-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.mn-course-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--mn-dark);
  margin-bottom: 0.3rem;
}
.mn-course-desc { font-size: 0.82rem; color: var(--mn-text-muted); margin: 0; }
.mn-badge-available {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dcfce7;
  color: #16a34a;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  text-transform: uppercase;
}
.mn-badge-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fef9c3;
  color: #a16207;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  text-transform: uppercase;
}

/* ---- Info Cards ---- */
.mn-info-card {
  background: var(--mn-gray-light);
  border: 1.5px solid var(--mn-border);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
}
.mn-info-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.mn-info-card-title { font-weight: 700; font-size: 1rem; color: var(--mn-dark); margin-bottom: 0.5rem; }
.mn-info-card-text { font-size: 0.87rem; color: var(--mn-text-muted); line-height: 1.6; margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .mn-hero { padding: 4rem 0 3rem; }
  .mn-hero-stats { gap: 1rem; }
  .mn-stat-number { font-size: 1.3rem; }
  .mn-footer-bottom { flex-direction: column; text-align: center; }
  .mn-nav-links { display: none; }
  .mn-section { padding: 3.5rem 0; }
  .mn-page-hero { padding: 4rem 0 3rem; }
}

/* ================================================================
   VIPER-INSPIRED COMPONENTS
   ================================================================ */

/* ---- Hero V2 ---- */
.mn-hero-v2 {
  background:
    linear-gradient(rgba(10,10,28,0.82), rgba(10,10,28,0.88)),
    url('https://images.unsplash.com/photo-1504439468489-c8920d796a29?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: 6rem 0 5rem;
  overflow: hidden;
  position: relative;
}
.mn-hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(123,94,167,0.22) 0%, transparent 70%),
              radial-gradient(ellipse 50% 50% at 90% 80%, rgba(245,166,35,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.mn-hero-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(123,94,167,0.18);
  border: 1px solid rgba(123,94,167,0.35);
  color: #c4b0e8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.75rem;
}
.mn-hero-v2-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.mn-hero-v2-title .accent {
  color: #F5A623;
}
.mn-hero-v2-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -0.75rem;
  margin-bottom: 1.75rem;
}
.mn-hero-v2-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 2.25rem;
}
.mn-hero-v2-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3rem;
}
.mn-hero-v2-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.mn-hero-v2-stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: #F5A623;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.mn-hero-v2-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Marquee ticker ---- */
.mn-marquee-wrap {
  background: var(--mn-primary);
  padding: 0.7rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.mn-marquee-inner {
  display: inline-block;
  animation: mn-scroll 32s linear infinite;
}
.mn-marquee-inner:hover { animation-play-state: paused; }
@keyframes mn-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.mn-marquee-item {
  display: inline-block;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}
.mn-marquee-sep {
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
}

/* ---- Big stats strip ---- */
.mn-stats-strip {
  background: #0f0f1a;
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mn-stat-giant {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: #F5A623;
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.mn-stat-giant-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin: 0;
}
.mn-stat-giant-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0.2rem 0 0;
}

/* ---- Bento grid ---- */
.mn-bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .mn-bento-grid { grid-template-columns: 1fr; }
}
.mn-bento-card {
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
}
.mn-bento-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}
.mn-bento-dark {
  background: #1A1A2E;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.mn-bento-dark:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.mn-bento-purple {
  background: var(--mn-primary);
  color: #fff;
}
.mn-bento-purple:hover { box-shadow: 0 16px 40px rgba(123,94,167,0.45); }
.mn-bento-light {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: var(--mn-dark);
}
.mn-bento-light:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); border-color: var(--mn-primary); }
.mn-bento-amber {
  background: #F5A623;
  color: #1A1A2E;
}
.mn-bento-amber:hover { box-shadow: 0 16px 40px rgba(245,166,35,0.35); }
.mn-bento-icon { font-size: 2.2rem; margin-bottom: 0.25rem; }
.mn-bento-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.6;
}
.mn-bento-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}
.mn-bento-desc {
  font-size: 0.83rem;
  line-height: 1.65;
  opacity: 0.85;
  font-weight: 600;
  margin: 0;
}
.mn-bento-arrow {
  font-size: 1.1rem;
  opacity: 0.5;
  margin-top: auto;
  align-self: flex-end;
}
.mn-bento-card:hover .mn-bento-arrow { opacity: 1; }

/* ---- Feature list (editorial) ---- */
.mn-feature-editorial {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--mn-border);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.mn-feature-editorial:first-child { border-top: 1px solid var(--mn-border); }
.mn-feature-editorial-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--mn-primary);
  letter-spacing: 0.06em;
  min-width: 2rem;
  padding-top: 0.15rem;
}
.mn-feature-editorial-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mn-dark);
  margin-bottom: 0.3rem;
}
.mn-feature-editorial-desc {
  font-size: 0.84rem;
  color: var(--mn-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---- Exam regions dark section ---- */
.mn-exam-regions {
  background: #0f0f1a;
  padding: 5rem 0;
}
.mn-exam-col-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mn-exam-tag {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  margin: 0.2rem;
  transition: all 0.18s;
}
.mn-exam-tag:hover {
  background: rgba(123,94,167,0.25);
  border-color: rgba(123,94,167,0.5);
  color: #fff;
}

/* ---- Social proof / logo strip ---- */
.mn-trust-strip {
  background: #fff;
  padding: 2.5rem 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.mn-trust-label {
  font-size: 0.72rem;
  color: #a0aec0;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-align: center;
}
.mn-trust-items {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.mn-trust-item {
  font-size: 0.82rem;
  font-weight: 700;
  color: #a0aec0;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---- Mode pills row ---- */
.mn-modes-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.mn-mode-pill-v2 {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #2d3748;
  white-space: nowrap;
  transition: all 0.18s;
}
.mn-mode-pill-v2:hover {
  border-color: var(--mn-primary);
  color: var(--mn-primary);
  background: rgba(123,94,167,0.05);
}


/* ================================================
   Scroll Reveal Animations
   ================================================ */

/* Base hidden state — applied when data-reveal attribute is present */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.94); }

/* Revealed state */
[data-reveal].mn-revealed {
  opacity: 1;
  transform: none !important;
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].mn-revealed {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ================================================
   DARK MODE
   Toggled by MedNextNav: html.mn-dark
   ================================================ */

html.mn-dark {
  --mn-nav-bg: #0f1117;
  --mn-page-bg: #0f1117;
  --mn-section-bg-alt: #141828;
  --mn-card-bg: #141828;
  --mn-text: rgba(255,255,255,0.85);
  --mn-text-muted: rgba(255,255,255,0.5);
  --mn-border: rgba(255,255,255,0.1);
  --mn-gray-light: #141828;
}

/* Body & page base */
html.mn-dark body,
html.mn-dark body.mn-page {
  background: #0f1117;
  color: rgba(255,255,255,0.85);
}

/* ── Sections: override inline white/light backgrounds ── */
html.mn-dark main > section,
html.mn-dark main > div.container-fluid,
html.mn-dark .mn-section {
  background: #0f1117 !important;
}

/* Alternate section (light grey bg) */
html.mn-dark .mn-bg-light,
html.mn-dark section.mn-bg-light {
  background: #141828 !important;
}

/* ── Nav ── */
html.mn-dark .mn-navbar-dark-target {
  background: var(--mn-nav-bg) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) !important;
}

/* ── Cards ── */
html.mn-dark .mn-mode-card,
html.mn-dark .mn-feature-card,
html.mn-dark .mn-course-card,
html.mn-dark .mn-pricing-card,
html.mn-dark .mn-testimonial-card,
html.mn-dark .mn-info-card {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.85) !important;
}

/* ── Headings & titles ── */
html.mn-dark h1:not(.mn-hero h1):not(.mn-page-hero h1),
html.mn-dark h2:not(.mn-cta-section h2),
html.mn-dark h3,
html.mn-dark h4,
html.mn-dark h5,
html.mn-dark h6 {
  color: rgba(255,255,255,0.92) !important;
}
html.mn-dark .mn-section-title { color: rgba(255,255,255,0.92) !important; }
html.mn-dark .mn-section-subtitle { color: rgba(255,255,255,0.5) !important; }
html.mn-dark .mn-feature-editorial-title { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-mode-name { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-feature-title { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-course-name { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-info-card-title { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-author-name { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-pricing-price { color: rgba(255,255,255,0.9) !important; }

/* ── Body text ── */
html.mn-dark p:not(.mn-hero p):not(.mn-page-hero p):not(.mn-cta-section p) {
  color: rgba(255,255,255,0.6) !important;
}
html.mn-dark .mn-section-subtitle,
html.mn-dark .mn-feature-text,
html.mn-dark .mn-mode-desc,
html.mn-dark .mn-course-desc,
html.mn-dark .mn-info-card-text,
html.mn-dark .mn-author-role,
html.mn-dark .mn-feature-editorial-desc {
  color: rgba(255,255,255,0.5) !important;
}

/* ── Dividers / borders ── */
html.mn-dark .mn-feature-editorial {
  border-color: rgba(255,255,255,0.08) !important;
}
html.mn-dark .mn-trust-strip {
  background: #0f1117 !important;
  border-color: rgba(255,255,255,0.05) !important;
}
html.mn-dark .mn-trust-item { color: rgba(255,255,255,0.3) !important; }

/* ── Accordion ── */
html.mn-dark .mn-accordion .accordion-button {
  background: #141828 !important;
  color: rgba(255,255,255,0.85) !important;
}
html.mn-dark .mn-accordion .accordion-button:not(.collapsed) {
  background: rgba(123,94,167,0.15) !important;
}
html.mn-dark .mn-accordion .accordion-body {
  background: #1a1f2e !important;
  color: rgba(255,255,255,0.6) !important;
}
html.mn-dark .mn-accordion .accordion-item {
  border-color: rgba(255,255,255,0.1) !important;
}

/* ── Compare table ── */
html.mn-dark .mn-compare-table td {
  background: #141828 !important;
  color: rgba(255,255,255,0.8) !important;
  border-color: rgba(255,255,255,0.08) !important;
}
html.mn-dark .mn-compare-col-highlight {
  background: rgba(123,94,167,0.18) !important;
}

/* ── Form controls ── */
html.mn-dark .mn-form-control {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.85) !important;
}
html.mn-dark .mn-form-label { color: rgba(255,255,255,0.8) !important; }

/* ── Bento light cards ── */
html.mn-dark .mn-bento-light {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.85) !important;
}

/* ── Mode pill v2 ── */
html.mn-dark .mn-mode-pill-v2 {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.75) !important;
}

/* ── Pricing features list ── */
html.mn-dark .mn-pricing-features li {
  color: rgba(255,255,255,0.7) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* ── Generic inline-styled cards (Bootstrap col direct children, no Link wrapper) ── */
html.mn-dark main section > .container > .row > div > div:not([class*="mn-bento"]):not([class*="mn-pricing"]):not([class*="mn-testimonial"]) {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* ── Fellowship card shadow + hover lift ── */
.mn-fellowship-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.mn-fellowship-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* ── Named card classes ── */
html.mn-dark .mn-fellowship-card,
html.mn-dark .mn-exam-card,
html.mn-dark .mn-case-card,
html.mn-dark .mn-community-card {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* ── Fellowship cards — text colour overrides ── */
html.mn-dark .mn-fellowship-card h4[style*="#1A1A2E"],
html.mn-dark .mn-fellowship-card h4[style*="1a1a2e"] { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-fellowship-card p[style*="#1A1A2E"],
html.mn-dark .mn-fellowship-card p[style*="1a1a2e"] { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-fellowship-card p[style*="#718096"] { color: rgba(255,255,255,0.55) !important; }
html.mn-dark .mn-fellowship-card span[style*="#388e3c"],
html.mn-dark .mn-fellowship-card span[style*="e8f5e9"] {
  background: rgba(34,197,94,0.12) !important;
  color: #4ade80 !important;
  border-color: rgba(34,197,94,0.2) !important;
}

/* ── Courses page: Link wrapper around card ── */
html.mn-dark .mn-prog-link-card > .mn-fellowship-card {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.1) !important;
}

/* ── Group section headers (courses page) ── */
html.mn-dark .mn-group-header { border-color: rgba(255,255,255,0.12) !important; }
html.mn-dark .mn-group-header h3 { color: #9b7ec8 !important; }
html.mn-dark .mn-group-header p { color: rgba(255,255,255,0.45) !important; }

/* ── Exam region cards ── */
html.mn-dark .mn-exam-card h4[style*="#1A1A2E"] { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-exam-card span[style*="#4a5568"] { color: rgba(255,255,255,0.65) !important; }
html.mn-dark .mn-exam-card span[style*="#7B5EA7"] { color: #9b7ec8 !important; }

/* ── Coffee break case cards ── */
html.mn-dark .mn-case-card p[style*="#1A1A2E"] { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-case-card > div > div[style*="f0edf8"] {
  background: rgba(123,94,167,0.15) !important;
}

/* ── Community post cards ── */
html.mn-dark .mn-community-card p[style*="#1A1A2E"] { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-community-card p[style*="#4a5568"] { color: rgba(255,255,255,0.65) !important; }

/* ── Leaderboard widget ── */
html.mn-dark .mn-leaderboard-widget {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.1) !important;
}
html.mn-dark .mn-leaderboard-row {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.08) !important;
}
html.mn-dark .mn-leaderboard-row:first-of-type {
  background: rgba(245,166,35,0.08) !important;
}
html.mn-dark .mn-leaderboard-row p[style*="#1A1A2E"] { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-leaderboard-row p[style*="#718096"] { color: rgba(255,255,255,0.5) !important; }

/* ── 15 modes comparison callout ── */
html.mn-dark .mn-modes-compare-callout {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.65) !important;
}
html.mn-dark .mn-modes-compare-callout span[style*="#cbd5e0"] { color: rgba(255,255,255,0.2) !important; }

/* ── Study mode pills (homepage 15 modes section) ── */
html.mn-dark span[style*="rgba(26,26,46,0.06)"] {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.15) !important;
  color: rgba(255,255,255,0.75) !important;
}

/* ── Exam group headers (exams listing page) ── */
html.mn-dark .mn-exam-group-header {
  background: #141828 !important;
  border-color: rgba(255,255,255,0.1) !important;
}
html.mn-dark .mn-exam-group-header h3 { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-exam-group-header p[style*="#718096"] { color: rgba(255,255,255,0.5) !important; }
html.mn-dark .mn-exam-group-header p[style*="#2d3748"] { color: rgba(255,255,255,0.75) !important; }
html.mn-dark .mn-exam-group-header p[style*="#a0aec0"] { color: rgba(255,255,255,0.35) !important; }

/* ── Exam link cards (Link > div on exams page) ── */
html.mn-dark .mn-exam-link-card {
  background: #141828 !important;
  border-color: #7B5EA7 !important;
}
html.mn-dark .mn-exam-link-card p[style*="#1A1A2E"] { color: rgba(255,255,255,0.9) !important; }
html.mn-dark .mn-exam-link-card p[style*="#718096"] { color: rgba(255,255,255,0.5) !important; }
html.mn-dark .mn-exam-link-card span[style*="#718096"] { color: rgba(255,255,255,0.5) !important; }

/* ── Accessibility: High Contrast ──────────────────────── */
html.mn-high-contrast body { color: #000 !important; }
html.mn-high-contrast p, html.mn-high-contrast span, html.mn-high-contrast div { color: inherit; }
html.mn-high-contrast a { color: #0000EE !important; text-decoration: underline !important; }
html.mn-high-contrast .mn-section, html.mn-high-contrast section { background: #fff !important; }
html.mn-high-contrast .mn-bg-light { background: #f0f0f0 !important; }
html.mn-high-contrast .mn-page-hero { background: #000 !important; }
html.mn-high-contrast .mn-page-hero h1, html.mn-high-contrast .mn-page-hero p { color: #fff !important; }
html.mn-high-contrast .mn-page-hero a { color: #ffff00 !important; }
html.mn-high-contrast .mn-section-title { color: #000 !important; }
html.mn-high-contrast .mn-section-subtitle { color: #333 !important; }
html.mn-high-contrast .mn-cta-section { background: #000 !important; }
html.mn-high-contrast img { filter: contrast(1.2); }

/* ── Accessibility: Colour Blind Modes ─────────────────── */
html.mn-cb-protanopia body { filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='f'><feColorMatrix type='matrix' values='0.567,0.433,0,0,0 0.558,0.442,0,0,0 0,0.242,0.758,0,0 0,0,0,1,0'/></filter></svg>#f"); }
html.mn-cb-deuteranopia body { filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='f'><feColorMatrix type='matrix' values='0.625,0.375,0,0,0 0.7,0.3,0,0,0 0,0.3,0.7,0,0 0,0,0,1,0'/></filter></svg>#f"); }
html.mn-cb-tritanopia body { filter: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'><filter id='f'><feColorMatrix type='matrix' values='0.95,0.05,0,0,0 0,0.433,0.567,0,0 0,0.475,0.525,0,0 0,0,0,1,0'/></filter></svg>#f"); }

