/* Hero Slider */
.hero-slider {
    width: 100%;
    max-height: 75vh; /* Desktop height */
    overflow: hidden;
    position: relative;
}

.hero-slide {
    position: relative;
    width: 100%;
}

.hero-slide img {
    width: 100%;
    height: 75vh; /* Desktop height */
    object-fit: cover; /* Fill container without stretching */
    display: block;
}

/* Overlay for better readability */
.hero-slide::after {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.10); /* Overlay for contrast */
    z-index: 2; /* Behind text */
}

/* Text Position & Style */
.hero-text {
    position: absolute !important;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff !important; /* White text */
    z-index: 3 !important;     /* Ensure above overlay */
    width: 80%;
}

.hero-text h2,
.hero-text span {
    color: #ffffff !important;  /* White text */
    text-shadow: 0 2px 8px rgba(0,0,0,0.7); /* Improve readability */
}

.hero-text h2 {
    font-size: 55px;
    line-height: 1.3;
    font-weight: 700;
}

.hero-text span {
    font-size: 30px;
    font-weight: 300;
}

/* Slick dots positioned inside hero slider */
.hero-slider .slick-dots {
    position: absolute;
    bottom: 20px;        /* distance from bottom of slider */
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    justify-content: center;
    z-index: 5;          /* Above overlay but below text if needed */
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-slider .slick-dots li {
    margin: 0 5px; /* spacing between dots */
}

.hero-slider .slick-dots li button {
    font-size: 0;       /* hide default number */
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    background: transparent;
}

.hero-slider .slick-dots li button::before {
    content: '•';         /* bullet character */
    font-size: 16px;
    line-height: 12px;
    color: #fff;
    opacity: 0.6;
}

.hero-slider .slick-dots li.slick-active button::before {
    opacity: 1;
    color: #fff;
}

/* Responsive adjustments */

/* Large tablets / small desktops */
@media(max-width: 1199px){
    .hero-slider {
        max-height: 70vh;
    }
    .hero-slide img {
        height: 70vh;
    }
    .hero-text h2 {
        font-size: 50px;
    }
    .hero-text span {
        font-size: 28px;
    }
}

/* Medium tablets */
@media(max-width: 991px){
    .hero-slider {
        max-height: 60vh;
    }
    .hero-slide img {
        height: 60vh;
    }
    .hero-text {
        top: 48%; /* Slightly higher for smaller screens */
    }
    .hero-text h2 {
        font-size: 42px;
    }
    .hero-text span {
        font-size: 22px;
    }
}

/* Mobile */
@media(max-width: 767px){
    .hero-slider {
        max-height: 50vh;
    }
    .hero-slide img {
        height: auto;         /* Let height adjust automatically */
        max-height: 50vh;     /* Max height for mobile */
        object-fit: contain;   /* Prevent cropping on sides */
        width: 100%;
    }
    .hero-text {
        top: 80%; /* Adjust vertical alignment */
    }
    .hero-text h2 {
        font-size: 32px;
    }
    .hero-text span {
        font-size: 18px;
    }
}

/* Small phones */
@media(max-width: 480px){
    .hero-slider {
        max-height: 45vh;
    }
    .hero-slide img {
        height: auto;
        max-height: 45vh;
        object-fit: contain;
        width: 100%;
    }
    .hero-text {
        top: 42%; /* Further adjustment for small phones */
    }
    .hero-text h2 {
        font-size: 24px;
    }
    .hero-text span {
        font-size: 14px;
    }
}
