/* Custom Slider Styles for Homepage Hero Slider */

/* Slider Section Padding and Background */
.slider-section {
    padding: 0;
    /* Removed padding to fix fit */
    position: relative;
    background-color: #e3f2fd;
    overflow: hidden;
}

/* Animated Gradient Background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Alternative: Softer Educational Theme Gradient */
.slider-section.soft-theme {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 25%, #90caf9 50%, #64b5f6 75%, #42a5f5 100%);
}

/* Overlay for better text readability */
.slider-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

/* Ensure content is above overlay */
.slider-section .container {
    position: relative;
    z-index: 1;
}

/* Ensure container overlay fills height for vertical alignment */
.slider-section .container-overlay {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    /* Ensure it centers like a normal container */
    pointer-events: none;
    /* Allow clicks to pass through to images if needed, but we have text links! so be careful. Actually, remove pointer-events: none if text has interactions. Text has links? Yes, buttons. So DO NOT USE pointer-events: none on the container itself if it wraps content. BUT wait, if I put pointer-events: none, I can't click buttons. So don't add it. */
}

/* Align row content to bottom */
.slider-section .container-overlay .row {
    height: 100%;
    align-items: center;
    /* Pushes content to bottom */
    padding-bottom: 0;
}

/* Single Slide Styling */
.slider-section .single-slide {
    outline: none;
    margin: 0;
    padding: 0;
    border: none;
}

/* Update text colors to white for better visibility on images */
.slider-section .banner-text h2 {
    color: #ffffff !important;
    padding-right: 0;
    padding-left: 0;
    margin-left: -10px !important;
    /* Increased to align with 'A' in 'About SproutSong' */
}

/* Ensure paragraph aligns too */
.slider-section .banner-text p {
    color: #efefef !important;
    padding-left: 0;
    margin-left: -45px !important;
}

/* Ensure button aligns too */
.slider-section .banner-text .search-form {
    margin-left: -45px !important;
}

.slider-section .banner-text p {
    color: #efefef !important;
}

/* CSS cleaned up: Text is now in span for i18n, arrow is text node */

/* Flexbox for Button to fix "out of box" arrow alignment */
.slider-section .banner-text .search-form a.btn-default {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    height: 50px !important;
    /* Ensure consistent height */
    padding: 0 30px !important;
}

/* Restored Icon styling */
.slider-section .banner-text .search-form a.btn-default i {
    display: inline-block !important;
    position: static !important;
    margin-left: 10px !important;
    /* Increased spacing */
    background: none !important;
    width: auto !important;
    height: auto !important;
    line-height: inherit !important;
    color: inherit !important;
    font-size: inherit !important;
    transform: none !important;
    /* Reset any main.css transforms */
}

/* Fix Slider Image Height - Responsive */
.slider-section .single-slide {
    height: calc(100vh - 115px);
    /* Match the image height to prevent stacking */
    min-height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
}

.slider-section .single-slide img {
    height: 100%;
    /* Fill the slide container */
    min-height: 500px;
    width: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0;
}

/* Tablet Responsiveness */
/* Tablet Img Height Reset */
@media (max-width: 991px) {
    .slider-section .single-slide img {
        height: 100%;
        min-height: 500px;
    }
}

/* Mobile Responsiveness */
/* Mobile Img Height & Position Fix */
@media (max-width: 991px) {

    /* Mobile Height Adjustment (Reduce Zoom) */
    .slider-section .single-slide {
        height: 45vh !important;
        min-height: 280px;
        display: block !important;
        background: transparent;
        padding-bottom: 0;
    }

    /* Default Center Center Alignment */
    .slider-section .single-slide img {
        height: 100%;
        min-height: 280px;
        object-position: center center !important;
        width: 100% !important;
        object-fit: cover !important;
        position: static !important;
    }

    /* Program Slide (Man): Focus Right Center */
    .slider-section .single-slide.slide-programs img {
        object-position: 100% 50% !important;
    }

    /* Educators Slide (Manager): Focus Left Center */
    .slider-section .single-slide.slide-educators img {
        object-position: 20% 50% !important;
    }

    /* Remove Grey Overlay for Clear Image */
    .slider-section::before,
    .slider-section .single-slide::before {
        display: none !important;
    }

    /* Force White Text on Mobile & Fix Alignment */
    body .slider-section .banner-text h2,
    body .slider-section .banner-text h2 span,
    body .slider-section .banner-text p,
    body .slider-section .banner-text p span {
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5) !important;
        text-align: center !important;
        margin-left: 0 !important;
        /* Reset desktop negative margin */
        padding: 0 !important;
    }

    /* Center the Button */
    .slider-section .banner-text .search-form {
        margin-left: 0 !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Reset Overlay Layout with Gradient for Readability */
    .slider-section .container-overlay {
        position: absolute !important;
        height: 100% !important;
        margin-top: 0 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0) 70%) !important;
        padding: 0 !important;
    }

    .slider-section .container-overlay .row {
        height: 100% !important;
        padding-bottom: 70px !important;
        align-items: flex-end !important;
    }

    .slider-section .banner-text {
        padding: 0 15px !important;
        width: 100% !important;
        margin: 0 !important;
        transform: translateY(-60px) !important;
    }

    /* Fix Background Main Title Center Alignment */
    .main-section .main-title {
        font-size: 60px !important;
        left: 0 !important;
        width: 100% !important;
        text-align: center !important;
        overflow: hidden !important;
    }
}

