/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Astra Child Theme for AgilePM.Education
Author: AgilePM.Education
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* Learning path page - Learning paths */
/* 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-learning-paths,
.apm-learning-paths * {
  box-sizing: border-box;
}

.apm-learning-paths {
  position: relative;
  overflow: hidden;
  padding: 90px 6vw;
  background:
    radial-gradient(circle at 8% 8%, rgba(217, 154, 74, 0.16) 0%, rgba(217, 154, 74, 0) 25%),
    radial-gradient(circle at 92% 20%, rgba(120, 200, 210, 0.14) 0%, rgba(120, 200, 210, 0) 30%),
    linear-gradient(135deg, #156271 0%, #14707F 52%, #104E5A 100%);
  color: #E7ECF7;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.01em;
}

.apm-learning-paths::before {
  content: "";
  position: absolute;
  top: -190px;
  right: -180px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.apm-learning-paths::after {
  content: "";
  position: absolute;
  left: 2%;
  top: 80px;
  width: 130px;
  height: 130px;
  background-image: radial-gradient(rgba(217, 154, 74, 0.40) 2px, transparent 2px);
  background-size: 18px 18px;
  z-index: 0;
}

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

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

.apm-learning-eyebrow {
  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.08);
  color: #F0D9B8;
  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-learning-title {
  margin: 0;
  color: #FFFFFF !important;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: clamp(40px, 4vw, 66px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.045em;
}

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

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

.apm-path-list {
  display: grid;
  gap: 18px;
}

.apm-path-card {
  display: grid;
  grid-template-columns: 330px 1fr 210px;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(221, 229, 242, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 16px 42px 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-path-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 154, 74, 0.55);
  box-shadow: 0 24px 58px rgba(11, 22, 63, 0.13);
}

.apm-path-info {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
  padding-right: 22px;
  border-right: 1px solid #DDE5F2;
}

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

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

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

.apm-path-desc {
  margin: 0;
  color: #0B163F;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.54;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.apm-step-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 14px;
  align-items: start;
}

.apm-step {
  position: relative;
  text-align: center;
}

.apm-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 26px;
  color: #0B163F;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 900;
  text-shadow: 1px 0 0 #0B163F;
}

.apm-step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #F1F5FB;
  color: #0B163F;
}

.apm-step:nth-child(2n) .apm-step-circle {
  background: rgba(217, 154, 74, 0.13);
  color: #D99A4A;
}

.apm-step-title {
  display: block;
  color: #0B163F;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.apm-path-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px 20px;
  border-radius: 25px;
  background: #03152D;
  color: #FFFFFF !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  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;
}

.apm-path-cta:hover {
  transform: translateY(-2px);
  background: #1F94A6;
  color: #FFFFFF;
}

.apm-guidance-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 34px auto 0;
  padding: 18px 26px;
  max-width: 660px;
  border: 1px solid rgba(221, 229, 242, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(11, 22, 63, 0.07);
}

.apm-guidance-text {
  margin: 0;
  color: #25334D;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.48;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.apm-guidance-text strong {
  display: block;
  color: #0B163F;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.apm-guidance-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 2px solid #0B163F;
  border-radius: 10px;
  color: #0B163F;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.apm-guidance-link:hover {
  background: #0B163F;
  color: #FFFFFF;
}

@media (max-width: 1200px) {
  .apm-path-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .apm-path-info {
    border-right: none;
    border-bottom: 1px solid #DDE5F2;
    padding-right: 0;
    padding-bottom: 22px;
  }

  .apm-path-cta {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .apm-learning-paths {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 64px 0 !important;
    overflow-x: hidden !important;
  }

  .apm-learning-wrap {
    width: 100% !important;
    max-width: none !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    margin: 0 auto !important;
  }

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

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

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

  .apm-learning-title {
    font-size: clamp(38px, 11vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

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

  .apm-path-card {
    padding: 24px;
  }

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

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

  .apm-path-name {
    font-size: 22px;
    line-height: 1.22;
  }

  .apm-path-desc {
    font-size: 16px;
    line-height: 1.5;
  }

  .apm-step-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .apm-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: center;
    text-align: left;
    padding: 12px;
    border: 1px solid #DDE5F2;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
  }

  .apm-step:not(:last-child)::after {
    display: none;
  }

  .apm-step-circle {
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .apm-step-title {
    font-size: 15px;
    line-height: 1.3;
  }

  .apm-guidance-box {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .apm-guidance-link {
    justify-content: center;
  }
}