/* 
===========================================
NIVO SLIDER FIXES FOR Pathshala The Iconic School
===========================================
This file fixes the carousel/slider issues
*/

/* Fix slider container */
.slider-area {
    position: relative;
    overflow: hidden;
}

.preview-2 {
    position: relative;
}

/* Fix navigation arrows positioning and visibility */
.preview-2 .nivo-directionNav a {
    color: rgba(0, 0, 0, 0);
    cursor: pointer;
    display: block;
    font-size: 0;
    height: 60px;
    margin-top: -30px;
    position: absolute;
    top: 50%;
    width: 60px;
    z-index: 999;
    opacity: 1 !important; /* Force visibility */
}

.preview-2 .nivo-directionNav a::after {
    background: rgba(255, 255, 255, 0.8) none repeat scroll 0 0;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: #333;
    content: "\f053"; /* FontAwesome left arrow */
    display: inline-block;
    font-family: FontAwesome;
    font-size: 20px;
    height: 50px;
    left: 5px;
    line-height: 46px;
    position: absolute;
    text-align: center;
    top: 5px;
    width: 50px;
    transition: all 0.3s ease 0s;
}

.preview-2 .nivo-directionNav a.nivo-prevNav {
    left: 20px;
}

.preview-2 .nivo-directionNav a.nivo-nextNav {
    right: 20px;
}

.preview-2 .nivo-directionNav a.nivo-nextNav::after {
    content: "\f054"; /* FontAwesome right arrow */
}

.preview-2 .nivo-directionNav a:hover::after {
    background: #007bff none repeat scroll 0 0;
    color: white;
    border-color: #007bff;
}

/* Fix control navigation (dots) */
.preview-2 .nivo-controlNav {
    bottom: 20px;
    left: 0;
    position: absolute;
    right: 0;
    text-align: center;
    z-index: 999;
    display: block !important; /* Force visibility */
}

.preview-2 .nivo-controlNav a {
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 100%;
    cursor: pointer;
    display: inline-block;
    height: 12px;
    line-height: 8px;
    margin: 0 5px;
    position: relative;
    text-indent: -9999px;
    width: 12px;
    z-index: 9;
    transition: all 0.3s ease 0s;
}

.preview-2 .nivo-controlNav a:hover, 
.preview-2 .nivo-controlNav a.active {
    background: #007bff none repeat scroll 0 0;
    border-color: #007bff;
    cursor: pointer;
    height: 12px;
    line-height: 12px;
    width: 12px;
    transform: scale(1.2);
}

/* Fix slider direction content positioning */
.slider-direction {
    position: absolute;
    left: 0; 
    top: 0;  
    width: 100%;
    height: 100%;
    background: none;
    color: #fff;
    font-size: 16px;
    z-index: 10;
    display: none; /* Hidden by default, shown by nivo */
}

.slider-direction.active {
    display: block;
}

/* Ensure slider content is properly positioned */
.slider-content {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Fix slider text positioning */
.slider-text {
    padding: 40px 0;
}

.slider-text h5 {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 10px;
    font-weight: 400;
}

.slider-text h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.slider-content-1 p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Fix slider buttons */
.slider-button {
    margin-top: 30px;
}

.slider-button .ready-btn {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
}

/* Fix slider right icon */
.slider-right {
    text-align: center;
}

.single-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .slider-text h1 {
        font-size: 32px;
    }
    
    .slider-text h5 {
        font-size: 18px;
    }
    
    .slider-content-1 p {
        font-size: 16px;
    }
    
    .preview-2 .nivo-directionNav a {
        height: 40px;
        width: 40px;
        margin-top: -20px;
    }
    
    .preview-2 .nivo-directionNav a::after {
        height: 30px;
        width: 30px;
        line-height: 26px;
        font-size: 14px;
        left: 5px;
        top: 5px;
    }
    
    .preview-2 .nivo-directionNav a.nivo-prevNav {
        left: 10px;
    }
    
    .preview-2 .nivo-directionNav a.nivo-nextNav {
        right: 10px;
    }
}

/* Fix any potential z-index conflicts */
.nivoSlider {
    position: relative;
    z-index: 1;
}

.nivo-slice,
.nivo-box {
    z-index: 2;
}

.slider-direction {
    z-index: 3;
}

.nivo-directionNav,
.nivo-controlNav {
    z-index: 4;
}

/* Ensure smooth transitions */
.slider-area .preview-2,
.slider-area .nivoSlider {
    transition: opacity 0.3s ease;
}

/* Fix overlay text visibility */
.slider-text {
    position: relative;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}