/* Navigation Arrows */
.slider-section .slick-prev,
.slider-section .slick-next {
    width: 50px;
    height: 50px;
    background-color: rgba(19, 94, 158, 0.9);
    border-radius: 50%;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Button Hover Effect: Lift & Shadow (No Color Change) */
.slider-section .banner-text .search-form a.btn-default {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slider-section .banner-text .search-form a.btn-default:hover {
    background-color: #155799 !important;
    /* Stay Blue */
    color: #ffffff !important;
    /* Stay White */
    transform: translateY(-3px);
    /* Lift up */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Soft shadow */
    text-decoration: none;
}

/* Arrow Hover - Ensure no change */
.slider-section .banner-text .search-form a.btn-default:hover i {
    color: #ffffff !important;
    /* Arrow stays white */
}

/* Nav Arrow Hover */
.slider-section .slick-prev:hover,
.slider-section .slick-next:hover {
    background-color: #f37335;
    /* Nav arrows can change color if desired, currently orange */
    transform: translateY(-50%) scale(1.1);
}

.slider-section .slick-prev {
    left: 30px;
}

.slider-section .slick-next {
    right: 30px;
}

.slider-section .slick-prev i,
.slider-section .slick-next i {
    color: #fff;
    font-size: 24px;
    line-height: 50px;
}

/* Navigation Dots */
.slider-section .slick-dots {
    bottom: auto;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: auto;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.slider-section .slick-dots li {
    margin: 8px 0;
    display: block;
    width: auto;
    height: auto;
}

.slider-section .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    /* Ensure circular initial state */
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #135e9e;
    transition: all 0.3s ease;
}

.slider-section .slick-dots li button:hover {
    background: rgba(243, 115, 53, 0.7);
    border-color: #f37335;
}

.slider-section .slick-dots li.slick-active button {
    background: #f37335;
    border-color: #f37335;
    height: 30px;
    width: 12px;
    border-radius: 10px;
}

/* Banner Image Styling */
.slider-section .banner-img {
    position: relative;
    z-index: 1;
}

.slider-section .banner-img img.circular-image {
    border-radius: 50%;
    width: 100%;
    max-width: 600px;
    /* Increased from 400px */
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.slider-section .banner-img img.circular-image:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .slider-section .single-slide img {
        height: 100%;
    }

    /* Adjust padding for mobile text */
    .slider-section .container-overlay .row {
        padding-bottom: 70px;
        /* Space for bottom dots/navigation */
        align-items: flex-end;
    }

    .slider-section .slick-prev {
        left: 15px;
    }

    .slider-section .slick-next {
        right: 15px;
    }

    .slider-section .slick-prev,
    .slider-section .slick-next {
        width: 40px;
        height: 40px;
    }

    .slider-section .slick-prev i,
    .slider-section .slick-next i {
        font-size: 20px;
        line-height: 40px;
    }
}

@media (max-width: 991px) {
    .slider-section {
        padding: 50px 0 70px;
    }

    .slider-section .slick-prev,
    .slider-section .slick-next {
        width: 35px;
        height: 35px;
    }

    .slider-section .slick-prev i,
    .slider-section .slick-next i {
        font-size: 18px;
        line-height: 35px;
    }

    .slider-section .slick-dots {
        bottom: 20px;
        top: auto;
        right: 0;
        left: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
    }

    .slider-section .slick-dots li {
        margin: 0 5px;
    }

    .slider-section .slick-dots li.slick-active button {
        width: 20px;
        height: 10px;
    }

}

/* Hide decorative circles from search-form */
.slider-section .banner-text .search-form::before,
.slider-section .banner-text .search-form::after {
    display: none !important;
    content: none !important;
}

/* Button Customization for Slider */
.slider-section .banner-text .search-form a.btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-left: 30px;
    padding-right: 30px;
}

.slider-section .banner-text .search-form a.btn-default:hover {
    color: #ffffff !important;
    background-color: #135e9e !important;
    /* Maintain default blue, no color change */
    border-color: #135e9e !important;
    text-decoration: none;
}

/* CSS cleaned up: Text is now in span for i18n, arrow is text node */

/* Arrow is now hardcoded in HTML for reliability */
/* Fix slider text visibility and position - CORRECTED */
.slider-section .banner-text {
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
    position: relative !important;
    animation-name: none !important;
    transform: translateY(-60px) !important;
    display: block !important;
}

.slider-section .container-overlay {
    z-index: 100 !important;
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
}

.slider-section .container-overlay {}

.slider-section .banner-text {}

/* Move slider text up slightly */
.slider-section .banner-text {}