/* Nivo Slider Styles */
.nivoSlider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.nivoSlider img {
    position: absolute;
    top: 0px;
    left: 0px;
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nivo-main-image {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

/* Direction nav styles */
.nivo-directionNav a {
    position: absolute;
    top: 50%;
    z-index: 99;
    cursor: pointer;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 18px;
}

.nivo-directionNav a:hover {
    background: rgba(139, 69, 19, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.nivo-prevNav {
    left: 20px;
}

.nivo-nextNav {
    right: 20px;
}

/* Control nav styles */
.nivo-controlNav {
    text-align: center;
    padding: 20px 0;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
}

.nivo-controlNav a {
    cursor: pointer;
    display: inline-block;
    width: 15px;
    height: 15px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    margin: 0 5px;
    text-indent: -9999px;
    border: 2px solid rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.nivo-controlNav a.active {
    background: #8B4513;
    border-color: #FFD700;
    transform: scale(1.3);
}

.nivo-controlNav a:hover {
    background: rgba(139, 69, 19, 0.8);
    border-color: #FFD700;
    transform: scale(1.2);
}

/* Caption styles */
.nivo-caption {
    position: absolute;
    left: 0px;
    bottom: 0px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    width: 100%;
    z-index: 89;
    padding: 30px 20px 20px;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.nivo-caption p {
    padding: 5px;
    margin: 0;
}

.nivo-caption a {
    display: inline !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nivoSlider {
        height: 300px;
    }
    
    .nivo-directionNav a {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .nivo-prevNav {
        left: 10px;
    }
    
    .nivo-nextNav {
        right: 10px;
    }
    
    .nivo-caption {
        font-size: 16px;
        padding: 20px 15px 15px;
    }
}

@media (max-width: 480px) {
    .nivoSlider {
        height: 250px;
    }
    
    .nivo-directionNav a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .nivo-controlNav a {
        width: 12px;
        height: 12px;
        margin: 0 3px;
    }
    
    .nivo-caption {
        font-size: 14px;
        padding: 15px 10px 10px;
    }
}