/**
 * Homepage section distinction — from Services downward.
 * Each block gets a clear visual identity so the page rhythm reads distinctly.
 */

/* ─── Shared section rhythm ─── */
.apm-home .apm-home-services,
.apm-home .apm-home-partners-reviews,
.apm-home .apm-home-jobs,
.apm-home .apm-section--courses,
.apm-home .apm-home-subscribe {
  padding-block: clamp(64px, 8vw, 112px);
}

.apm-home .apm-home-services .apm-section__eyebrow,
.apm-home .apm-home-partners-reviews .apm-section__eyebrow,
.apm-home .apm-home-jobs .apm-section__eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   1. SERVICES — simple cards: icon + title + CTA
   ═══════════════════════════════════════════ */
.apm-home .apm-home-services {
  position: relative;
  background: #fff;
  border-top: 1px solid #e8eef5;
}

.apm-home .apm-home-services .apm-section__eyebrow {
  color: #1e4ed8;
}

.apm-home .apm-home-services .apm-section__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
  color: #0a2540;
}

.apm-home .apm-home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.apm-home .apm-home-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 36px 28px 28px;
  min-height: 0;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.apm-home .apm-home-service-card:visited,
.apm-home .apm-home-service-card:hover,
.apm-home .apm-home-service-card:focus,
.apm-home .apm-home-service-card:active {
  color: inherit;
  text-decoration: none;
}

.apm-home .apm-home-service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 78, 216, 0.22);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.apm-home .apm-home-service-card:focus-visible {
  outline: 2px solid #1e4ed8;
  outline-offset: 3px;
}

.apm-home .apm-home-service-card__icon,
.apm-home.apm-home--premium .apm-home-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 0 20px;
  border-radius: 50%;
  background: #e8f1fd;
  color: #1e4ed8;
  flex: 0 0 auto;
  position: static;
  box-shadow: none;
}

.apm-home .apm-home-service-card__title {
  display: block;
  margin: 0 0 12px;
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0a2540;
}

.apm-home .apm-home-service-card__desc {
  display: block;
  margin: 0 0 24px;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
}

.apm-home .apm-home-service-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 22px;
  min-width: 160px;
  border-radius: 10px;
  background: #1e4ed8;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.apm-home .apm-home-service-card:hover .apm-home-service-card__btn,
.apm-home .apm-home-service-card:focus-visible .apm-home-service-card__btn {
  background: #1e40af;
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 78, 216, 0.28);
  transform: translateY(-1px);
}

/* Services CTA bar */
.apm-home .apm-home-services__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  border-radius: 18px;
  background: linear-gradient(90deg, #eef7ff 0%, #f0fdf8 100%);
  border: 1px solid #dbeafe;
}

.apm-home .apm-home-services__cta-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e4ed8;
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 78, 216, 0.28);
}

.apm-home .apm-home-services__cta-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.apm-home .apm-home-services__cta-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a2540;
  line-height: 1.35;
}

.apm-home .apm-home-services__cta-text span {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.apm-home .apm-home-services__cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 12px;
}

/* ═══════════════════════════════════════════
   2. VMV — see home-vmv.css
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   3. PARTNERS + REVIEWS — soft slate stage
   ═══════════════════════════════════════════ */
.apm-home .apm-home-partners-reviews {
  background: #f1f5f9;
}

.apm-home .apm-home-partners-reviews .apm-section__eyebrow {
  color: #0369a1;
}

.apm-home .apm-home-partners {
  padding: 36px 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
  background: #fff;
  border-radius: 22px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.apm-home .apm-home-partners .apm-section__header {
  margin-bottom: 28px;
}

.apm-home .apm-home-reviews .apm-section__eyebrow {
  color: #b45309;
}

.apm-home .apm-home-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.apm-home .apm-testimonial--featured {
  height: 100%;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apm-home .apm-testimonial--featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.apm-home .apm-testimonial__quote-mark {
  color: #f59e0b;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════
   4. JOBS — see home-jobs-featured.css
   ═══════════════════════════════════════════ */
.apm-home .apm-home-jobs.featured-jobs-section {
  border-top: none;
}

.apm-home .apm-home-jobs.featured-jobs-section::before {
  display: none;
}

/* ═══════════════════════════════════════════
   5. COURSES — cool blue wash stage
   ═══════════════════════════════════════════ */
.apm-home .apm-section--courses {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(180deg, #eef6ff 0%, #f7fbff 100%);
  border-top: 1px solid #dbeafe;
}

.apm-home .apm-section--courses .apm-fc-header__badge {
  background: #1e4ed8;
  color: #fff;
}

.apm-home .apm-section--courses .apm-fc-card {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(30, 78, 216, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apm-home .apm-section--courses .apm-fc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(30, 78, 216, 0.14);
}

/* ═══════════════════════════════════════════
   6. SUBSCRIBE — navy CTA finale
   ═══════════════════════════════════════════ */
.apm-home .apm-home-subscribe {
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(56, 189, 248, 0.22), transparent 55%),
    linear-gradient(135deg, #071a33 0%, #0b3d7a 50%, #1e4ed8 100%);
}

.apm-home .apm-home-subscribe__title {
  color: #fff;
  text-align: center;
}

.apm-home .apm-home-subscribe__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  backdrop-filter: blur(16px);
}

.apm-home .apm-home-subscribe__card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-5px);
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .apm-home .apm-home-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .apm-home .apm-home-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apm-home .apm-home-services__cta {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .apm-home .apm-home-services__grid,
  .apm-home .apm-home-reviews__grid {
    grid-template-columns: 1fr;
  }

  .apm-home .apm-home-service-card {
    padding: 28px 22px 24px;
  }

  .apm-home .apm-home-partners {
    padding: 24px 18px;
  }

  .apm-home .apm-home-services__cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .apm-home .apm-home-services__cta-btn {
    width: 100%;
    justify-content: center;
  }
}
