/* ==========================================================================
   Synergene Hero Slider Styles
   ========================================================================== */

.syn-hero-slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    font-family: inherit;
    border-radius: 0 0 24px 24px; /* Default border radius, can be overridden by Elementor controls */
    overflow: hidden; /* Ensures zooming image doesn't overflow corners */
}

.syn-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* --------------------------------------------------------------------------
   SLIDES
   -------------------------------------------------------------------------- */
.syn-slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.syn-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.syn-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* NEW BACKGROUND ELEMENT FOR ZOOM ANIMATION */
.syn-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
}

/* KEYFRAME ANIMATION */
@keyframes synZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15); /* Adjust this value for more/less zoom */
    }
}

/* TRIGGER ANIMATION WHEN SLIDE IS ACTIVE */
.syn-slide.active .syn-slide-bg {
    animation: synZoomIn 8s linear forwards; 
}

.syn-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.syn-slide-content-wrap {
    z-index: 10;
    position: relative;
}

.syn-slide-content {
    max-width: 800px;
}

.syn-slide-subtitle {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.syn-slide-title {
    color: #fff;
    font-size: 64px;
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 40px 0;
}

.syn-slide-btn {
    display: inline-block;
    background-color: #1a3c8a;
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.syn-slide-btn:hover {
    background-color: #122a61;
    color: #fff;
}


/* --------------------------------------------------------------------------
   SLIDER NAVIGATION
   -------------------------------------------------------------------------- */
.syn-slider-nav-container {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 50;
    background-color: #ffffff;
    padding: 24px 40px;
    border-top-left-radius: 24px;
    /* Bottom right corner will be clipped by the main wrapper's border-radius and overflow:hidden */
}

.syn-slider-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    letter-spacing: 1px;
}

.syn-nav-prev,
.syn-nav-next {
    cursor: pointer;
    transition: color 0.3s ease;
}

.syn-nav-prev:hover,
.syn-nav-next:hover {
    color: #000;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .syn-slide-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .syn-slide-title {
        font-size: 36px;
    }
    .syn-slide-subtitle {
        font-size: 12px;
    }
    .syn-slider-nav-container {
        padding: 15px 20px;
        border-top-left-radius: 16px;
    }
}
