/* Slider Container */
.custom-slider-container {
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.custom-swiper {
    width: 100%;
    height: 600px;
}

/* Slide Setup */
.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark Gradient Overlay for Readability */
.slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* Text Content Area */
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

/* Typography elements */
.slide-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: inherit;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.slide-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out 0.2s;
}

/* Call to Action Button */
.slide-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0073aa; /* Standard WP Blue, easy to override */
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out 0.4s;
}

.slide-button:hover, 
.slide-button:focus {
    background-color: #005177;
    color: #fff;
    transform: scale(1.05); /* Slight popup effect */
}

/* Animation triggers when slide is active */
.swiper-slide-active .slide-title, 
.swiper-slide-active .slide-subtitle, 
.swiper-slide-active .slide-button {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper Controls Navigation/Pagination customization */
.swiper-button-next, .swiper-button-prev {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: #fff;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
}

/* RTL Support - Swiper handles physical layout but we can ensure text alignment */
html[dir="rtl"] .slide-content,
[dir="rtl"] .slide-content {
    /* If you prefer text not to be centered but start from natural reading edge */
    /* text-align: right; */ 
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-swiper {
        height: 400px;
    }
    
    .slide-title {
        font-size: 2rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }
}
