/* APM Academy landing page */

.apm-academy .apm-header {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.apm-academy .apm-nav .current-menu-item > a,
.apm-academy .apm-nav .current-menu-ancestor > a,
.apm-academy .apm-nav .current_page_parent > a {
  color: var(--apm-primary);
}

/* --- Hero banner --- */
.apm-academy-hero--banner {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: clamp(420px, 58vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.apm-academy-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.apm-academy-hero__slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.apm-academy-hero__slider .swiper-wrapper,
.apm-academy-hero__slider .swiper-slide {
  height: 100%;
}

.apm-academy-hero__slider .swiper-slide img,
.apm-academy-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: blur(1px) saturate(0.92);
  transform: scale(1.04);
}

.apm-academy-hero__pagination {
  position: absolute;
  bottom: 20px !important;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
}

.apm-academy-hero__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
  transition: background 0.25s ease, transform 0.25s ease;
}

.apm-academy-hero__pagination .swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.15);
}

.apm-academy-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.28) 48%, rgba(15, 23, 42, 0.2) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.45) 100%);
}

.apm-academy-hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 5vw, 56px);
}

.apm-academy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
}

.apm-academy-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.apm-academy-breadcrumb a:hover {
  color: #fff;
}

.apm-academy-breadcrumb__current {
  color: #fff;
  font-weight: 500;
}

