/* ============================================================
   CURSOS.CSS — pagina Cursos
   ============================================================ */

.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;
  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-image: radial-gradient(circle at 12% 16%, rgba(0, 176, 240, 0.22), transparent 40%);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

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

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

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

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

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

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

.cursos-hero-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
  font-size: 14pt;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--primary);
  text-shadow: 0 4px 32px rgba(0, 0, 0, .38);
}

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

#cursos-lista {
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 176, 240, .12), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 72%, #fff 28%) 0%, #fff 42%);
}

.cursos-intro {
  margin: .65rem 0 0;
  max-width: 65ch;
  color: var(--text-muted);
}

#cursos-lista .section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.curso-layout {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 1rem;
}

.curso-destaque {
  position: relative;
  padding: 1.45rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, #ffffff 30%), var(--surface));
  box-shadow: 0 14px 30px rgba(7, 25, 38, .11);
}

.curso-destaque-details-btn {
  position: absolute;
  top: 1.62rem;
  margin-top: 45px;
  right: .92rem;
  width: 24px;
  height: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--line));
  border-radius: 50%;
  padding: 0;
  color: transparent;
  font-size: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 20%, #fff 80%), #ffffff);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}

.curso-destaque-details-btn::before,
.curso-destaque-details-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.8px;
  border-radius: 999px;
  background: #04688f;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .2s ease;
}

.curso-destaque-details-btn::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.curso-destaque.is-resumo-open .curso-destaque-details-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.curso-destaque.is-resumo-open .curso-destaque-details-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.curso-destaque-details-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 58%, transparent);
  box-shadow: 0 6px 14px rgba(0, 176, 240, .16);
}

.curso-tag {
  margin: 0 0 .55rem;
  display: inline-flex;
  align-items: center;
  padding: .38rem .78rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 24%, #ffffff 76%);
  border: 1px solid color-mix(in srgb, var(--primary) 48%, transparent);
  color: #055f82;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.curso-destaque-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}

.curso-destaque-controls {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.curso-destaque-status {
  margin: 0;
  min-width: 4.6rem;
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
}

.curso-destaque h3 {
  margin: 0;
  padding-right: 4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: .01em;
}

.curso-desc {
  margin: .4rem 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-muted);
  display: none;
}

.curso-destaque.is-resumo-open .curso-desc {
  display: block;
}

.curso-meta-grid {
  margin-top: 1rem;
  display: grid;
  gap: .7rem;
}

.curso-meta-grid p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
}

.curso-link {
  font-weight: 700;
  color: var(--primary-strong);
}

.cursos-aside {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 16px;
  padding: 1.2rem;
  background: linear-gradient(170deg, #0d2d44 0%, #0a1f31 100%);
  color: #e6f5ff;
  box-shadow: 0 12px 28px rgba(4, 16, 26, .2);
}

.cursos-aside h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.cursos-aside p {
  margin: .65rem 0 0;
  color: rgba(230, 245, 255, .88);
}

.cursos-badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.cursos-badges span {
  display: inline-flex;
  align-items: center;
  padding: .35rem .62rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  border: 1px solid rgba(133, 214, 255, .35);
  background: rgba(133, 214, 255, .12);
}

.cursos-catalog {
  margin-top: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 530px);
  grid-template-areas:
    "head search"
    "grid grid"
    "pagination pagination";
  align-items: start;
  column-gap: 1rem;
}

.cursos-catalog > * {
  min-width: 0;
}

.cursos-slider-head {
  grid-area: head;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
  margin-bottom: .8rem;
  min-width: 0;
}

.cursos-slider-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cursos-nav-btn {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line));
  border-radius: 999px;
  background: #fff;
  color: var(--primary-strong);
  font-weight: 800;
  font-size: 1.02rem;
  text-shadow: 0 0 1px rgba(4, 45, 66, .25);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cursos-nav-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
  box-shadow: 0 6px 14px rgba(0, 176, 240, .16);
}

.cursos-slider-status {
  margin: 0;
  min-width: 4.6rem;
  text-align: center;
  font-weight: 700;
  color: var(--text-muted);
}

