/* =========================================================
   HOME - LEARNING PATHS SECTION
   Premium navy blue / gold design
   Compact version + left aligned premium header
   Wider premium cards
   ========================================================= */

.apm-home-learning-paths {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 7.2vw, 120px) 24px;
  font-family: "Barlow", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(218, 170, 74, 0.12), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(50, 122, 170, 0.20), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(7, 108, 139, 0.22), transparent 40%),
    linear-gradient(90deg, #001f43 0%, #003458 45%, #00506a 100%);
  color: #ffffff;
}

.apm-home-learning-paths::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
  opacity: 0.34;
}

.apm-home-learning-paths::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% -10%;
  height: 450px;
  z-index: -2;
  background: radial-gradient(circle, rgba(0, 103, 145, 0.22), transparent 62%);
  pointer-events: none;
}

.apm-home-learning-bg-orb {
  position: absolute;
  z-index: -2;
  border-radius: 999px;
  pointer-events: none;
}

.apm-home-learning-bg-orb--one {
  width: 320px;
  height: 320px;
  top: -140px;
  right: -90px;
  background: rgba(255, 255, 255, 0.08);
}

.apm-home-learning-bg-orb--two {
  width: 220px;
  height: 220px;
  left: -110px;
  bottom: 60px;
  background: rgba(0, 103, 145, 0.14);
  filter: blur(2px);
}

.apm-home-learning-pattern {
  position: absolute;
  top: 50px;
  left: 48px;
  width: 84px;
  height: 84px;
  z-index: -1;
  opacity: 0.32;
  background-image: radial-gradient(rgba(242, 184, 68, 0.58) 1.35px, transparent 1.35px);
  background-size: 12px 12px;
  pointer-events: none;
}

.apm-home-learning-wrap {
  width: min(1280px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Header */

.apm-home-learning-header {
  max-width: 760px;
  margin: 0 0 clamp(36px, 4vw, 56px);
  text-align: left;
}

.apm-home-learning-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: auto;
  padding: 0;
  margin-bottom: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #f2b844;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.apm-home-learning-eyebrow::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 2px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #f2b844;
}

.apm-home-learning-title {
  max-width: 620px;
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(42px, 3.15vw, 56px);
  font-weight: 850;
  line-height: 0.98;
  text-align: left;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.apm-home-learning-subtitle {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.3vw, 17.5px);
  font-weight: 450;
  line-height: 1.58;
  text-align: left;
}

.apm-home-learning-line {
  width: 78px;
  height: 3px;
  margin: 26px 0 0;
  border-radius: 999px;
  background: #f2b844;
}

/* Grid */

.apm-home-learning-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* Card */

.apm-home-learning-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 23px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.apm-home-learning-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 10%, rgba(218, 170, 74, 0.16), transparent 34%),
    radial-gradient(circle at 88% 110%, rgba(89, 145, 255, 0.18), transparent 38%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.apm-home-learning-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  opacity: 0.45;
}

.apm-home-learning-card:hover {
  transform: translateY(-7px);
  border-color: rgba(218, 170, 74, 0.48);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.07);
  box-shadow:
    0 32px 82px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(218, 170, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.apm-home-learning-card:hover::before {
  opacity: 1;
}

.apm-home-learning-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.apm-home-learning-number {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.apm-home-learning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 17px;
  color: #f0c46a;
  background:
    linear-gradient(145deg, rgba(218, 170, 74, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(218, 170, 74, 0.24);
  box-shadow:
    0 15px 32px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.apm-home-learning-icon svg {
  width: 29px;
  height: 29px;
}

.apm-home-learning-card-body {
  flex: 1;
}

.apm-home-learning-card-title {
  margin: 0 0 11px;
  color: #ffffff;
  font-size: 20.5px;
  font-weight: 820;
  line-height: 1.14;
}

.apm-home-learning-card-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 430;
  line-height: 1.52;
}

/* Card CTA */

.apm-home-learning-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 37px;
  margin-top: 21px;
  padding: 8px 15px;
  border-radius: 999px;
  color: #082628;
  background: linear-gradient(135deg, #d9a84f 0%, #f1ca6d 100%);
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.apm-home-learning-link:hover {
  transform: translateY(-2px);
  color: #082628;
  filter: brightness(1.04);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.apm-home-learning-link span {
  display: inline-flex;
  transition: transform 0.22s ease;
}

.apm-home-learning-link:hover span {
  transform: translateX(3px);
}

/* Main CTA */

.apm-home-learning-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.apm-home-learning-main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  color: #ffffff;
  background:
    /*linear-gradient(135deg, rgba(7, 19, 48, 0.94), rgba(15, 47, 108, 0.94));*/
      linear-gradient(135deg, #F0B347 0%, #F8C96A 50%, #D99A2B 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.apm-home-learning-main-cta:hover {
  transform: translateY(-3px);
  color: #ffffff;
  border-color: rgba(218, 170, 74, 0.42);
  background:
    linear-gradient(135deg, rgba(10, 28, 72, 0.98), rgba(22, 67, 148, 0.98));
  box-shadow:
    0 24px 66px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(218, 170, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.apm-home-learning-main-cta span {
  display: inline-flex;
  transition: transform 0.24s ease;
}

.apm-home-learning-main-cta:hover span {
  transform: translateX(4px);
}

/* Accessibility */

.apm-home-learning-link:focus-visible,
.apm-home-learning-main-cta:focus-visible {
  outline: 3px solid rgba(241, 202, 109, 0.72);
  outline-offset: 4px;
}

/* Tablet */

@media (max-width: 1100px) {
  .apm-home-learning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apm-home-learning-card {
    min-height: 255px;
  }
}

/* Mobile */

@media (max-width: 720px) {
  .apm-home-learning-paths {
    padding: 62px 18px;
  }

  .apm-home-learning-header {
    max-width: 100%;
    margin-bottom: 30px;
    text-align: left;
  }

  .apm-home-learning-eyebrow {
    margin-bottom: 20px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .apm-home-learning-eyebrow::before {
    width: 28px;
    flex-basis: 28px;
  }

  .apm-home-learning-title {
    max-width: 100%;
    font-size: clamp(36px, 10.5vw, 48px);
    line-height: 1.02;
    text-align: left;
  }

  .apm-home-learning-title br {
    display: none;
  }

  .apm-home-learning-subtitle {
    max-width: 100%;
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.52;
    text-align: left;
  }

  .apm-home-learning-line {
    width: 64px;
    margin-top: 24px;
  }

  .apm-home-learning-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .apm-home-learning-card {
    min-height: auto;
    padding: 20px;
    border-radius: 22px;
  }

  .apm-home-learning-card-top {
    margin-bottom: 22px;
  }

  .apm-home-learning-card-title {
    font-size: 20px;
  }

  .apm-home-learning-card-text {
    font-size: 15px;
  }

  .apm-home-learning-link {
    margin-top: 20px;
  }

  .apm-home-learning-main-cta {
    width: 100%;
    max-width: 360px;
  }

  .apm-home-learning-pattern {
    top: 30px;
    left: 18px;
    opacity: 0.24;
  }

  .apm-home-learning-bg-orb--one {
    width: 240px;
    height: 240px;
    top: -115px;
    right: -120px;
  }
}

/* Small mobile */

@media (max-width: 420px) {
  .apm-home-learning-paths {
    padding: 56px 16px;
  }

  .apm-home-learning-eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.14em;
  }

  .apm-home-learning-title {
    font-size: 36px;
  }

  .apm-home-learning-card {
    padding: 18px;
  }

  .apm-home-learning-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
}