.apm-academy-hero__callout {
  max-width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.apm-academy-hero__title-box {
  background: var(--apm-primary, #1e4ed8);
  padding: 18px 28px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
}

.apm-academy-hero__title-box h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #fff;
  text-transform: uppercase;
}

.apm-academy-hero__subtitle-box {
  background: var(--apm-secondary, #57b948);
  padding: 14px 24px;
  max-width: 92%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.apm-academy-hero__subtitle-box span {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.apm-academy-banner-nav {
  position: relative;
  z-index: 2;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.08);
}

.apm-academy-banner-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.apm-academy-banner-nav--5 .apm-academy-banner-nav__list {
  grid-template-columns: repeat(5, 1fr);
}

.apm-academy-banner-nav--2 .apm-academy-banner-nav__list {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin-inline: auto;
}

.apm-academy-banner-nav--3 .apm-academy-banner-nav__list {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin-inline: auto;
}

.apm-academy-banner-nav__list > li {
  border-right: 1px solid #e2e8f0;
}

.apm-academy-banner-nav__list > li:last-child {
  border-right: 0;
}

.apm-academy-banner-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 16px 20px;
  text-decoration: none;
  text-align: center;
  color: var(--apm-primary, #1e4ed8);
  transition: background 0.2s ease;
}

.apm-academy-banner-nav__item:hover,
.apm-academy-banner-nav__item.is-active {
  background: #f8fafc;
}

.apm-academy-banner-nav__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--apm-primary, #1e4ed8);
}

.apm-academy-banner-nav__label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: var(--apm-primary, #1e4ed8);
  text-transform: uppercase;
}

.apm-academy-banner-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--apm-primary, #1e4ed8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.apm-academy-banner-nav__item:hover .apm-academy-banner-nav__cta {
  background: var(--apm-primary-dark, #1639a8);
  transform: translateY(-1px);
}

/* ─── Intro (collage + title/content) ─── */
.apm-academy-intro {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 24px;
  background: #f8fafc;
}

.apm-academy-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/bg-circles.svg') center bottom / min(1200px, 140%) auto no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.apm-academy-intro > .apm-container {
  position: relative;
  z-index: 1;
}

.apm-academy-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.apm-academy-intro__gallery {
  position: relative;
  min-height: 340px;
  padding: 20px 12px 12px 28px;
}

.apm-academy-intro__gallery-accent {
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 42%;
  border-radius: 4px;
  background: color-mix(in srgb, var(--apm-primary, #1e4ed8) 28%, #6b5b95);
  z-index: 0;
}

.apm-academy-intro__gallery-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px 16px;
}

.apm-academy-intro__shot {
  margin: 0;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.apm-academy-intro__shot img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.apm-academy-intro__shot--1 {
  transform: translateY(-6px);
}

.apm-academy-intro__shot--2 {
  transform: translateY(10px);
}

.apm-academy-intro__shot--3 {
  transform: translateY(4px);
}

.apm-academy-intro__shot--4 {
  transform: translateY(18px);
}

.apm-academy-intro__shot--1 img,
.apm-academy-intro__shot--3 img {
  height: 168px;
}

.apm-academy-intro__content {
  padding: 8px 0;
}

.apm-academy-intro__title {
  margin: 0 0 24px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--apm-primary, #1e4ed8);
}

.apm-academy-intro__title-line {
  display: block;
}

.apm-academy-intro__title-line--lead {
  position: relative;
  width: fit-content;
  padding-top: 14px;
}

.apm-academy-intro__title-line--lead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--apm-primary, #1e4ed8);
}

.apm-academy-intro__text p {
  margin: 0 0 16px;
  font-size: var(--apm-body, 1rem);
  line-height: 1.75;
  color: #334155;
}

.apm-academy-intro__text p:last-child {
  margin-bottom: 0;
}

/* ─── Why choose (reasons + media) ─── */
.apm-academy-why {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 72px;
  background: #fff;
}

.apm-academy-why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/bg-mesh.svg') center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.apm-academy-why > .apm-container {
  position: relative;
  z-index: 1;
}

.apm-academy-why__heading {
  margin: 0 auto 48px;
  max-width: 820px;
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--apm-text, #0f172a);
}

.apm-academy-hl {
  color: var(--apm-primary, #1e4ed8);
  font-weight: 800;
}

.apm-academy-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.apm-academy-why__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apm-academy-why__item {
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: clamp(0.98rem, 1.2vw, 1.125rem);
  line-height: 1.55;
  color: #1e293b;
  transition: color 200ms ease, padding-left 250ms ease;
}

.apm-academy-why__item:first-child {
  padding-top: 0;
}

.apm-academy-why__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.apm-academy-why__item:hover {
  padding-left: 6px;
}

.apm-academy-why__item.apm-reveal {
  transition-delay: var(--why-delay, 0ms);
}

.apm-academy-why__item.is-visible .apm-academy-hl {
  animation: apm-why-hl 700ms ease both;
  animation-delay: calc(var(--why-delay, 0ms) + 120ms);
}

@keyframes apm-why-hl {
  from {
    opacity: 0.35;
    letter-spacing: 0.04em;
  }
  to {
    opacity: 1;
    letter-spacing: normal;
  }
}

.apm-academy-why__media {
  min-width: 0;
}

.apm-academy-why__figure,
.apm-academy-why__player {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  aspect-ratio: 16 / 9;
}

.apm-academy-why__figure img,
.apm-academy-why__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apm-academy-why__thumb {
  position: absolute;
  inset: 0;
  transition: opacity 240ms ease;
}

.apm-academy-why__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--apm-primary, #1e4ed8);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
  transition: transform 200ms ease, background 200ms ease;
}

.apm-academy-why__play:hover {
  transform: scale(1.06);
  background: #fff;
}

.apm-academy-why__embed {
  position: absolute;
  inset: 0;
}

.apm-academy-why__embed iframe,
.apm-academy-why__embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.apm-academy-why__player.is-playing .apm-academy-why__thumb {
  opacity: 0;
  pointer-events: none;
}

.apm-academy-why__player.is-playing .apm-academy-why__embed {
  display: block;
}

.apm-academy-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding: 32px;
  background: #fff;
  border-radius: var(--apm-radius);
  box-shadow: var(--apm-shadow-sm);
  border: 1px solid var(--apm-border-light);
}

.apm-academy-stats__item {
  text-align: center;
}

.apm-academy-stats__item strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--apm-primary);
  line-height: 1.2;
}

.apm-academy-stats__item span {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--apm-text-muted);
}

/* ─── Training cards ─── */
.apm-academy-training__header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px 56px;
  align-items: start;
  margin-bottom: 48px;
}

.apm-academy-training__header-main {
  min-width: 0;
}

