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

.var-color {
  color: #00ffff;
}

body,
html {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to right, #001f3f, #003366);
  color: white;
  min-height: 100vh;
}

header {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 1rem 2rem;
}

.container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col.center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-text {
  font-family: "Posterama 2001 W04 Regular";
  font-weight: 300;
  font-size: 2rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav a.active,
nav a:hover {
  color: #00ffff;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 0.7rem 1.3rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

main {
  margin: auto;
}

/* CATÁLOGO DE CURSOS */
.catalogo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  padding: 4rem 2rem;
  padding-top: 1rem;
}

.catalogo::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 12, 31, 0), #2c2c2c);
  z-index: 0;
}

.curso {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 280px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  visibility: visible;
  position: static;
}

.curso.oculto {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  visibility: hidden;
  position: absolute;
}

.curso img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.curso-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  padding: 1rem;
}

.curso:hover .curso-overlay {
  opacity: 1;
}

.curso-overlay h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.curso-overlay button {
  background: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.curso-overlay button:hover {
  background: #0445c9;
  color: #fff;
}

.btn-saiba_mais {
  display: block;
  margin: 1.5rem auto 0 auto;
  padding: 0.7rem 1.2rem;
  background-color: #0d3178;
  color: #fff;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: fit-content;
}

.btn-saiba_mais:hover {
  background-color: #00ffff;
}

/* MODAL */

.modal .descricao h4 {
  color: #0d3178;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.modal .descricao ul {
  padding-left: 1.2rem;
  text-align: left;
  margin-bottom: 1rem;
}

.modal .descricao ul li {
  margin-bottom: 0.5rem;
}

.modal .descricao .extra-info {
  color: #0d3178;
  font-weight: bold;
  font-size: 0.95rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: #fff;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  position: relative;
}

.modal-content img {
  width: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-content .descricao {
  flex: 1;
}

.modal-content .fechar {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #333;
}

.modal-content h2 {
  color: #333;
  margin: 1rem 0;
}

.modal-content p {
  color: #333;
}

@media screen and (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
  }

  .modal-content .descricao {
    text-align: center;
  }

  .modal-content .fechar {
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
  }

  .modal-content h2 {
    font-size: 1.4rem;
  }

  .modal-content p {
    font-size: 1rem;
  }

  .btn-saiba_mais {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }
}

.intro {
  position: relative;
  background-image: linear-gradient(#0d3178, rgba(5, 5, 3, 0.5)),
    url("../images/banner-semana.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 7rem 2rem;
  text-align: center;
  z-index: 0;
}

.intro h1 {
  font-family: "Posterama 2001 W04 Regular";
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.intro p {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.topic h2 {
  text-align: center;
}

h3,
h2 {
  color: #00ffff;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.7);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-whatsapp {
    margin-top: 1rem;
  }
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  padding: 1rem 2rem;
  z-index: 1000;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a,
.mobile-menu button {
  color: white;
  text-decoration: none;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-menu button {
  padding: 0.5rem 0;
  background-color: #25d366;
  border-radius: 5px;
  color: white;
  font-weight: bold;
}

/* MOBILE ONLY */
@media (max-width: 768px) {
  .col.center {
    display: none;
  }

  .btn-whatsapp {
    display: none;
  }

  .menu-btn {
    display: block;
    margin-left: auto;
  }

  .mobile-menu.show {
    display: block;
  }
}

.nautical-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  max-width: 100%;
  flex-wrap: wrap;
}

.nautical-divider .icon {
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

.nautical-divider .line {
  height: 2px;
  width: 60px;
  background: #00ffff;
  position: relative;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.botao-matricula {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  padding: 0.9rem 1.4rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.botao-matricula:hover {
  background-color: #157a3a;
  transform: scale(1.05);
}

/* Ajustes para mobile */
@media (max-width: 480px) {
  .botao-matricula {
    bottom: 15px;
    right: 15px;
    font-size: 0.95rem;
    padding: 0.8rem 1.2rem;
  }
}

.semana-nautica {
  text-decoration: none;
  padding: 0.5rem 2rem;
  border: 0.125rem solid #fff;
  border-radius: 5rem;
  color: #fff;
  transition: 0.3s;
  font-weight: 500;
}

.semana-nautica:hover {
  border: 0.125rem solid #00ffff;
  background: #00ffff;
}
