.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}

.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-slide::before,
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-slide::before {
  background: var(--bg-alt);
  background-image: var(--bg);
  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: 1rem;
  color: #edf8ff;
  padding-block: 9rem 4rem;
  max-width: 740px;
}

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

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

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--primary);
  color: #03212e;
}

.btn-solid:hover {
  background: #18c0ff;
}

.btn-outline {
  border: 1px solid rgba(237, 248, 255, 0.56);
  color: #edf8ff;
}

.btn-outline:hover {
  border-color: #edf8ff;
}

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

/* title link */
.left-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.left-right span::after,
.row-riht::after {
  content: " ➜";
}

.news-layout {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 0;
}

#noticias {
  background:
    radial-gradient(circle at top left, rgba(0, 176, 240, 0.18), transparent 32%),
    linear-gradient(160deg, #071724 0%, #0b2334 52%, #0d2b40 100%);
}

#noticias .section-head h2,
#noticias .news-feature h3,
#noticias .news-mini h4,
#noticias .news-feature p,
#noticias .news-mini p {
  color: #eef7fc;
}

#noticias .card-link {
  color: #71d7ff;
}

#numeros {
  background:
    radial-gradient(circle at top right, rgba(0, 176, 240, 0.18), transparent 36%),
    linear-gradient(160deg, #071724 0%, #0b2334 52%, #0d2b40 100%);
}

#numeros .section-head h2,
#numeros .stat-label {
  color: #eef7fc;
}

#numeros .stat {
  border: 1px solid rgba(145, 212, 241, 0.2);
  background: linear-gradient(180deg, rgba(10, 30, 44, 0.9), rgba(9, 24, 37, 0.95));
}

#numeros .stat:hover {
  border-color: rgba(113, 215, 255, 0.42);
  box-shadow: 0 24px 58px rgba(2, 12, 20, 0.28);
}

#projectos .project-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#projectos .project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 176, 240, 0.42);
  box-shadow: 0 24px 58px rgba(4, 20, 32, 0.18);
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-media {
  height: 170px;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}

#projectos .project-card:hover .project-media img {
  transform: scale(1.06);
}

.project-body {
  padding: 1.05rem 1.1rem 1.2rem;
}

.project-body h3 {
  margin-top: 0;
}

.project-body p {
  margin-bottom: 0.8rem;
}

.project-link-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.92rem;
}

.project-link-text::after {
  content: "→";
  transition: transform 0.2s ease;
}

#projectos .project-card:hover .project-link-text::after {
  transform: translateX(3px);
}

.project-card-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 65%, white);
  outline-offset: -2px;
}

.section-head--with-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.62rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-strong));
  color: var(--primary);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.section-action::after {
  content: "➜";
  font-size: 0.82rem;
  line-height: 1;
  transform: translateY(1px);
}

.section-action:hover,
.section-action:focus-visible {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--primary) 22%, var(--surface-strong));
  border-color: var(--primary);
  outline: none;
}

.news-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-feature {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(145, 212, 241, 0.18);
  background: linear-gradient(180deg, rgba(10, 30, 44, 0.92), rgba(9, 24, 37, 0.96));
  box-shadow: var(--shadow);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.news-feature:hover,
.news-mini:hover {
  transform: none;
  border-color: rgba(113, 215, 255, 0.42);
  background: linear-gradient(180deg, rgba(20, 47, 66, 0.96), rgba(14, 38, 56, 0.98));
  box-shadow: 0 28px 65px rgba(2, 12, 20, 0.3);
}

.news-gallery {
  position: relative;
  overflow: hidden;
}

.news-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 18, 28, 0.12) 28%, rgba(4, 18, 28, 0.88) 100%);
}

.news-gallery-track {
  display: flex;
  flex-direction: column;
  height: 200%;
  transform: translateY(0);
  transition: transform 0.75s ease;
}

.news-gallery-track.is-alt {
  transform: translateY(-50%);
}

.news-feature .news-gallery {
  position: absolute;
  inset: 0;
  height: 100%;
}

.news-gallery img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  display: block;
  margin-inline: 0;
  border-radius: 0;
}

.news-feature .news-card-link {
  position: relative;
  min-height: 420px;
}

.news-feature-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.45rem 1.25rem 1.35rem;
}

.news-feature-body .tag {
  margin: 0 0 0.7rem;
}

.tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  color: #03344a;
  background: color-mix(in srgb, var(--primary) 74%, white);
  padding: 0.22rem 0.65rem;
}

.news-list {
  display: grid;
  gap: 0;
}

