:root {
  --bg: #05031a;
  --surface: #0c0a2b;
  --surface-2: #13103a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f3f7;
  --muted: #9ca0b3;
  --accent: #f4c300;
  --display: "Anton", sans-serif;
  --sans: "Inter", sans-serif;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 3, 26, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.03em;
  font-style: italic;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.main-nav a,
.nav-school-trigger {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav a.active,
.main-nav a:hover,
.nav-school-trigger.active,
.nav-school-trigger:hover,
.nav-school-menu:hover .nav-school-trigger,
.nav-school-menu:focus-within .nav-school-trigger {
  color: var(--text);
  text-decoration: none;
}

.nav-school-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.nav-school-trigger:focus,
.nav-mobile-trigger:focus {
  outline: none;
}

.nav-school-menu {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-school-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 880px;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 22px;
  background: rgba(12, 10, 43, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.nav-school-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-school-menu:hover .nav-school-panel,
.nav-school-menu:focus-within .nav-school-panel {
  display: grid;
}

.nav-school-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-school-group-title,
.nav-mobile-school-group-title {
  font-family: var(--display);
  font-style: italic;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.nav-school-link,
.nav-mobile-school-link {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
}

.nav-school-link:hover,
.nav-mobile-school-link:hover,
.nav-school-group-title:hover,
.nav-mobile-school-group-title:hover {
  color: var(--accent);
}

.nav-school-empty,
.nav-mobile-school-empty {
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
}

.live-chip {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 10px;
  padding: 5px 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

#navMobile {
  background: var(--surface);
}

#navMobile a {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}

#navMobile .nav-mobile-school-panel a {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
  font-weight: 500;
}

#navMobile a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-mobile-trigger {
  background: transparent;
  border: 0;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  padding-left: 0;
  padding-right: 0;
}

.nav-mobile-school-panel {
  padding: 8px 0 10px 12px;
}

.nav-mobile-school-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.nav-mobile-school-group:first-child {
  border-top: 0;
  padding-top: 4px;
}

.hero {
  min-height: 78vh;
  position: relative;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), rgba(5, 3, 26, 0.3), rgba(5, 3, 26, 0.75));
}

.hero-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(56px, 12vw, 176px);
  line-height: 0.82;
  text-transform: uppercase;
  font-style: italic;
  margin: 8px 0 0;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  max-width: 620px;
  margin-top: 20px;
  color: #d8d9e0;
  font-size: 22px;
  line-height: 1.35;
}

.marquee {
  background: var(--accent);
  color: #0b0924;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 45s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 10px 18px;
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  font-size: 31px;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #0b0924;
}

.section-wrap {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 88px);
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 18px;
}

.section-sub {
  color: var(--muted);
  max-width: 580px;
}

.link-accent {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.countdown-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.01);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.count-num {
  font-family: var(--display);
  font-size: 62px;
  color: var(--accent);
  line-height: 0.9;
}

.count-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
  color: var(--muted);
}

.news-feature-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.news-category {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 11px;
}

.news-title-lg,
.news-title-md {
  font-family: var(--display);
  text-transform: uppercase;
  font-style: italic;
  line-height: 0.95;
}

.news-title-lg {
  font-size: clamp(30px, 5.2vw, 58px);
}

.news-title-md {
  font-size: clamp(21px, 2.5vw, 33px);
}

.news-summary,
.news-meta {
  color: var(--muted);
}

.news-meta {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}

.news-side-item {
  display: flex;
  gap: 14px;
  margin-bottom: 26px;
}

.news-side-thumb {
  width: 112px;
  height: 112px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.news-list-card {
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 100%;
}

.news-list-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.news-list-body {
  padding: 14px;
}

.news-list-title {
  font-family: var(--display);
  text-transform: uppercase;
  font-style: italic;
  line-height: 1.2;
  font-size: clamp(24px, 2.1vw, 34px);
}

.escolas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .news-feature-image {
    aspect-ratio: 16 / 9;
  }

  .news-list-thumb {
    aspect-ratio: 16 / 10;
  }

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

@media (min-width: 1200px) {
  .escolas-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

.escola-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
  text-decoration: none;
}

.escola-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 58px;
  opacity: 0.55;
}

