/* Courses - Explore Agile training areas - Section */
/* Premium font system: Sora + Inter */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Sora:wght@500;600;700;800&display=swap');

.apm-training-areas {
  position: relative;
  overflow: hidden;
  padding: 90px 6vw;
  background:
    radial-gradient(circle at 8% 6%, rgba(217, 154, 74, 0.16) 0%, rgba(217, 154, 74, 0) 26%),
    radial-gradient(circle at 92% 94%, rgba(11, 22, 63, 0.07) 0%, rgba(11, 22, 63, 0) 28%),
    linear-gradient(135deg, #FFFDF8 0%, #FBF4EA 48%, #F6EBDD 100%);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #10182F;
  letter-spacing: -0.01em;
}

.apm-training-areas,
.apm-training-areas *,
.apm-training-areas *::before,
.apm-training-areas *::after {
  box-sizing: border-box;
}

.apm-training-areas::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(11, 22, 63, 0.14);
  box-shadow: 0 0 0 28px rgba(217, 154, 74, 0.06);
}

.apm-training-areas::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -190px;
  width: 440px;
  height: 440px;
  background: rgba(11, 22, 63, 0.95);
  border-radius: 48% 0 0 0;
  z-index: 0;
  opacity: 0.08;
}

.apm-training-wrap {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.apm-section-header {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.apm-eyebrow-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(217, 154, 74, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0B163F;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.apm-section-title {
  margin: 0;
  color: #0B163F;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.apm-section-subtitle {
  max-width: 680px;
  margin: 18px auto 0;
  color: #222 !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.apm-section-line {
  width: 72px;
  height: 4px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #D99A4A, #E8B46C);
}

.apm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.apm-area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 30px;
  border: 1px solid rgba(217, 154, 74, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(11, 22, 63, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.apm-area-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 154, 74, 0.55);
  box-shadow: 0 24px 58px rgba(11, 22, 63, 0.13);
}

.apm-card-top {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.apm-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #F1F5FB;
  color: #0B163F;
}

.apm-area-card:nth-child(2n) .apm-card-icon,
.apm-area-card:nth-child(3n) .apm-card-icon {
  background: rgba(217, 154, 74, 0.14);
  color: #D99A4A;
}

.apm-card-title {
  margin: 0;
  color: #0B163F;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.apm-card-mini-line {
  width: 34px;
  height: 3px;
  margin: 0 0 18px 94px;
  border-radius: 999px;
  background: #D99A4A;
}

.apm-card-desc {
  min-height: 88px;
  margin: 0 0 22px;
  color: #000;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.58;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.apm-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 22px 0 0;
  border-top: 1px solid #E7D7C2;
}

.apm-topic {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #000;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.apm-topic::after {
  content: "•";
  color: #D99A4A;
  font-weight: 800;
}

.apm-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin: auto auto 0 auto;
  padding: 14px 24px;
  border: 2px solid #0B163F;
  border-radius: 999px;
  background: #0B163F;
  color: #FFFFFF !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.apm-card-cta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  transition: all 0.25s ease;
}

.apm-card-cta:hover {
  background: #D99A4A;
  border-color: #D99A4A;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(11, 22, 63, 0.18);
}

.apm-card-cta:hover span {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

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

  .apm-area-card {
    min-height: 360px;
  }
}

@media (max-width: 767px) {
  .apm-training-areas {
    padding: 64px 22px;
  }

  .apm-card-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .apm-section-header {
    margin-bottom: 36px;
    text-align: left;
  }

  .apm-eyebrow-small {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .apm-section-title {
    font-size: clamp(36px, 10.5vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .apm-section-line {
    margin-left: 0;
  }

  .apm-section-subtitle {
    font-size: 18px;
    line-height: 1.58;
  }

  .apm-area-card {
    min-height: auto;
    padding: 24px;
  }

  .apm-card-top {
    grid-template-columns: 62px 1fr;
    gap: 16px;
  }

  .apm-card-icon {
    width: 62px;
    height: 62px;
  }

  .apm-card-title {
    font-size: 22px;
    line-height: 1.22;
  }

  .apm-card-mini-line {
    margin-left: 78px;
  }

  .apm-card-desc {
    min-height: auto;
    font-size: 16px;
    line-height: 1.56;
  }

  .apm-topic {
    font-size: 14px;
  }

  .apm-card-cta {
    width: 100%;
    font-size: 13px;
    letter-spacing: 0.04em;
  }
}