/* Custom slideshow styles for all languages */
#slideshow .carousel-item {
    min-height: 70vh;
    position: relative;
}

#slideshow .carousel-item img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: center;
}

#slideshow .carousel-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center !important;
    width: 80%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

#slideshow .carousel-container h2 {
    color: white;
    text-align: center !important;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    width: 100%;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

#slideshow .carousel-container .btn-get-started {
    display: inline-block;
    background-color: #99ae3b;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 10px;
}

#slideshow .carousel-container .btn-get-started:hover {
    background-color: #82953a;
    transform: translateY(-3px);
}

/* Make sure indicators are visible */
#slideshow .carousel-indicators {
    z-index: 3;
}

/* Darker overlay to ensure text visibility */
#slideshow .carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Fix for RTL (Kurdish) */
html[lang="ckb"] #slideshow .carousel-container,
html[lang="ku"] #slideshow .carousel-container {
    direction: rtl;
    text-align: center !important;
    width: 90%; /* Wider container for Kurdish to handle text wrapping */
}

/* Consistent positioning regardless of language */
html[lang="ckb"] #slideshow .carousel-container h2,
html[lang="ku"] #slideshow .carousel-container h2,
html[lang="en"] #slideshow .carousel-container h2 {
    width: 100%;
    text-align: center !important;
    margin-bottom: 1.5rem;
    font-size: calc(1.5rem + 1vw); /* Responsive font size */
    line-height: 1.3;
}

/* Button alignment for RTL */
html[lang="ckb"] #slideshow .carousel-container .btn-get-started,
html[lang="ku"] #slideshow .carousel-container .btn-get-started {
    float: none;
    display: inline-block;
    margin: 0 auto;
    text-align: center !important;
    min-width: 120px; /* Ensure minimum width for the button */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #slideshow .carousel-container {
        width: 90%;
    }
    
    #slideshow .carousel-container h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    #slideshow .carousel-container .btn-get-started {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Kurdish specific mobile styles */
    html[lang="ckb"] #slideshow .carousel-container h2,
    html[lang="ku"] #slideshow .carousel-container h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
}

/* Extra small device adjustments */
@media (max-width: 575.98px) {
    #slideshow .carousel-container {
        width: 95%;
    }
    
    #slideshow .carousel-container h2 {
        font-size: 1.5rem;
    }
    
    /* Kurdish specific mobile styles */
    html[lang="ckb"] #slideshow .carousel-container h2,
    html[lang="ku"] #slideshow .carousel-container h2 {
        font-size: 1.4rem;
    }
    
    #slideshow .carousel-container .btn-get-started {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
