/**
 * Final premium polish — Stripe / Linear enterprise quality.
 * Layout unchanged; refinement only.
 */

.apm-home {
  --apm-final-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --apm-final-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  --apm-final-shadow-hover: 0 20px 48px rgba(15, 23, 42, 0.1);
  --apm-glass: rgba(255, 255, 255, 0.97);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── 1. Header ─── */
.apm-home .apm-header {
  transition:
    background 400ms var(--apm-final-ease),
    box-shadow 400ms var(--apm-final-ease),
    backdrop-filter 400ms var(--apm-final-ease);
}

.apm-home .apm-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08), 0 8px 28px rgba(15, 23, 42, 0.06);
}

.apm-home .apm-header.is-scrolled .apm-nav > li > a,
.apm-home .apm-header.is-scrolled .apm-header__login {
  color: #0f172a;
}

.apm-home .apm-header__inner {
  min-height: 88px;
  gap: 20px;
}

.apm-home .apm-logo img,
.apm-home .apm-logo svg {
  height: 48px !important;
  width: auto !important;
}

.apm-home .apm-nav {
  gap: 0;
}

.apm-home .apm-nav > li > a {
  position: relative;
  padding: 8px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 200ms ease, background 200ms ease;
}

.apm-home .apm-nav > li > a::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--apm-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms var(--apm-final-ease);
}

.apm-home .apm-nav > li.menu-item-has-children > a::after {
  position: static;
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  background: none;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.apm-home .apm-nav > li.menu-item-has-children:hover > a::after,
.apm-home .apm-nav > li.menu-item-has-children:focus-within > a::after {
  transform: rotate(-135deg) translateY(1px);
}

.apm-home .apm-nav > li > a:hover,
.apm-home .apm-nav > li.current-menu-item > a,
.apm-home .apm-nav > li.current-menu-ancestor > a {
  color: var(--apm-primary);
  background: transparent;
}

.apm-home .apm-nav > li:not(.menu-item-has-children) > a:hover::after,
.apm-home .apm-nav > li:not(.menu-item-has-children).current-menu-item > a::after {
  transform: scaleX(1);
}

.apm-home .apm-header__actions {
  gap: 12px;
}

.apm-home .apm-header__actions .apm-btn--cta {
  background: linear-gradient(135deg, #0B5ED7 0%, #2563eb 100%);
  color: #fff;
  padding: 12px 22px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(11, 94, 215, 0.28);
  transition: transform 250ms var(--apm-final-ease), box-shadow 250ms var(--apm-final-ease);
}

.apm-home .apm-header__actions .apm-btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 94, 215, 0.35);
  color: #fff;
}

/* ─── 2. Hero ─── */
.apm-home .apm-hero.apm-hero--refined {
  overflow: visible;
  padding-bottom: 0;
}

.apm-home .apm-hero--refined__content {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.apm-home .apm-hero--refined__title {
  font-size: clamp(2.5rem, 4.8vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.apm-home .apm-hero--refined__desc {
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.88);
}

.apm-home .apm-hero--refined__grid {
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px 48px;
  align-items: center;
}

.apm-home .apm-hero--refined__visual {
  margin-right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.apm-home .apm-hero--refined__image-wrap {
  width: 100%;
  max-width: 400px;
  max-height: 340px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(8px);
  overflow: hidden;
}

.apm-home .apm-hero--refined__image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 340px;
  object-fit: cover;
  object-position: center 20%;
}

.apm-home .apm-hero--refined__inner {
  position: relative;
  z-index: 10;
}

.apm-home .apm-search-box--refined {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 0 !important;
  margin-bottom: 24px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(12px);
  min-height: 60px;
  height: auto;
  overflow: visible;
  position: relative;
  z-index: 30;
}

.apm-home .apm-search-box--refined .apm-search-fields--job,
.apm-home .apm-search-box--refined .apm-search-fields--course {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: auto;
  min-height: 60px;
  gap: 0;
  overflow: visible;
  border-radius: 16px;
  margin: 0;
  position: relative;
}

.apm-home .apm-search-box--refined input[type="search"],
.apm-home .apm-search-box--refined .apm-location-combobox__input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.apm-home .apm-search-box--refined input[type="search"]:focus,
.apm-home .apm-search-box--refined .apm-location-combobox__input:focus {
  box-shadow: none !important;
  outline: none;
}

.apm-home .apm-search-field-wrap--keyword {
  flex: 1 1 40%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  position: relative;
  height: 60px;
  min-height: 60px;
  overflow: visible;
}

.apm-home .apm-search-field-wrap--location {
  flex: 0 0 42%;
  width: 42%;
  min-width: 240px;
  max-width: 460px;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  position: relative;
  height: 60px;
  min-height: 60px;
  border-left: 1px solid #e2e8f0;
  overflow: visible;
}

.apm-home .apm-search-field-wrap.is-wrap-expanded {
  height: auto;
}

.apm-home .apm-search-field-wrap__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  flex-shrink: 0;
  z-index: 1;
}

.apm-home .apm-search-field-wrap.is-wrap-expanded .apm-search-field-wrap__icon {
  top: 20px;
  transform: none;
}

.apm-home .apm-search-input--scroll,
.apm-home .apm-search-field-wrap--location .apm-location-combobox__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  font-size: 1rem;
  color: #0f172a;
}

