﻿.courses-features {
  margin-top: 94px;
  background: radial-gradient(circle at 12% 8%, #2a3352 0%, #1b2234 38%, #171d2d 100%);
  color: #f3f5fa;
  min-height: calc(100vh - 94px);
  padding: 68px 6% 130px;
  position: relative;
  overflow: hidden;
}

/* Keep CTA banner strictly below the features section on courses page */
.about-cta {
  margin-top: 0 !important;
  position: relative;
  z-index: 2;
}

.about-cta-trophy {
  top: auto !important;
  bottom: 10px !important;
}

.courses-features::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: .35;
  pointer-events: none;
}

.courses-features::after {
  content: "";
  position: absolute;
  inset: -18% -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 34%),
    radial-gradient(circle at 80% 15%, rgba(59, 130, 246, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 62% 80%, rgba(45, 212, 191, 0.07) 0%, transparent 32%);
  animation: coursesBgPulse 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.courses-bg-anim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#coursesParticles {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.courses-features-head,
.courses-features-grid {
  position: relative;
  z-index: 1;
}

.courses-features-head {
  max-width: 1200px;
  margin: 0 auto 38px;
  text-align: center;
}

.courses-kicker {
  display: inline-block;
  color: #f1d100;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.courses-features-head h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.12;
  font-weight: 600;
  white-space: nowrap;
}

.courses-features-head h1 span {
  color: #f1d100;
}

.courses-features-head p {
  margin: 10px auto 0;
  max-width: 640px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: #c3cadd;
}

.courses-features-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.courses-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-height: 182px;
  padding: 34px 26px;
}

.courses-feature-item:not(:nth-child(4n)) {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.courses-feature-item:nth-child(n + 5) {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.courses-feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #f1d100;
  font-size: 31px;
  flex-shrink: 0;
}

.courses-feature-item h3 {
  margin: 2px 0 8px;
  color: #f4f6fb;
  font-size: clamp(20px, 1.55vw, 20px);
  font-weight: 700;
  font-family: "Manrope", sans-serif;
}

.courses-feature-item p {
  margin: 0;
  color: #9ea7bc;
  font-size: clamp(12px, 1.1vw, 12px);
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .courses-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-feature-item:nth-child(n + 5) {
    border-top: none;
  }

  .courses-feature-item:not(:nth-child(4n)) {
    border-right: none;
  }

  .courses-feature-item:not(:nth-child(2n)) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .courses-feature-item:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 680px) {
  .courses-features {
    min-height: auto;
    padding: 52px 5% 96px;
  }

  .courses-features-head {
    margin-bottom: 28px;
  }

  .courses-features-head h1 {
    white-space: normal;
  }

  .courses-features-grid {
    grid-template-columns: 1fr;
  }

  .courses-feature-item {
    min-height: auto;
    padding: 24px 16px;
    border-right: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .courses-feature-item:first-child {
    border-top: none;
  }

}

@keyframes coursesBgPulse {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: .85; }
  100% { transform: translate3d(-1.5%, 1.2%, 0) scale(1.04); opacity: 1; }
}
@media (max-width:720px) {
  .about-cta-trophy { display: none; }
}

