/* =========================================================
   HERO UNIFIED CAROUSEL (FINAL CLEAN VERSION)
   ========================================================= */

   .hero-section {
    width: 95vw;

    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: 3 / 2;            /* keeps 6000×4000 ratio everywhere */
    height: 90vh;
    position: relative;
    border-radius: 0.5rem;
    background: transparent;        /* removed black box */
    overflow: hidden;
  }

  .hero-carousel {
  height: 75vh;                /* Adjust height */
  min-height: 500px;           /* Ensures decent vertical size */
}
.hero-carousel .carousel-item video,
.hero-carousel .carousel-item div {
  height: 100% !important;     /* Match parent height */
  object-fit: cover;
}

  
  /* ===== Carousel Container ===== */
  .hero-carousel {
    position: relative;
    width: 100%;
    border-radius: 0.41rem;
    overflow: hidden;
  }
  
  /* ===== Track (holds all slides) ===== */
  .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
  }
  
  /* ===== Each Slide ===== */
  .carousel-item {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    overflow: hidden;
    background: transparent;
  }
  
  /* Uniform scaling for images & videos */
  .carousel-item img,
  .carousel-item video {
    width: 95%;
    height: 95%;
    object-fit: cover;              /* fills fully but keeps proportions */
    border-radius: 1rem;
    transition: transform 0.8s ease;
  }
  
  /* Optional subtle zoom effect */
  .carousel-item img:hover,
  .carousel-item video:hover {
    transform: scale(1.02);
  }
  
  /* ===== Dots Navigation ===== */
  .carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
  }
  
  .carousel-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .carousel-dots button.active {
    background: #2563eb;
  }
  
  /* ===== Navigation Arrows ===== */
  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
  }
  
  .carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
  }
  
  .carousel-arrow.prev { left: 1rem; }
  .carousel-arrow.next { right: 1rem; }
  
  /* ===== MARQUEE ===== */
  .notice-marquee {
    background: #1e293b;
    color: #fff;
    padding: 0.5rem;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
  }
  
  /* =========================================================
     RESPONSIVE OPTIMIZATION
     ========================================================= */
  
  /* Small screens (mobiles) */
@media (max-width: 768px) {
  .hero-section {
    width: 100vw;
    max-width: 100%;
    aspect-ratio: 3 / 2;        /* lock hero height by ratio */
    height: auto;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  .carousel-item {
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .carousel-item img,
  .carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* fills frame fully */
    border-radius: 0;
    display: block;
  }

  /* remove gaps below section */
  .hero-section + section {
    margin-top: 0;
  }

  .carousel-dots {
    bottom: 0.5rem;
  }

  .carousel-arrow {
    width: 32px;
    height: 32px;
  }
}