.apm-home .apm-search-input--wrap,
.apm-home .apm-location-combobox__input--multiline {
  display: block;
  height: 60px;
  min-height: 60px;
  padding: 0 10px 0 40px;
  line-height: 60px;
  resize: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  box-sizing: border-box;
}

.apm-home .apm-search-input--wrap.is-wrap-expanded,
.apm-home .apm-location-combobox__input--multiline.is-wrap-expanded {
  height: auto;
  min-height: 60px;
  padding: 18px 10px 18px 40px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-overflow: clip;
}

.apm-home .apm-search-input--scroll:not(.apm-search-input--wrap) {
  height: 60px;
  line-height: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px 0 40px;
}

.apm-home .apm-search-field-wrap--location .apm-location-combobox {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 60px;
  min-height: 60px;
  align-items: stretch;
}

.apm-home .apm-search-field-wrap--location.is-wrap-expanded .apm-location-combobox {
  height: auto;
}

.apm-home .apm-search-field-wrap--location .apm-location-combobox__input:not(.apm-location-combobox__input--multiline) {
  padding: 0 32px 0 40px !important;
  line-height: 60px !important;
  display: block;
  box-sizing: border-box;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  min-height: 60px !important;
  height: 60px;
}

.apm-home .apm-search-field-wrap--location .apm-location-combobox__input--multiline {
  padding: 0 32px 0 40px !important;
  line-height: 60px !important;
  height: 60px !important;
  min-height: 60px !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  resize: none;
}

.apm-home .apm-search-field-wrap--location .apm-location-combobox__input--multiline.is-wrap-expanded {
  padding: 18px 32px 18px 40px !important;
  line-height: 1.45 !important;
  height: auto !important;
  min-height: 60px !important;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  text-overflow: clip !important;
}

.apm-home .apm-search-field-wrap--location .apm-location-combobox__list {
  min-width: 100%;
  left: 0;
  right: auto;
  width: max(100%, 280px);
  z-index: 200;
}

/* Desktop: single-line inputs keep ellipsis when collapsed */
.apm-home .apm-search-field-wrap--keyword .apm-search-input--scroll:not(.apm-search-input--wrap):focus,
.apm-home .apm-search-field-wrap--location .apm-location-combobox__input:not(.apm-location-combobox__input--multiline):focus {
  overflow: hidden;
  text-overflow: ellipsis;
}

