/**
 * Hero Slider Styles
 * Version: 1.1.0
 */

/* Container */
.hero-slider-container {
    position: relative;
    width: 100%;
    max-width: 1600px;
    height: 780px;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

/* Initial loading overlay */
.hero-slider-initial-loading {
    position: absolute;
    inset: 0;
    background: #2C262C;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hero-slider-initial-loading.hidden,
.hero-slider-container.is-loaded .hero-slider-initial-loading {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-slider-loading-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: hero-video-spin 1s linear infinite;
}

/* Wrapper */
.hero-slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slides Container */
.hero-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Individual Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide-content-inner-left {
    width: 50%;
    margin-top: 56px;
}

.hero-slide-content-inner-right {
    width: 50%;
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.hero-slide.has-video-open .hero-slide-content-inner-right {
    display: flex;
    background: #000;
    height: 100%;
}

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


/* Slide Content */
.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    padding: 40px 60px;
    box-sizing: border-box;
    max-width: 1600px;
    margin-left: 40px;
}

/* Headline Wrapper */
.hero-slider-container .hero-headline-wrapper {
    margin: 0 0 20px;
    line-height: 94px;
    display: block;
}

/* Headline */
.hero-slider-container .hero-headline {
    font-family: "Barlow Condensed" !important;
    font-size: 82px !important;
    font-weight: 400;
    color: rgba(255, 255, 255, 1) !important;
    margin: 0 0px 0 0;
    line-height: 94px;
    display: inline;
    animation: fadeInUp 0.8s ease-out;
    transition: font-size 0.3s ease, line-height 0.3s ease;
}

/* Sub Headline */
.hero-slider-container .hero-sub-headline {
    font-family: "Barlow Condensed" !important;
    font-size: 84px !important;
    font-weight: 400;
    color:  rgba(44, 38, 44, 1) !important;
    margin: 0;
    line-height: 1.0;
    display: inline;
    animation: fadeInUp 0.8s ease-out 0.1s both;
    transition: font-size 0.3s ease, line-height 0.3s ease;
}

/* Description */
.hero-slider-container .hero-description {
    font-family: "Barlow Semi Condensed" !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    margin: 0 0 17px !important;
    line-height: 36px !important;
    max-width: 700px !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7) !important;
    animation: fadeInUp 0.8s ease-out 0.2s both !important;
}

/* Button */
.hero-slider-container .hero-button {
    display: inline-block;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 24px;
    padding-right: 24px;
    background: linear-gradient(rgb(209, 160, 90) 0%, rgb(196, 93, 60) 176.09%) !important;
    color: #000000 !important;
    font-family: "Barlow Semi Condensed", sans-serif !important;
    font-size: 24px !important;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-slider-container .hero-button:hover {
    background: linear-gradient(to right, rgb(225, 176, 106) 0%, rgb(200, 158, 95) 50%, rgb(184, 140, 79) 100%)!important;
}

/* Video Container */
.hero-slider-video-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 15;
    display: none;
    background: #000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    padding-right: 40px;
    padding-left: 40px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.hero-slider-video-container.has-video {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-video-close {
    position: absolute;
    top: 34px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 0%);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background-color 0.3s ease;
}

.hero-video-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.hero-video-close svg {
    width: 20px;
    height: 20px;
}

/* Video */
.hero-video {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    vertical-align: middle;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box;
    padding-top: 170px;
}

.hero-video.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-video-description {
    color: #ffffff;
    font-family: "Barlow Condensed";
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    margin-top: 40px;
    margin-bottom: 0;
    text-align: left;
}

.hero-video-player {
    width: 100%;
    position: relative;
}

.hero-video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hero-video-loading.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-video-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: hero-video-spin 1s linear infinite;
}

@keyframes hero-video-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-video-player iframe,
.hero-video-player video,
.hero-video iframe,
.hero-video video {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-video-player iframe.loaded,
.hero-video-player video.loaded,
.hero-video iframe.loaded,
.hero-video video.loaded {
    opacity: 1;
}

/* Video Modal */
.hero-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hero-video-modal.is-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-video-modal-inner {
    width: min(1100px, calc(100vw - 80px));
    max-height: calc(100vh - 80px);
    position: relative;
}

.hero-video-modal-frame {
    width: 100%;
    display: block;
}

.hero-video-modal-frame iframe,
.hero-video-modal-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    display: block !important;
    background: #000;
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-video-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 28px;
    line-height: 44px;
    cursor: pointer;
    z-index: 100000;
}

.hero-video-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Navigation Arrows */
.hero-arrow {
    display: none;
}

/* Pagination Dots */
.hero-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

/* Thumbnail Navigation (below pagination) */
.hero-thumbnails {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 174px;
    display: block;
    z-index: 10;
}

/* Navigation holder keeps dots above thumbnails on the right */
.hero-slider-navigation-holder {
    position: absolute;
    right: 540px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-slider-navigation-holder .hero-pagination {
    position: static;
    left: auto;
    transform: none;
    margin: 0;
    margin-top: -20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.hero-slider-navigation-holder .hero-thumbnails {
    position: static;
    right: auto;
    bottom: auto;
    padding-right: 0;
    padding-left: 0;
    display: block;
    width: 100%;
}

.hero-thumb {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    width: min(320px, 33.33%);
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 4s ease-in-out, visibility 4s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.hero-thumb.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    position: absolute;
    pointer-events: auto;
}

/* Override base styles for Style 1 */
.hero-thumb-style-1 {
    flex-direction: row !important;
    width: 504px !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.hero-thumb-style-1.active {
    position: absolute !important;
}

/* Style 1: Card-like layout with image on left, description and play button on right */
.hero-thumb-style-1 {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    background: rgba(75, 70, 75, 1);
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 504px;
    min-height: 164px;
    text-align: left;
    overflow: hidden;
}

.hero-thumb-style-1:hover {
    border-color: #D1A05A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-thumb-style-1.active {
    background: #4B464B;
}

.hero-thumb-style-1-image {
    min-width: 142px;
    width: 142px;
    height: 132px;
    margin-left: 15px;
    margin-top: 15px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    order: 1;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

.hero-thumb-style-1-image .hero-thumb-image {
    width: 142px !important;
    height: 132px !important;
    object-fit: contain;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
}

.hero-thumb-style-1-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 8px;
    margin-left: 5px;
    margin-right: 3px;
    box-sizing: border-box;
    order: 2;
}

.hero-thumb-style-1-description {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #ffffff;
    line-height: 24px;
    margin: -5px 0 0px 0;
    flex: 1;
}

.hero-thumb-style-1-action {
    display: flex;
    align-items: center;
    position: relative;
    gap: 2px;
    color: #ffffff;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
}

.hero-thumb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #ffffff;
    flex: 0 0 auto;
    margin-right: 5px;
}

/* Play button icon specific positioning */
.hero-thumb-icon-play {
    position: relative;
    left: -5px;
    margin-right: 0;
}

.hero-thumb-text {
    color: #ffffff;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}

/* Play button text specific positioning */
.hero-thumb-text-play {
    position: relative;
    left: -3px;
}

/* Legacy styles for non-Style-1 thumbs */
.hero-thumb:not(.hero-thumb-style-1) .hero-thumb-image {
    width: 157px;
    height: 157px;
    object-fit: cover;
    display: block;
}

.hero-thumb-label {
    display: flex;
    align-items: center;
    gap: 0px;
    padding: 0px 0px;
    background: rgba(75, 70, 75, 1);
    color: #ffffff;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1;
}

.hero-thumb.active .hero-thumb-label,
.hero-thumb:hover .hero-thumb-label {
    background: rgba(44, 38, 44, 0.9);
}

/* Navigation Style 2: Card Layout */
.hero-thumbnails-style-2 {
    flex-direction: column;
    gap: 12px;
}

/* Hide pagination when style 2 is active */
.hero-slider-navigation-holder.hero-nav-style-2 .hero-pagination {
    display: none;
}

.hero-thumb-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: rgba(75, 70, 75, 1);
    padding: 0;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.hero-thumb-card.active {
    position: absolute !important;
}

.hero-thumb-card:hover {
    border-color: #D1A05A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-thumb-card.active {
    background: rgba(75, 70, 75, 1);
}

.hero-thumb-card-image {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.hero-thumb-card-image .hero-thumb-image {
    width: 142px;
    height: auto;
    object-fit: contain;
}

.hero-thumb-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 11px 0px;
    box-sizing: border-box;
}

.hero-thumb-card-text {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 42px;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.hero-thumb-card-description {
    font-family: "Barlow Semi Condensed", sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: #ffffff;
    margin-right: 10px;
    line-height: 1.4;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border-color: transparent;
    background: #4B464B;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(44, 38, 44, 0.9);
}

.hero-dot.active {
    background: rgba(255, 255, 255, 1);

}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1362px) {
    .hero-slide-content-inner-left {
        width: 60%;
        margin-left: 15px;
    } 
    .hero-description {
        width: 595px;
    }
    .hero-slide-content {
        margin-left: 25px;
    }
}

@media (max-width: 1133px) {
    .hero-slide-content-inner-left {
        width: 70%;
        margin-left: 15px;
    } 
    /* .hero-description {
        width: 595px;
    }
    .hero-slide-content {
        margin-left: 25px;
    } */
}

@media (max-width: 1000px) {
    .hero-slide-content-inner-left {
        width: 100%;
        margin-left: 15px;
    } 
    /* .hero-description {
        width: 595px;
    }
    .hero-slide-content {
        margin-left: 25px;
    } */
}



@media (max-width: 768px) {
    .hero-slide-links {
        max-width: 100%;
        gap: 15px;
    }
    
    .hero-slide-link-card {
        padding: 12px;
        gap: 12px;
    }
    
    .hero-slide-link-image {
        width: 50px;
        height: 50px;
    }
    
    .hero-slide-link-description {
        font-size: 13px;
    }
    
    .hero-slide-link-action {
        font-size: 13px;
    }
    .hero-slide-content {
        margin-left: 0px;
    }
    .hero-slide-content {
        padding: 40px 20px;
    }
    /* .hero-slide-content-inner-left {
        width: 95%;
    } */
    .hero-description {
        width: auto;
    }
    .hero-slider-navigation-holder {
        bottom: 28px;
        right: 0px;
        left: 36px;
    }

}

@media (max-width: 670px) {
    .hero-slider-container {
        height: 1098px;
    }
    .hero-slider-container .hero-description {
        padding-top: 26px;
        padding-bottom: 26px;
    }
    .hero-slider-navigation-holder {
        bottom: 6%;
    }
    .hero-thumb-style-1 {
        width: 95% !important;
    }

}

/* Mobile: add extra top margin for the first slide's thumb action */
@media (max-width: 500px) {
    .hero-thumb-style-1:first-child .hero-thumb-style-1-action {
        margin-top: 10px;
    }
    .hero-slider-container .hero-headline-wrapper {
        line-height: 60px !important;
    }
    .hero-slider-container .hero-headline {
        font-size: 52px !important;
        line-height: 60px !important;
    }
    .hero-slider-container .hero-sub-headline {
        font-size: 52px !important;
        line-height: 60px !important;
    }
    /* .hero-slide-content-inner-left {
        width: 100% !important;
    } */
    h2  {
        font-size: 44px !important;
    }
    h1 {
        font-size: 52px;;
    }


    .hero-slider-container {
        height: 1098px;
    }
    .hero-slider-container .hero-description {
        padding-top: 26px;
        padding-bottom: 26px;
    }
    .hero-slider-navigation-holder {
        bottom: 6%;
    }
    .hero-thumb-style-1 {
        width: 371px !important;
    }
    .site-header {
        padding-top: 49px;
        padding-bottom: 8px;
        height: 122px;
    }
    .home-learn-more-container {
        width: 91% !important;
    }
    .hero-slide-content-inner-left {
        margin-left: 5px;
    }
    .hero-slider-navigation-holder {
        left: 23px;
    }
    
}

@media (max-width: 390px) {
    .hero-slider-container .hero-headline-wrapper {
        line-height: 60px !important;
    }
    .hero-slider-container .hero-sub-headline {
        font-size: 52px !important;
        line-height: 60px !important;
    }
    .hero-slide-content-inner-left {
        width: 100% !important;
    }
    h2  {
        font-size: 44px !important;
    }
    h1 {
        font-size: 52px;;
    }
    .hero-slider-container .hero-headline {
        font-size: 47px !important;
        line-height: 60px !important;
    }
    .hero-slider-container .hero-sub-headline {
        font-size: 47px !important;
        line-height: 60px !important;
    }
    .hero-slider-navigation-holder {
        left: 8px;
    }
    
}

@media (max-width: 375px) {
    .hero-slider-container .hero-headline-wrapper {
        line-height: 60px !important;
    }
    .hero-slider-container .hero-sub-headline {
        font-size: 52px !important;
        line-height: 60px !important;
    }
    .hero-slide-content-inner-left {
        width: 100% !important;
    }
    h2  {
        font-size: 44px !important;
    }
    h1 {
        font-size: 52px;;
    }
    .hero-slider-container .hero-headline {
        font-size: 45px !important;
        line-height: 60px !important;
    }
    .hero-slider-container .hero-sub-headline {
        font-size: 45px !important;
        line-height: 60px !important;
    }
}




/* Slide Links */
.hero-slide-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    min-height: 100px; /* Prevent layout shift during transitions */
}

.hero-slide-link-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: rgba(42, 37, 43, 0.8);
    padding: 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

/* When pause on first slide is enabled, show only one card at a time */
.hero-slider-container[data-pause-on-first="1"] .hero-slide.active .hero-slide-links {
    position: relative;
    min-height: 100px; /* Prevent layout shift during transitions */
}

.hero-slider-container[data-pause-on-first="1"] .hero-slide.active .hero-slide-link-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slider-container[data-pause-on-first="1"] .hero-slide.active .hero-slide-link-card.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.hero-slide-link-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}

.hero-slide-link-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-slide-link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-slide-link-description {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.hero-slide-link-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.3s ease;
}

.hero-slide-link-action:hover {
    opacity: 0.8;
}

.hero-slide-link-action svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.hero-slide-link-action.hero-slide-link-play svg {
    fill: currentColor;
}

