/* Hero Section - 2 Image Carousel */
#home {
  width: 100%;
  margin-top: 0;
  padding: 0;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  margin: 0;
  padding: 0;
}

.carousel-inner {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.carousel-item {
  width: 100%;
  height: 100vh;
  min-height: 700px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* 
  ✅ KEY FIX:
  .carousel-caption-wrapper spans full width and is vertically centered.
  The inner Bootstrap .container aligns it identically to the navbar logo.
  .carousel-caption-content holds the actual text, left-aligned.
*/
.carousel-caption-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  pointer-events: none; /* let clicks pass through to controls */
}

.carousel-caption-wrapper .container {
  pointer-events: none;
}

.carousel-caption-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 55%;
  max-width: 600px;
  pointer-events: all; /* re-enable clicks on text & buttons */
}

.hero-badge {
  display: inline-block;
  background: #D32F2F;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 25px;
  animation: fadeInUp 0.6s ease;
}

.carousel-caption-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease;
  line-height: 1.2;
  text-align: left;
}

.carousel-caption-content p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 500px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
  line-height: 1.6;
  text-align: left;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeInUp 1.2s ease;
}

.hero-buttons .btn {
  padding: 12px 35px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: #D32F2F;
  color: #ffffff;
}

.btn-primary:hover {
  background: #FFD700;
  color: #D32F2F;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #003366;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  opacity: 0.7;
  transition: all 0.3s ease;
  border: none;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: transparent;
  opacity: 0.5;
  transition: all 0.3s ease;
  padding: 0;
  cursor: pointer;
}

.carousel-indicators button.active {
  background-color: #FFD700;
  opacity: 1;
  transform: scale(1.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .carousel-item {
    height: 500px;
  }

  .hero-carousel {
    min-height: 500px;
  }

  .carousel-caption-content {
    width: 65%;
  }

  .carousel-caption-content h1 {
    font-size: 2.5rem;
  }

  .carousel-caption-content p {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    padding: 10px 30px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  #home {
    padding-top: 0;
    margin-top: 0;
  }

  .hero-carousel {
    height: 350px;
    min-height: 350px;
    margin-top: 0;
  }

  .carousel-item {
    height: 350px;
    min-height: 350px;
  }

  .carousel-caption-content {
    width: 90%;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 15px;
    margin-bottom: 15px;
  }

  .carousel-caption-content h1 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    text-align: left !important; /* override global mobile center */
  }

  .carousel-caption-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: left !important; /* override global mobile center */
  }

  .hero-buttons {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: auto;
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 35px;
    height: 35px;
  }

  .carousel-control-prev {
    left: 8px;
  }

  .carousel-control-next {
    right: 8px;
  }

  .carousel-indicators {
    bottom: 15px;
  }

  .carousel-indicators button {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 576px) {
  .hero-carousel {
    height: 300px;
    min-height: 300px;
  }

  .carousel-item {
    height: 300px;
    min-height: 300px;
  }

  .carousel-caption-content {
    width: 95%;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
    margin-bottom: 12px;
  }

  .carousel-caption-content h1 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-align: left !important;
  }

  .carousel-caption-content p {
    font-size: 0.8rem;
    margin-bottom: 12px;
    text-align: left !important;
  }

  .hero-buttons {
    gap: 8px;
  }

  .hero-buttons .btn {
    width: auto;
    padding: 8px 16px;
    font-size: 0.75rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 30px;
    height: 30px;
  }

  .carousel-indicators {
    bottom: 10px;
    gap: 8px;
  }

  .carousel-indicators button {
    width: 8px;
    height: 8px;
  }
}