.news-mini {
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  border: 1px solid rgba(145, 212, 241, 0.18);
  background: linear-gradient(180deg, rgba(10, 30, 44, 0.92), rgba(9, 24, 37, 0.96));
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.news-mini .news-card-link {
  position: relative;
  display: block;
  min-height: 210px;
}

.news-gallery-mini {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.news-gallery-mini img {
  height: 50%;
  object-position: center 58%;
}

.news-mini-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.9rem 0.95rem 1rem;
}

.news-mini-body .news-cat-tag {
  margin: 0 0 0.55rem;
}

.news-mini h4 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.news-mini p {
  margin: 0;
  font-size: 0.94rem;
}

.news-cat-tag {
  position: static;
  z-index: auto;
  margin: 0;
  pointer-events: none;
  transform: none;
  transition: none;
}

.events-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.calendar-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
}

.calendar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  overflow: hidden;
}

.calendar-header {
  margin-bottom: 1rem;
}

.calendar-header h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.calendar-weekdays span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.calendar-days .day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: default;
  color: var(--text);
  transition: all 0.2s ease;
}

.calendar-days .day:hover {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.calendar-days .empty {
  aspect-ratio: 1;
}

.calendar-days .event-marker {
  background: color-mix(in srgb, var(--primary) 85%, white);
  color: #023047;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 176, 240, 0.3);
}

.calendar-days .event-marker:hover {
  background: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 176, 240, 0.5);
}

.calendar-days .today {
  position: relative;
}

.calendar-days .today::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd400;
  bottom: 6px;
  left: calc(50% - 11px);
  box-shadow: 0 0 0 2px rgba(255, 212, 0, 0.28);
}

.events-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  min-height: 100%;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  align-items: stretch;
  transition: all 0.28s ease;
  overflow: hidden;
  min-height: 0;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(0, 176, 240, 0.12);
}

.event-card-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0.8rem;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 88%, white), color-mix(in srgb, var(--primary) 72%, white));
  color: #023047;
  text-align: center;
}

.event-day {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
}

.event-month {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.event-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-card h3 {
  margin: 0 0 0.4rem 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.event-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

.event-link {
  align-self: flex-start;
  margin-top: 0.6rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  position: relative;
}

.event-link::after {
  content: "→";
  margin-left: 0.4rem;
  transition: margin-left 0.2s ease;
}

.event-link:hover {
  color: var(--primary-strong);
}

.event-link:hover::after {
  margin-left: 0.7rem;
}

.events-nav-footer {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  grid-column: 2;
  margin-left: 0;
  transform: translate(-30px, -15px);
}

.event-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface-strong));
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.event-nav-btn:hover {
  background: var(--primary);
  color: var(--surface-strong);
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(0, 176, 240, 0.3);
}

.event-nav-btn:active {
  transform: scale(0.95);
}

.stats-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 1.1rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1;
  color: var(--primary);
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .events-layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .events-list {
    grid-template-rows: auto;
  }

  .events-nav-footer {
    grid-column: auto;
  }

  .calendar-sidebar {
    position: static;
  }

  .calendar {
    padding: 1rem;
  }
}

@media (max-width: 860px) {
  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 3rem);
  }

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

  .news-feature .news-card-link {
    min-height: 340px;
  }

  .news-mini .news-card-link {
    min-height: 180px;
  }

  .calendar {
    padding: 0.9rem;
  }

  .calendar-weekdays span {
    font-size: 0.7rem;
  }

  .calendar-days .day {
    font-size: 0.85rem;
  }

  .event-card {
    grid-template-columns: 1fr;
    padding: 1.1rem;
    gap: 0.8rem;
    min-height: auto;
  }

  .event-card-date {
    min-width: auto;
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.5rem;
    align-items: center;
    padding: 0.5rem 0.8rem;
  }

  .event-day {
    font-size: 1.4rem;
  }

  .event-month {
    margin-top: 0;
  }

  .project-card-link {
    min-height: initial;
  }

  .project-media {
    height: 190px;
  }

}

@media (max-width: 560px) {
  .news-feature-body p,
  .news-mini-body p {
    display: none;
  }

  .left-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .left-right > p,
  .left-right > a {
    margin: 0;
  }

  .hero-content {
    padding-block: 8.6rem 4.3rem;
  }

  .news-feature .news-card-link {
    min-height: 300px;
  }

  .news-mini .news-card-link {
    min-height: 165px;
  }

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

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

  .calendar {
    padding: 0.8rem;
  }

  .calendar-header h3 {
    font-size: 1rem;
  }

  .calendar-weekdays span {
    font-size: 0.65rem;
    padding: 0.35rem 0;
  }

  .calendar-days .day {
    font-size: 0.8rem;
    aspect-ratio: 1.2;
  }

  .event-card {
    padding: 1rem;
  }

  .event-card-date {
    padding: 0.5rem;
    border-radius: 8px;
  }

  .event-day {
    font-size: 1.2rem;
  }

  .event-month {
    font-size: 0.7rem;
  }

  .event-card h3 {
    font-size: 1rem;
  }

  .event-card p {
    font-size: 0.9rem;
  }

  .project-card-link {
    min-height: initial;
  }

  .project-media {
    height: 175px;
  }

  .section-head--with-action {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (min-width: 600px) {
  .left-right {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
