.ababil-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ababil-slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.ababil-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 1s ease;
    display: flex; /* Ensure slide is a flex container */
    flex-direction: column; /* Align children vertically */
}

.ababil-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.ababil-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.ababil-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.ababil-slide-content {
    position: relative;
    z-index: 3;
    padding: 50px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%; /* Ensure content width respects Elementor control */
    height: 100%; /* Take full height of parent */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Default to center, overridden by Elementor control */
    align-items: center; /* Default to center, overridden by Elementor control */
    box-sizing: border-box;
}

.ababil-slide-heading {
    margin: 0;
    font-size: 2.5em;
}

.ababil-heading-segment {
    display: inline-block;
}

.ababil-slide-subheading {
    font-size: 1.5em;
    margin: 10px 0;
}

.ababil-slide-description {
    font-size: 1em;
    margin: 20px 0;
}

.ababil-slide-button {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ababil-slide-button:hover {
    opacity: 0.8;
}

.ababil-slider-pagination {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 15;
}

.ababil-pagination-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.ababil-pagination-dot.active {
    transform: scale(1.2);
}

.ababil-slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    justify-content: space-between;
}

.ababil-nav-position-outside .ababil-slider-nav {
    position: relative;
    top: auto;
    transform: none;
    margin-top: 20px;
}

.ababil-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ababil-nav-button:hover {
    opacity: 0.9;
}

/* Animation keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Transition keyframes */
@keyframes slideTransition {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeTransition {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomTransition {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes flipTransition {
    from { transform: rotateY(180deg); opacity: 0; }
    to { transform: rotateY(0deg); opacity: 1; }
}