/* Hero Slideshow Styles */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #F6F6F6;
    overflow: hidden;
}

/* Swiper Container */
.hero-swiper {
    width: 100%;
    height: 100%;
}

.swiper-wrapper {
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Background Elements */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.decorative-elements {
    position: absolute;
    top: 0;
    right: 0;
    width: 1387px;
    height: 1062px;
    transform: translateX(301px);
    transition: opacity 0.6s ease;
}

/* Hide decorative elements when slide has background image or video */
.slide.has-image .decorative-elements,
.slide.has-video .decorative-elements {
    opacity: 0;
    pointer-events: none;
}

/* Show decorative elements only for color backgrounds */
.slide.has-color .decorative-elements {
    opacity: 1;
}

/* Video Background Styles */
.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

/* YouTube Video Background Styles */
.slide-youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
}

.slide-youtube-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Fallback Image Styles */
.youtube-fallback-image,
.video-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 0.8;
}

/* Adjust overlay for images vs colors vs videos */


.gradient-bg {
    position: absolute;
    top: 64px;
    right: 258px;
    width: 881px;
    height: 881px;
    background: linear-gradient(135deg, #E9ECF0 0%, rgba(216, 220, 229, 0.87) 100%);
    border-radius: 85px 0 0 0;
}

.blur-circle-1 {
    position: absolute;
    top: 485px;
    left: 0;
    width: 303px;
    height: 201px;
    background: #A9B4CB;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(285px);
}

.glass-circle-1 {
    position: absolute;
    top: 485px;
    right: 267px;
    width: 267px;
    height: 267px;
    background: radial-gradient(circle at 32% 29%, #FFFFFF 0%, #E5E8EC 67%, #FFFFFF 100%);
    border-radius: 50%;
    box-shadow: 
        0px 70px 150px 2px rgba(169, 180, 203, 0.1),
        inset 9px 16px 28px 0px rgba(255, 255, 255, 0.4);
    filter: blur(1px);
}

.glass-circle-2 {
    position: absolute;
    top: 0;
    right: 473px;
    width: 167px;
    height: 162px;
    background: radial-gradient(circle at 32% 29%, #FFFFFF 0%, #E5E8EC 67%, #FFFFFF 100%);
    border-radius: 50%;
    box-shadow: 
        0px 70px 150px 2px rgba(169, 180, 203, 0.1),
        inset 9px 16px 28px 0px rgba(255, 255, 255, 0.4);
    filter: blur(1px);
}

.center-ornament {
    position: absolute;
    top: 133px;
    right: 565px;
    width: 328px;
    height: 328px;
    background: linear-gradient(135deg, #F7F9FA 0%, #EBECED 100%);
    border-radius: 50%;
    box-shadow: 
        0px 140px 98px -14px rgba(169, 180, 203, 0.2),
        -4px -4px 0px 0px rgba(255, 255, 255, 1),
        0px 4px 0px 0px rgba(214, 218, 223, 1),
        inset 0px -28px 28px 0px rgba(255, 255, 255, 0.2);
    filter: blur(1.4px);
}
.slide-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.banner-text-content {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 200px;
    right: 200px;
    opacity: 0;
    z-index: 2;
    pointer-events: none; 
}

.banner-text-content.show {
    opacity: 1;                        /* fade in */
}

.banner-text-content.hide {
    transition: none;   /* remove transition for disappearing */
    opacity: 0;
}

.slide-title-en,
.slide-title-fr {
    font-size: 60px !important;
}

.banner-text-content .slide-title {
    font-weight: 700;
    font-size: 70px;
    line-height: 130%;
    word-break: keep-all;
    overflow-wrap: break-word;
    width: fit-content;
    display: flex;
    flex-direction: column;
}

.banner-text-content .slide-subtitle {
    font-size: 28px;
    flex: 1;
    line-height: 150%;
    word-break: keep-all;
    overflow-wrap: break-word;
}
/* Content Styles */
.slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 102px;
    width: 100%;
    min-width: 1200px;
}

.content-wrapper {
    color: #000;
}

.slide-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 1px;
}
.banner-text-content .slide-subtitle span {
    white-space: nowrap;
}
.slide-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 130%;
    color: #000000;
}

.slide-description {
    font-size: 16px;
    line-height: 1.5;
    color: #0D121F;
    margin: 0 0 20px 0;
}

.advantages-list {
    margin: 0 0 20px 0;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.advantage-item:last-child {
    margin-bottom: 0;
}

.tick-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #0D121F;
    margin: 0;
    letter-spacing: -0.02em;
}

.slide-button-wrapper {
    margin-top: 20px;
}

.slide-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 100px;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.slide-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83, 185, 144, 0.3);
}