.apm-academy-training__header-aside {
  min-width: 0;
  max-width: 480px;
  justify-self: end;
}

.apm-academy-training__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apm-primary, #1e4ed8);
}

.apm-academy-training__title {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  color: var(--apm-text, #0f172a);
  line-height: 1.25;
}

.apm-academy-training__subtitle {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.7;
  color: #64748b;
}

.apm-academy-training__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--apm-primary, #1e4ed8);
  text-decoration: none;
}

.apm-academy-training__all:hover {
  text-decoration: underline;
}

.apm-academy-training__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.apm-academy-card {
  padding: 28px 24px;
  background: #fff;
  border-radius: var(--apm-radius);
  border: 1px solid var(--apm-border-light);
  box-shadow: var(--apm-shadow-sm);
  transition: transform var(--apm-duration) var(--apm-ease), box-shadow var(--apm-duration) var(--apm-ease);
}

.apm-academy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apm-shadow-md);
}

.apm-academy-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  background: var(--apm-primary-light);
  border-radius: 14px;
  color: var(--apm-primary);
}

.apm-academy-card__title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--apm-text);
}

.apm-academy-card__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--apm-text-muted);
}

.apm-academy-card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--apm-primary, #1e4ed8);
  text-decoration: none;
}

.apm-academy-card__link:hover {
  text-decoration: underline;
}

.apm-academy-training__register-link {
  align-self: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--apm-primary, #1e4ed8);
  text-decoration: none;
}

.apm-academy-training__register-link:hover {
  text-decoration: underline;
}

.apm-academy-training__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(30, 78, 216, 0.06) 0%, rgba(22, 163, 74, 0.06) 100%);
  border-radius: var(--apm-radius);
  border: 1px solid rgba(30, 78, 216, 0.12);
}

.apm-academy-training__cta p {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--apm-text);
  max-width: 480px;
}

.apm-academy-training__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ─── Courses ─── */
.apm-academy-courses__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px 56px;
  align-items: start;
  margin-bottom: 40px;
}

.apm-academy-courses__top-main {
  min-width: 0;
}

.apm-academy-courses__top-aside {
  min-width: 0;
  max-width: 480px;
  justify-self: end;
}

.apm-academy-courses__title {
  margin: 0;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  color: var(--apm-text, #0f172a);
  line-height: 1.25;
}

.apm-academy-courses__subtitle {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.7;
  color: #64748b;
}

.apm-academy-courses__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--apm-primary, #1e4ed8);
  text-decoration: none;
}

.apm-academy-courses__all:hover {
  text-decoration: underline;
}

.apm-academy-courses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.apm-academy-courses__grid .apm-fc-card {
  height: 100%;
}

.apm-academy-courses__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* ─── Training consult page ─── */
.apm-tc-hero {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #eff4ff 0%, #fff 100%);
}

.apm-tc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.apm-tc-hero__eyebrow {
  display: inline-block;
  margin: 16px 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--apm-primary, #1e4ed8);
}

.apm-tc-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

.apm-tc-hero__desc {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #64748b;
}

.apm-tc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apm-tc-hero__media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.apm-tc-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.apm-tc-section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.apm-tc-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
}

.apm-tc-section-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
}

.apm-tc-solutions .apm-academy-training__grid {
  margin-top: 0;
}

.apm-tc-courses .apm-academy-courses__top {
  margin-bottom: 32px;
}

/* ─── TC services (list cards + strong hover) ─── */
.apm-tc-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.apm-tc-svc {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 22px 22px;
  border-radius: 18px;
  border: 1px solid rgba(30, 78, 216, 0.14);
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 48%);
  box-shadow: 0 10px 28px rgba(30, 78, 216, 0.08);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease,
    background 280ms ease;
}

.apm-tc-svc:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--apm-primary, #1e4ed8);
  background: linear-gradient(180deg, #dbeafe 0%, #ffffff 42%);
  box-shadow: 0 22px 48px rgba(30, 78, 216, 0.22);
}

