/* Slider Styles */

/* Container with fixed height */
.slider-container {
    position: relative;
    overflow: hidden;
    max-height: 600px; /* Adjust this value as needed */
    height: 600px; /* Fixed height */
}

/* Responsive height adjustments */
@media (max-width: 768px) {
    .slider-container {
        max-height: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        max-height: 300px;
        height: 300px;
    }
}

/* Slides wrapper */
.slider-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
    width: 100%;
    height: 100%;
}

/* Individual slide */
.slider-container .slider-wrapper > * {
    flex: 0 0 calc((100% - 30px) / 1); /* For single slide view */
    margin-right: 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

/* Image styling within slides */
.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This will crop and fill the container */
    object-position: center; /* Center the image */
    display: block;
}

/* For multiple slides per view */
.slider-container[data-slides-per-view="2"] .slider-wrapper > * {
    flex: 0 0 calc((100% - 30px) / 2);
}

.slider-container[data-slides-per-view="3"] .slider-wrapper > * {
    flex: 0 0 calc((100% - 60px) / 3);
}

/* Navigation buttons */
.slider-navigation {
    position: absolute;
    bottom: 8px;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.slider-nav-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.slider-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.slider-nav-btn:disabled {
    background: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
}

/* Pagination dots */
.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s ease;
}

.slider-dot.active {
    background: #333;
}

/* Focus styles for accessibility */
.slider-nav-btn:focus {
    outline: 2px solid #3B3D78;
    outline-offset: 2px;
}

.slider-dot:focus {
    outline: 2px solid #3B3D78;
    outline-offset: 2px;
}

/* Custom height classes */
.slider-height-small {
    max-height: 300px;
    height: 300px;
}

.slider-height-medium {
    max-height: 500px;
    height: 500px;
}

.slider-height-large {
    max-height: 700px;
    height: 700px;
}

/* Aspect ratio classes */
.slider-aspect-16-9 {
    aspect-ratio: 16/9;
    height: auto;
    max-height: none;
}

.slider-aspect-4-3 {
    aspect-ratio: 4/3;
    height: auto;
    max-height: none;
}

.slider-aspect-square {
    aspect-ratio: 1/1;
    height: auto;
    max-height: none;
} 