/* ============================================================
   home-cursos-promo.css
   Atalho do Mes da Capacitacao 40% off na home.
   Usa containers/tag/titulo padrao do site. Cards identicos aos
   de /mes-da-capacitacao-2026.
   ============================================================ */

.home-cursos-promo {
  padding: 110px 0;
  background: var(--off-white, #f0f2ff);
  position: relative;
}

/* ── Header (pill em cima + linha [titulo | setas]) ─────── */
.home-cursos-promo__head {
  margin-bottom: 48px;
}

.home-cursos-promo__head .tag-solucoes {
  margin-bottom: 16px;
}

.home-cursos-promo__head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.home-cursos-promo__head-arrows {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.home-cursos-promo__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  max-width: 720px;
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink, #171717);
}

.home-cursos-promo__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent, #4a6cf7), var(--brand-navy, #011072));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

@media (max-width: 760px) {
  .home-cursos-promo__head {
    margin-bottom: 28px;
  }

  .home-cursos-promo__head-row {
    align-items: center;
    gap: 12px;
  }

  .home-cursos-promo__title {
    font-size: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
  }

  .home-cursos-promo__title-l1 {
    display: block;
  }

  .home-cursos-promo__arrow {
    width: 36px;
    height: 36px;
  }

  .home-cursos-promo__arrow svg {
    width: 14px;
    height: 14px;
  }

  .home-cursos-promo__head-arrows {
    gap: 8px;
  }
}

/* ── Setas do carrossel ──────────────────────────────────── */
.home-cursos-promo__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(8, 16, 50, 0.12);
  color: var(--brand-navy, #011072);
  cursor: pointer;
  transition: background-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-cursos-promo__arrow:hover {
  border-color: rgba(74, 108, 247, 0.42);
  color: var(--accent, #4a6cf7);
  box-shadow: 0 8px 20px rgba(1, 16, 114, 0.1);
  transform: translateY(-2px);
}

.home-cursos-promo__arrow:focus-visible {
  outline: 2px solid var(--accent, #4a6cf7);
  outline-offset: 3px;
}

.home-cursos-promo__arrow:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.home-cursos-promo__arrow svg {
  width: 18px;
  height: 18px;
}

/* ── Carrossel (fora do container, bleed na direita) ────── */
.home-cursos-promo__carousel {
  position: relative;
}

.home-cursos-promo__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(28px, calc((100vw - 1320px) / 2 + 28px));
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  list-style: none;
  margin: 0;
  /* left alinhado com container; right bleed ate a borda da viewport */
  /* padding-bottom generoso pra hover shadow nao ser cortada pela proxima secao */
  padding: 8px 0 64px max(28px, calc((100vw - 1320px) / 2 + 28px));
}

.home-cursos-promo__track::-webkit-scrollbar {
  display: none;
}

.home-cursos-promo__card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  list-style: none;
}

/* ultima carta com espaco respiravel na direita */
.home-cursos-promo__card:last-child {
  margin-right: 28px;
}

@media (max-width: 760px) {
  .home-cursos-promo__card {
    flex: 0 0 86%;
    max-width: 320px;
  }

  .home-cursos-promo__track {
    gap: 14px;
  }
}

/* ── Disclaimer ──────────────────────────────────────────── */
.home-cursos-promo__disclaimer {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gray-700, #4B5563);
}

.home-cursos-promo__disclaimer::before {
  content: '*';
  color: var(--accent, #4a6cf7);
  margin-right: 4px;
  font-weight: 700;
}

/* ── Card visual: clone fiel das classes .mcap-curso ───── */
.hcp-curso {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(8, 16, 50, 0.08);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(8, 16, 50, 0.04);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  overflow: hidden;
  isolation: isolate;
}

.hcp-curso > .hcp-curso__title,
.hcp-curso > .hcp-curso__meta {
  padding-left: 22px;
  padding-right: 22px;
}

.hcp-curso > .hcp-curso__title {
  padding-top: 20px;
}

.hcp-curso > .hcp-curso__cta {
  margin: auto 22px 18px;
  width: auto;
}

.hcp-curso__media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  background: rgba(8, 16, 50, 0.04);
  border-bottom: 1px solid rgba(8, 16, 50, 0.08);
  overflow: hidden;
}

.hcp-curso__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hcp-curso__media-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(1, 16, 114, 0.55) 0%,
    rgba(1, 16, 114, 0.3) 22%,
    rgba(1, 16, 114, 0) 48%
  );
  pointer-events: none;
  z-index: 1;
}

.hcp-curso::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74, 108, 247, 0.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 0;
}

.hcp-curso:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 108, 247, 0.42);
  box-shadow: 0 22px 48px rgba(8, 16, 50, 0.1), 0 6px 14px rgba(8, 16, 50, 0.04);
}

.hcp-curso:hover::before {
  opacity: 1;
}

.hcp-curso__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #011072;
  border-radius: 9999px;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(8, 16, 50, 0.18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcp-curso__title {
  position: relative;
  z-index: 1;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 0 0 16px;
  color: #011072;
  min-height: 2.4em;
}

.hcp-curso__meta {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.hcp-curso__meta li {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(8, 16, 50, 0.07);
}

.hcp-curso__meta li:first-child {
  padding-top: 4px;
}

.hcp-curso__meta li:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.hcp-curso__meta-icon {
  color: #4a6cf7;
  flex-shrink: 0;
}

.hcp-curso__meta-value {
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  color: #1a1f2e;
}

.hcp-curso__discount {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-block;
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(8, 16, 50, 0.55);
  line-height: 1.1;
  white-space: nowrap;
}

.hcp-curso__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  background: #011072;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(1, 16, 114, 0.18);
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hcp-curso__cta:hover {
  background: #4a6cf7;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(74, 108, 247, 0.36);
}

.hcp-curso__cta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.hcp-curso__cta-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.hcp-curso__cta:hover .hcp-curso__cta-arrow {
  transform: translateX(3px);
}
