/* SLIDER STYLE */
/* Hero slider container */
.home-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    /* give top space if admin bar is present */
    transition: height .3s ease;
    height: 600px;
    /* <CHANGE> Set fixed height for hero slider */
	
	margin-top:100px;
}

/* wrapper contains slides in horizontal row */
.hero-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

/* each slide takes full viewport width inside wrapper */
.hero-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

/* media wrapper - now full width and height */
.hero-slide-media {
    position: absolute;
    /* <CHANGE> Changed to absolute to fill entire slide */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    /* <CHANGE> Changed to cover to fill entire space */
    object-fit: cover;
    object-position: center;
    display: block;
}

/* content block - now positioned at bottom as headline overlay */
.hero-slide-content {
    position: absolute;
    /* <CHANGE> Positioned absolutely at bottom */
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3), transparent);
    /* <CHANGE> Dark gradient for readability */
    z-index: 10;
}

.hero-slide-category {
    display: inline-block;
    background: #ff005a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-slide-title {
    font-size: 34px;
    line-height: 1.15;
    margin: 0;
    font-weight: 700;
    color: #fff;
    /* <CHANGE> Ensure white text for bottom overlay */
}

/* Slider arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    padding: 10px 14px;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 20;
    border-radius: 3px;
}

.hero-arrow.left {
    left: 12px;
}

.hero-arrow.right {
    right: 12px;
}

/* responsive: stack on small screens */
@media (max-width: 900px) {
    .home-hero-slider {
        height: 400px;
        /* <CHANGE> Smaller height on mobile */
    }

    .hero-slide {
        min-height: 400px;
    }

    .hero-slide-content {
        padding: 30px 20px;
    }

    .hero-slide-img {
        object-fit: cover;
    }

    .hero-slide-title {
        font-size: 24px;
    }
}

/* Account for WP admin bar so logged-in users don't overlap */
body.admin-bar .home-hero-slider {
    margin-top: 32px;
    /* WP admin bar height */
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 30;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
}

.hero-dot.active {
    background: #ff005a;
    transform: scale(1.4);
}

.home-slider .slide {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}