.apm-tc-svc__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid rgba(30, 78, 216, 0.35);
  background: #fff;
  color: var(--apm-primary, #1e4ed8);
  transition: background 280ms ease, color 280ms ease, border-color 280ms ease, transform 280ms ease;
}

.apm-tc-svc:hover .apm-tc-svc__icon {
  background: var(--apm-primary, #1e4ed8);
  border-color: var(--apm-primary, #1e4ed8);
  color: #fff;
  transform: scale(1.08);
}

.apm-tc-svc__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0d47a1;
}

.apm-tc-svc__desc {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #64748b;
}

.apm-tc-svc__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.apm-tc-svc__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #475569;
}

.apm-tc-svc__list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #16a34a;
}

.apm-tc-svc__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--apm-primary, #1e4ed8);
  background: #fff;
  color: var(--apm-primary, #1e4ed8);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 250ms ease, color 250ms ease, box-shadow 250ms ease;
}

.apm-tc-svc__btn:hover,
.apm-tc-svc:hover .apm-tc-svc__btn {
  background: var(--apm-primary, #1e4ed8);
  color: #fff;
  box-shadow: 0 10px 22px rgba(30, 78, 216, 0.28);
}

.apm-tc-svc__btn svg {
  transition: transform 250ms ease;
}

.apm-tc-svc__btn:hover svg,
.apm-tc-svc:hover .apm-tc-svc__btn svg {
  transform: translateX(3px);
}

/* ─── Instructors (profile cards) ─── */
.apm-academy-instructors {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding-top: 72px;
  padding-bottom: 72px;
}

.apm-academy-instructors::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/bg-circles.svg') right -5% top -15% / min(900px, 95%) auto no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.apm-academy-instructors > .apm-container {
  position: relative;
  z-index: 1;
}

.apm-academy-instructors__top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 40px;
}

.apm-academy-instructors__title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.apm-academy-instructors__subtitle {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #64748b;
}

.apm-academy-instructors__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--apm-primary, #1e4ed8);
  text-decoration: none;
}

.apm-academy-instructors__all:hover {
  text-decoration: underline;
}

.apm-academy-instructors__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.apm-academy-instructors__slider-wrap {
  position: relative;
}

.apm-academy-instructors__slider {
  overflow: hidden;
  margin: 0 -4px;
  padding: 4px 4px 8px;
}

.apm-academy-instructors__slider .swiper-slide {
  height: auto;
}

.apm-academy-instructors__controls {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.apm-academy-instructors__nav {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.apm-academy-instructors__nav:hover {
  color: var(--apm-primary, #1e4ed8);
  background: #eff4ff;
}

.apm-academy-instructors__nav.swiper-button-disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.apm-academy-instructors__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 20px;
}

.apm-academy-instructors__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 !important;
  border-radius: 50%;
  background: #cbd5e1;
  opacity: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.apm-academy-instructors__pagination .swiper-pagination-bullet-active {
  background: var(--apm-primary, #1e4ed8);
  transform: scale(1.15);
}

.apm-inst-card {
  margin: 0;
  height: 100%;
}

.apm-inst-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 440px;
  padding: 18px 16px 18px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  color: inherit;
  background: #dbeafe;
  box-shadow: 0 14px 34px rgba(30, 78, 216, 0.14);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

a.apm-inst-card__inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(30, 78, 216, 0.22);
}

/* Blurry photo backdrop */
.apm-inst-card__glow {
  position: absolute;
  inset: -18%;
  z-index: 0;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(28px) saturate(1.35) brightness(1.05);
  transform: scale(1.15);
  opacity: 0.95;
  pointer-events: none;
}

/* Soft blue wash over blur (tắt nền → xanh đậm dưới) */
.apm-inst-card__wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 18%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(219, 234, 254, 0.55) 0%, rgba(59, 130, 246, 0.28) 42%, rgba(29, 78, 216, 0.88) 100%);
}

.apm-inst-card--tone-1 .apm-inst-card__wash {
  background:
    radial-gradient(120% 70% at 50% 18%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(219, 234, 254, 0.55) 0%, rgba(59, 130, 246, 0.28) 42%, rgba(29, 78, 216, 0.9) 100%);
}

