/* ==========================================================================
   Scholar's Mate — Unified Midnight Dark Blue Homepage Theme
   Inspired by Zoho CPaaS Minimalist Architecture
   Color Palette: Midnight Navy (#08101e / #0a1424 / #0f1e33), 
                  Teal (#16c5c2), Electric Blue (#2563eb), Slate (#94a3b8)
   ========================================================================== */

:root {
  --sm-bg-page: #08101e;
  --sm-bg-section: #0a1424;
  --sm-bg-section-alt: #0d1b2e;
  --sm-bg-card: #0f1e33;
  --sm-bg-card-hover: #13253e;
  --sm-bg-card-elevated: #11223a;
  --sm-bg-glass: rgba(15, 30, 51, 0.85);

  --sm-border-card: rgba(59, 130, 246, 0.16);
  --sm-border-card-hover: rgba(22, 197, 194, 0.45);
  --sm-border-subtle: rgba(255, 255, 255, 0.08);

  --sm-text-white: #ffffff;
  --sm-text-heading: #f8fafc;
  --sm-text-secondary: #94a3b8;
  --sm-text-muted: #64748b;

  --sm-cta-blue: #2563eb;
  --sm-cta-blue-hover: #1d4ed8;
  --sm-cta-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);

  --sm-teal: #16c5c2;
  --sm-teal-glow: rgba(22, 197, 194, 0.2);
}

/* ── Global Canvas Scope ── */
.sm-dark-home-canvas {
  background-color: var(--sm-bg-page);
  color: var(--sm-text-secondary);
  font-family: 'Heebo', sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Subtle cosmic grid & starlight effect */
.sm-dark-home-canvas::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1800px;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(15, 52, 96, 0.45) 0%, transparent 60%),
    radial-gradient(circle at 10% 20%, rgba(22, 197, 194, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 40%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* ── Section Headings & Badges ── */
.sm-dark-section {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
}

.sm-dark-section-alt {
  background: linear-gradient(180deg, #091322 0%, #0d1b2e 50%, #08101e 100%);
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
}

.sm-dark-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(22, 197, 194, 0.12);
  border: 1px solid rgba(22, 197, 194, 0.3);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--sm-teal);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.85rem;
}

.sm-dark-pill-badge i {
  font-size: 0.75rem;
}

.sm-dark-h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: var(--sm-text-white);
  line-height: 1.25;
  margin-bottom: 0.65rem;
  letter-spacing: -0.5px;
}

.sm-dark-h2 .sm-hl-teal {
  color: var(--sm-teal);
}