.apm-home .apm-search-box--refined .apm-btn--search {
  flex: 0 0 160px;
  width: 160px;
  flex-shrink: 0;
  height: 60px;
  min-height: 60px;
  align-self: stretch;
  border-radius: 0 16px 16px 0 !important;
  padding: 0 20px !important;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.apm-home .apm-search-input--scroll::placeholder,
.apm-home .apm-search-field-wrap--location .apm-location-combobox__input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.apm-home .apm-search-field-wrap--location .apm-location-combobox__toggle {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.apm-home .apm-search-field-wrap--location.is-wrap-expanded .apm-location-combobox__toggle {
  top: 20px;
  transform: none;
}

.apm-home .apm-search-fields--course .apm-search-field-wrap--keyword {
  flex: 1 1 auto;
  min-width: 0;
  border-left: none;
}

.apm-home .apm-hero--refined__cta {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .apm-home .apm-search-box--refined {
    min-height: 0;
    padding: 8px !important;
  }

  .apm-home .apm-search-box--refined .apm-search-fields--job,
  .apm-home .apm-search-box--refined .apm-search-fields--course {
    flex-direction: column;
    flex-wrap: wrap;
    height: auto;
    min-height: 0;
    gap: 8px;
    overflow: visible;
  }

  .apm-home .apm-search-field-wrap--keyword,
  .apm-home .apm-search-field-wrap--location {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 52px;
    min-height: 52px;
    border-left: none;
    border-top: none;
  }

  .apm-home .apm-search-field-wrap--keyword {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
  }

  .apm-home .apm-search-field-wrap--location {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
  }

  .apm-home .apm-search-input--wrap,
  .apm-home .apm-location-combobox__input--multiline {
    height: 52px;
    min-height: 52px;
    line-height: 52px;
    padding: 0 10px 0 40px;
  }

  .apm-home .apm-search-input--wrap.is-wrap-expanded,
  .apm-home .apm-location-combobox__input--multiline.is-wrap-expanded {
    min-height: 52px;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.45;
  }

  .apm-home .apm-search-field-wrap--location .apm-location-combobox__input--multiline {
    height: 52px !important;
    min-height: 52px !important;
    line-height: 52px !important;
    padding: 0 32px 0 40px !important;
  }

  .apm-home .apm-search-field-wrap--location .apm-location-combobox__input--multiline.is-wrap-expanded {
    height: auto !important;
    min-height: 52px !important;
    line-height: 1.45 !important;
    padding: 14px 32px 14px 40px !important;
  }

  .apm-home .apm-search-input--scroll:not(.apm-search-input--wrap),
  .apm-home .apm-search-field-wrap--location .apm-location-combobox__input:not(.apm-location-combobox__input--multiline) {
    height: 52px;
    line-height: 52px;
  }

  .apm-home .apm-search-field-wrap--location .apm-location-combobox {
    height: 52px;
    min-height: 52px;
  }

  .apm-home .apm-search-box--refined .apm-btn--search {
    flex: 1 1 auto;
    width: 100%;
    height: 52px;
    min-height: 52px;
    border-radius: 12px !important;
  }

  .apm-home .apm-search-field-wrap.is-expanded {
    box-shadow: none !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
  }

  .apm-home .apm-search-field-wrap--location .apm-location-combobox__toggle {
    top: 50%;
    transform: translateY(-50%);
  }

  .apm-home .apm-search-field-wrap--location.is-wrap-expanded .apm-location-combobox__toggle {
    top: 16px;
    transform: none;
  }

  .apm-home .apm-search-field-wrap.is-wrap-expanded .apm-search-field-wrap__icon {
    top: 16px;
    transform: none;
  }
}

.apm-home .apm-hero-stats--refined {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  box-shadow: var(--apm-final-shadow);
  padding: 28px 36px;
  position: relative;
  z-index: 2;
}

.apm-home .apm-hero-stats--refined .apm-counter {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #0B5ED7, #16A34A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── 3. Partners ─── */
.apm-home .apm-partners-section--mockup {
  padding: 64px 0;
  overflow: hidden;
}

.apm-home .apm-partners-marquee {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.apm-home .apm-partners-marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: apm-partners-scroll 40s linear infinite;
}

.apm-home .apm-partners-marquee:hover .apm-partners-marquee__track {
  animation-play-state: paused;
}

@keyframes apm-partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.apm-home .apm-partners-marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 8px;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 350ms ease, filter 350ms ease, transform 350ms var(--apm-final-ease);
}

.apm-home .apm-partners-marquee__item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.06);
}

.apm-home .apm-partners-marquee__item img,
.apm-home .apm-partners-marquee__item svg {
  height: 40px;
  width: auto;
  max-width: 140px;
}

/* ─── 4. Job cards (salary emphasis) ─── */
.apm-home .apm-section--jobs .apm-job-card__detail:first-child {
  font-weight: 600;
  color: #0f172a;
}

.apm-home .apm-section--jobs .apm-job-card__detail:first-child svg {
  color: #16A34A;
}

/* ─── 5. Newsletter ─── */
.apm-home .apm-newsletter--mockup__inner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #0B5ED7 0%, #1d4ed8 45%, #16A34A 100%);
  padding: 48px 56px;
  box-shadow: 0 24px 64px rgba(11, 94, 215, 0.25);
}

.apm-home .apm-newsletter--mockup__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(255, 255, 255, 0.12), transparent),
    radial-gradient(ellipse 40% 60% at 0% 100%, rgba(0, 0, 0, 0.08), transparent);
  pointer-events: none;
}

.apm-home .apm-newsletter--mockup__text h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.apm-home .apm-newsletter--mockup__text p {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 420px;
}

.apm-home .apm-newsletter--mockup__form {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  padding: 6px;
  backdrop-filter: blur(8px);
}

.apm-home .apm-newsletter--mockup__form input {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.9375rem;
}

.apm-home .apm-newsletter--mockup__form .apm-btn {
  border-radius: 10px;
  padding: 14px 28px;
  font-weight: 600;
}

