﻿:root {
  /* core color palette and measurements */
  --color-primary: #1e3a5f;
  --color-secondary: #2c5aa0;
  --color-accent: #ffeb3b;
  --color-light: #f7fbff;
  --max-width: 1200px;
  --transition-fast: 0.3s;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: #333;
  line-height: 1.6;
}

header {
  background:
    linear-gradient(135deg, rgba(13, 34, 61, 0.96) 0%, rgba(33, 79, 141, 0.94) 100%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 35%);
  padding: 14px 0;
  box-shadow: 0 12px 32px rgba(10, 28, 51, 0.18);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
}

.logo img {
  height: 65px;
  width: auto;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.logo span {
  display: block;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 5px 10px;
  border-radius: 4px;
}

nav a:focus,
nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-accent);
}

/* focus indicator for keyboard users */
a:focus,
button:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-accent);
}

/* Submenu para ServiÃ§os */
.has-submenu {
  position: relative;
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-primary);
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  z-index: 50;
  flex-direction: column;
}

.submenu li {
  list-style: none;
}
.submenu li a {
  color: white;
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 500;
}

.submenu li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent);
}

/* Hover em desktop abre o submenu */
.has-submenu:hover > .submenu {
  display: flex;
}

/* Mobile: submenu dentro do fluxo quando aberto */
.submenu.open {
  display: flex;
  position: static;
  padding-left: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  appearance: none;
  -webkit-appearance: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.hamburger.active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 24px rgba(7, 19, 36, 0.2);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (prefers-reduced-motion: reduce) {
  .hamburger,
  .hamburger span {
    transition: none;
  }
}

.main-content {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.carousel {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: #f0f0f0;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background-color: var(--color-accent);
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.ban {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 60px 20px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 40px;
}

.ban h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.ban p {
  font-size: 18px;
  opacity: 0.9;
}

.about-section {
  background-color: #f9f9f9;
  padding: 80px 20px;
  margin-bottom: 40px;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.about-header h2 {
  font-size: 36px;
  color: var(--color-primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.about-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 2px;
}

.about-header p {
  font-size: 18px;
  color: #666;
  margin-top: 20px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.about-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.about-card h3 {
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-card-icon {
  font-size: 32px;
}

.about-card p {
  color: #666;
  line-height: 1.8;
  font-size: 15px;
}

.about-description {
  background: white;
  padding: 40px;
  border-radius: 8px;
  border-left: 5px solid var(--color-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-description h3 {
  color: var(--color-primary);
  font-size: 24px;
  margin-bottom: 15px;
}

.about-description p {
  color: #666;
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 15px;
}

.about-description ul {
  list-style: none;
  margin-top: 20px;
}

.about-description ul li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
  color: #666;
  line-height: 1.6;
}

.about-description ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
  font-size: 18px;
}

/* SeÃ§Ã£o Cursos */
.courses-section {
  padding: 80px 20px;
  background: #ffffff;
  margin-bottom: 40px;
}

.courses-header {
  text-align: center;
  margin-bottom: 40px;
}

.courses-header h2 {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.courses-header p {
  color: #666;
  font-size: 16px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.course-thumb {
  width: 100%;
  height: 150px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.course-title {
  color: var(--color-primary);
  font-size: 18px;
  margin-bottom: 8px;
}

.course-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.course-footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.btn {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Filtro de Cursos */
.courses-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid var(--color-primary);
  background: white;
  color: var(--color-primary);
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.filter-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Cursos IndisponÃ­veis */
.course-card[data-status="unavailable"] {
  opacity: 0.6;
  pointer-events: none;
}

.course-card[data-status="unavailable"] .course-thumb {
  filter: grayscale(100%) brightness(0.8);
}

.course-card[data-status="unavailable"]:hover {
  transform: none;
}

/* AnimaÃ§Ã£o para mostrar/ocultar cards */
.course-card {
  transition: all 0.3s ease;
}

.course-card.hidden {
  display: none;
}

@media (max-width: 600px) {
  .course-thumb {
    height: 140px;
  }
  
  .courses-filter {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* SeÃ§Ã£o Equipe */
.team-section {
  padding: 60px 20px;
  background: var(--color-light);
  margin-bottom: 40px;
}
.team-header {
  text-align: center;
  margin-bottom: 30px;
}
.team-header h2 {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.team-header p {
  color: #666;
  font-size: 16px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.team-card {
  background: #fff;
  padding: 20px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.team-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  border: 4px solid var(--color-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
}
.team-name {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 18px;
  text-transform: uppercase;
}
.team-role {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  font-style: italic;
}
.btn-small {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.3s ease;
}

.btn-small:hover {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

/* make button take full width on small screens */
@media (max-width: 600px) {
  .btn-small {
    width: 100%;
    text-align: center;
  }
}

/* Modal / local com equipe completa */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal.open {
  display: flex;
}
.modal-content {
  background: white;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
  padding: 20px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.modal-header h3 {
  color: var(--color-primary);
}
.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.team-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  text-align: center;
}

/* SeÃ§Ã£o Contato */
.contact-section {
  padding: 60px 20px;
  background: #f7fbff;
  margin-bottom: 40px;
}
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
}
.contact-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.contact-card h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
}
.contact-form label {
  display: block;
  font-size: 14px;
  color: #444;
  margin-bottom: 6px;
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-form button[type="submit"] {
  width: 100%;
}
.contact-info {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.contact-info p {
  color: #666;
  margin-bottom: 8px;
}
.contact-success {
  background: #e6ffea;
  border: 1px solid #b7f0c8;
  color: #097a3d;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.contact-success[hidden] {
  display: none;
}
.contact-success.is-error {
  background: #fff2f2;
  border-color: #f1b6b6;
  color: #a11f1f;
}
.team-list li strong {
  color: var(--color-primary);
  display: block;
}
.team-list li {
  display: flex;
  align-items: center;
  gap: 15px;
}
.team-list-photo {
  width: 100px;
  height: 100px;
  border-radius: 20%;
  object-fit: cover;
  flex-shrink: 0;
}
.team-list-photo-button {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 22%;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-list-photo-button:hover {
  transform: scale(1.04);
}

.team-list-photo-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 235, 59, 0.45);
}

/* SeÃ§Ãµes: ServiÃ§os, NotÃ­cias, Eventos, Projetos */
.services-section {
  padding: 60px 20px;
  background: #f7fbff;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-title {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.service-desc {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.news-section {
  padding: 60px 20px;
  background: #ffffff;
  margin-bottom: 40px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.news-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.news-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  cursor: pointer;
}
.news-body {
  padding: 14px;
}
.news-title {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 8px;
}
.news-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.publice {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  text-align: right;
}

.events-section {
  padding: 60px 20px;
  background: #f7fbff;
  margin-bottom: 40px;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.event-card {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.event-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.event-date {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: white;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
}

.projects-section {
  padding: 60px 20px;
  background: #ffffff;
  margin-bottom: 40px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.project-card {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.project-title {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .news-thumb {
    height: 140px;
  }
  .news-grid,
  .services-grid,
  .events-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* utility spacing classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }
.mt-30 { margin-top: 30px; }
.mb-15 { margin-bottom: 15px; }

/* small enhancements for elements */
.event-title { margin: 8px 0 6px; }

/* Gallery styles */
.galeria-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(44, 90, 160, 0.05));
  margin-bottom: 40px;
}

.galeria-container {
  max-width: 1200px;
  margin: 0 auto;
}

.galeria-header {
  text-align: center;
  margin-bottom: 50px;
}

.galeria-header h2 {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.galeria-descricao {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 100%;
}

.gallery-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-thumb {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: inherit;
}

.gallery-body {
  padding: 18px;
  background: white;
}

.gallery-meta {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: block;
}

.gallery-title {
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

/* Gallery Image Modal Styles */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.image-modal.active {
  display: flex;
}

.image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

.image-modal-container {
  position: relative;
  max-width: 1000px;
  max-height: 90vh;
  width: 90%;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
  z-index: 1001;
}

.image-modal-img {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 80px);
  object-fit: contain;
  display: block;
}

.image-modal-caption {
  padding: 12px 16px;
  text-align: center;
  color: #666;
  font-size: 14px;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

.image-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 1002;
}

.image-modal-close:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

footer {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 50px 20px 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 16px;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 10px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-section p {
  line-height: 1.6;
  color: #e0e0e0;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 30px 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #b0b0b0;
  font-size: 14px;
}

@media (max-width: 1170px) {
  nav ul {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(320px, 86vw);
    height: 100vh;
    background: linear-gradient(180deg, rgba(13, 34, 61, 0.98) 0%, rgba(33, 79, 141, 0.96) 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 88px 18px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.32s ease,
      visibility 0.32s ease;
    border-radius: 24px 0 0 24px;
    box-shadow: -18px 0 42px rgba(9, 25, 46, 0.3);
    z-index: 120;
  }

  nav ul.active {
    transform: translateX(0);
    visibility: visible;
  }

  nav ul li {
    width: 100%;
  }

  nav a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 121;
  }

  .ban h1 {
    font-size: 24px;
  }

  nav {
    position: relative;
    width: auto;
  }

  body.menu-open {
    overflow: hidden;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

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

  .galeria-header h2 {
    font-size: 24px;
  }

  .galeria-descricao {
    font-size: 14px;
  }
}
.news-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 6%;
}
/* Layout refresh: noticias, equipe, cursos e login */
body {
  background: #f4f7fb;
}

body.modal-open {
  overflow: hidden;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-login,
.btn-logout {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.btn-login:hover,
.btn-logout:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.user-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.header-actions .btn-login[hidden],
.header-actions .user-status[hidden] {
  display: none !important;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.section-heading-left {
  text-align: left;
  margin-left: 0;
}

.section-heading h2,
.team-header h2,
.courses-header h2 {
  font-size: 34px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-heading p,
.team-header p,
.courses-header p {
  color: #5f6b7a;
  font-size: 16px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(44, 90, 160, 0.1);
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-section,
.team-section,
.courses-section {
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: 0 20px 50px rgba(15, 35, 60, 0.08);
}

.news-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.news-featured {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: stretch;
  margin: 0 auto 28px;
  padding: 24px;
  max-width: 1200px;
  background: #ffffff;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 20px;
}

.news-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 18px;
}

.news-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.news-featured-content h3 {
  font-size: 28px;
  color: var(--color-primary);
  line-height: 1.2;
}

.news-badge,
.course-pill {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(44, 90, 160, 0.12);
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 700;
}

.course-pill-soon {
  background: rgba(140, 92, 21, 0.12);
  color: #9b6500;
}

.news-grid,
.courses-grid,
.team-grid {
  gap: 24px;
}

.news-grid-expanded,
.courses-grid-expanded {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.news-item,
.course-card,
.team-card,
.course-overview-card,
.team-highlight {
  border: 1px solid rgba(30, 58, 95, 0.08);
}

.news-item {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(14, 31, 53, 0.12);
}

.news-link {
  display: block;
}

.news-thumb {
  height: 190px;
}

.news-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.news-excerpt {
  color: #5f6b7a;
  font-size: 14px;
}

.news-actions,
.courses-actions {
  text-align: center;
  margin-top: 24px;
}

.team-section {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.team-header {
  text-align: center;
  margin-bottom: 24px;
}

.team-highlights,
.course-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto 28px;
}

.team-highlight,
.course-overview-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #445266;
}

.team-highlight strong,
.course-overview-card strong {
  color: var(--color-primary);
  font-size: 16px;
}

.team-card {
  padding: 24px 18px;
  border-radius: 18px;
}

.team-card-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.team-avatar {
  width: 180px;
  height: 180px;
  margin-bottom: 16px;
  box-shadow: 0 12px 24px rgba(30, 58, 95, 0.18);
}

.team-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.team-name {
  text-transform: none;
  line-height: 1.35;
}

.team-description {
  color: #5f6b7a;
  font-size: 14px;
  line-height: 1.6;
}

.team-list li {
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 16px 0;
}

.team-list li span {
  color: #5f6b7a;
  font-size: 14px;
}

.courses-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.course-card {
  position: relative;
  padding: 18px;
  border-radius: 18px;
}

.course-thumb {
  height: 180px;
  object-fit: cover;
}

.course-footer {
  margin-top: auto;
}

.modal-content-login {
  max-width: 480px;
}

.image-modal {
  background: rgba(7, 17, 32, 0.92);
  z-index: 260;
}

.image-modal-content {
  position: relative;
  width: min(100%, 1280px);
  min-height: min(88vh, 820px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.image-modal-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.image-modal-figure img {
  width: 100%;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.image-modal-figure figcaption {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.image-modal-close,
.image-modal-nav {
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.image-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 30px;
}

.image-modal-nav {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 28px;
}

.image-modal-close:hover,
.image-modal-nav:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.04);
}

.login-intro {
  color: #5f6b7a;
  margin-bottom: 18px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d4dde8;
  border-radius: 10px;
  font: inherit;
}

.login-form input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.12);
}

.login-feedback {
  min-height: 24px;
  color: var(--color-secondary);
  font-size: 14px;
}

.page-news {
  margin-top: 20px;
}

.article-page {
  padding: 40px 20px;
}

.article-shell {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(15, 35, 60, 0.08);
}

.article-title {
  color: var(--color-primary);
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.article-content {
  color: #445266;
  font-size: 16px;
  line-height: 1.8;
}

.article-content p + p {
  margin-top: 14px;
}

img {
  max-width: 100%;
  height: auto;
}

.logo,
.logo span {
  min-width: 0;
}

.logo span {
  line-height: 1.2;
}

nav {
  min-width: 0;
}

#menu {
  min-width: 0;
  flex-wrap: nowrap;
}

#menu li a {
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 32, 0.48);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 119;
}

.menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.btn,
.btn-small,
.btn-login,
.btn-logout,
.filter-btn {
  touch-action: manipulation;
}

.modal {
  padding: 20px;
}

.modal-content,
.modal-content-login {
  width: min(100%, 1200px);
}

.team-list li strong {
  overflow-wrap: anywhere;
}

.team-list-photo {
  width: 88px;
  height: 88px;
}

@media (max-width: 900px) {
  .header-content {
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
  }

  .logo {
    flex: 1 1 auto;
  }

  .logo span {
    font-size: 16px;
    max-width: none;
  }

  nav {
    order: 2;
    width: auto;
    margin-left: auto;
  }

  .header-actions {
    order: 3;
    width: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

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

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

  .contact-info {
    order: -1;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 0;
  }

  .header-content {
    padding: 0 14px;
  }

  .logo {
    gap: 8px;
    max-width: calc(100% - 64px);
  }

  .logo img {
    height: 34px;
    padding: 4px;
  }

  .logo span {
    font-size: 15px;
  }

  nav ul {
    width: min(300px, 88vw);
    padding-top: 82px;
    border-radius: 22px 0 0 22px;
  }

  .header-actions {
    justify-content: flex-start;
    gap: 10px;
  }

  .btn-login,
  .btn-logout {
    padding: 9px 14px;
    font-size: 13px;
  }

  .user-status {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .team-avatar {
    width: 150px;
    height: 150px;
  }

  .carousel {
    height: 320px;
  }

  .carousel-button {
    padding: 12px 14px;
    font-size: 20px;
  }

  .ban {
    padding: 42px 18px;
  }

  .ban h1 {
    font-size: 28px;
  }

  .ban p {
    font-size: 16px;
  }

  .about-section,
  .news-section,
  .team-section,
  .courses-section,
  .contact-section,
  .galeria-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-header h2,
  .section-heading h2,
  .team-header h2,
  .courses-header h2,
  .galeria-header h2 {
    font-size: 30px;
  }

  .about-description {
    padding: 28px 22px;
  }

  .course-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .course-footer .btn,
  .course-footer button {
    width: 100%;
    text-align: center;
  }

  .team-list li {
    grid-template-columns: 72px 1fr;
    display: grid;
    align-items: center;
  }

  .footer-content {
    gap: 22px;
  }
}

@media (max-width: 600px) {
  .main-content {
    padding: 0 14px;
  }

  .header-content {
    gap: 10px;
  }

  .logo {
    max-width: calc(100% - 56px);
  }

  .logo span {
    font-size: 14px;
  }

  nav ul {
    width: min(280px, 88vw);
    padding: 76px 14px 18px;
  }

  .header-actions {
    width: 100%;
  }

  .btn-login,
  .user-status {
    width: 100%;
  }

  .user-status {
    justify-content: space-between;
  }

  .btn-logout {
    margin-left: auto;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .section-heading p,
  .team-header p,
  .courses-header p,
  .about-header p,
  .galeria-descricao {
    font-size: 15px;
  }

  .news-featured {
    padding: 16px;
    gap: 16px;
  }

  .article-shell {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .article-title {
    font-size: 26px;
  }

  .news-featured-media img {
    min-height: 200px;
  }

  .news-featured-content h3 {
    font-size: 22px;
  }

  .news-thumb,
  .course-thumb {
    height: 160px;
  }

  .news-grid,
  .courses-grid,
  .team-grid,
  .about-grid,
  .services-grid,
  .events-grid,
  .projects-grid,
  .gallery-grid,
  .team-highlights,
  .course-overview {
    grid-template-columns: 1fr;
  }

  .carousel {
    height: 240px;
  }

  .carousel-controls {
    bottom: 12px;
    gap: 8px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .carousel-button {
    padding: 10px 12px;
    font-size: 18px;
  }

  .about-section,
  .news-section,
  .team-section,
  .courses-section,
  .contact-section,
  .galeria-section {
    border-radius: 18px;
  }

  .about-card,
  .about-description,
  .news-item,
  .course-card,
  .team-card,
  .contact-card,
  .contact-info,
  .course-overview-card,
  .team-highlight,
  .modal-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .about-description {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .team-avatar {
    width: 128px;
    height: 128px;
  }

  .team-name {
    font-size: 16px;
  }

  .contact-grid {
    gap: 18px;
  }

  .modal {
    padding: 12px;
  }

  .modal-content,
  .modal-content-login {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 16px;
    border-radius: 16px;
  }

  .modal-header {
    gap: 12px;
    align-items: flex-start;
  }

  .team-list li {
    flex-direction: column;
    text-align: center;
    display: flex;
    gap: 10px;
  }

  .team-list-photo {
    width: 76px;
    height: 76px;
  }

  .image-modal-content {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 54px;
  }

  .image-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
  }

  .image-modal-nav.prev {
    left: 0;
  }

  .image-modal-nav.next {
    right: 0;
  }

  .image-modal-figure img {
    max-height: 68vh;
  }

  .image-modal-figure figcaption {
    font-size: 16px;
  }

  .filter-btn {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .main-content {
    margin: 20px auto;
  }

  .logo img {
    height: 30px;
  }

  .logo span {
    font-size: 13px;
  }

  .ban h1 {
    font-size: 24px;
  }

  .section-heading h2,
  .about-header h2,
  .team-header h2,
  .courses-header h2 {
    font-size: 24px;
  }

  .news-thumb,
  .course-thumb,
  .gallery-thumb {
    height: 148px;
  }

  .btn,
  .btn-small,
  .btn-login,
  .btn-logout,
  .filter-btn {
    width: 100%;
  }

  .user-status {
    flex-direction: column;
    align-items: stretch;
  }
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 500;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(10, 28, 51, 0.18);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn-light,
.btn-ghost-light {
  min-width: 180px;
}

.btn-light {
  background: #ffffff;
  color: var(--color-primary);
}

.btn-light:hover:not(:disabled) {
  box-shadow: 0 10px 24px rgba(7, 19, 36, 0.18);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 960px;
  margin: 34px auto 0;
  text-align: left;
}

.hero-metric {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.hero-metric span {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}

.quick-links-section {
  padding: 24px 0 8px;
  margin-bottom: 40px;
}

.quick-links-heading {
  margin-bottom: 22px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.quick-link-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 255, 0.96));
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 18px 36px rgba(15, 35, 60, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.quick-link-card:hover,
.quick-link-card:focus {
  transform: translateY(-6px);
  border-color: rgba(44, 90, 160, 0.24);
  box-shadow: 0 22px 44px rgba(15, 35, 60, 0.12);
}

.quick-link-label {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(44, 90, 160, 0.1);
  color: var(--color-secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-link-card strong {
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1.3;
}

.quick-link-card p {
  color: #5f6b7a;
  line-height: 1.7;
}

.institutional-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 30px;
}

.institutional-pillar {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #edf5ff);
  border: 1px solid rgba(30, 58, 95, 0.08);
}

.institutional-pillar strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 15px;
}

.institutional-pillar span {
  color: #5f6b7a;
  font-size: 14px;
  line-height: 1.6;
}

.contact-channels {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(44, 90, 160, 0.08);
  border: 1px solid rgba(44, 90, 160, 0.14);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-chip:hover,
.contact-chip:focus {
  background: rgba(44, 90, 160, 0.14);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .hero-metrics,
  .quick-links-grid,
  .institutional-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero-actions,
  .hero-metrics,
  .quick-links-grid,
  .institutional-pillars {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-light,
  .btn-ghost-light,
  .contact-chip {
    width: 100%;
  }

  .quick-link-card {
    padding: 20px 18px;
    border-radius: 18px;
  }
}

