/* ===== 04-ctfl.css ===== */
.ex-home .ex-ctfl-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.95fr);
  align-items: center;
  gap: clamp(60px, 8vw, 108px);
}

.ex-home .ex-course-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 22px;
  color: #7e92af;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ex-home .ex-course-kicker span {
  color: #f0787c;
}

.ex-home .ex-ctfl-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 5.2vw, 4.8rem);
  font-weight: 880;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.ex-home .ex-ctfl-copy > p {
  max-width: 650px;
  margin: 24px 0 0;
  color: #a7b6ca;
  font-size: 1.02rem;
  line-height: 1.72;
}

.ex-home .ex-ctfl-actions {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.ex-home .ex-ctfl-primary-action {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ex-home .ex-ctfl-primary-action > span {
  color: #7f92ae;
  font-size: 0.66rem;
  line-height: 1.45;
}

.ex-home .ex-ctfl-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 780;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.36);
  text-underline-offset: 5px;
}

.ex-home .ex-ctfl-panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 0;
}

.ex-home .ex-ctfl-panel-head small,
.ex-home .ex-ctfl-panel-head strong,
.ex-home .ex-ctfl-panel-head span {
  display: block;
}

.ex-home .ex-ctfl-panel-head small {
  color: #7591ba;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.ex-home .ex-ctfl-panel-head strong {
  margin-top: 2px;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 2.65rem;
  font-weight: 880;
  letter-spacing: -0.06em;
  line-height: 1;
}

.ex-home .ex-ctfl-panel-head span {
  margin-top: 5px;
  color: #8ea2c0;
  font-size: 0.68rem;
}

.ex-home .ex-ctfl-panel-head img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: saturate(0.82) brightness(1.1);
}

.ex-home .ex-ctfl-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-block: 16px 18px;
  border-block: 1px solid var(--ex-line);
}

.ex-home .ex-ctfl-metrics > div {
  padding: 18px 16px;
  border-right: 1px solid var(--ex-line);
}

.ex-home .ex-ctfl-metrics > div:last-child {
  border-right: 0;
}

.ex-home .ex-ctfl-metrics strong,
.ex-home .ex-ctfl-metrics span {
  display: block;
}

.ex-home .ex-ctfl-metrics strong {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.75rem;
  font-weight: 820;
  letter-spacing: -0.05em;
}

.ex-home .ex-ctfl-metrics span {
  margin-top: 3px;
  color: #8195b2;
  font-size: 0.65rem;
}

.ex-home .ex-ctfl-panel ul {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #b9c6d9;
  font-size: 0.72rem;
}

.ex-home .ex-ctfl-panel li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ex-home .ex-ctfl-panel li svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #6fa7ff;
}

.ex-home .ex-ctfl-section {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(255, 255, 255, 0.12),
      transparent 27%
    ),
    linear-gradient(120deg, #dc3935 0%, #b22121 44%, #641315 100%);
  border-block: 1px solid var(--ex-line);
  border-color: rgba(255, 255, 255, 0.16);
}

.ex-home .ex-ctfl-lines {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(90deg, transparent, black 35%, black 100%);
}

.ex-home .ex-course-kicker,
.ex-home .ex-course-kicker span,
.ex-home .ex-ctfl-copy > p,
.ex-home .ex-ctfl-primary-action > span {
  color: rgba(255, 255, 255, 0.82);
}

.ex-home .ex-course-kicker i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

.ex-home .ex-ctfl-copy h2 em {
  color: #fff;
  text-shadow: 0 8px 30px rgba(75, 4, 8, 0.24);
}

.ex-home .ex-ctfl-section .ex-button {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 14px 34px rgba(77, 6, 10, 0.24);
  color: #9e1b20;
}

.ex-home .ex-ctfl-section .ex-button:hover {
  border-color: #fff;
  background: #f7f4f1;
}

.ex-home .ex-ctfl-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(119, 161, 225, 0.3);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(9, 32, 65, 0.96),
    rgba(4, 14, 31, 0.98)
  );
  box-shadow: 0 38px 90px rgba(65, 4, 8, 0.38);
  border-color: rgba(255, 255, 255, 0.26);
}

@media (max-width: 1024px) {
  .ex-home .ex-ctfl-copy,
  .ex-home .ex-ctfl-panel {
    width: min(100%, 720px);
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .ex-home .ex-ctfl-layout {
    gap: 46px;
  }

  .ex-home .ex-course-kicker {
    font-size: 0.6rem;
  }

  .ex-home .ex-ctfl-actions {
    gap: 18px;
  }

  .ex-home .ex-ctfl-primary-action {
    align-items: stretch;
    flex-direction: column;
  }

  .ex-home .ex-ctfl-primary-action .ex-button {
    width: 100%;
  }

  .ex-home .ex-ctfl-primary-action > span {
    text-align: center;
  }

  .ex-home .ex-ctfl-secondary-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .ex-home .ex-ctfl-panel {
    padding: 21px;
  }

  .ex-home .ex-ctfl-panel-head strong {
    font-size: 2.2rem;
  }

  .ex-home .ex-ctfl-panel-head img {
    width: 64px;
    height: 64px;
  }

  .ex-home .ex-ctfl-metrics > div {
    padding: 15px 10px;
  }

  .ex-home .ex-ctfl-panel ul {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .ex-home .ex-ctfl-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
@media (max-width: 480px) {
  .ex-home .ex-ctfl-panel-head {
    gap: 16px;
  }
  .ex-home .ex-ctfl-panel-head strong {
    font-size: 1.9rem;
  }
  .ex-home .ex-ctfl-metrics strong {
    font-size: 1.45rem;
  }
}
