.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1e293b;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.exam-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
}

.exam-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.section-sub {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
  max-width: 540px;
}

.home-platform-stats-bar {
  background: #1e3a8a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  overflow: hidden;
}

.home-platform-stats-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
}

.home-platform-stat {
  min-width: 0;
  padding: 16px 12px;
  background: #1e3a8a;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.home-platform-stat:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.home-platform-stat:hover {
  background: #23479e;
}

.home-platform-stat-value {
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.home-platform-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #93c5fd;
  margin-top: 4px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (min-width: 520px) {
  .home-platform-stats-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-platform-stat:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .home-platform-stat-label {
    font-size: 12px;
  }
}

@media (min-width: 900px) {
  .home-platform-stats-inner {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .home-platform-stat {
    padding: 18px 16px;
  }
}

.home-page-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.home-page-section--tight-top {
  padding-top: 0;
}

.home-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.home-section-header--lg {
  margin-bottom: 32px;
}

.home-section-header .section-sub {
  max-width: 100%;
}

.home-subject-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}

.search-wrap {
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
  outline: none;
}

.search-wrap input:focus {
  border-color: #2563eb;
}

.exam-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.challenge-card {
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  border-radius: 16px;
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.badge-slate {
  background: #f1f5f9;
  color: #475569;
}

.home-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

.home-exams-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .home-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-exams-mini {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Floating mobile CTA — pill above bottom nav */
.sticky-cta {
  position: fixed;
  bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 45;
  isolation: isolate;
  width: min(420px, calc(100% - 32px));
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transform: translateX(-50%) translateY(calc(100% + 24px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 10px 32px rgba(37, 99, 235, 0.42),
    0 4px 12px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.sticky-cta-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(37, 99, 235, 0.48),
    0 6px 16px rgba(15, 23, 42, 0.14);
}

.sticky-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
}

.sticky-cta-btn svg {
  flex-shrink: 0;
}

.sticky-cta-glow {
  position: absolute;
  inset: -8px -4px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  body.frontend-body.home-sticky-cta-active {
    padding-bottom: 88px;
  }

  .home-featured-section {
    padding-bottom: 88px;
  }

  .home-page-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .home-section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-subject-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-subject-toolbar .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn-primary,
  .hero-btns .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .home-grid-4 {
    grid-template-columns: 1fr;
  }

  .home-jobs-section {
    padding: 40px 0;
  }
}

.home-subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-subject-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.home-subject-pill:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.home-subject-pill.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.home-subject-pill-count {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.home-subject-pill.is-active .home-subject-pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.home-subject-placeholder {
  margin-top: 28px;
  padding: 40px 24px;
  text-align: center;
  background: #fff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
}

.home-how-it-works {
  padding: 48px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.home-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.home-step {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
}

.home-step-num {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.home-step h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.home-step p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.home-seminars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.home-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.home-testimonial-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-testimonial-card.is-featured {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.home-testimonial-quote {
  font-size: 15px;
  color: #334155;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.home-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1d4ed8;
  font-size: 16px;
}

.home-testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.home-testimonial-role {
  font-size: 12px;
  color: #64748b;
}

.home-testimonial-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
}

.home-jobs-section {
  background: #f8fafc;
  padding: 56px 0;
  border-top: 1px solid #e2e8f0;
}

.home-jobs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.home-jobs-grid .job-card {
  min-width: 0;
}

@media (min-width: 768px) {
  .home-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-seminars-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 769px) {
  .sticky-cta {
    display: none !important;
  }
}