.apm-home .apm-newsletter--mockup__illus {
  opacity: 0.9;
  transform: scale(1.1);
}

/* ─── 6. Services ─── */
.apm-home .apm-service-box--premium {
  padding: 36px 32px;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  background: #fff;
  box-shadow: var(--apm-final-shadow);
  transition:
    transform 350ms var(--apm-final-ease),
    box-shadow 350ms var(--apm-final-ease),
    border-color 350ms ease;
}

.apm-home .apm-service-box--premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--apm-final-shadow-hover);
  border-color: #e2e8f0;
}

.apm-home .apm-service-box__illus {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.apm-home .apm-service-box__illus svg {
  width: 36px !important;
  height: 36px !important;
}

.apm-home .apm-service-box--premium h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.apm-home .apm-service-box--premium p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 20px;
}

/* ─── 7. Courses ─── */
.apm-home .apm-course-card--premium {
  border-radius: 16px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  transition:
    transform 350ms var(--apm-final-ease),
    box-shadow 350ms var(--apm-final-ease);
}

.apm-home .apm-course-card--premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--apm-final-shadow-hover);
}

.apm-home .apm-course-card--premium .apm-course-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.apm-home .apm-course-card--premium .apm-course-card__thumb img {
  transition: transform 600ms var(--apm-final-ease);
}

.apm-home .apm-course-card--premium:hover .apm-course-card__thumb img {
  transform: scale(1.06);
}

.apm-home .apm-course-card__body {
  padding: 24px;
}

.apm-home .apm-course-card__title a {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.apm-home .apm-course-card__rating svg {
  color: #f59e0b;
}

/* ─── 8. Industries ─── */
.apm-home .apm-industry--mockup {
  transition: transform 350ms var(--apm-final-ease);
}

.apm-home .apm-industry--mockup:hover {
  transform: translateY(-4px);
}

.apm-home .apm-industry__ring {
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 8px 24px rgba(11, 94, 215, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    box-shadow 350ms var(--apm-final-ease),
    border-color 350ms ease,
    background 350ms ease;
}

.apm-home .apm-industry--mockup:hover .apm-industry__ring {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(11, 94, 215, 0.2);
  box-shadow:
    0 12px 32px rgba(11, 94, 215, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.apm-home .apm-industry__ring svg {
  width: 36px !important;
  height: 36px !important;
}

/* ─── 9. Case studies / Experts ─── */
.apm-home .apm-expert-compact {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #eef2f6;
  background: #fff;
  transition:
    transform 300ms var(--apm-final-ease),
    box-shadow 300ms var(--apm-final-ease),
    border-color 300ms ease;
}

.apm-home .apm-expert-compact:hover {
  transform: translateX(4px);
  box-shadow: var(--apm-final-shadow);
  border-color: #e2e8f0;
}

.apm-home .apm-expert-compact__kpi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--apm-primary);
  background: var(--apm-primary-light);
  border-radius: 6px;
}

.apm-home .apm-expert-compact__company {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.apm-home .apm-expert-compact__company-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: #64748b;
}

/* ─── 10. Testimonials ─── */
.apm-home .apm-testimonial-slider {
  position: relative;
}

.apm-home .apm-testimonial-slider__track {
  position: relative;
  min-height: 280px;
}

.apm-home .apm-testimonial-slider__slide {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 500ms var(--apm-final-ease), visibility 500ms;
}

.apm-home .apm-testimonial-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.apm-home .apm-testimonial--featured {
  padding: 36px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fafc 0%, #fff 100%);
  border: 1px solid #eef2f6;
  box-shadow: var(--apm-final-shadow);
}

.apm-home .apm-testimonial__quote {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #334155;
  font-style: normal;
  letter-spacing: -0.01em;
}

.apm-home .apm-testimonial__company {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  font-style: normal;
  margin-top: 2px;
}

.apm-home .apm-testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apm-primary), #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(11, 94, 215, 0.25);
}

.apm-home .apm-testimonial-slider__dots {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.apm-home .apm-testimonial-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 250ms ease, transform 250ms ease;
}

.apm-home .apm-testimonial-slider__dot.is-active {
  background: var(--apm-primary);
  transform: scale(1.25);
}

/* ─── 11. Blog ─── */
.apm-home .apm-blog-card--premium {
  border-radius: 16px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  background: #fff;
  transition:
    transform 350ms var(--apm-final-ease),
    box-shadow 350ms var(--apm-final-ease);
}

.apm-home .apm-blog-card--premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--apm-final-shadow-hover);
}

.apm-home .apm-blog-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.apm-home .apm-blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--apm-final-ease);
}