.apm-inst-card--tone-2 .apm-inst-card__wash {
  background:
    radial-gradient(120% 70% at 50% 18%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(224, 231, 255, 0.55) 0%, rgba(99, 102, 241, 0.28) 42%, rgba(67, 56, 202, 0.9) 100%);
}

.apm-inst-card--tone-3 .apm-inst-card__wash {
  background:
    radial-gradient(120% 70% at 50% 18%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(207, 250, 254, 0.55) 0%, rgba(34, 211, 238, 0.28) 42%, rgba(8, 145, 178, 0.9) 100%);
}

.apm-inst-card--tone-4 .apm-inst-card__wash {
  background:
    radial-gradient(120% 70% at 50% 18%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(219, 234, 254, 0.55) 0%, rgba(96, 165, 250, 0.3) 42%, rgba(30, 64, 175, 0.9) 100%);
}

.apm-inst-card--tone-5 .apm-inst-card__wash {
  background:
    radial-gradient(120% 70% at 50% 18%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(224, 242, 254, 0.55) 0%, rgba(56, 189, 248, 0.28) 42%, rgba(2, 132, 199, 0.9) 100%);
}

.apm-inst-card__role {
  position: relative;
  z-index: 3;
  display: block;
  max-width: 92%;
  min-height: 2.5em;
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1d4ed8;
  text-align: left;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.apm-inst-card__photo {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 -8px;
  min-height: 280px;
}

.apm-inst-card__photo img {
  display: block;
  width: 118%;
  max-width: none;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  /* Soft cutout feel even with photos that still have a BG */
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.28));
}

.apm-inst-card__foot {
  position: relative;
  z-index: 3;
  margin-top: -6px;
  text-align: left;
  width: 100%;
}

.apm-inst-card__name {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
}

.apm-inst-card__badge {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  min-height: 40px;
}

/* ─── Partners marquee (Academy — không có .apm-home nên cần CSS riêng) ─── */
.apm-academy-partners .apm-partners-marquee {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.apm-academy-partners .apm-partners-marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: apm-academy-partners-scroll 40s linear infinite;
}

.apm-academy-partners .apm-partners-marquee:hover .apm-partners-marquee__track {
  animation-play-state: paused;
}

@keyframes apm-academy-partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.apm-academy-partners .apm-partners-marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 8px;
  opacity: 1;
  filter: none;
  transition: transform 350ms ease;
}

.apm-academy-partners .apm-partners-marquee__item:hover {
  transform: scale(1.06);
}

.apm-academy-partners .apm-partners-marquee__item img,
.apm-academy-partners .apm-partners-marquee__item svg {
  display: block;
  height: 40px;
  width: auto;
  max-width: 140px;
}

.apm-academy-partners__placeholder {
  text-align: center;
  padding: 48px;
  color: var(--apm-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .apm-academy-partners .apm-partners-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    gap: 28px 40px;
  }
}

/* ─── Projects ─── */
.apm-academy-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.apm-academy-project {
  background: #fff;
  border-radius: var(--apm-radius);
  overflow: hidden;
  border: 1px solid var(--apm-border-light);
  box-shadow: var(--apm-shadow-sm);
  transition: transform var(--apm-duration) var(--apm-ease), box-shadow var(--apm-duration) var(--apm-ease);
}

.apm-academy-project:hover {
  transform: translateY(-4px);
  box-shadow: var(--apm-shadow-md);
}

.apm-academy-project__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.apm-academy-project__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.apm-academy-project:hover .apm-academy-project__thumb img {
  transform: scale(1.04);
}

.apm-academy-project__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--apm-primary-light), var(--apm-bg-alt));
}

.apm-academy-project__body {
  padding: 24px;
}

.apm-academy-project__title {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.apm-academy-project__industry {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--apm-primary, #0d5bdb);
}

.apm-academy-project__title a {
  color: var(--apm-text);
  text-decoration: none;
}

.apm-academy-project__title a:hover {
  color: var(--apm-primary);
}

.apm-academy-project__excerpt {
  margin: 0 0 14px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--apm-text-muted);
}