.cursos-search-menu {
  grid-area: search;
  justify-self: end;
  min-width: 0;
  width: min(100%, 530px);
  max-width: 530px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #ffffff 8%), var(--surface));
  backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-bottom: 3px solid var(--primary);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(7, 25, 38, .12);
  padding: .85rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.cursos-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: .5rem;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.cursos-search-form input {
  min-width: 0;
  width: 100%;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, rgba(181, 219, 242, 0.22));
  border-radius: 999px;
  padding: 0 .9rem;
  font: inherit;
  color: #0b2434;
  background: #fff;
  text-overflow: ellipsis;
}

.cursos-search-form input:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 65%, #fff);
  outline-offset: 1px;
}

.cursos-search-form button {
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, rgba(11, 36, 52, 0.2));
  border-radius: 50%;
  padding: 0;
  color: #0b2434;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cursos-search-form button svg {
  width: 18px;
  height: 18px;
}

.cursos-search-form button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 176, 240, 0.65);
  box-shadow: 0 6px 14px rgba(0, 176, 240, .15);
}

.cursos-grid {
  grid-area: grid;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.curso-item.is-hidden {
  display: none;
}

.curso-item {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(165deg, #ffffff 0%, #f3fbff 100%);
  box-shadow: 0 10px 22px rgba(7, 25, 38, .09);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.curso-item h3 {
  margin: 0;
  padding-right: 5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--text);
}

.curso-details-btn {
  position: absolute;
  top: 1.02rem;
  right: .75rem;
  width: 24px;
  height: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--line));
  border-radius: 50%;
  padding: 0;
  color: transparent;
  font-size: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 20%, #fff 80%), #ffffff);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}

.curso-details-btn::before,
.curso-details-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.8px;
  border-radius: 999px;
  background: #04688f;
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .2s ease;
}

.curso-details-btn::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.curso-item.is-resumo-open .curso-details-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.curso-item.is-resumo-open .curso-details-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.curso-details-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 58%, transparent);
  box-shadow: 0 6px 14px rgba(0, 176, 240, .16);
}

.curso-card {
  display: grid;
  align-content: start;
  gap: .8rem;
}

.curso-resumo {
  margin: 0;
  color: color-mix(in srgb, var(--text) 90%, #000 10%);
  font-size: .94rem;
  line-height: 1.62;
  text-transform: none;
  display: none;
}

.curso-item.is-resumo-open .curso-resumo {
  display: block;
}

.curso-meta-list {
  margin: .75rem 0 0;
  padding: .35rem;
  list-style: none;
  display: grid;
  gap: .2rem;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--line));
  border-radius: 12px;
  background: rgba(255, 255, 255, .66);
}

.curso-meta-list li {
  position: relative;
  padding: .58rem .7rem .58rem 2.4rem;
  margin: 0;
  font-size: .87rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 82%, #233746 18%);
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.curso-meta-list li + li {
  border-top: 0;
}

.curso-meta-list li::before {
  content: "";
  position: absolute;
  left: .65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: .98rem;
  background-color: color-mix(in srgb, var(--primary) 30%, #ffffff 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 34%, transparent), 0 4px 10px rgba(0, 176, 240, .14);
}

body.dark .curso-tag {
  background: rgba(13, 58, 84, .92);
  border-color: rgba(121, 219, 255, .72);
  color: #d9f6ff;
  text-shadow: 0 0 8px rgba(111, 216, 255, .36);
}

.curso-meta-list li:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305698f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}

.curso-meta-list li:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305698f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M8 20V8h8v12'/%3E%3C/svg%3E");
}

.curso-meta-list li:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305698f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
}

.curso-meta-list strong {
  display: block;
  margin-bottom: .12rem;
  color: color-mix(in srgb, var(--text) 64%, #355267 36%);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}

.curso-meta-list a {
  color: var(--primary-strong);
  font-weight: 600;
}

.curso-meta-list li:nth-child(3) a,
#cursoDestaqueContacto {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
  color: #05698f;
  font-weight: 700;
}

.curso-meta-list li:nth-child(3) a:hover,
.curso-meta-list li:nth-child(3) a:focus-visible,
#cursoDestaqueContacto:hover,
#cursoDestaqueContacto:focus-visible {
  color: #034a66;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  outline: none;
}