.apm-home .apm-blog-card--premium:hover .apm-blog-card__img img {
  transform: scale(1.05);
}

.apm-home .apm-blog-card__body {
  padding: 24px;
}

.apm-home .apm-blog-card__title a {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.apm-home .apm-blog-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #64748b;
}

.apm-home .apm-blog-card__byline {
  font-size: 0.8125rem;
  color: #94a3b8;
  gap: 12px;
}

/* ─── 12. CTA ─── */
.apm-home .apm-cta--mockup {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.apm-home .apm-cta--mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(11, 94, 215, 0.06), transparent),
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(22, 163, 74, 0.05), transparent);
  pointer-events: none;
}

.apm-home .apm-cta--mockup__inner {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg, #0B5ED7 0%, #1e40af 50%, #16A34A 100%);
  padding: 64px 72px;
  box-shadow: 0 32px 80px rgba(11, 94, 215, 0.28);
  overflow: visible;
}

.apm-home .apm-cta--mockup__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

.apm-home .apm-cta--mockup__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.apm-home .apm-cta--mockup__shape--1 {
  width: 320px;
  height: 320px;
  top: -120px;
  right: -80px;
}

.apm-home .apm-cta--mockup__shape--2 {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: 20%;
  background: rgba(255, 255, 255, 0.05);
}

.apm-home .apm-cta--mockup__visual {
  margin-right: -64px;
  margin-top: -32px;
  margin-bottom: -32px;
}

.apm-home .apm-cta--mockup__visual img {
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  min-height: 360px;
  object-fit: cover;
}

.apm-home .apm-cta--mockup__content h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ─── 13. Footer ─── */
.apm-home .apm-footer--premium {
  padding-top: 88px;
}

.apm-home .apm-footer__grid {
  gap: 56px 40px;
  margin-bottom: 56px;
}

.apm-home .apm-footer--premium h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.apm-home .apm-footer--premium ul li {
  margin-bottom: 12px;
}

.apm-home .apm-footer--premium ul a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color 200ms ease, transform 200ms ease;
}

.apm-home .apm-footer--premium ul a:hover {
  color: #fff;
  transform: translateX(2px);
}

.apm-home .apm-footer__newsletter {
  margin-top: 28px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.apm-home .apm-footer__newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.apm-home .apm-footer__newsletter-form input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 12px 16px;
}

.apm-home .apm-footer__newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.apm-home .apm-footer__newsletter-form button {
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  background: var(--apm-primary);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}

.apm-home .apm-footer__newsletter-form button:hover {
  background: #3b82f6;
  transform: translateY(-1px);
}

.apm-home .apm-footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    background 250ms ease,
    transform 250ms var(--apm-final-ease),
    border-color 250ms ease;
}

.apm-home .apm-footer__social a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.apm-home .apm-footer__map {
  margin-top: 0;
  height: 100%;
  min-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.apm-home .apm-footer__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  filter: grayscale(30%) contrast(1.05);
  transition: filter 400ms ease;
}

.apm-home .apm-footer__map:hover iframe {
  filter: grayscale(0%) contrast(1);
}

/* ─── Global section rhythm ─── */
.apm-home .apm-section__header--split {
  margin-bottom: 52px;
}

.apm-home .apm-section__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
}

.apm-home .apm-section__subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ─── Button ripple ─── */
.apm-home .apm-btn--ripple {
  position: relative;
  overflow: hidden;
}

.apm-home .apm-btn--ripple .apm-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: apm-ripple 600ms ease-out;
  pointer-events: none;
}

@keyframes apm-ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .apm-home .apm-hero--refined__visual {
    margin-right: 0;
  }

  .apm-home .apm-hero--refined__image-wrap {
    max-width: 360px;
    max-height: 280px;
    transform: none;
    margin-inline: auto;
  }

  .apm-home .apm-hero--refined__image-wrap img {
    max-height: 280px;
  }

  .apm-home .apm-cta--mockup__visual {
    margin: 0;
  }

  .apm-home .apm-cta--mockup__inner {
    padding: 48px 40px;
  }
}

@media (max-width: 768px) {
  .apm-home .apm-header__inner {
    min-height: 72px;
  }

  .apm-home .apm-logo img {
    height: 40px !important;
  }

  .apm-home .apm-hero--refined__title {
    max-width: none;
  }

  .apm-home .apm-newsletter--mockup__inner {
    padding: 32px 24px;
  }

  .apm-home .apm-cta--mockup {
    padding: 64px 0;
  }

  .apm-home .apm-footer--premium {
    padding-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apm-home .apm-partners-marquee__track {
    animation: none;
  }
}