.apm-academy-project__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--apm-primary);
  text-decoration: none;
}

.apm-academy-project__link:hover {
  text-decoration: underline;
}

/* ─── Feedback (khớp Đánh giá trang chủ) ─── */
.apm-academy-feedback {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
}

.apm-academy-feedback::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/bg-mesh.svg') center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.apm-academy-feedback > .apm-container {
  position: relative;
  z-index: 1;
}

.apm-academy-feedback .apm-section__eyebrow {
  color: #b45309;
}

.apm-academy-feedback__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.apm-academy-feedback__item {
  min-width: 0;
}

.apm-academy-feedback__item .apm-testimonial--featured {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  margin: 0;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  border-left: 4px solid #f59e0b;
  border-bottom: 3px solid #f59e0b;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apm-academy-feedback__item .apm-testimonial--featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.apm-academy-feedback .apm-testimonial__quote-mark {
  display: block;
  margin: 0 auto 8px;
  color: #f59e0b;
  opacity: 0.9;
  width: 36px;
  height: 36px;
}

.apm-academy-feedback .apm-testimonial__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
  color: #f59e0b;
}

.apm-academy-feedback .apm-testimonial__stars svg {
  color: #f59e0b;
}

.apm-academy-feedback .apm-testimonial__quote {
  flex: 1;
  margin: 0 0 20px;
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.65;
  color: #475569;
}

.apm-academy-feedback .apm-testimonial__author-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.apm-academy-feedback .apm-testimonial__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #1e4ed8, #2563eb);
  font-size: 0;
  flex-shrink: 0;
}

.apm-academy-feedback .apm-testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apm-academy-feedback .apm-testimonial__author {
  display: block;
  font-style: normal;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}

.apm-academy-feedback .apm-testimonial__company {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
}

/* ─── Contact ─── */
.apm-academy-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.apm-academy-contact__info-title,
.apm-academy-contact__form-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--apm-text);
}

.apm-academy-contact__company {
  margin: 0 0 20px;
}

.apm-academy-contact__list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.apm-academy-contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  color: var(--apm-text-muted);
}

.apm-academy-contact__list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--apm-primary);
}

.apm-academy-contact__list a {
  color: var(--apm-text);
  text-decoration: none;
}

.apm-academy-contact__list a:hover {
  color: var(--apm-primary);
}

.apm-academy-contact__form-wrap {
  padding: 32px;
  background: #fff;
  border-radius: var(--apm-radius);
  border: 1px solid var(--apm-border-light);
  box-shadow: var(--apm-shadow-sm);
}

