/* =========================================
   Samudra LMS — Landing Page Styles
   (header/footer rendered by Astra theme)
   ========================================= */

:root {
  --sp-primary:      #0f2385;
  --sp-primary-dark: #0a1a6a;
  --sp-accent:       #F97316;
  --sp-text:         #0F172A;
  --sp-text-muted:   #64748B;
  --sp-text-light:   #94A3B8;
  --sp-bg:           #FFFFFF;
  --sp-bg-soft:      #F8FAFF;
  --sp-border:       #E2E8F0;
  --sp-radius:       10px;
  --sp-shadow:       0 4px 24px rgba(15,35,133,.12);
  --sp-shadow-lg:    0 20px 60px rgba(15,35,133,.18);
}

/* ── Astra container override ── */
body.sp-page #content,
body.sp-page #content.site-content {
  padding: 0 !important;
  width: 100% !important;
}
body.sp-page .ast-container,
body.sp-page .site-content .ast-container,
body.sp-page #content .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  display: block !important; /* cancel Astra's flex which left-shrinks children */
}
.sp-wrap {
  width: 100%;
  display: block;
}
body.sp-page,
html body.sp-page { overflow-x: hidden; font-family: 'Inter','Segoe UI',system-ui,-apple-system,sans-serif; }
html:has(body.sp-page) { overflow-x: hidden; }

/* ── Reset scoped to our wrap only ── */
.sp-wrap *, .sp-wrap *::before, .sp-wrap *::after { box-sizing: border-box; }
.sp-wrap a   { text-decoration: none; color: inherit; }
.sp-wrap ul  { list-style: none; margin: 0; padding: 0; }
.sp-wrap img { max-width: 100%; height: auto; display: block; }
.sp-wrap p, .sp-wrap h1, .sp-wrap h2, .sp-wrap h3 { margin: 0; padding: 0; }

