/* ==========================================================================
   Edman Affiliates - Official Landing Page Styling
   Color Palette & Theme inspired by Edman Brand & Promotional Posters
   ========================================================================== */

:root {
  --primary: #0803b7;
  --primary-dark: #0a0047;
  --primary-light: #eeebfc;
  --primary-glow: transparent;

  --green: #00e599;
  --green-dark: #008f5a;
  --green-light: #e6f8f1;
  --green-glow: transparent;

  --accent-lime: #a3e635;
  --accent-gold: #f59e0b;

  --bg-gradient: #f8fafc;
  --bg-poster: #eef8f3;
  --navy-dark: #0d0736;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;

  --border-light: #e2e8f0;
  --border-green: #bbf7d0;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-green: none;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fast: 150ms;
  --duration-normal: 220ms;
  --transition-fast: 150ms cubic-bezier(0.23, 1, 0.32, 1);
  --transition-normal: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & General Setup ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

/* ── Lucide Icon Base Styling ───────────────────────────────── */
svg.lucide {
  width: 1em;
  height: 1em;
  stroke-width: 2px;
  vertical-align: -0.125em;
  display: inline-block;
  stroke: currentColor;
}

.spin-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.widget-btn svg.lucide {
  width: 24px;
  height: 24px;
}

.feature-card-icon svg.lucide {
  width: 28px;
  height: 28px;
}

.badge-icon svg.lucide {
  width: 20px;
  height: 20px;
}

.faq-toggle svg.lucide {
  width: 18px;
  height: 18px;
}

.modal-success-icon svg.lucide {
  width: 32px;
  height: 32px;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-green {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--border-green);
}

.badge-navy {
  background: var(--primary-light);
  color: var(--primary);
}

.section-label {
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.section-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────────────── */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  cursor: pointer;
  border: none;
  transition: transform 150ms var(--ease-snappy), background-color 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out, color 150ms ease-out;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button:active,
.btn:active {
  transform: scale(0.97);
  transition: transform 100ms var(--ease-snappy);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-green {
  background: var(--green);
  color: #ffffff;
}

.btn-green:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-size: 1.1rem;
  padding: 16px 32px;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid #cbd5e1;
  border-radius: 40px;
  font-weight: 700;
}

.btn-outline-dark:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--text-main);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

.btn-pill {
  border-radius: 40px !important;
}

.btn-coral {
  background: #ff444f;
  color: #ffffff;
  border-radius: 40px;
  box-shadow: none;
  border: none;
}

.btn-coral:hover {
  background: #e03a44;
  transform: translateY(-2px);
  box-shadow: none;
  color: #ffffff;
}

.btn-white {
  background: #ffffff;
  color: #0e1118;
  border-radius: 40px;
  font-weight: 700;
  border: none;
}

.btn-white:hover {
  background: #f8fafc;
  color: #000000;
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 40px;
  border: none;
}

.btn-green:hover {
  background: var(--green-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 40px;
  padding: 10px 24px;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

/* ── Navigation Bar ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
  padding: 16px 0;
}

.navbar.dark-navbar {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar.dark-navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: none;
  padding: 12px 0;
}

.navbar.dark-navbar.scrolled .logo-dark-bg {
  display: none;
}

.navbar.dark-navbar.scrolled .logo-light-bg {
  display: block;
}

.navbar.dark-navbar.scrolled .nav-links a {
  color: #0f172a;
}

.navbar.dark-navbar.scrolled .nav-links a:hover {
  color: var(--green);
}

.navbar.dark-navbar.scrolled .mobile-toggle {
  color: #0f172a;
}

.navbar.dark-navbar.scrolled .btn-outline-light {
  color: var(--primary);
  border-color: var(--primary);
}

.navbar.dark-navbar.scrolled .btn-outline-light:hover {
  background: var(--primary-light);
}

.navbar.dark-navbar.scrolled .btn-white {
  background: var(--green);
  color: #ffffff;
}

.navbar.dark-navbar.scrolled .btn-white:hover {
  background: var(--green-dark);
}

/* Adaptive Logos (Dark background vs Light background) */
.nav-logo img {
  height: 32px;
  width: auto;
  filter: none !important;
  display: block;
}

.dark-navbar:not(.scrolled) .logo-dark-bg {
  display: block !important;
}

.dark-navbar:not(.scrolled) .logo-light-bg {
  display: none !important;
}

.navbar.scrolled .logo-dark-bg {
  display: none !important;
}

.navbar.scrolled .logo-light-bg {
  display: block !important;
}

.nav-pill-container {
  background: transparent;
  border: none;
  padding: 0;
  backdrop-filter: none;
}

.navbar.dark-navbar .nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.92rem;
}

.navbar.dark-navbar .nav-links a:hover {
  color: #ffffff;
}

.navbar.dark-navbar .mobile-toggle {
  color: #ffffff;
}

.navbar.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

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

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

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-logo-badge {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

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

.nav-actions .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 700;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

/* ── Mobile Menu ────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #ffffff;
  z-index: 1050;
  padding: 32px 24px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 7, 54, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-menu-header img {
  height: 32px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.mobile-close {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--primary);
  font-size: 1rem;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

/* ── Hero Section ────────────────────────────────────────────── */
/* ── Hero Section (Deriv Partners Style Dark Theme) ──────────── */
.hero {
  padding-top: 140px;
  padding-bottom: 90px;
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
}

.hero.hero-dark {
  background: #0e1118 url('../images/hero-bg-2.webp') no-repeat center center / cover;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 80px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-sizing: border-box;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #8b949e;
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-breadcrumb a {
  color: #8b949e;
  transition: var(--transition-fast);
}

.hero-breadcrumb a:hover {
  color: #ffffff;
}

.hero-breadcrumb i {
  font-size: 0.68rem;
  color: #6e7681;
}

.hero.hero-dark .hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: flex-end;
  flex: 1;
  height: calc(100vh - 80px);
  position: relative;
  z-index: 2;
}

.hero.hero-dark .hero-content {
  max-width: 640px;
  padding-bottom: 50px;
  align-self: center;
}

.hero.hero-dark .hero-title {
  color: #ffffff;
  font-size: clamp(2.9rem, 5.6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero.hero-dark .hero-subtitle {
  color: #c9d1d9;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero.hero-dark .hero-subtitle strong {
  color: #ffffff;
  background: rgba(0, 184, 116, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Standalone Hero Image (No box, no border, zero padding bottom, 100% visible on bottom edge) */
.hero-visual-dark {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  width: 100%;
  overflow: visible;
}

.hero-portrait-standalone {
  max-height: calc(100vh - 80px);
  height: calc(100vh - 80px);
  width: auto;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  margin: 0 auto;
  padding: 0;
  filter: none;
  position: relative;
  z-index: 2;
  vertical-align: bottom;
}

/* Floating UI Badges on Hero Image */
.hero-floating-badge {
  position: absolute;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
  transition: transform 0.3s ease;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.hero-floating-badge:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: none;
}

.badge-top-left {
  top: 10%;
  left: -40px;
  animation-delay: 0s;
}

.badge-middle-right {
  top: 44%;
  right: -20px;
  animation-delay: 1.5s;
}

.badge-bottom-left {
  bottom: 14%;
  left: -40px;
  animation-delay: 3s;
}

@keyframes floatBadge {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-8px);
  }
}

.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.badge-icon.icon-green {
  background: rgba(0, 184, 116, 0.15);
  color: #008f5a;
}

.badge-icon.icon-emerald {
  background: rgba(0, 200, 83, 0.15);
  color: #008a38;
}

.badge-icon.icon-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.badge-icon.icon-blue {
  background: rgba(37, 211, 102, 0.15);
  color: #1da851;
}

.badge-info {
  display: flex;
  flex-direction: column;
}

.badge-info strong {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.badge-info span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ── Hero Trust Bar ─────────────────────────────────────────── */
.hero-trust-bar {
  background: #07090e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  margin-top: 0;
  position: relative;
  z-index: 10;
}

.trust-bar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.trust-stars {
  color: #00b67a;
  display: inline-flex;
  gap: 4px;
  font-size: 1.1rem;
}

.trust-text {
  color: #e6edf3;
  font-size: 0.95rem;
  font-weight: 600;
}

.trustpilot-tag {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.trustpilot-tag i {
  color: #00b67a;
}

/* ── Floating Action Widgets ───────────────────────────────── */
.floating-action-widgets {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.widget-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: none;
  transition: var(--transition-normal);
  text-decoration: none;
}

.widget-chat {
  color: #0e1118;
}

.widget-whatsapp {
  color: #25d366;
}

.widget-btn:hover {
  transform: scale(1.1);
  box-shadow: none;
}

.hero::before {
  content: '';
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.18;
  margin-bottom: 24px;
  letter-spacing: -0.8px;
}

.hero-title span.commission-text {
  color: var(--green);
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  font-weight: 500;
}

.hero-subtitle strong {
  color: var(--text-main);
  background: var(--green-light);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--green-dark);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-value span.green {
  color: var(--green);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Hero Visual Banner Card */
.hero-visual {
  position: relative;
}

.hero-poster-card {
  background: var(--bg-poster);
  border: 2px solid var(--border-green);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.hero-poster-card img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin: 0 auto 20px auto;
  max-height: 320px;
  object-fit: cover;
}

.poster-highlight-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px dashed var(--green);
}

.poster-highlight-box h3 {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 6px;
}

.poster-highlight-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.floating-badge {
  position: absolute;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  animation: floatAnim 4s ease-in-out infinite;
}

.floating-badge.badge-top {
  top: -20px;
  left: -20px;
  border-left: 4px solid var(--green);
}

.floating-badge.badge-bottom {
  bottom: -20px;
  right: -20px;
  border-left: 4px solid var(--primary);
}

@keyframes floatAnim {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }
}

.floating-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.icon-green {
  background: var(--green-light);
  color: var(--green-dark);
}

.icon-navy {
  background: var(--primary-light);
  color: var(--primary);
}

.floating-badge-text {
  display: flex;
  flex-direction: column;
}

.floating-badge-text strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.floating-badge-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Poster Info Banner Section ──────────────────────────────── */
.poster-banner-section {
  background: var(--primary);
  color: #ffffff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.poster-banner-section::after,
.poster-banner-section::before {
  content: '';
  display: none;
}

.poster-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.banner-item {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.banner-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.banner-content h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.banner-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

/* ── How to Earn Section (Staggered Timeline Reveal) ──────────── */
.how-it-works {
  background: #f4f6fa;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  display: none;
}

.tier-timeline-container {
  position: relative;
  margin-top: 54px;
}

/* Connecting Timeline Track Line (GSAP Driven) */
.tier-track-line {
  position: absolute;
  top: 26px;
  left: 12.5%;
  width: 75%;
  height: 2px;
  background: var(--green);
  z-index: 1;
  transform-origin: left center;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.tier-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  height: 100%;
}

/* Tier Card Component (Equal Height) */
.tier-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 26px;
  box-shadow: none;
  border: 1px solid #eef2f6;
  text-align: left;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), border-color 220ms ease-out, box-shadow 220ms ease-out;
}

.card-step-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  line-height: 1;
  background: transparent;
  padding: 0;
  border: none;
}

.tier-card h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.tier-card p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
}

.tier-item:hover .tier-card {
  transform: translateY(-6px);
  border-color: #eef2f6;
}

.card-subtext {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtext i {
  color: var(--primary);
  font-size: 0.8rem;
}

/* ── Integrated Dark Earnings Calculator Card (Custom Image Background Style) ──────────── */
.calc-integrated-card {
  background: #0b0f19 url('../images/calc-background.webp') no-repeat center center / cover;
  border-radius: 28px;
  padding: 48px;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

.calc-card-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.calc-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-card-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.calc-card-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin-bottom: 28px;
}

.calc-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.calc-tag-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms var(--ease-snappy);
}

.calc-tag-pill i {
  color: #00de88;
  font-size: 0.8rem;
}

.calc-card-interactive {
  background: rgba(7, 12, 24, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-controls-dark {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-label-dark {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-label-dark i {
  color: #00de88;
}

.calc-val-badge-dark {
  background: transparent;
  color: #00de88;
  padding: 0;
  border-radius: 0;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
}

.calc-slider-dark {
  accent-color: #00de88;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  cursor: pointer;
}

.calc-result-panel {
  background: #0e1a48;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: none;
}

.calc-result-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.calc-total-headline {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.calc-result-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.metric-label {
  font-size: 0.8rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 4px;
}

.metric-val {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 900px) {
  .calc-card-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .calc-integrated-card {
    padding: 32px 24px;
  }
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.calc-val-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
}

.calc-slider {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 184, 116, 0.4);
  transition: transform 0.1s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-output-box {
  background: var(--navy-dark);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.calc-output-box::before,
.calc-output-col::before {
  content: '';
  display: none;
}

.calc-output-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 8px;
}

.calc-total-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.1;
}

.calc-total-amount span {
  color: var(--accent-lime);
}

.calc-breakdown {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  margin-top: 12px;
  display: flex;
  justify-content: space-around;
}

.calc-breakdown-item strong {
  color: #ffffff;
  display: block;
  font-size: 1rem;
}

/* ── Deriv Style 4-Card Benefits Section ────────────────────────────── */
.benefits-section {
  padding: 100px 0;
  background: #ffffff;
}

.benefit-grid-deriv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 54px;
}

.deriv-card {
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 28px 24px;
  box-shadow: none;
  border: none;
}

.deriv-card-text {
  position: relative;
  z-index: 2;
}

.deriv-card-text h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.deriv-card-text p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

/* Card 1: Brand Blue (#0803b7) with Bottom-Aligned Custom Image */
.deriv-card.card-dark {
  background: #0803b7;
  padding-bottom: 0;
}

.deriv-card-visual {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0;
}

.card-visual-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  margin: 0 auto;
  vertical-align: bottom;
}

.visual-3d-symbol {
  font-size: 9.5rem;
  font-weight: 900;
  line-height: 0.8;
  color: #cbd5e1;
  transform: translateY(20px) rotate(-8deg);
  user-select: none;
}

/* Card 2 & 4: Flat image background with solid dark tint overlay */
.deriv-card.card-img {
  background-size: cover;
  background-position: center;
  background-color: #0803b7;
  position: relative;
}

.deriv-card.card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Card 3: Brand Green Accent (#00e599) */
.deriv-card.card-accent {
  background: #00e599;
}

.visual-3d-chat {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 10px;
}

.chat-bubble-3d {
  width: 180px;
  height: 110px;
  background: #ffffff;
  border-radius: 55px 55px 55px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(15px) rotate(4deg);
}

.chat-bubble-3d .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00bc89;
}

@media (max-width: 1024px) {
  .benefit-grid-deriv {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .benefit-grid-deriv {
    grid-template-columns: 1fr;
  }
}

/* ── Why Schools Choose Edman Section ────────────────────────────────── */
.why-schools-section {
  padding: 90px 0;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.why-schools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.school-feature-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.school-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: none !important;
}

.feature-card-icon {
  background: transparent !important;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.35rem;
  margin-bottom: 20px;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
}

.school-feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.4px;
}

.school-feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Registration Form Section ───────────────────────────────── */
.register-section {
  background: #0803b7;
  color: #ffffff;
  padding: 90px 0;
  position: relative;
}

.register-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.register-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.register-text h2 span {
  color: var(--accent-lime);
}

.register-text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.6;
}

.register-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.register-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.02rem;
  font-weight: 600;

}

.register-list-item i {
  color: var(--green);
  font-size: 1.2rem;
  background: rgba(0, 184, 116, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Container Card */
.form-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-header {
  margin-bottom: 28px;
  text-align: center;
}

.form-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-label span.req {
  color: #ef4444;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #ffffff;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%3C475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── FAQ Section ─────────────────────────────────────────────── */
.faq-section {
  background: #ffffff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.faq-toggle {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent !important;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  padding: 0;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
  background: transparent !important;
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #f8fafc;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 24px 24px 24px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ── Deriv-Style CTA Banner Section ─────────────────────────────────── */
.cta-banner-deriv {
  background: var(--green);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.cta-grid-lines {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-headline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 680px;
  z-index: 3;
}

.cta-banner-title {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 0;
  text-align: center;
}

.cta-banner-btn {
  background: #0e1118;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-banner-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: #161b26;
  color: #ffffff;
}

/* Floating Avatar Nodes */
.cta-avatar {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  border: none !important;
  transition: transform 0.3s ease;
  z-index: 2;
  will-change: transform, opacity;
}

.cta-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-avatar:hover {
  transform: scale(1.08);
}

/* Desktop Avatar Positions */
.avatar-top-left {
  top: 0%;
  left: 18%;
}

.avatar-top-center {
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-top-right {
  top: 0%;
  right: 18%;
}

.avatar-mid-left {
  top: 38%;
  left: 5%;
}

.avatar-mid-right {
  top: 38%;
  right: 5%;
}

.avatar-bot-left {
  bottom: 0%;
  left: 18%;
}

.avatar-bot-right {
  bottom: 0%;
  right: 18%;
}

/* ── Modal & Success State ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 7, 54, 0.65);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease-out, visibility 220ms ease-out;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 40px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 220ms var(--ease-out), opacity 220ms ease-out;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
  opacity: 1;
}

.modal-success-icon {
  width: 80px;
  height: 80px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px auto;
  box-shadow: 0 0 0 12px rgba(0, 184, 116, 0.1);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 184, 116, 0.4);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(0, 184, 116, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 184, 116, 0);
  }
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.redirect-notice-box {
  background: var(--green-light);
  border: 1px dashed var(--green);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
}

.countdown-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(0, 143, 90, 0.2);
  border-top-color: var(--green-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--text-main);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 30px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--green);
  font-weight: 700;
}

/* ── Responsive Breakpoints & Mobile Optimization ─────────────── */
@media (max-width: 1200px) {
  .calc-card-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 1024px) {
  .hero.hero-dark {
    height: auto !important;
    min-height: auto !important;
    padding-top: 110px;
    padding-bottom: 40px;
    display: block;
  }

  .hero.hero-dark .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
    gap: 32px;
    text-align: center;
    align-items: center;
  }

  .hero.hero-dark .hero-content {
    max-width: 100% !important;
    padding-bottom: 0 !important;
    text-align: center;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero.hero-dark .hero-title {
    text-align: center;
  }

  .hero.hero-dark .hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-badges {
    justify-content: center;
  }

  .hero-portrait-standalone {
    height: auto !important;
    max-height: 380px !important;
    margin: 0 auto;
  }

  .tier-timeline-container {
    padding: 0;
  }

  .tier-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tier-item {
    width: 100%;
  }

  .calc-card-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .register-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {

  .nav-logo img {
    height: 22px;
  }

  .nav-links,
  .nav-actions,
  .nav-pill-container {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
  }

  .hero.hero-dark {
    padding-top: 85px;
    padding-bottom: 0 !important;
  }

  .hero.hero-dark .hero-grid {
    gap: 16px;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .hero.hero-dark .hero-title {
    font-size: clamp(2.3rem, 8.5vw, 3.4rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -1px !important;
    font-weight: 800 !important;
    margin-bottom: 16px;
    text-align: center;
  }

  .hero.hero-dark .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    margin-bottom: 24px;
    max-width: 380px;
    text-align: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 12px 24px;
  }

  .hero-visual-dark {
    position: relative;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: bottom;
  }

  .hero-portrait-standalone {
    max-height: 310px !important;
    height: auto !important;
    width: auto !important;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
    object-position: bottom center;
    vertical-align: bottom;
    display: block;
    position: relative;
    z-index: 3;
  }

  .hero-floating-badge {
    padding: 6px 10px;
    gap: 8px;
    border-radius: 10px;
    max-width: calc(100% - 12px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  }

  .badge-icon {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    border-radius: 6px;
  }

  .badge-info strong {
    font-size: 0.74rem;
  }

  .badge-info span {
    font-size: 0.64rem;
  }

  /* Badge 1: Positioned behind her head (z-index: 1) so her face is 100% unblocked */
  .badge-top-left {
    position: absolute;
    top: -24px;
    left: 8px;
    right: auto;
    z-index: 1;
  }

  .badge-middle-right {
    position: absolute;
    top: 50%;
    right: 4px;
    left: auto;
    z-index: 4;
  }

  .badge-bottom-left {
    position: absolute;
    bottom: 8px;
    left: 4px;
    right: auto;
    z-index: 4;
  }

  /* Section Titles & Desc Bumped Down on Mobile */
  .section-title {
    font-size: clamp(1.65rem, 5.5vw, 2.1rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.5px !important;
  }

  .section-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
  }

  .section {
    padding: 50px 0;
  }

  /* Horizontal Pinned Scroll Timeline for How to Earn Step Cards */
  .tier-timeline-container {
    overflow: hidden !important;
    position: relative;
    padding: 10px 0 20px 0;
    width: 100%;
  }

  .tier-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 16px;
    width: max-content;
    will-change: transform;
  }

  .tier-item {
    width: 82vw !important;
    max-width: 300px !important;
    flex-shrink: 0 !important;
  }

  .tier-card {
    min-height: 215px;
    height: 100%;
    padding: 24px 20px;
  }

  .tier-card h4 {
    font-size: 1.25rem;
  }

  .calc-integrated-card {
    padding: 28px 20px;
    border-radius: 20px;
    margin-top: 40px;
  }

  .calc-card-title {
    font-size: 1.6rem;
  }

  .calc-card-interactive {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .calc-result-panel {
    padding: 20px 16px;
  }

  .calc-total-headline {
    font-size: 2.5rem;
  }

  /* Mobile GSAP Pinned Card Stacking for Why Become an Affiliate Partner */
  .benefits-section {
    position: relative;
  }

  .benefit-grid-deriv {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    height: 480px;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
  }

  .deriv-card {
    grid-area: 1 / 1;
    width: 100%;
    height: 380px;
    min-height: 380px;
    padding: 26px 20px 20px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    top: auto;
  }

  .deriv-card:nth-child(1) {
    z-index: 1;
  }

  .deriv-card:nth-child(2) {
    z-index: 2;
  }

  .deriv-card:nth-child(3) {
    z-index: 3;
  }

  .deriv-card:nth-child(4) {
    z-index: 4;
  }

  .deriv-card-text h3 {
    font-size: 1.35rem;
  }

  /* Why Schools Choose Edman Mobile Styling */
  .why-schools-section {
    padding: 60px 0;
  }

  .why-schools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .school-feature-card {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .feature-card-icon {
    font-size: 1.25rem;
    margin-bottom: 16px;
    background: transparent !important;
    width: auto;
    height: auto;
    padding: 0;
  }

  .school-feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .school-feature-card p {
    font-size: 0.88rem;
  }

  /* CTA Banner Mobile Styling */
  .cta-banner-deriv {
    padding: 75px 0;
  }

  .cta-banner-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    letter-spacing: -1px;
  }

  .cta-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    opacity: 0.88;
  }

  .avatar-top-center {
    display: none;
  }

  .avatar-mid-left {
    display: none;
  }

  .avatar-mid-right {
    display: none;
  }

  .avatar-top-left {
    top: 0%;
    left: 4%;
  }

  .avatar-top-right {
    top: 0%;
    right: 4%;
  }

  .avatar-bot-left {
    bottom: 0%;
    left: 4%;
  }

  .avatar-bot-right {
    bottom: 0%;
    right: 4%;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-input {
    font-size: 16px;
    /* Prevents auto-zoom on iOS safari */
    height: 48px;
  }

  .register-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .floating-action-widgets {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }

  .widget-btn {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .calc-pill-tags {
    gap: 6px;
  }

  .calc-tag-pill {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

/* ── Split-Screen Authentication Pages (Login & Sign Up) ─────────────── */
.auth-body {
  background: #ffffff;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
}

.auth-wrapper {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Left Hero Banner Side (50% Width, Fixed) */
.auth-hero-side {
  width: 50%;
  height: 100vh;
  position: relative;
  top: 0;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  color: #ffffff;
  overflow: hidden;
}

.auth-hero-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.12) 50%,
      rgba(0, 0, 0, 0.94) 100%);
  pointer-events: none;
  z-index: 1;
}

.auth-hero-header {
  position: relative;
  z-index: 2;
}

.auth-hero-logo {
  height: 24px;
  width: auto;
}

.auth-hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  margin-bottom: 24px;
}

.auth-hero-content h2 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.auth-hero-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Right Form Side (50% Width, Scrollable) */
.auth-form-side {
  width: 50%;
  height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 60px;
  overflow-y: auto;
}

.auth-top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.auth-back-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.auth-back-link:hover {
  color: var(--primary);
}

.lang-selector {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-card-inner {
  max-width: 440px;
  width: 100%;
  margin: 40px auto;
}

.auth-header {
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Social Login Button */
.btn-social-google {
  width: 100%;
  height: 50px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.btn-social-google:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 12px;
}

.auth-error-alert {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

/* Form Controls */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.auth-forgot-pass {
  font-size: 0.84rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot-pass:hover {
  text-decoration: underline;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrapper .input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
}

.auth-input,
.auth-select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2064748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.auth-input:focus,
.auth-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 0, 137, 0.1);
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
}

.auth-checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-checkbox-group input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.auth-checkbox-group a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-auth-primary {
  width: 100%;
  height: 50px;
  border-radius: 9999px;
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-top: 8px;
}

.btn-auth-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.auth-mobile-logo {
  display: none;
  margin-bottom: 24px;
}

.auth-mobile-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.auth-footer-link {
  text-align: center;
  margin-top: 28px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-footer-link a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

.auth-terms-notice {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
  margin-top: 24px;
}

.auth-terms-notice a {
  color: var(--text-main);
  font-weight: 700;
  text-decoration: underline;
}

/* Mobile & Tablet Responsiveness for Auth Pages */
@media (max-width: 1024px) {
  .auth-hero-side {
    display: none;
  }

  .auth-mobile-logo {
    display: block;
  }

  .auth-form-side {
    width: 100%;
    padding: 32px 24px;
  }

  .auth-card-inner {
    margin: 20px auto;
  }
}

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

/* ── Custom Dropdown System ──────────────────────────────────── */
.custom-dropdown-native-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

.custom-dropdown-container {
  position: relative;
  display: inline-block;
}

.custom-dropdown-container.dropdown-dash-input,
.custom-dropdown-container.dropdown-auth {
  display: block;
  width: 100%;
}

.custom-dropdown-trigger {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: var(--text-main);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
  outline: none;
}

/* Pill Variant */
.dropdown-pill .custom-dropdown-trigger {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dropdown-pill .custom-dropdown-trigger:hover,
.dropdown-pill.is-open .custom-dropdown-trigger {
  border-color: var(--primary);
  color: var(--text-main);
  background: #ffffff;
}

/* Dashboard Input Variant */
.dropdown-dash-input .custom-dropdown-trigger {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}

.dropdown-dash-input .custom-dropdown-trigger:hover,
.dropdown-dash-input.is-open .custom-dropdown-trigger {
  border-color: var(--primary);
}

/* Auth Select Variant */
.dropdown-auth .custom-dropdown-trigger {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
}

.dropdown-auth .custom-dropdown-trigger.is-placeholder {
  color: var(--text-light);
}

.dropdown-auth .custom-dropdown-trigger:hover,
.dropdown-auth.is-open .custom-dropdown-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 3, 183, 0.1);
}

.custom-dropdown-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), color 150ms ease;
}

.custom-dropdown-container.is-open .custom-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Dropdown Menu Popover */
.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 380px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 6px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top left;
  transition: opacity 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1), visibility 160ms;
  max-height: 280px;
  overflow-y: auto;
}

.dropdown-pill .custom-dropdown-menu {
  left: auto;
  right: 0;
  min-width: 200px;
  max-width: 280px;
  transform-origin: top right;
}

.dropdown-auth .custom-dropdown-menu,
.dropdown-dash-input .custom-dropdown-menu {
  width: 100%;
  max-width: 100%;
  left: 0;
  right: auto;
}

.custom-dropdown-container.is-open .custom-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.custom-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  transition: background-color 120ms ease, color 120ms ease;
  outline: none;
}

.custom-dropdown-item:hover,
.custom-dropdown-item:focus {
  background-color: var(--primary-light);
  color: var(--primary);
}

.custom-dropdown-item.is-selected {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.custom-dropdown-item.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.custom-dropdown-item-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-check {
  display: none;
  color: var(--primary);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.custom-dropdown-item.is-selected .custom-dropdown-check {
  display: inline-flex;
}

/* Custom Scrollbar for Dropdown Menu */
.custom-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ── Accessibility & Reduced Motion ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .modal-card,
  .mobile-menu {
    transform: none !important;
  }
}