.escola-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(5, 3, 26, 0.95), rgba(5, 3, 26, 0.2));
}

.escola-idx {
  display: block;
  font-size: 10px;
  color: #cfd2de;
  letter-spacing: 0.12em;
}

.escola-name {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 17px;
  line-height: 0.92;
}

.escola-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
}

.campeas-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .campeas-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.campea-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.campea-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.campea-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.campea-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 3, 26, 0.95), rgba(5, 3, 26, 0.1));
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.gallery-strip::-webkit-scrollbar {
  height: 7px;
}

.gallery-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
}

.gallery-item {
  width: min(420px, 83vw);
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-hero {
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 3, 26, 0.45), transparent 55%);
  pointer-events: none;
}

.gallery-hero img {
  min-height: 260px;
  max-height: 58vh;
  object-fit: cover;
}

.gallery-detail-item {
  position: relative;
  border: 1px solid var(--line);
  padding: 0;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  animation: galleryReveal 0.5s ease forwards;
}

.gallery-detail-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-detail-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(5, 3, 26, 0.92), rgba(5, 3, 26, 0.12));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-detail-item:hover img {
  transform: scale(1.05);
}

.gallery-detail-item:hover .gallery-detail-overlay {
  opacity: 1;
}

.gallery-modal .modal-dialog {
  max-width: min(1180px, 96vw);
}

.gallery-modal .modal-content {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: #07051f;
  overflow: hidden;
  position: relative;
}

.gallery-modal-image {
  width: 100%;
  min-height: 52vh;
  max-height: 84vh;
  object-fit: contain;
  background: #07051f;
}

.gallery-modal-meta {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 7, 32, 0.92);
}

.gallery-modal-counter {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.gallery-modal-caption {
  color: #d6d9e5;
  margin-top: 6px;
}

.gallery-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 3, 26, 0.6);
  color: #fff;
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(5, 3, 26, 0.6);
  color: #fff;
}

.gallery-modal-prev {
  left: 14px;
}

.gallery-modal-next {
  right: 14px;
}

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-title {
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 64px);
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.9;
}

.footer-input {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px 14px;
  width: 100%;
}

.footer-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #080616;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 14px;
}

.page-headline {
  font-family: var(--display);
  text-transform: uppercase;
  font-style: italic;
  font-size: clamp(52px, 8vw, 118px);
  line-height: 0.86;
}

.gallery-page-headline {
  font-size: clamp(30px, 4.1vw, 63px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  max-width: none;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.escola-page-headline {
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.94;
  max-width: none;
  text-wrap: pretty;
}

.gallery-page-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 8px;
}

.gallery-page-topline .link-accent {
  display: inline-block;
}

.noticia-headline {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.12;
  word-break: break-word;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
}

.panel-body {
  padding: 20px;
}

.text-muted-soft {
  color: #babdca;
}

.noticia-body p,
.rich-content p {
  color: #dbdde6;
  font-size: 19px;
  line-height: 1.7;
}

.noticia-body {
  white-space: pre-line;
  word-break: break-word;
}

.noticia-body img,
.rich-content img {
  max-width: 100%;
  height: auto;
}

.form-control-dark,
.form-control-dark:focus {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes galleryReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 68vh;
  }
  .hero-subtitle {
    font-size: 17px;
  }
  .count-num {
    font-size: 38px;
  }
  .marquee-item {
    font-size: 24px;
  }

  .gallery-page-headline {
    font-size: clamp(24px, 7vw, 36px);
    line-height: 1.12;
    max-width: none;
  }

  .escola-page-headline {
    font-size: clamp(30px, 9vw, 48px);
    line-height: 1;
    max-width: none;
  }
}
