* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
}

/* ===== HEADER ===== */
header.topo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 100;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

header.topo .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.topo h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

header.topo h1 a {
  text-decoration: none;
  color: #000;
}

header.topo nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  transition: color 0.3s;
}

header.topo nav a:hover {
  color: #444;
}

/* ===== CONTAINER ===== */
main.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 20px 60px;
}

/* ===== BANNER / CARROSSEL ===== */
.banner-carousel {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.carousel-container {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-slide.active {
  opacity: 1;
  position: relative;
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.8);
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 24px;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: rgba(255,255,255,1);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
}

.indicator.active {
  background: #fff;
}

/* ===== FRASE PROMOCIONAL ===== */
.intro {
  text-align: center;
  margin: 2rem auto 3rem;
  max-width: 800px;
}

.intro h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000;
}

.intro p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* ===== BUSCA ===== */
form {
  text-align: center;
  margin-bottom: 2rem;
}

form input[type="text"] {
  width: 60%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 4px;
  outline: none;
}

form button {
  padding: 10px 16px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
  margin-left: 6px;
}

form button:hover {
  background: #333;
}

/* ===== GRID DE CURSOS ===== */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  flex: 0 0 auto;
  width: 320px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}

.card h3 {
  font-size: 1.1rem;
  padding: 0.75rem 1rem 0 1rem;
  margin: 0;
  color: #000;
}

.card p {
  font-size: 0.9rem;
  padding: 0 1rem 1rem;
  color: #444;
  margin: 0;
}

.card .acoes {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ddd;
  padding: 0.75rem 1rem;
}

.card .acoes a {
  text-decoration: none;
  font-weight: bold;
  color: #000;
  transition: color 0.3s;
}

.card .acoes a:hover {
  color: #666;
}

/* ===== RODAPÉ ===== */
footer.rodape {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  background: #f5f5f5;
  color: #000;
  margin-top: 2rem;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  main.container {
    padding: 120px 1rem 40px;
  }

  .intro h2 {
    font-size: 1.6rem;
  }

  form input[type="text"] {
    width: 80%;
  }

  .grid {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }
}
