/* ==========================================
   TK BLINDS HERO SLIDER WIDGET CSS
   ========================================== */

.tk-hero-slider-container {
    position: relative;
    width: 100%;
    height: 650px; /* Default height overridden by Elementor setting */
    overflow: hidden;
    background-color: #032149;
    font-family: 'Montserrat', sans-serif;
}

/* 1. MAIN BACKGROUND SLIDER */
.tk-main-slider {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Force backgrounds to be visible and correctly sized */
.tk-main-slider .swiper-slide,
.tk-main-slider .swiper-slide.tk-main-slide {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    box-sizing: border-box !important;
    background-color: #032149 !important; /* Fallback slide color */
}

/* Extra high-specificity rule for the slide that has an inline background-image */
.tk-hero-slider-container .tk-main-slider .tk-main-slide {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    min-height: 100% !important;
}

/* Swiper fade mode makes slides position:absolute — ensure they fill the parent */
.tk-main-slider.swiper-fade .swiper-slide {
    pointer-events: none !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
}

.tk-main-slider.swiper-fade .swiper-slide-active {
    pointer-events: auto !important;
}

.tk-slide-content-wrapper {
    max-width: 1240px;
    margin: 0 auto !important;
    padding: 0 24px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Two-column slide layout structure */
.tk-slide-left-col {
    width: 55% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.tk-slide-right-col {
    width: 38% !important;
    height: 440px !important;
    position: relative !important;
    display: flex !important;
    align-items: stretch !important;       /* stretch so carousel fills full height */
    justify-content: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 5 !important;
}

.tk-slide-content {
    max-width: 600px;
    text-align: left;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Slide active layout content animation */
.swiper-slide-active .tk-slide-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Fallback: If Swiper is not yet initialized, show the first slide's content */
.tk-main-slider:not(.swiper-initialized) .swiper-slide:first-child {
    opacity: 1 !important;
    display: flex !important;
}

.tk-main-slider:not(.swiper-initialized) .swiper-slide:first-child .tk-slide-content {
    opacity: 1 !important;
    transform: none !important;
}

.tk-slide-title {
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Ensure paragraph tags inside WYSIWYG editor output behave like normal text without margin breaks */
.tk-slide-title p,
.tk-slide-desc p {
    margin: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    display: inline !important;
}

/* Vibrant Accent Orange for "Smart Hub" highlight */
.tk-slide-title .accent-color {
    color: #ffaa1d;
    font-weight: 800;
}

.tk-slide-desc {
    font-size: 16px;
    font-weight: 500;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0;
}

.tk-slide-btn-wrap {
    margin-top: 10px;
}

/* Synced CTA Button Styling (Matching Navigation Gradient) */
.tk-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b57a3 0%, #032149 100%) !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    box-shadow: 0 4px 15px rgba(11, 87, 163, 0.3) !important;
    transition: all 0.25s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.tk-slide-btn:hover {
    background: linear-gradient(135deg, #106fcc 0%, #052f66 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(11, 87, 163, 0.45) !important;
    color: #ffffff !important;
}

.tk-slide-btn:active {
    transform: translateY(0) !important;
}

/* 2. SWIPER CONTROLS (ARROWS & PAGINATION) */
.tk-swiper-prev,
.tk-swiper-next {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(3, 33, 73, 0.25) !important;
    color: #ffffff !important;
    transition: all 0.25s ease !important;
    backdrop-filter: blur(4px) !important;
    z-index: 100 !important;
}

/* Hide standard Swiper arrows pseudoelements */
.tk-swiper-prev::after,
.tk-swiper-next::after {
    display: none !important;
}

.tk-swiper-prev svg,
.tk-swiper-next svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.tk-swiper-prev:hover,
.tk-swiper-next:hover {
    border-color: #ffffff !important;
    background: rgba(11, 87, 163, 0.6) !important;
    color: #ffffff !important;
}

.tk-swiper-prev {
    left: 24px !important;
}

.tk-swiper-next {
    right: 24px !important;
}

/* Dots Pagination at bottom center */
.tk-swiper-pagination {
    bottom: 24px !important;
    z-index: 100 !important;
}

.tk-swiper-pagination .swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background-color: #ffffff !important;
    opacity: 0.5 !important;
    margin: 0 6px !important;
    transition: all 0.25s ease !important;
}

.tk-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1 !important;
    background-color: #0b57a3 !important; /* Brand Blue */
    width: 24px !important;
    border-radius: 5px !important;
}

/* ============================================================
   3. RIGHT COLUMN – VERTICAL PEEK CAROUSEL
   Center card: full height | Top & Bottom cards: ~half visible
   ============================================================ */

/* Outer clip mask – shows only 3 partial/full cards */
.tk-v-peek-wrap {
    width: 100% !important;
    height: 440px !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 16px !important;
}

/* Scrolling track – positioned absolutely so JS can translateY it */
.tk-v-peek-track {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    will-change: transform;
    /* transition injected by JS */
}

/* Individual image card – 200px height */
.tk-v-peek-item {
    width: 100% !important;
    height: 200px !important;
    flex-shrink: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    transition: box-shadow 0.3s ease !important;
    position: relative !important;
}

.tk-v-peek-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

.tk-v-peek-item:hover img {
    transform: scale(1.04) !important;
}

.tk-v-peek-item:hover {
    box-shadow: 0 14px 36px rgba(11, 87, 163, 0.42) !important;
    border-color: rgba(255,255,255,0.45) !important;
}

/* Fallback card styling (when no gallery) */
.tk-vertical-fallback {
    width: 100% !important;
    height: 440px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tk-vertical-card {
    width: 100% !important;
    height: 100% !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 2px solid rgba(255,255,255,0.22) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28) !important;
}

.tk-vertical-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* 4. RESPONSIVENESS (MOBILE & TABLET VIEWPORTS) */
@media (max-width: 991px) {
    .tk-slide-content-wrapper {
        flex-direction: column !important;
        justify-content: center !important;
        padding: 0 30px !important;
        gap: 30px !important;
        height: auto !important;
    }

    .tk-slide-left-col {
        width: 100% !important;
        height: auto !important;
        order: 1 !important;
    }

    .tk-slide-right-col {
        width: 100% !important;
        height: 220px !important;
        order: 2 !important;
        overflow: hidden !important;
    }

    /* Mobile: peek wrap and items adjust to smaller container */
    .tk-v-peek-wrap {
        height: 220px !important;
    }

    .tk-vertical-fallback {
        height: 200px !important;
    }

    .tk-slide-content {
        max-width: 100% !important;
        text-align: center !important;
        align-items: center !important;
    }

    .tk-slide-title {
        font-size: 32px !important;
    }

    .tk-swiper-prev,
    .tk-swiper-next {
        width: 38px !important;
        height: 38px !important;
    }

    .tk-swiper-prev {
        left: 10px !important;
    }

    .tk-swiper-next {
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .tk-slide-title {
        font-size: 26px !important;
    }
    
    .tk-slide-desc {
        font-size: 14px !important;
    }
}
