﻿/* Last course CTA — dot pattern band, flush to footer */

.course-cta-last {
  width: 100%;
  margin: 0;
}

.course-cta-last--flush-footer {
  margin-bottom: 0 !important;
}

.course-cta-last__shell {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4.25rem) clamp(1.25rem, 4vw, 2rem) 0;
  background: transparent;
  border: none;
}

/* Primary dot grid — full width, no white fill */
.course-cta-last__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: transparent;
  opacity: 0.22;
  background-image: radial-gradient(var(--cta-brand, #337ab7) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  background-position: center;
}

.course-cta-last[data-variant="sale"] .course-cta-last__pattern {
  opacity: 0.28;
}

.course-cta-last__inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin-inline: auto;
  padding: 0 clamp(0.5rem, 2vw, 1rem) clamp(2.25rem, 4.5vw, 3.25rem);
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.course-cta-last__head {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.course-cta-last__title {
  margin: 0;
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--cta-ink, #0f2744);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.course-cta-last__accent {
  display: block;
  width: clamp(3.5rem, 12vw, 5rem);
  height: 4px;
  margin: clamp(0.85rem, 2vw, 1.1rem) auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #7ec8ef 0%, #337ab7 100%);
  box-shadow: 0 0 14px rgba(51, 122, 183, 0.4);
}

.course-cta-last__subs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2rem);
}

.course-cta-last__sub {
  margin: 0;
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.65;
  color: #475569;
}

.course-cta-last__sub--muted {
  color: #64748b;
}

/* Sale countdown */
.course-cta-last__timer {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.35rem, 1vw, 0.55rem);
  margin-bottom: clamp(1.35rem, 3vw, 1.75rem);
  padding: 0.5rem 0.65rem;
  border-radius: 14px;
  background: rgba(51, 122, 183, 0.06);
  border: 1px solid rgba(51, 122, 183, 0.18);
}

.course-cta-last__unit {
  display: flex;
  min-width: clamp(3.25rem, 8vw, 3.85rem);
  flex-direction: column;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(51, 122, 183, 0.28);
  background: rgba(51, 122, 183, 0.08);
}

.course-cta-last__unit--active {
  border-color: rgba(51, 122, 183, 0.5);
  background: rgba(51, 122, 183, 0.16);
  box-shadow: 0 0 0 1px rgba(51, 122, 183, 0.12);
}

.course-cta-last__unit-value {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--cta-brand, #337ab7);
}

.course-cta-last__unit-label {
  margin-top: 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.course-cta-last__sep {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  padding-inline: 0.1rem;
}

.course-cta-last__sep span {
  display: block;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 1px;
  background: rgba(51, 122, 183, 0.45);
}

.course-cta-last__timer-ended {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cta-brand, #337ab7);
}

.course-cta-last__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.15rem;
}

.course-cta-last__enroll-form {
  margin: 0;
}

.course-cta-last__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.75rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.course-cta-last__btn-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.course-cta-last__btn--primary {
  background: linear-gradient(180deg, #3d86c4 0%, var(--cta-brand, #337ab7) 50%, #2a6a9e 100%);
  color: #fff;
  border-color: #2a6a9e;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 28px rgba(51, 122, 183, 0.38);
}

.course-cta-last__btn--primary:hover {
  background: linear-gradient(180deg, #3580bd 0%, var(--cta-brand-dark, #286090) 50%, #245a82 100%);
  border-color: var(--cta-brand-dark, #286090);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 14px 32px rgba(51, 122, 183, 0.45);
}

.course-cta-last__btn--primary:active {
  transform: translateY(0);
}

.course-cta-last__btn--ghost {
  background: transparent;
  color: var(--cta-brand, #337ab7);
  border-color: rgba(51, 122, 183, 0.45);
  box-shadow: none;
}

.course-cta-last__btn--ghost:hover {
  background: rgba(51, 122, 183, 0.08);
  color: var(--cta-brand-dark, #286090);
  border-color: var(--cta-brand, #337ab7);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(51, 122, 183, 0.14);
}

.course-cta-last__wa-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: #25d366;
}

[dir="rtl"] .course-cta-last__btn {
  flex-direction: row-reverse;
}

@media (max-width: 540px) {
  .course-cta-last__actions {
    flex-direction: column;
    width: 100%;
  }

  .course-cta-last__btn,
  .course-cta-last__enroll-form {
    width: 100%;
  }

  .course-cta-last__enroll-form .course-cta-last__btn {
    width: 100%;
  }
}

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

  .course-cta-last__btn:hover {
    transform: none;
  }
}