.curso-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary) 48%, transparent);
  box-shadow: 0 14px 28px rgba(0, 176, 240, .14);
}

body.dark .curso-item {
  background: linear-gradient(180deg, #123249 0%, #0d2436 100%);
  border-color: rgba(0, 176, 240, .42);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
}

body.dark .curso-item:hover {
  border-color: rgba(0, 198, 255, .8);
  box-shadow: 0 18px 36px rgba(0, 176, 240, .26);
}

body.dark .curso-item h3,
body.dark .curso-meta-list strong {
  color: #ecf8ff;
}

body.dark .curso-details-btn,
body.dark .curso-destaque-details-btn {
  border-color: rgba(0, 176, 240, .62);
  background: linear-gradient(180deg, rgba(10, 38, 56, .9), rgba(13, 44, 64, .9));
  box-shadow: 0 0 0 1px rgba(0, 176, 240, .24);
}

body.dark .curso-details-btn::before,
body.dark .curso-details-btn::after,
body.dark .curso-destaque-details-btn::before,
body.dark .curso-destaque-details-btn::after {
  background: #8fdcff;
}

body.dark .curso-details-btn:hover,
body.dark .curso-destaque-details-btn:hover {
  border-color: rgba(0, 198, 255, .78);
  box-shadow: 0 0 0 1px rgba(0, 198, 255, .34), 0 8px 16px rgba(0, 176, 240, .2);
}

body.dark .curso-resumo,
body.dark .curso-meta-list li {
  color: rgba(214, 234, 246, .88);
}

body.dark .curso-meta-list li {
  background: transparent;
  border-color: transparent;
}

body.dark .curso-meta-list {
  background: rgba(9, 30, 45, .78);
  border-color: rgba(0, 176, 240, .34);
}

body.dark .curso-meta-list li::before {
  background-color: rgba(0, 176, 240, .34);
  box-shadow: 0 0 0 1px rgba(110, 218, 255, .74), 0 0 10px rgba(0, 176, 240, .32);
  background-size: 1rem;
}

body.dark .curso-meta-list strong {
  color: #ecf8ff;
}

body.dark .curso-meta-list li:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2388deff' stroke-width='2.05' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}

body.dark .curso-meta-list li:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2388deff' stroke-width='2.05' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M8 20V8h8v12'/%3E%3C/svg%3E");
}

body.dark .curso-meta-list li:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2388deff' stroke-width='2.05' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E");
}

body.dark .curso-meta-list a,
body.dark .curso-link {
  color: #8fdcff;
}

body.dark .curso-meta-list li:nth-child(3) a,
body.dark #cursoDestaqueContacto {
  color: #bff0ff;
  text-shadow: 0 0 8px rgba(98, 205, 255, .28);
}

body.dark .curso-meta-list li:nth-child(3) a:hover,
body.dark .curso-meta-list li:nth-child(3) a:focus-visible,
body.dark #cursoDestaqueContacto:hover,
body.dark #cursoDestaqueContacto:focus-visible {
  color: #d9f7ff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

body.dark .curso-destaque {
  background: linear-gradient(180deg, #123249 0%, #0d2436 100%);
  border-color: rgba(0, 176, 240, .38);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .42);
}

body.dark .curso-destaque-status,
body.dark .cursos-slider-title {
  color: rgba(226, 243, 255, .92);
}

body.dark .cursos-nav-btn {
  background: #102536;
  color: var(--primary);
  border-color: rgba(0, 176, 240, .62);
  text-shadow: 0 0 8px rgba(0, 176, 240, .32);
}

body.dark .cursos-search-menu {
  background: rgba(9, 30, 45, .9);
  border-color: rgba(96, 196, 255, .26);
}

