/* Third course CTA — dark horizontal bar, primary accent (replaces green in reference) */

.course-third-cta {
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

.course-third-cta__container {
  padding-top: 0;
  padding-bottom: 0;
}

.course-third-cta__panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.35rem, 3.5vw, 2rem);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 55% 90% at 88% 50%, rgba(51, 122, 183, 0.2) 0%, transparent 58%),
    radial-gradient(ellipse 40% 70% at 8% 30%, rgba(51, 122, 183, 0.12) 0%, transparent 52%),
    linear-gradient(135deg, #0a0c12 0%, #0f1419 48%, #0c1018 100%);
  border: 1px solid rgba(51, 122, 183, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.course-third-cta__glow {
  position: absolute;
  inset-inline-end: 18%;
  top: 50%;
  z-index: 0;
  width: min(220px, 32vw);
  height: min(220px, 32vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51, 122, 183, 0.35) 0%, transparent 68%);
  transform: translateY(-50%);
  pointer-events: none;
}

.course-third-cta__lead {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  min-width: min(100%, 260px);
  align-items: center;
  gap: 0.85rem 1rem;
}

[dir="rtl"] .course-third-cta__lead {
  direction: rtl;
}

.course-third-cta__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
  background: rgba(10, 15, 28, 0.85);
  border: 1px solid rgba(51, 122, 183, 0.35);
  color: var(--color-primary, #337ab7);
  box-shadow: 0 0 20px rgba(51, 122, 183, 0.25);
}

.course-third-cta__icon-svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 2.35;
}

.course-third-cta__copy {
  min-width: 0;
  text-align: start;
}

.course-third-cta__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
  color: #fff;
}

.course-third-cta__highlight {
  color: var(--color-primary, #337ab7);
  text-shadow: 0 0 24px rgba(51, 122, 183, 0.45);
}

.course-third-cta__punct {
  color: #fff;
}

[dir="rtl"] .course-third-cta__punct {
  font-family: inherit;
}

.course-third-cta__sub {
  margin: 0.4rem 0 0;
  font-size: clamp(0.78rem, 1.4vw, 0.88rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

/* Price ticket */
.course-third-cta__price {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  min-height: 3.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 14px;
  background: rgba(18, 22, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.course-third-cta__price-current {
  padding-inline: 0.65rem 0.85rem;
  text-align: start;
}

.course-third-cta__price-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary, #337ab7);
}

.course-third-cta__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0;
}

.course-third-cta__price-num {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.course-third-cta__price-currency {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.course-third-cta__price-divider {
  width: 1px;
  align-self: stretch;
  margin-block: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
}

.course-third-cta__price-was {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  padding-inline: 0.85rem 0.65rem;
}

.course-third-cta__was-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

/* Actions */
.course-third-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.course-third-cta__actions--solo {
  margin-inline-start: auto;
}

.course-third-cta__form {
  margin: 0;
}

.course-third-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.62rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.course-third-cta__btn--primary {
  background: var(--color-primary, #337ab7);
  color: #fff;
  border-color: var(--color-primary, #337ab7);
  box-shadow: none;
}

.course-third-cta__btn--primary:hover {
  background: #286090;
  border-color: #286090;
  color: #fff;
}

.course-third-cta__btn--secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.course-third-cta__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

@media (max-width: 900px) {
  .course-third-cta__panel {
    flex-direction: column;
    align-items: stretch;
  }

  .course-third-cta__lead {
    min-width: 100%;
  }

  .course-third-cta__price {
    width: 100%;
    justify-content: center;
  }

  .course-third-cta__actions {
    width: 100%;
    justify-content: center;
  }

  .course-third-cta__actions--solo {
    margin-inline: 0;
  }

  .course-third-cta__btn,
  .course-third-cta__form {
    flex: 1;
    min-width: 0;
  }

  .course-third-cta__form .course-third-cta__btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .course-third-cta__actions {
    flex-direction: column;
  }

  .course-third-cta__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-third-cta__btn {
    transition: none;
  }
}
