.minimal-slider {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff; /* This background will only show if the slide itself doesn't cover */
    box-sizing: border-box;
    width: 100%; /* Follow container width */
    height: auto; /* Allow height to be controlled by settings */
}

.minimal-slider * {
    box-sizing: border-box;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    box-sizing: border-box;
    /* Added background properties for robust full-frame coverage */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #fff; /* Fallback background color for the slide itself */
}

.slide.active {
    opacity: 1;
    z-index: 3;
}

.slide img {
    /* The img tag is still important for accessibility and SEO */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    box-sizing: border-box;
    /* Hide the img if it's purely for semantic purposes and the background handles display */
    opacity: 0; /* Hide the img tag so the background-image on the slide itself takes precedence */
    position: absolute; /* To allow background to show fully */
    top: 0; 
    left: 0;
}

/* Ensure the link container also occupies full space */
.slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Navigation Dots */
.navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
    box-sizing: border-box;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    border: none;
    padding: 0;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    box-sizing: border-box;
    padding: 0;
}

.minimal-slider:hover .nav-arrow {
    opacity: 1;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.nav-arrow.prev {
    left: 15px;
}

.nav-arrow.next {
    right: 15px;
}

.nav-arrow::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 2px solid white;
    border-left: none;
    border-bottom: none;
    box-sizing: border-box;
}

.nav-arrow.prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.nav-arrow.next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .minimal-slider {
        border-radius: 8px;
    }
    
    .nav-arrow {
        width: 35px;
        height: 35px;
        opacity: 0.7;
    }
    
    .navigation {
        bottom: 15px;
    }
}