/* ── Container ── */
.sp-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.sp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: var(--sp-radius); font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s ease; border: 2px solid transparent; white-space: nowrap; font-family: inherit; }
.sp-btn-primary { background: var(--sp-primary); color: #fff; border-color: var(--sp-primary); }
.sp-btn-primary:hover { background: var(--sp-primary-dark); border-color: var(--sp-primary-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,35,133,.3); color: #fff; }
/* Higher-specificity rule beats Astra's `a { color:... }` override but yields to inline styles */
.sp-wrap a.sp-btn-primary,
.sp-wrap a.sp-btn-primary:visited { color: #fff; }
.sp-wrap a.sp-btn-primary:hover { color: #fff; }
.sp-btn-ghost { background: transparent; color: var(--sp-primary); border-color: var(--sp-primary); }
.sp-btn-ghost:hover { background: var(--sp-primary); color: #fff; transform: translateY(-1px); }
.sp-btn-sm { padding: 8px 18px; font-size: 14px; }
.sp-btn-outline-white { background: transparent !important; color: #fff !important; border-color: rgba(255,255,255,.8); }
.sp-btn-outline-white:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.sp-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #F0F4FF 0%, #FFFFFF 60%, #F0F4FF 100%);
  overflow: hidden;
  position: relative;
}
.sp-hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(15,35,133,.08) 0%, transparent 70%);
  pointer-events: none;
}
.sp-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* Left */
.sp-hero-left { position: relative; z-index: 1; }

.sp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(15,35,133,.08); color: var(--sp-primary);
  border: 1px solid rgba(15,35,133,.2);
  padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  margin-bottom: 24px;
}
.sp-badge::before { content: '✦'; font-size: 10px; }

.sp-hero-h1 { font-size: clamp(36px, 4.5vw, 56px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--sp-text); margin-bottom: 20px; }
.sp-hero-h1 span { color: var(--sp-primary); }

.sp-hero-sub { font-size: 17px; color: var(--sp-text-muted); line-height: 1.7; max-width: 480px; margin-bottom: 36px; }

.sp-hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

/* Trust logos row */
.sp-trust { display: flex; align-items: center; gap: 16px; }
.sp-trust-label { font-size: 12px; color: var(--sp-text-light); font-weight: 500; white-space: nowrap; }
.sp-trust-logos { display: flex; align-items: center; gap: 12px; }
.sp-trust-logo {
  height: 28px; padding: 5px 10px; border-radius: 6px;
  background: #fff; border: 1px solid var(--sp-border);
  font-size: 11px; font-weight: 700; color: var(--sp-text-muted);
  display: flex; align-items: center; gap: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Right — Dashboard Mockup */
.sp-hero-right { position: relative; display: flex; justify-content: center; }

.sp-mockup-wrap {
  position: relative; width: 100%; max-width: 520px;
}
.sp-mockup-wrap::before {
  content: '';
  position: absolute; inset: -20px;
  background: radial-gradient(ellipse at 50% 50%, rgba(15,35,133,.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Main dashboard card */
.sp-dash-card {
  background: #fff; border-radius: 16px;
  box-shadow: var(--sp-shadow-lg); overflow: hidden;
  border: 1px solid rgba(15,35,133,.1);
}
.sp-dash-header {
  background: var(--sp-primary); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.sp-dash-header-title { color: #fff; font-size: 13px; font-weight: 600; }
.sp-dash-header-dots { display: flex; gap: 5px; }
.sp-dash-header-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); }
.sp-dash-header-dots span:first-child { background: #FF605C; }
.sp-dash-header-dots span:nth-child(2) { background: #FFBD44; }
.sp-dash-header-dots span:last-child { background: #00CA4E; }

.sp-dash-body { padding: 20px; }

/* KPI row */
.sp-dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.sp-dash-kpi { background: var(--sp-bg-soft); border-radius: 10px; padding: 14px; border: 1px solid var(--sp-border); }
.sp-dash-kpi-val { font-size: 22px; font-weight: 800; color: var(--sp-text); }
.sp-dash-kpi-label { font-size: 11px; color: var(--sp-text-muted); margin-top: 2px; }
.sp-dash-kpi-trend { font-size: 11px; color: #22C55E; font-weight: 600; margin-top: 4px; }

/* Chart bars */
.sp-dash-chart { background: var(--sp-bg-soft); border-radius: 10px; padding: 14px; border: 1px solid var(--sp-border); margin-bottom: 16px; }
.sp-dash-chart-title { font-size: 12px; font-weight: 600; color: var(--sp-text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.sp-dash-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.sp-dash-bar { flex: 1; border-radius: 4px 4px 0 0; background: rgba(15,35,133,.15); transition: background .2s; }
.sp-dash-bar.active { background: var(--sp-primary); }

/* Recent students table-like */
.sp-dash-table-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sp-border); }
.sp-dash-table-row:last-child { border-bottom: none; }
.sp-dash-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.sp-dash-row-name { font-size: 12.5px; font-weight: 600; color: var(--sp-text); flex: 1; }
.sp-dash-row-course { font-size: 11px; color: var(--sp-text-muted); }
.sp-dash-badge { font-size: 10px; padding: 2px 8px; border-radius: 100px; font-weight: 600; }
.sp-dash-badge.active { background: rgba(34,197,94,.12); color: #16A34A; }
.sp-dash-badge.new { background: rgba(15,35,133,.1); color: var(--sp-primary); }

/* Floating mini cards */
.sp-float-card {
  position: absolute; background: #fff; border-radius: 12px;
  padding: 12px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.12);
  border: 1px solid var(--sp-border);
  display: flex; align-items: center; gap: 10px;
  animation: sp-float 3s ease-in-out infinite;
}
.sp-float-card-1 { top: -18px; right: -24px; }
.sp-float-card-2 { bottom: 20px; left: -28px; animation-delay: 1.5s; }
.sp-float-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.sp-float-icon.blue { background: rgba(15,35,133,.1); }
.sp-float-icon.green { background: rgba(34,197,94,.1); }
.sp-float-val { font-size: 18px; font-weight: 800; color: var(--sp-text); }
.sp-float-lbl { font-size: 11px; color: var(--sp-text-muted); }

@keyframes sp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.sp-stats-bar { background: var(--sp-primary); padding: 40px 0; }
.sp-stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sp-stat { text-align: center; padding: 16px; }
.sp-stat-icon { font-size: 28px; margin-bottom: 8px; opacity: .85; display: block; }
.sp-stat-num { display: block; font-size: 36px; font-weight: 800; color: #fff; line-height: 1; }
.sp-stat-label { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 4px; display: block; }
.sp-stat-divider { border-left: 1px solid rgba(255,255,255,.15); }

/* ══════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════ */
.sp-features { padding: 96px 0; background: #fff; }
.sp-section-label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-primary); margin-bottom: 12px; display: block; }
.sp-section-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; color: var(--sp-text); margin-bottom: 16px; }
.sp-section-sub { font-size: 16px; color: var(--sp-text-muted); max-width: 560px; line-height: 1.7; margin-bottom: 56px; }
.sp-section-header { max-width: 560px; }

.sp-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sp-feature-card {
  padding: 28px; border-radius: 16px;
  border: 1px solid var(--sp-border); background: #fff;
  transition: all .25s; cursor: default;
}
.sp-feature-card:hover { box-shadow: var(--sp-shadow); border-color: rgba(15,35,133,.2); transform: translateY(-4px); }
.sp-feature-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(15,35,133,.08); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.sp-feature-title { font-size: 17px; font-weight: 700; color: var(--sp-text); margin-bottom: 8px; }
.sp-feature-desc { font-size: 14px; color: var(--sp-text-muted); line-height: 1.65; }

/* ══════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════ */
.sp-how { padding: 96px 0; background: var(--sp-bg-soft); }
.sp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.sp-steps::before {
  content: '';
  position: absolute; top: 36px; left: calc(12.5% + 18px); right: calc(12.5% + 18px);
  height: 2px; background: var(--sp-border); z-index: 0;
}
.sp-step { text-align: center; position: relative; z-index: 1; }
.sp-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sp-primary); color: #fff;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(15,35,133,.3);
}
.sp-step-title { font-size: 16px; font-weight: 700; color: var(--sp-text); margin-bottom: 8px; }
.sp-step-desc { font-size: 13.5px; color: var(--sp-text-muted); line-height: 1.6; }

/* ══════════════════════════════════════
   PRICING SECTION
══════════════════════════════════════ */
.sp-pricing { padding: 96px 0; background: #fff; }
.sp-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sp-plan {
  border: 1px solid var(--sp-border); border-radius: 20px; padding: 32px;
  background: #fff; position: relative; transition: all .25s;
}
.sp-plan:hover { box-shadow: var(--sp-shadow); }
.sp-plan.featured {
  background: var(--sp-primary); color: #fff;
  border-color: var(--sp-primary); box-shadow: var(--sp-shadow-lg);
  transform: scale(1.04);
}
.sp-plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--sp-accent); color: #fff;
  padding: 4px 16px; border-radius: 100px; font-size: 12px; font-weight: 700;
}
.sp-plan-name { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-text-muted); margin-bottom: 12px; }
.sp-plan.featured .sp-plan-name { color: rgba(255,255,255,.7); }
.sp-plan-price { font-size: 44px; font-weight: 800; color: var(--sp-text); line-height: 1; }
.sp-plan.featured .sp-plan-price { color: #fff; }
.sp-plan-price span { font-size: 18px; font-weight: 600; }
.sp-plan-period { font-size: 13px; color: var(--sp-text-muted); margin-bottom: 28px; }
.sp-plan.featured .sp-plan-period { color: rgba(255,255,255,.6); }
.sp-plan-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; padding: 0; }
.sp-plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.sp-plan-features li::before { content: '✓'; color: var(--sp-primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.sp-plan.featured .sp-plan-features li::before { color: rgba(255,255,255,.8); }
.sp-plan.featured .sp-plan-features li { color: rgba(255,255,255,.9); }
.sp-plan-cta { display: block; text-align: center; padding: 13px; border-radius: var(--sp-radius); font-weight: 700; font-size: 15px; border: 2px solid var(--sp-primary); color: var(--sp-primary); transition: all .2s; }
.sp-plan-cta:hover { background: var(--sp-primary); color: #fff; }
.sp-plan.featured .sp-plan-cta { background: #fff; color: var(--sp-primary); border-color: #fff; }
.sp-plan.featured .sp-plan-cta:hover { background: rgba(255,255,255,.9); }

/* ══════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════ */
.sp-testimonials { padding: 96px 0; background: var(--sp-bg-soft); }
.sp-testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sp-testi-card { background: #fff; border-radius: 16px; padding: 28px; border: 1px solid var(--sp-border); }
.sp-testi-stars { color: #F59E0B; font-size: 14px; margin-bottom: 14px; letter-spacing: 2px; }
.sp-testi-text { font-size: 15px; color: var(--sp-text); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.sp-testi-author { display: flex; align-items: center; gap: 12px; }
.sp-testi-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.sp-testi-name { font-size: 14px; font-weight: 700; color: var(--sp-text); }
.sp-testi-role { font-size: 12px; color: var(--sp-text-muted); }

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.sp-cta-section {
  padding: 96px 0;
  background: linear-gradient(135deg, #080f40 0%, #4a1fa8 100%);
  text-align: center;
}
.sp-cta-section h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 16px; }
.sp-cta-section p { font-size: 17px; color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 36px; }
.sp-cta-btns { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .sp-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .sp-hero-sub, .sp-section-sub { max-width: 100%; }
  .sp-hero-btns { justify-content: center; }
  .sp-trust { justify-content: center; }
  .sp-hero-right { display: none; }
  .sp-features-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-steps { grid-template-columns: repeat(2, 1fr); }
  .sp-steps::before { display: none; }
  .sp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-plan.featured { transform: none; }
  .sp-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sp-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .sp-stat-divider { border-left: none; }
  .sp-features-grid { grid-template-columns: 1fr; }
  .sp-steps { grid-template-columns: 1fr; }
  .sp-pricing-grid { grid-template-columns: 1fr; }
  .sp-testimonials-grid { grid-template-columns: 1fr; }
  .sp-float-card { display: none; }
  .sp-hero { padding: 48px 0; }
  .sp-features, .sp-how, .sp-pricing, .sp-testimonials { padding: 60px 0; }
  .sp-cta-section { padding: 60px 0; }
  .sp-section-sub { margin-bottom: 36px; }
  .sp-trust { flex-wrap: wrap; gap: 10px; }
  .sp-trust-logos { flex-wrap: wrap; justify-content: center; gap: 8px; }
}
@media (max-width: 480px) {
  .sp-hero-btns { flex-direction: column; align-items: stretch; }
  .sp-hero-btns .sp-btn { display: flex; width: 100%; text-align: center; justify-content: center; white-space: normal; }
  .sp-stats-inner { grid-template-columns: 1fr; }
  .sp-cta-btns { flex-direction: column; align-items: stretch; }
  .sp-cta-btns .sp-btn { display: flex; width: 100%; justify-content: center; white-space: normal; }
  .sp-container { padding: 0 16px; }
  .sp-hero { padding: 36px 0; }
  .sp-features, .sp-how, .sp-pricing, .sp-testimonials { padding: 44px 0; }
  .sp-cta-section { padding: 44px 0; }
  .sp-stats-bar { padding: 28px 0; }
  .sp-stat-num { font-size: 28px; }
  .sp-plan { padding: 24px 20px; }
  .sp-testi-card { padding: 20px; }
  .sp-hero-h1 { font-size: 28px; }
  .sp-trust-label { width: 100%; text-align: center; }
  .sp-trust-logos { justify-content: center; }
  .sp-hero-sub { font-size: 15px; }
}
@media (max-width: 360px) {
  .sp-container { padding: 0 12px; }
  .sp-hero-h1 { font-size: 26px; }
  .sp-hero-sub { font-size: 14px; }
  .sp-btn { padding: 11px 18px; font-size: 14px; }
  .sp-badge { font-size: 11px; padding: 5px 10px; }
  .sp-trust { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sp-trust-logos { flex-wrap: wrap; gap: 6px; }
  .sp-stat-num { font-size: 24px; }
  .sp-stat-label { font-size: 12px; }
  .sp-section-title { font-size: 22px; }
  .sp-plan-price { font-size: 36px; }
  .sp-plan { padding: 20px 14px; }
  .sp-plan-features li { font-size: 13px; }
  .sp-testi-card { padding: 16px; }
  .sp-testi-text { font-size: 13px; }
  .sp-feature-card { padding: 20px; }
  .sp-step-title { font-size: 14px; }
  .sp-cta-section h2 { font-size: 22px; }
  .sp-cta-section p { font-size: 14px; }
}
