:root {
  color-scheme: light;
  --ink: #16202a;
  --muted: #5f6f7d;
  --line: #d8e0e6;
  --paper: #fbfcfd;
  --white: #ffffff;
  --maroon: #8d1019;
  --maroon-dark: #5d0a11;
  --green: #4d7f43;
  --green-dark: #315c2d;
  --gold: #d89a21;
  --teal: #2f756b;
  --blue: #225f9c;
  --amber: #c48118;
  --red: #b63f35;
  --shadow: 0 24px 70px rgba(28, 39, 49, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--white);
  background: var(--green-dark);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 224, 230, 0.88);
  backdrop-filter: blur(18px);
}

.topbar,
.navbar,
.section,
.quick-actions,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  gap: 18px;
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.78rem;
  border-bottom: 1px solid var(--line);
}

.topbar a {
  text-decoration: none;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}

.brand,
.nav-links,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 62px;
  height: 68px;
  place-items: center;
  background: var(--white);
  border: 2px solid rgba(141, 16, 25, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.brand-mark img {
  width: 56px;
  height: 62px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-dark);
  background: #e8f2ee;
}

.nav-links .nav-guarani {
  gap: 7px;
  color: var(--white);
  background: var(--maroon);
}

.nav-links .nav-guarani,
.nav-guarani span {
  display: inline-flex;
  align-items: center;
}

.nav-guarani span {
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--gold);
  font-size: 0.9rem;
}

.nav-links .nav-guarani:hover,
.nav-links .nav-guarani:focus-visible {
  color: var(--white);
  background: var(--maroon-dark);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 116px);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 900ms ease,
    transform 6500ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(58, 8, 14, 0.9) 0%, rgba(58, 8, 14, 0.74) 45%, rgba(58, 8, 14, 0.2) 100%),
    linear-gradient(0deg, rgba(77, 127, 67, 0.35), rgba(216, 154, 33, 0.16));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 7rem 0;
}

.hero-seal {
  width: clamp(96px, 12vw, 150px);
  height: auto;
  margin-bottom: 24px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.hero-controls {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 82px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.slider-arrow,
.slider-dot {
  display: inline-grid;
  place-items: center;
  border: 0;
  color: var(--white);
  cursor: pointer;
}

.slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.5rem;
  line-height: 1;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  background: rgba(255, 255, 255, 0.28);
}

.slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}

.slider-dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9be4d8;
}

.hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions,
.contact-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--maroon);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform: translateY(-34px);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-actions a {
  min-height: 118px;
  padding: 22px;
  text-decoration: none;
  border-right: 1px solid var(--line);
}

.quick-actions a:last-child {
  border-right: 0;
}

.quick-actions span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.quick-actions strong {
  display: block;
  margin-top: 8px;
  font-size: 1.08rem;
}

.section {
  padding: 72px 0;
}

.intro-grid,
.section-heading,
.campus-section,
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  line-height: 1.16;
}

.intro-grid > p,
.campus-copy p,
.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-heading {
  margin-bottom: 26px;
}

.search-box {
  justify-self: end;
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--white);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  color: var(--white);
  border-color: var(--maroon);
  background: var(--maroon);
}

.notice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.notice-card,
.program-panel,
.service-grid article,
.campus-list article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice-card {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 360px;
  padding: 22px;
  overflow: hidden;
}

.notice-card.priority {
  color: var(--white);
  border-color: var(--maroon-dark);
  background: var(--maroon-dark);
}

.notice-card[hidden] {
  display: none;
}

.notice-thumb {
  width: calc(100% + 44px);
  height: 150px;
  margin: -22px -22px 2px;
  object-fit: cover;
  background: #eef3f6;
}

.notice-card p,
.program-panel p,
.service-grid p,
.campus-list p,
.campus-list span {
  margin: 0;
  color: var(--muted);
}

.notice-card.priority p {
  color: rgba(255, 255, 255, 0.78);
}

.notice-card a,
.service-grid a,
.text-link {
  color: var(--maroon);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.notice-card.priority a {
  color: var(--white);
}

.tag {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #dcefe7;
  font-size: 0.72rem;
  font-weight: 800;
}

.tag.blue {
  color: #123c69;
  background: #dfeefa;
}

.tag.green {
  color: var(--green-dark);
  background: #dcefe7;
}

.tag.amber {
  color: #6d430a;
  background: #f6ead6;
}

.program-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.program-panel {
  padding: 28px;
}

.program-panel.technical {
  color: var(--white);
  border-color: #173b55;
  background: #173b55;
}

.program-panel.technical p {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
}

.program-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.technical .program-list {
  grid-template-columns: 1fr;
}

.program-list li {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef3f6;
  font-weight: 700;
}

.program-list a {
  color: inherit;
  text-decoration: none;
}

.program-list a:hover,
.program-list a:focus-visible {
  color: var(--maroon);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.technical .program-list li {
  color: var(--ink);
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.document-grid a {
  display: grid;
  gap: 12px;
  min-height: 136px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.document-grid span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--white);
  background: var(--maroon);
  font-size: 0.72rem;
  font-weight: 900;
}

.document-grid strong {
  color: var(--ink);
  line-height: 1.25;
}

.document-grid a:hover,
.document-grid a:focus-visible {
  border-color: rgba(141, 16, 25, 0.38);
  box-shadow: 0 18px 44px rgba(28, 39, 49, 0.1);
}

.service-grid article {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.service-grid span {
  color: var(--red);
  font-weight: 900;
}

.campus-section {
  align-items: stretch;
}

.campus-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.campus-list article {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.campus-list span {
  display: block;
  font-size: 0.9rem;
}

.cta-band {
  align-items: center;
  margin-bottom: 72px;
  padding: 38px;
  color: var(--white);
  background: linear-gradient(135deg, var(--maroon-dark), #173b55);
  border-radius: 8px;
}

.identity-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding-top: 24px;
}

.identity-logo {
  display: grid;
  min-height: 300px;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.identity-logo img {
  width: 220px;
  max-height: 260px;
  height: auto;
  object-fit: contain;
}

.identity-section p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.authority-grid,
.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.authority-grid article {
  display: grid;
  gap: 6px;
  width: min(100%, 310px);
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.authority-grid span {
  color: var(--maroon);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.authority-grid strong {
  color: var(--ink);
  line-height: 1.35;
}

.swatches span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-weight: 800;
}

.swatches span::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch);
}

.cta-band .eyebrow,
.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 960px) {
  .topbar {
    overflow-x: auto;
    white-space: nowrap;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .quick-actions,
  .notice-list,
  .service-grid,
  .document-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .section-heading,
  .campus-section,
  .cta-band,
  .program-layout,
  .identity-section {
    grid-template-columns: 1fr;
  }

  .search-box {
    justify-self: stretch;
  }

  .program-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: 100%;
    padding-inline: 16px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-controls {
    right: 16px;
    bottom: 24px;
  }

  .quick-actions,
  .notice-list,
  .service-grid,
  .document-grid,
  .campus-list,
  .program-list {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    transform: none;
    width: 100%;
    border-radius: 0;
  }

  .quick-actions a {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 54px 0;
  }

  .cta-band {
    width: calc(100% - 32px);
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}