.sm-dark-h2 .sm-hl-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sm-dark-subtitle {
  font-size: 0.95rem;
  color: var(--sm-text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Reference Screenshot 2: Icon Boxes ── */
.sm-dark-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sm-dark-icon-box.sm-ib-blue {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.sm-dark-icon-box.sm-ib-teal {
  color: #16c5c2;
  background: rgba(22, 197, 194, 0.1);
  border-color: rgba(22, 197, 194, 0.25);
  box-shadow: 0 0 15px rgba(22, 197, 194, 0.15);
}

.sm-dark-icon-box.sm-ib-green {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.sm-dark-icon-box.sm-ib-yellow {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.sm-dark-icon-box.sm-ib-purple {
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.sm-dark-icon-box.sm-ib-red {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.25);
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}

/* ── Reference Screenshot 2: Dark Feature Card ── */
.sm-dark-card {
  background: var(--sm-bg-card);
  border: 1px solid var(--sm-border-card);
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.sm-dark-card:hover {
  transform: translateY(-5px);
  background: var(--sm-bg-card-hover);
  border-color: var(--sm-border-card-hover);
  box-shadow: 0 12px 36px rgba(11, 25, 44, 0.55), 0 0 25px rgba(22, 197, 194, 0.12);
}

.sm-dark-card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--sm-text-white);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.sm-dark-card-desc {
  font-size: 0.88rem;
  color: var(--sm-text-secondary);
  line-height: 1.65;
  margin: 0;
  flex-grow: 1;
}

/* ── Reference Screenshot 1: 2-Column Dark Container ── */
.sm-dark-container-card {
  background: var(--sm-bg-card);
  border: 1px solid var(--sm-border-card);
  border-radius: 22px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.sm-dark-container-card::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

/* ── Reference Screenshot 3: Dual CTA Buttons ── */
.sm-dark-btn-primary {
  background: var(--sm-cta-blue);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  box-shadow: var(--sm-cta-shadow);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sm-dark-btn-primary:hover {
  background: var(--sm-cta-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
  color: #ffffff !important;
}

.sm-dark-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.sm-dark-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* ── Dark Form Controls for Wizard & Inputs ── */
.sm-dark-input {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 0.92rem !important;
  transition: all 0.2s !important;
}

.sm-dark-input:focus {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--sm-teal) !important;
  box-shadow: 0 0 0 3px rgba(22, 197, 194, 0.2) !important;
  outline: none !important;
}

.sm-dark-input::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* ── Hero SEO Title Specifics ── */
.sm-hero-seo-h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 1.1rem;
  letter-spacing: -0.8px;
}

.sm-hero-seo-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--sm-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.6rem;
  max-width: 600px;
}

/* ── Scoped FAQ Accordion for Midnight Dark Blue Theme ── */
.sm-dark-home-canvas .sm-faq-section {
  padding: 3rem 0;
  margin: 0;
  background: transparent;
}

.sm-dark-home-canvas .sm-faq-title {
  color: #ffffff !important;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem) !important;
  font-weight: 900 !important;
}

.sm-dark-home-canvas .sm-faq-subtitle {
  color: #94a3b8 !important;
  font-size: 0.92rem !important;
}

.sm-dark-home-canvas .sm-faq-icon-wrap {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4) !important;
}

.sm-dark-home-canvas .sm-faq-item {
  background: #0f1e33 !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

.sm-dark-home-canvas .sm-faq-item.open {
  border-color: var(--sm-teal) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
}

.sm-dark-home-canvas .sm-faq-question:hover {
  background: rgba(255, 255, 255, 0.03) !important;
}

.sm-dark-home-canvas .sm-faq-item.open .sm-faq-question {
  background: rgba(255, 255, 255, 0.03) !important;
}

.sm-dark-home-canvas .sm-faq-q-text {
  color: #ffffff !important;
  font-size: 0.98rem !important;
}

.sm-dark-home-canvas .sm-faq-chevron {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #16c5c2 !important;
}

.sm-dark-home-canvas .sm-faq-item.open .sm-faq-chevron {
  background: var(--sm-teal) !important;
  border-color: var(--sm-teal) !important;
  color: #08101e !important;
}

.sm-dark-home-canvas .sm-faq-answer-inner {
  color: #94a3b8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  line-height: 1.75 !important;
}

.sm-dark-home-canvas .sm-faq-cat-label {
  color: #60a5fa !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12) !important;
}

/* ── Scoped Lead Wizard Overrides ── */
.sm-dark-home-canvas #lead-form-section {
  background: transparent !important;
}

.sm-dark-home-canvas .sm-wiz-card {
  background: #0f1e33 !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
}

.sm-dark-home-canvas .sm-wiz-header {
  background: linear-gradient(135deg, #091322 0%, #0d1b2e 60%, #10223a 100%) !important;
}

.sm-dark-home-canvas .sm-wiz-body {
  background: #0f1e33 !important;
  color: #f8fafc !important;
}

.sm-dark-home-canvas .sm-wiz-step-caption {
  color: #f8fafc !important;
}

.sm-dark-home-canvas .sm-wiz-progress-track {
  background: rgba(255, 255, 255, 0.08) !important;
}

.sm-dark-home-canvas .sm-wiz-step-circle {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #94a3b8 !important;
}

.sm-dark-home-canvas .sm-wiz-step-text {
  color: #64748b !important;
}

.sm-dark-home-canvas .sm-wiz-step-item.active .sm-wiz-step-text {
  color: #16c5c2 !important;
}

.sm-dark-home-canvas .sm-wiz-step-line {
  background: rgba(255, 255, 255, 0.1) !important;
}

.sm-dark-home-canvas .sm-panel-heading {
  color: #ffffff !important;
}

.sm-dark-home-canvas .sm-panel-sub {
  color: #94a3b8 !important;
}

.sm-dark-home-canvas .sm-goal-card {
  background: #11223a !important;
  border-color: rgba(59, 130, 246, 0.16) !important;
}

.sm-dark-home-canvas .sm-goal-card:hover {
  border-color: var(--sm-teal) !important;
  background: #142845 !important;
}

.sm-dark-home-canvas .sm-goal-card.selected {
  background: #152d4e !important;
  border-color: var(--sm-teal) !important;
}

.sm-dark-home-canvas .sm-goal-name {
  color: #ffffff !important;
}

.sm-dark-home-canvas .sm-goal-sub {
  color: #94a3b8 !important;
}

.sm-dark-home-canvas .sm-class-card {
  background: #11223a !important;
  border-color: rgba(59, 130, 246, 0.16) !important;
}

.sm-dark-home-canvas .sm-class-card:hover {
  background: #142845 !important;
  border-color: var(--sm-teal) !important;
}

.sm-dark-home-canvas .sm-class-card.selected {
  background: #152d4e !important;
  border-color: var(--sm-teal) !important;
}

.sm-dark-home-canvas .sm-class-title {
  color: #ffffff !important;
}

.sm-dark-home-canvas .sm-class-sub {
  color: #94a3b8 !important;
}

.sm-dark-home-canvas .sm-wiz-input {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.sm-dark-home-canvas .sm-wiz-input:focus {
  border-color: var(--sm-teal) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 4px rgba(22, 197, 194, 0.15) !important;
}

.sm-dark-home-canvas .sm-field-label {
  color: #cbd5e1 !important;
}

.sm-dark-home-canvas .sm-city-chip {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
}

.sm-dark-home-canvas .sm-city-chip:hover,
.sm-dark-home-canvas .sm-city-chip.selected {
  background: rgba(22, 197, 194, 0.18) !important;
  border-color: var(--sm-teal) !important;
  color: #ffffff !important;
}

.sm-dark-home-canvas .sm-chips-title {
  color: #94a3b8 !important;
}

.sm-dark-home-canvas .sm-input-addon-flag {
  color: #16c5c2 !important;
}

.sm-dark-home-canvas .sm-wiz-btn-prev {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.sm-dark-home-canvas .sm-wiz-btn-next {
  background: var(--sm-cta-blue) !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4) !important;
}

/* ── Scoped Blog Cards Overrides ── */
.sm-dark-home-canvas .sm-blog-card {
  background: #0f1e33 !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.sm-dark-home-canvas .sm-blog-card:hover {
  border-color: var(--sm-teal) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
}

.sm-dark-home-canvas .sm-blog-card-title {
  color: #ffffff !important;
}

.sm-dark-home-canvas .sm-blog-tag-badge {
  background: rgba(22, 197, 194, 0.12) !important;
  color: #16c5c2 !important;
  border: 1px solid rgba(22, 197, 194, 0.25) !important;
}

.sm-dark-home-canvas .sm-no-thumb {
  background: #11223a !important;
  color: #64748b !important;
}
