/* Smart Slider Frontend Styles */

.smartslider-container {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.smartslider-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.smartslider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.smartslider-slide.active {
    opacity: 1;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.slide-no-media {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.no-media-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.05) 20px);
}

.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-video iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    z-index: 2;
    text-align: left;
    padding: 0;
}

/* Content Placement Classes */
.content-bottom-right {
    bottom: 100px;
    right: 60px;
    text-align: left;
    width: 600px;
    max-width: 50%;
}

.content-bottom-left {
    bottom: 120px;
    left: 225px;
    text-align: left;
    width: 550px;
    max-width: 50%;
}

.content-top-left {
    top: 80px;
    left: 60px;
    text-align: left;
    width: 600px;
    max-width: 50%;
}

.content-top-right {
    top: 80px;
    right: 60px;
    text-align: left;
    width: 600px;
    max-width: 50%;
}

.content-center-left {
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    text-align: left;
    width: 600px;
    max-width: 50%;
}

.content-center-right {
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    text-align: left;
    width: 600px;
    max-width: 50%;
}

.content-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 600px;
    max-width: 50%;
}

.slide-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 55px;
    font-weight: 300;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #fff;
    letter-spacing: -0.02em;
}

.slide-tagline {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.slide-description {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    /* margin: 0 0 30px 0; */
    color: #f0f0f0;
    font-weight: 300;
    max-width: 500px;
}

.slide-button {
    margin-top: 15px;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-arrow {
    margin-left: 12px;
    font-size: 0.9rem;
    font-weight: 300;
}

/* Ensure consistent button styles for both image and video slides */
.smartslider-container .slide-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 15px 30px !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    backdrop-filter: blur(15px) !important;
    border-radius: 25px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}



/* Force same hover effects for both image and video slides */
.smartslider-container .slide-btn[data-slide-type="image"],
.smartslider-container .slide-btn[data-slide-type="video"] {
    display: inline-flex !important;
    align-items: center !important;
    padding: 12px 24px !important;
    background: #666666 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border: none !important;
    border-radius: 50px !important;
    position: relative !important;
    overflow: hidden !important;
}





/* Additional specificity for video slides */
.smartslider-container .slide-video + .slide-content .slide-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 12px 24px !important;
    background: #666666 !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border: none !important;
    border-radius: 6px !important;
    position: relative !important;
    overflow: hidden !important;
}





/* Navigation */
.smartslider-navigation {
    position: absolute;
    bottom: 50px;
    left: 50px;
    z-index: 10;
    display: flex;
    gap: 20px;
}

.nav-btn {
    width: 55px;
    height: 55px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.nav-arrow {
    font-size: 1.3rem;
    font-weight: 300;
    display: block;
    position: relative;
    z-index: 1;
}

/* Counter */
.smartslider-counter {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.2px;
}

.current-slide {
    font-size: 2.2rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1;
}

.counter-separator {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    margin: 0;
}

.total-slides {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.2px;
}

/* Counter animations */
.smartslider-counter {
    transition: opacity 0.3s ease;
}

.current-slide {
    transition: opacity 0.3s ease;
}

/* Ensure counter stays above sticky headers */
.smartslider-counter {
    z-index: 9999 !important;
}

/* Dots */
.smartslider-dots {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.dot:hover,
.dot.active {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.dot:hover::before,
.dot.active::before {
    width: 8px;
    height: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .smartslider-container {
        height: 70vh;
        min-height: 400px;
    }
    
    /* Ensure images cover properly on mobile */
    .smartslider-container .slide-background img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .smartslider-container .slide-background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    /* Hide description on mobile when option is disabled */
    .smartslider-container .slide-description.hide-on-mobile {
        display: none !important;
    }

    /* Additional mobile-specific hiding */
    @media screen and (max-width: 768px) {
        .smartslider-container .slide-description.hide-on-mobile {
            display: none !important;
        }
    }

    .slide-content {
        width: 90%;
        /* padding: 0 20px; */
    }

    /* Mobile content placement adjustments */
    .content-bottom-right,
    .content-bottom-left {
        /* bottom: 120px; */
        left: 20px;
        right: 20px;
        text-align: left;
        width: auto;
        max-width: none;
    }

    .content-top-left,
    .content-top-right {
        top: 40px;
        left: 20px;
        right: 20px;
        text-align: left;
        width: auto;
        max-width: none;
    }

    .content-center-left,
    .content-center-right {
        left: 20px;
        right: 20px;
        text-align: left;
        width: auto;
        max-width: none;
    }

    .content-center {
        left: 20px;
        right: 20px;
        text-align: left;
        width: auto;
        max-width: none;
        transform: none;
        top: 40px;
    }

    .slide-title {
        font-size: 3rem;
        text-align: left;
    }

    .slide-tagline {
        font-size: 0.9rem;
        text-align: left;
    }

    .slide-description {
        font-size: 1.1rem;
        max-width: 100%;
        text-align: left;
    }

    .slide-button {
        text-align: left;
    }

    .smartslider-navigation {
        bottom: 30px;
        left: 30px;
    }

    .smartslider-counter {
        top: 80px;
        left: 30px;
        font-size: 0.9rem;
        gap: 10px;
        z-index: 9999 !important;
    }

    .current-slide {
        font-size: 2rem;
    }

    .total-slides {
        font-size: 0.9rem;
    }

    .counter-separator {
        height: 14px;
    }

    .smartslider-dots {
        bottom: 30px;
        right: 30px;
    }
}

@media (max-width: 480px) {
    /* Ensure images cover properly on small mobile devices */
    .smartslider-container .slide-background img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    .smartslider-container .slide-background {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    /* Hide description on mobile when option is disabled */
    .smartslider-container .slide-description.hide-on-mobile {
        display: none !important;
    }

    /* Additional mobile-specific hiding */
    @media screen and (max-width: 480px) {
        .smartslider-container .slide-description.hide-on-mobile {
            display: none !important;
        }
    }

    .slide-content {
        /* padding: 0 20px; */
        margin-left: 0;
        text-align: left;
    }

    .content-center {
        transform: none;
        top: 30px;
    }

    .slide-title {
        font-size: 2.5rem;
        text-align: left;
    }

    .slide-tagline {
        font-size: 0.8rem;
        text-align: left;
    }

    .slide-description {
        font-size: 1rem;
        text-align: left;
    }

    .slide-button {
        text-align: left;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
    }

    .smartslider-counter {
        top: 70px;
        font-size: 0.8rem;
        gap: 8px;
        z-index: 9999 !important;
    }

    .current-slide {
        font-size: 1.8rem;
    }

    .total-slides {
        font-size: 0.8rem;
    }

    .counter-separator {
        height: 12px;
    }
}

/* Animation for slide transitions */
.smartslider-slide {
    transform: scale(1.05);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.smartslider-slide.active {
    transform: scale(1);
}

/* Loading state */
.smartslider-container.loading {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

.smartslider-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Mobile-specific hiding using viewport width */
@media screen and (max-width: 768px) {
    .smartslider-container .slide-description.hide-on-mobile {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .smartslider-container .slide-description.hide-on-mobile {
        display: none !important;
    }
}

/* Ensure images cover properly on all devices */
.smartslider-container img {
    object-fit: cover !important;
    object-position: center !important;
}

/* Additional mobile image cover fixes */
@media screen and (max-width: 768px) {
    .smartslider-container .slide-background img {
        width: 100vw !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

@media screen and (max-width: 480px) {
    .smartslider-container .slide-background img {
        width: 100vw !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}