/* ─── Reveal ─── */
.apm-academy .apm-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.apm-academy .apm-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.apm-academy .apm-reveal--delay-1 { transition-delay: 80ms; }
.apm-academy .apm-reveal--delay-2 { transition-delay: 120ms; }
.apm-academy .apm-reveal--delay-3 { transition-delay: 160ms; }
.apm-academy .apm-reveal--delay-4 { transition-delay: 200ms; }
.apm-academy .apm-reveal--delay-5 { transition-delay: 240ms; }
.apm-academy .apm-reveal--delay-6 { transition-delay: 280ms; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .apm-academy-hero--banner {
    min-height: clamp(360px, 50vh, 480px);
  }

  .apm-academy-feedback__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apm-academy-banner-nav__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .apm-academy-banner-nav--5 .apm-academy-banner-nav__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .apm-academy-banner-nav--5 .apm-academy-banner-nav__list > li:nth-child(5) {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .apm-academy-banner-nav__list > li:nth-child(2n) {
    border-right: 0;
  }

  .apm-academy-banner-nav__list > li:nth-child(-n+2) {
    border-bottom: 1px solid #e2e8f0;
  }

  .apm-academy-banner-nav--5 .apm-academy-banner-nav__list > li:nth-child(-n+4) {
    border-bottom: 1px solid #e2e8f0;
  }

  .apm-academy-intro__grid,
  .apm-academy-why__grid,
  .apm-academy-contact__grid {
    grid-template-columns: 1fr;
  }

  .apm-academy-why__heading {
    margin-bottom: 32px;
  }

  .apm-academy-intro__gallery {
    min-height: 0;
    max-width: 560px;
    margin-inline: auto;
  }

  .apm-academy-intro__shot {
    transform: none;
  }

  .apm-academy-intro__shot img,
  .apm-academy-intro__shot--1 img,
  .apm-academy-intro__shot--3 img {
    height: 140px;
  }

  .apm-academy-training__grid,
  .apm-academy-courses__grid,
  .apm-tc-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apm-academy-courses__top,
  .apm-academy-instructors__top,
  .apm-tc-hero__grid {
    grid-template-columns: 1fr;
  }

  .apm-academy-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .apm-academy-projects__grid,
  .apm-academy-feedback__grid {
    grid-template-columns: 1fr;
  }

  .apm-academy-courses__benefits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .apm-academy-hero__title-box {
    padding: 14px 18px;
  }

  .apm-academy-hero__subtitle-box {
    padding: 12px 16px;
    max-width: 100%;
  }

  .apm-academy-banner-nav__item {
    padding: 18px 12px;
  }

  .apm-academy-training__grid,
  .apm-academy-courses__grid,
  .apm-tc-services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .apm-academy-instructors__controls {
    gap: 10px;
    margin-top: 20px;
  }

  .apm-inst-card__inner {
    min-height: 380px;
    padding: 14px 12px 14px;
  }

  .apm-inst-card__photo {
    min-height: 230px;
  }

  .apm-inst-card__photo img {
    width: 115%;
    height: 240px;
  }

  .apm-inst-card__glow {
    filter: blur(22px) saturate(1.25);
  }

  .apm-academy-stats {
    grid-template-columns: 1fr 1fr;
    padding: 24px 16px;
  }

  .apm-academy-training__header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .apm-academy-training__header-aside {
    max-width: none;
    justify-self: start;
  }

  .apm-academy-courses__top {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .apm-academy-courses__top-aside {
    max-width: none;
    justify-self: start;
  }

  .apm-academy-contact__form-wrap {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apm-academy .apm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .apm-academy-why__item.is-visible .apm-academy-hl {
    animation: none;
  }
}

/* ─── Section atmospheres (ITviec-style patterns, brand blue) ─── */
.apm-academy-training,
.apm-academy-courses,
.apm-academy-partners,
.apm-academy-projects,
.apm-academy-contact {
  position: relative;
  overflow: hidden;
}

.apm-academy-training::before,
.apm-academy-courses::before,
.apm-academy-partners::before,
.apm-academy-projects::before,
.apm-academy-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.apm-academy-training > .apm-container,
.apm-academy-courses > .apm-container,
.apm-academy-partners > .apm-container,
.apm-academy-projects > .apm-container,
.apm-academy-contact > .apm-container {
  position: relative;
  z-index: 1;
}

.apm-academy-training {
  background: #f8fafc;
}

.apm-academy-training::before {
  background: url('../images/bg-mesh.svg') center / cover no-repeat;
  opacity: 0.5;
}

.apm-academy-courses {
  background: #fff;
}

.apm-academy-courses::before {
  background: url('../images/bg-circles.svg') center 115% / min(1100px, 130%) auto no-repeat;
  opacity: 0.09;
}

.apm-academy-partners {
  background: #f8fafc;
}

.apm-academy-partners::before {
  background: url('../images/bg-circles.svg') center bottom / min(1200px, 140%) auto no-repeat;
  opacity: 0.1;
}

.apm-academy-projects {
  background: #fff;
}

.apm-academy-projects::before {
  background: url('../images/bg-mesh.svg') center / cover no-repeat;
  opacity: 0.42;
}

.apm-academy-contact {
  background: linear-gradient(180deg, #eff4ff 0%, #f8fafc 55%, #fff 100%);
}

.apm-academy-contact::before {
  background: url('../images/bg-circles.svg') left -10% top -20% / min(800px, 90%) auto no-repeat;
  opacity: 0.08;
}
