/* Estilos específicos para o banner da página inicial */
.hero-banner {
  padding: 0;
  margin: 0;
  max-height: 500px;
  overflow: hidden;
}

.hero-banner .carousel,
.hero-banner .carousel-inner,
.hero-banner .carousel-item {
  height: 500px;
}

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

.hero-banner .carousel-caption {
  background: linear-gradient(to right, rgba(0, 56, 112, 0.9), rgba(0, 56, 112, 0.7));
  padding: 25px 30px;
  border-radius: 4px;
  max-width: 70%;
  margin: 0 auto;
  bottom: 60px;
  left: 15%;
  right: 15%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-left: 4px solid #ffc107;
  text-align: left;
}

.hero-banner .carousel-caption h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero-banner .carousel-caption h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background-color: #ffc107;
  margin-top: 10px;
}

.hero-banner .carousel-caption .banner-description {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.5;
  opacity: 0.9;
}

.hero-banner .carousel-caption .btn-primary {
  background-color: #003870;
  border-color: #003870;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-banner .carousel-caption .btn-primary:hover {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #003870;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Ajustes para o banner estático quando não há carrossel */
.hero-banner .hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  background-color: rgba(0, 56, 112, 0.7);
  padding: 30px;
  border-radius: 5px;
}

/* Ajustes responsivos */
@media (max-width: 992px) {
  .hero-banner .carousel-caption {
    max-width: 85%;
    padding: 20px 25px;
    bottom: 50px;
  }
  
  .hero-banner .carousel-caption h2 {
    font-size: 2rem;
  }
  
  .hero-banner .carousel-caption .banner-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-banner,
  .hero-banner .carousel,
  .hero-banner .carousel-inner,
  .hero-banner .carousel-item,
  .hero-banner .carousel-item img {
    height: 400px;
  }
  
  .hero-banner .carousel-caption {
    max-width: 90%;
    padding: 15px 20px;
    bottom: 40px;
    left: 5%;
    right: 5%;
  }
  
  .hero-banner .carousel-caption h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .hero-banner .carousel-caption h2:after {
    width: 60px;
    margin-top: 8px;
  }
  
  .hero-banner .carousel-caption .banner-description {
    margin-bottom: 15px;
  }
  
  .hero-banner .carousel-caption .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-banner,
  .hero-banner .carousel,
  .hero-banner .carousel-inner,
  .hero-banner .carousel-item,
  .hero-banner .carousel-item img {
    height: 300px;
  }
  
  .hero-banner .carousel-caption {
    max-width: 100%;
    padding: 12px 15px;
    bottom: 20px;
    left: 0;
    right: 0;
    border-radius: 0;
    border-left: none;
    border-bottom: 3px solid #ffc107;
  }
  
  .hero-banner .carousel-caption h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
  }
  
  .hero-banner .carousel-caption h2:after {
    width: 50px;
    height: 2px;
    margin-top: 5px;
  }
  
  .hero-banner .carousel-caption .banner-description {
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.3;
  }
}