.slide-button svg {
    width: 16px;
    height: 14px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.slide-button:hover svg {
    transform: translateX(4px);
}

/* Swiper Navigation Buttons */
.swiper-button-prev,
.swiper-button-next {
    position: relative;
    width: var(--swiper-navigation-size, 31px);
    height: 19px;
    background: none;
    border: none;
    color: #F7F7FD;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    /* Override Swiper's default positioning */
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.swiper-button-prev svg,
.swiper-button-next svg {
    width: 100%;
    height: 100%;
}

/* Swiper Pagination */
.swiper-pagination {
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 20;
}

.swiper-pagination-bullet {
    border: none;
    background: #F2F3F5;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    width: 33.33%;
    border-radius: 0;
    height: 4px;
    margin: 0 !important;
}

.swiper-pagination-bullet-active {
    width: 33.33%;
    height: 4px;
    background: var(--primary-color);
}

/* Slider Controls Container */
.slider-controls {
    position: absolute;
    bottom: 28%;
    left: 200px;
    background: none;
    width: 144px;
    height: 4px;
    justify-content: space-between;
}

/* Slider Controls for Mobile - inside banner-text-content */
.slider-controls-mobile {
    display: none; /* Hidden by default on PC */
    margin: 15px 0;
    background: #C0C0C2;
    width: 100px;
    height: 4px;
    justify-content: space-between;
}

/* Swiper Navigation Size Variables */
:root {
    --swiper-navigation-size: 31px;
}
.slider-controls>.swiper-button-next:after, .slider-controls>.swiper-button-prev:after {
    content: none !important;
}
.swiper-button-next:after, 
.swiper-button-prev:after {
    --swiper-navigation-size: 31px;
    font-size: 31px;
    color: #F7F7FD;
}
/* Override Swiper's default pagination positioning */
.swiper-pagination-bullets.swiper-pagination-horizontal {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    width: 100%;
    background: #FFFFFF;
    

}

.slider-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 11;
    flex-shrink: 0;
}
/* Progress Bar */
.slide-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 15;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* Responsive Design */
@media (max-width: 1439px) {
    .decorative-elements {
        width: 100%;
        transform: translateX(200px);
    }
    
    .gradient-bg {
        right: 100px;
        width: 600px;
        height: 600px;
    }
}


@media (max-width: 1439px) and (min-width: 1024px) {

    .banner-text-content {
        left: 120px;
        right: 120px;
        top: 50%;
    }
    .slider-controls {
        left: 120px;
    }
    .slide-content-wrapper {
        gap: 16px;
    }

    .slide-title-en,
    .slide-title-fr {
        font-size: 52px !important;
    }

    .banner-text-content .slide-title {
        font-weight: 700;
        font-size: 52px;
    }

    .banner-text-content .slide-subtitle {
        font-size: 25px;
        letter-spacing: 0%;
    }
}


@media (max-width: 1023px) and (min-width: 768px) {
    .hero-slideshow {
        height: 600px;
    }
    
    .slide-content {
        padding: 0 20px;
    }
    
    .content-wrapper {
        max-width: 100%;
    }

    .slide-title-en,
    .slide-title-fr {
        font-size: 37px !important;
    }
    
    .banner-text-content .slide-title {
        font-size: 48px;
        font-weight: 700;
    }

    .banner-text-content .slide-subtitle{
        font-size: 20px;
        width: auto;
        font-weight: 500;
    }
    
    .decorative-elements {
        display: none !important; /* Force hide on mobile for all slides */
    }
    
    .banner-text-content{
        top: auto;
        bottom: 188px;
        width: 100%;
        left: 0;
        padding: 0 64px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        transform: unset;
    }
    
    /* Hide PC slider controls on mobile */
    .slider-controls{
        display: none !important;
    }
    
    /* Slide Content Wrapper - natural layout */

    .slide-content-wrapper-en,
    .slide-content-wrapper-fr {
        gap: 30px !important;
    }

    .slide-content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 64px;
        width: 100%;
    }
    
    /* Mobile Slider Controls - natural positioning, always visible */
    .slider-controls-mobile {
        display: flex !important;
        width: 100px;
        height: 4px;
        background: none;
        border-radius: 2px;
        overflow: hidden;
        margin: 0 auto;
        z-index: 10;
    }
    
    /* Global Mobile Slider Controls - always visible, independent */
    .slider-controls-mobile-global {
        display: flex !important;
        position: absolute;
        bottom: 120px;
        left: 64px;
        /* transform: translateX(-50%); */
        width: 100px;
        height: 4px;
        background: #FFFFFF;
        border-radius: 2px;
        overflow: hidden;
        z-index: 20;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .slider-controls-mobile-global .swiper-pagination {
        position: static;
        width: 100%;
        height: 100%;
        background: transparent;
    }
    
    .slider-controls-mobile-global .swiper-pagination-bullet {
        background: rgba(255, 255, 255, 0.5);
        height: 100%;
        border-radius: 0;
        opacity: 1;
    }
    
    .slider-controls-mobile-global .swiper-pagination-bullet-active {
        background: #CDF564;

    }
    
    .slider-controls-mobile .swiper-pagination {
        position: static;
        width: 100%;
        height: 100%;
        background: transparent;
    }
    
    .slider-controls-mobile .swiper-pagination-bullet {
        background: rgba(255, 255, 255, 0.5);
        height: 100%;
        border-radius: 0;
        opacity: 1;
    }
    
    .slider-controls-mobile .swiper-pagination-bullet-active {
        background: #FFFFFF;
    }
}


@media (max-width: 767px) {
    .hero-slideshow {
        height: 600px;
    }
    
    .slide-content {
        padding: 0 20px;
    }
    
    .content-wrapper {
        max-width: 100%;
    }

    .slide-title-en,
    .slide-title-fr {
        font-size: 30px !important;
    }
    
    .banner-text-content .slide-title {
        font-size: 30px;
    }

    .banner-text-content .slide-subtitle{
        font-size: 16px;
        width: auto;
    }
    
    .decorative-elements {
        display: none !important; /* Force hide on mobile for all slides */
    }
    
    .banner-text-content{
        top: unset;
        bottom: 92px;
        width: 100%;
        left: 0;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        transform: unset;
    }
    
    /* Hide PC slider controls on mobile */
    .slider-controls{
        display: none !important;
    }
    
    /* Slide Content Wrapper - natural layout */
    .slide-content-wrapper-en,
    .slide-content-wrapper-fr {
        gap: 20px !important;
    }

    .slide-content-wrapper {
        display: flex;
        flex-direction: column;
        gap: 32px;
        width: 100%;
    }
    
    /* Mobile Slider Controls - natural positioning, always visible */
    .slider-controls-mobile {
        display: flex !important;
        width: 100px;
        height: 4px;
        background: none;
        border-radius: 2px;
        overflow: hidden;
        margin: 0 auto;
        z-index: 10;
    }
    
    /* Global Mobile Slider Controls - always visible, independent */
    .slider-controls-mobile-global {
        display: flex !important;
        position: absolute;
        bottom: 56px;
        left: 16px;
        /* transform: translateX(-50%); */
        width: 100px;
        height: 4px;
        border-radius: 2px;
        overflow: hidden;
        z-index: 20;
        opacity: 1 !important;
        visibility: visible !important;
        background: #FFFFFF;

    }
    
    .slider-controls-mobile-global .swiper-pagination {
        position: static;
        width: 100%;
        height: 100%;
        background: transparent;
    }
    
    .slider-controls-mobile-global .swiper-pagination-bullet {
        background: rgba(255, 255, 255, 0.5);
        height: 100%;
        border-radius: 0;
        opacity: 1;
    }
    
    .slider-controls-mobile-global .swiper-pagination-bullet-active {
        background: #CDF564;

    }
    
    .slider-controls-mobile .swiper-pagination {
        position: static;
        width: 100%;
        height: 100%;
        background: transparent;
    }
    
    .slider-controls-mobile .swiper-pagination-bullet {
        background: rgba(255, 255, 255, 0.5);
        height: 100%;
        border-radius: 0;
        opacity: 1;
    }
    
    .slider-controls-mobile .swiper-pagination-bullet-active {
        background: #FFFFFF;
    }
}
