/**
 * Hero Slider Styles (Premium & Performance-First)
 */

.cp-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: var(--hero-slider-h-d, 500px);
    background: #f8f8f8; /* Placeholder while loading */
    margin-bottom: 30px;
}

.hs-track-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hs-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.hs-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.hs-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
}

.hs-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none; /* Prevent dragging the image itself */
}

.hs-img-desktop {
    display: block;
}

.hs-img-mobile {
    display: none;
}

/* Navigation Arrows */
.hs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; 
    height: 32px;
    background: rgba(253, 253, 253, 0.7); /* Slightly transparent */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Border related to background */
    border-radius: 12px;
    color: #555;
    backdrop-filter: blur(4px); /* Professional frosted glass effect */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.hs-nav:hover {
    background: rgba(253, 253, 253, 0.9);
}

.hs-nav svg {
    width: 20px; /* Match category section */
    height: 20px;
}

.hs-nav-prev {
    left: 15px;
}

.hs-nav-next {
    right: 15px;
}

/* Pagination Dots (Thin Lines) */
.hs-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hs-dot {
    width: 30px;
    height: 2px; /* Very thin as requested */
    background: rgba(0, 0, 0, 0.1); /* Subtle inactive state */
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.hs-dot.active {
    background: var(--primary); /* Use brand color */
    width: 45px; /* Subtle growth for active state */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cp-hero-slider {
        height: var(--hero-slider-h-m, 400px);
    }

    .hs-img-desktop {
        display: none;
    }

    .hs-img-mobile {
        display: block;
    }

    .hs-nav {
        width: 26px; /* Slightly larger to fit the border and icon comfortably */
        height: 26px;
        border-radius: 38%; /* Adjusted as requested */
    }

    .hs-nav svg {
        width: 16px; 
        height: 16px;
    }

    .hs-nav-prev {
        left: 8px;
    }

    .hs-nav-next {
        right: 8px;
    }

    .hs-track {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; /* Extra smooth on iOS */
        touch-action: pan-x pan-y; /* Optimize for swiping */
    }
}

/* Performance Optimization: Ensure no layout shifts */
.hs-img {
    aspect-ratio: auto;
}
