* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #001c43;
  color: #fff;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(70px);
  transition: all 1s ease-out;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

a {
  text-decoration: none;
  color: inherit;
}

header {
  width: 100%;
  height: 60px;
  background: rgba(0, 28, 67, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 4, 51, 0.5);
}

header .logo img {
  height: 145px;
  width: auto;
  margin-top: 8px;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

header nav ul li {
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

header nav ul li:hover {
  color: #00cfff;
}

.banner {
  width: 100%;
  height: 1000px;
  background-image: url("imagens/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.56);
}

.banner-text {
  position: relative;
  text-align: center;
  color: #ffffff;
}

.banner-text h1 {
  font-size: 2.8rem;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 15px rgba(201, 201, 201, 0.8);
}

.banner-text p {
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: 300;
}

main {
  background: linear-gradient(#001c43, #002b5b);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
}

/* Título principal dos cursos */
.titulo-principal {
  font-size: 2.8rem;
  margin-bottom: 60px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.151);
}

/* Carousel de cursos */
.carousel {
  position: relative;
  width: 85%;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.carousel-container {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.curso {
  min-width: 100%;
  padding: 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.curso h3 {
  font-size: 1.9rem;
  margin-bottom: 15px;
  color: #1da1f2;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 10px rgba(29, 161, 242, 0.3);
}

.curso p {
  margin: 6px 0;
  font-weight: 300;
  color: #e5e5e5;
  margin-left: auto;
  margin-right: auto;
}

.curso-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-3px);
  background: rgba(29, 161, 242, 0.1);
  box-shadow: 0 8px 20px rgba(29, 161, 242, 0.2);
}

.info-item span {
  color: #e5e5e5;
  font-weight: 500;
  font-size: 0.95rem;
}

.curso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(29, 161, 242, 0.3);
}

.curso-tipo {
  background: linear-gradient(135deg, #1da1f2, #00cfff);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.curso img {
  width: 70%;
  max-height: 300px;
  object-fit: cover;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Botões do carousel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #1da1f2;
  border: none;
  font-size: 2rem;
  padding: 100px 15px;
  cursor: pointer;
  z-index: 100;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  color: #70afee;
  font-size: 2.5rem;
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

/* Botão de informações do carousel */
.btn-info {
  margin: 10px auto;
  padding: 12px 24px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: block;
  z-index: 1;
}

.btn-info:hover {
  background: #68abee;
  transform: scale(1.05);
}

/* Bloco de informações do carousel */
.info {
  margin-top: 15px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ddd;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease, padding 0.3s;
  padding: 0 10px;
  opacity: 0.95;
  z-index: 0;
}

.info.show {
  max-height: 300px;
  padding: 15px 10px;
}

#pq-unimar {
  width: 100%;
  background: linear-gradient(180deg, #002b5b, #001c43);
  color: white;
  text-align: center;
  padding: 60px 0 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titulo-pq {
  font-size: 2.8rem;
  margin-bottom: 40px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  text-shadow: 0 0 15px rgba(0, 207, 255, 0.8);
}

.pq-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  width: 100%;
  max-width: 1300px;
}

.card-pq {
  background-color: #ffffff;
  width: 300px;
  min-width: 300px;
  border-radius: 10px;
  padding: 1.2vw;
  margin-top: 20px;
  margin-bottom: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  color: black;
  font-family: "Courier New", Courier, monospace;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 500px;
}

.card-pq h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #001c43;
  font-family: "Orbitron", sans-serif;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-pq img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card-pq:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Bloco de informações dos cards */
.saiba-mais {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s;
  opacity: 0.95;
  padding: 0 10px;
}

.saiba-mais.show {
  max-height: 300px;
  padding: 15px 10px;
}

.saiba-header {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  color: #001c43;
}

.btn-mais {
  margin-top: auto;
  padding: 12px 24px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: block;
}

footer {
  margin-top: 80px;
  padding: 20px;
  text-align: center;
  background: rgba(0, 28, 67, 0.9);
  color: #aaa;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#detalhe-cursos {
  background: linear-gradient(135deg, #002b5b 0%, #002b5b 100%);
  padding: 80px 0;
  color: white;
}

.container-detalhes {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.titulo-detalhes {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 20px;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 15px rgba(0, 207, 255, 0.8);
}

.subtitulo-detalhes {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 60px;
  color: #b0c4de;
  font-weight: 300;
}

.cursos-detalhes {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
  width: 100%;
}

.detalhe-curso {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  width: 100%;
}

.detalhe-curso:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.curso-header-detalhe {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(29, 161, 242, 0.3);
}

.titulo-detalhe {
  font-size: 1.8rem;
  color: #1da1f2;
  font-family: "Orbitron", sans-serif;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(29, 161, 242, 0.3);
}

.tipo-curso {
  display: inline-block;
  background: linear-gradient(45deg, #1da1f2, #00cfff);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.pr-detalhes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detalhe-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.detalhe-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.detalhe-item h4 {
  color: #1da1f2;
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
  font-family: "Orbitron", sans-serif;
}

.detalhe-item p {
  color: #e5e5e5;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

.login-section {
  background: linear-gradient (135deg, #002b5b 0%, #001c43 100%);
  padding: 50px 0px;
  color: white;
  text-align: center;
}

.login-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.login-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.login-container h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #1da1f2;
  font-family: "Orbitron", sans-serif;
}

.login-form {
  text-align: left;
}

.form-group {
  margin-bottom: 25px;
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #1da1f2;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(29, 161, 242, 0.3);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-map-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
}

.login-section {
  flex: 1;
  background-color: #001c43;
  padding: 20px 0px;
  color: white;
  text-align: center;
}

.map {
  flex: 1;
  margin-right: 290px;
  max-width: 600px;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.map:hover {
  transition: 0.3s ease-in-out;
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.map h2 {
  font-family: "Orbitron", sans-serif;
  background-color: #002b5b;
}

.btn-login {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #1da1f2 0%, #00cfff 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(29, 161, 242, 0.5);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  .curso {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .carousel {
    width: 95%;
  }

  .curso {
    flex: 0 0 calc(50% - 15px);
    padding: 15px;
  }

  .curso img {
    max-height: 200px;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 30px 10px;
  }

  .login-map-container {
    display: block;   /* força empilhar */
  }

  .login-section,
  .map {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px auto; /* centraliza e separa */
  }

  .map iframe {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 480px) {
  .curso {
    flex: 0 0 100%;
    /* 1 card por vez */
    margin: 0;
    padding: 15px;
  }

  .curso img {
    max-height: 150px;
  }

  .curso h3 {
    font-size: 1.2rem;
  }

  .curso p {
    font-size: 0.85rem;
  }

  .curso-tipo {
    display: none;
  }

  .curso-info {
    display: none;
  }

  .carousel-btn {
    font-size: 1.2rem;
    padding: 20px 5px;
  }

  .login-map-container {
    gap: 15px; /* menos espaço entre os blocos */
  }

  .login-section {
    padding: 15px 0;   /* menos espaço vertical */
  }

  .form-group label {
    font-size: 0.9rem; /* rótulos menores */
  }

  .form-group input {
    padding: 10px;
    font-size: 0.9rem;
  }

  .map iframe {
    height: 200px;
  }

  .btn-login {
    padding: 12px;
    font-size: 1rem;
  }

  .form-group input {
    padding: 10px;
    font-size: 0.9rem;
  }
}