/* Carousel styles */

/* ===== Carousel Styles ===== */
/* ===== Carousel Hero Section ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* fixed header height */
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carousel {
    position: relative;
    width: 100%;
    height: calc(112vh - 60px); /* subtract header height */
    overflow: hidden;
    margin-top: 60px; /* offset for fixed header */
}


.carousel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.35);
    padding: 0 20px;
    box-sizing: border-box;
}

/* Overlay text */
.carousel-overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.carousel-overlay p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}


/* CTA buttons */
.carousel-overlay .cta-buttons a {
    display: inline-block;
    margin: 0.5rem 1rem;
    padding: 0.8rem 1.5rem;
    background-color: rgb(176, 148, 12);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.carousel-overlay .cta-buttons a:hover {
    background-color: #000066;
}


/* IMAGE CAROUSEL FIX */
.image-carousel {
  width: 100%;
  max-width: 70%; /*previous 1000px*/
  margin: 20px auto;
}

.carousel-container {
  width: 100%;
  overflow: hidden;   /* 👈 CRITICAL */
  position: relative;
}

.image-carousel-slide {
  display: flex;      /* images side-by-side */
  width: 100%;
  transition: transform 0.5s ease-in-out;
  gap: 8px;
  
}
.image-carousel-slide.no-transition {
  transition: none;   /* used during jump reset */
}

.image-carousel-slide img {
width: 100%;
  height: 300px;        /* MUST match container height */
  object-fit: cover; 
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}


.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 100%;            /* Show one image at a time */
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 10px;
}

/* Buttons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 24px;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }





/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .carousel-overlay h1 {
        font-size: 2.2rem;
    }
    .carousel-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: calc(60vh - 60px); /* smaller height for mobile */
    }
    .carousel-overlay h1 {
        font-size: 1.8rem;
    }
    .carousel-overlay p {
        font-size: 0.9rem;
    }
    .carousel-overlay .cta-buttons a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin: 0.3rem;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: calc(50vh - 60px); /* very small screens */
    }
    .carousel-overlay h1 {
        font-size: 1.5rem;
    }
    .carousel-overlay p {
        font-size: 0.8rem;
    }
}




/*===================end style===============*/
