/* ============================================================
  CURSOS-CURTA-DURACAO.CSS — página Cursos de Curta Duração
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero {
  position: relative;
  min-height: 72vh;
  max-height: none;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-slides,
.hero-slide {
  min-height: inherit;
}

.hero-slides {
  display: flex;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  z-index: 0;
  flex: 0 0 100%;
}

.hero-banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
}

.hero-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-slide::before {
  background: radial-gradient(circle at 10% 20%, rgba(0, 176, 240, 0.2), transparent 36%);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-slide::after {
  background: linear-gradient(100deg, rgba(4, 16, 26, 0.76), rgba(4, 16, 26, 0.34) 45%, rgba(4, 16, 26, 0.55));
  z-index: -1;
}

.hero-content {
  min-height: inherit;
  display: grid;
  align-content: center;
  gap: .85rem;
  color: #edf8ff;
  padding-block: 7.8rem 6rem;
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.08;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  text-wrap: balance;
}

.hero p {
  margin: 0;
  max-width: 58ch;
}

.hero .organizacao-hero-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  text-shadow: 0 4px 32px rgba(0, 0, 0, .38);
}

.hero .organizacao-hero-sub {
  margin: .6rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 5.8vw, 4.5rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 0.5rem;
}

.dot {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(237, 248, 255, 0.4);
}

.dot.is-active {
  background: var(--primary);
}

.hero-social {
  position: absolute;
  right: max(1rem, calc((100vw - 1200px) / 2 + 1rem));
  left: auto;
  bottom: 1.1rem;
  display: flex;
  gap: 0.55rem;
  z-index: 2;
}

.hero .hero-social {
  right: max(1rem, calc((100vw - 1200px) / 2 + 1rem));
  left: auto;
  bottom: 1.1rem;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(237, 248, 255, 0.45);
  background: rgba(4, 16, 26, 0.45);
  color: #edf8ff;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.hero-social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-social-link:hover {
  transform: translateY(-2px);
}

.hero-social-fb:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.hero-social-yt:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.hero-social-wa:hover {
  background: #25d366;
  border-color: #25d366;
}

.hero-social-ig:hover {
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 52%, #6228d7 100%);
  border-color: #ee2a7b;
}

#cursos-curta-duracao {
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 176, 240, .14), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(0, 120, 182, .12), transparent 30%),
    linear-gradient(180deg, #f3f9fd 0%, #ffffff 38%);
}

.curta-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
}

.curta-grid > .curta-card {
  grid-column: span 2;
}

.curta-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(120, 188, 218, 0.32);
  min-height: 430px;
  background: #0d2434;
  box-shadow: 0 18px 38px rgba(1, 8, 14, 0.2);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.curta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  filter: none;
  image-rendering: auto;
  transform: scale(1);
  transition: transform 0.45s ease;
}

.curta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 14, 23, 0.45) 10%, rgba(4, 14, 23, 0.06) 58%);
}

.curta-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  z-index: 3;
  background: linear-gradient(90deg, #00b0f0, #00739f);
}

.curta-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.34rem;
  padding: 1rem 1rem 1.35rem;
  text-align: left;
  background: linear-gradient(180deg, rgba(3, 17, 28, .04), rgba(3, 17, 28, .46) 54%, rgba(3, 17, 28, .74) 100%);
}

.curta-overlay h3 {
  margin: .34rem 0 .72rem;
  font-family: "Space Grotesk", sans-serif;
  color: #f3fbff;
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  line-height: 1.28;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.48);
}

.curta-overlay p {
  margin: 0;
  max-width: 38ch;
  color: rgba(243, 251, 255, 0.92);
  font-size: 0.87rem;
  line-height: 1.38;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.curta-status {
  display: inline-flex;
  align-items: center;
  position: absolute;
  top: .9rem;
  right: .9rem;
  z-index: 4;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(163, 225, 255, 0.62);
  background: rgba(6, 28, 42, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ddf4ff;
}

.curta-sigla {
  margin-top: .2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 1.52rem;
  padding: 0 .45rem;
  border-radius: 0;
  background: color-mix(in srgb, var(--primary) 30%, rgba(5, 18, 29, 0.86));
  border: 1px solid rgba(163, 225, 255, 0.6);
  color: #ecfbff;
  font-family: "Space Grotesk", sans-serif;
  font-size: .74rem;
  font-weight: 800;
}

.curta-card:hover img {
  transform: scale(1.08);
}

.curta-card:hover {
  transform: translateY(-4px);
  border-color: rgba(113, 215, 255, 0.62);
  box-shadow: 0 24px 44px rgba(0, 176, 240, 0.16);
}

.curta-card.is-hidden {
  display: none;
}

.curta-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
  gap: .5rem;
  padding: .8rem 0 .2rem;
}

.curta-pagination .art-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #03212e;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(4, 19, 31, 0.2);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.curta-pagination .art-page-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(3, 19, 31, 0.28);
  color: #03212e;
  background: #18c0ff;
}

.curta-pagination .art-page-btn.is-active {
  background: linear-gradient(135deg, var(--primary), #008ec1);
  color: #fff;
  border-color: #00b6f7;
  box-shadow: 0 14px 30px rgba(0,176,240,.45);
}

.curta-pagination .art-page-prev,
.curta-pagination .art-page-next {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  padding: 0 1rem;
}

.curta-pagination .art-page-dots {
  color: #325466;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: .1em;
  margin: 0 .1rem;
}

body.dark .curta-pagination .art-page-dots {
  color: #e2f3fc;
}

body.dark #cursos-curta-duracao {
  background: transparent;
}

body.dark .curta-card {
  border-color: rgba(167, 211, 237, 0.34);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

body.dark .curta-overlay {
  background: linear-gradient(180deg, rgba(3, 17, 28, .1), rgba(3, 17, 28, .82) 54%, rgba(2, 11, 18, .97) 100%);
}

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

  .curta-grid > .curta-card {
    grid-column: auto;
  }

  .curta-card {
    min-height: 400px;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: 68vh;
  }

  .hero-content {
    padding-block: 7rem 5rem;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 64vh;
  }

  .hero-content {
    gap: .72rem;
    padding-block: 6.6rem 4.8rem;
  }

  .hero .organizacao-hero-sub {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }
}

@media (max-width: 680px) {
  .hero-content { max-width: 100%; }

  .hero-social {
    right: 1rem;
    left: auto;
    bottom: 3.6rem;
    justify-content: flex-end;
  }

  .hero-social-link {
    width: 36px;
    height: 36px;
  }

  .curta-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .curta-card {
    min-height: 380px;
  }
}