body.dark .cursos-search-form input,
body.dark .cursos-search-form button {
  background: #0f2434;
  color: var(--primary);
  border-color: rgba(0, 176, 240, .45);
}

body.dark .cursos-search-form input::placeholder {
  color: rgba(213, 238, 255, .65);
}

.cursos-pagination {
  grid-area: pagination;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 5px;
  gap: .5rem;
  padding: .8rem 30px 2.2rem;
  border-top: 1px solid rgba(200, 232, 247, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cursos-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;
}

.cursos-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;
}

.cursos-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);
}

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

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

@media (min-width: 1440px) {
  .curso-layout {
    grid-template-columns: 1.2fr .8fr;
  }

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

@media (max-width: 1200px) {
  .cursos-catalog {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 470px);
  }

  .cursos-search-menu {
    max-width: 470px;
    padding: .8rem;
  }

  .cursos-pagination {
    padding: .8rem 2rem 2rem;
  }
}

@media (max-width: 1024px) {
  .curso-destaque h3 {
    padding-right: 3.4rem;
  }

  .curso-destaque-details-btn {
    margin-top: 36px;
  }

  .cursos-badges {
    gap: .4rem;
  }
}

@media (max-width: 980px) {
  .cursos-catalog {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  }

  .cursos-search-menu {
    max-width: 420px;
    margin-bottom: .9rem;
  }

  .cursos-search-form {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .cursos-search-form input,
  .cursos-search-form button {
    height: 44px;
  }

  .cursos-search-form button {
    width: 44px;
  }
}

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

  .curso-layout {
    grid-template-columns: 1fr;
  }

  .cursos-catalog {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "search"
      "grid"
      "pagination";
  }

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

  .cursos-slider-head {
    margin-bottom: .55rem;
  }

  .cursos-search-menu {
    width: 100%;
    justify-self: stretch;
    max-width: 100%;
    padding: .78rem;
    margin-bottom: .85rem;
  }

  .cursos-search-form {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: .42rem;
  }

  .cursos-search-form input,
  .cursos-search-form button {
    height: 42px;
  }

  .cursos-search-form button {
    width: 42px;
  }

  .cursos-pagination {
    padding: .8rem 1rem 2rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .curso-destaque-details-btn {
    margin-top: 30px;
  }

  .curso-destaque-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-block: 6.8rem 4rem;
  }

  .curso-destaque {
    padding: 1.15rem;
  }

  .curso-destaque h3 {
    font-size: clamp(1.28rem, 5.4vw, 1.7rem);
    padding-right: 3rem;
  }

  .curso-destaque-details-btn {
    top: 1.1rem;
    margin-top: 22px;
  }

  .curso-item h3 {
    padding-right: 3.2rem;
  }

  .curso-details-btn {
    top: .92rem;
  }

  .cursos-search-menu {
    max-width: 100%;
    padding: .72rem;
    margin-bottom: .75rem;
  }

  .cursos-search-form {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: .45rem;
  }

  .cursos-search-form input,
  .cursos-search-form button {
    height: 40px;
  }

  .cursos-search-form button {
    width: 40px;
  }

  .cursos-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-content {
    padding-block: 6.3rem 3.6rem;
  }

  .curso-destaque-details-btn {
    width: 22px;
    height: 22px;
    margin-top: 18px;
  }

  .curso-details-btn {
    width: 22px;
    height: 22px;
  }

  .cursos-search-menu {
    padding: .66rem;
    border-radius: 14px;
  }

  .cursos-search-form {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .cursos-search-form input,
  .cursos-search-form button {
    height: 42px;
  }

  .cursos-search-form button {
    width: 100%;
    border-radius: 999px;
  }
}

@media (max-width: 420px) {
  .hero-content {
    gap: .85rem;
    padding-block: 6rem 3.2rem;
  }

  .curso-destaque {
    padding: 1rem;
  }

  .curso-destaque h3 {
    padding-right: 2.6rem;
  }

  .curso-item {
    padding: .9rem;
  }

  .cursos-pagination .art-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 .72rem;
    font-size: .76rem;
  }

  .cursos-search-menu {
    padding: .58rem;
  }
}
