/**
 * TCM Hero Slider Styles
 */

/* ===========================
   Container & Swiper
   =========================== */

.tcm-hero-slider-container {
    width: 100%;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    padding-bottom: 70px;
}

.tcm-hero-swiper {
    width: 100%;
    height: 100%;
}

.tcm-hero-swiper .swiper-wrapper {
    height: 100%;
}

.tcm-hero-swiper .swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ===========================
   Background & Overlay
   =========================== */

.tcm-hs-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tcm-hs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Mobile-only elements: hidden on desktop */
.tcm-hs-mobile-dark,
.tcm-hs-bg--mobile {
    display: none;
}

/* ===========================
   Content
   =========================== */

.tcm-hs-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tcm-hs-content-inner {
    width: 100%;
    max-width: 1320px;
    padding: 60px 0;
    color: #ffffff;
}

/* Subheading */
.tcm-hs-subheading {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #50DCC8;
}

/* Main Heading — inherits theme H1 styles */
.tcm-hs-heading {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffffff;
    max-width: 800px;
}

/* Description */
.tcm-hs-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #ffffff;
    opacity: 0.95;
    max-width: 700px;
}

/* Buttons */
.tcm-hs-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===========================
   Pagination (BELOW SLIDER)
   =========================== */

.tcm-hero-pagination {
    width: 100%;
    max-width: 1320px;
    padding: 0;
    margin: 30px auto 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

.tcm-hero-pagination .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    background: #ccc;
    opacity: 1;
    border-radius: 0;
    transition: background 0.35s ease, opacity 0.35s ease;
    cursor: pointer;
    margin: 0 !important;
}

.tcm-hero-pagination .swiper-pagination-bullet-active {
    width: 40px;
    height: 4px;
    background: #A000FF;
    border-radius: 0;
}

/* ===========================
   TCM Button Styles
   =========================== */

.tcm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 20px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

/* Gradient Fill Button */
.tcm-btn-gradient-fill {
    background: #A000FF;
    color: #ffffff;
    border: none;
}

.tcm-btn-gradient-fill:hover {
    background: linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
    color: #ffffff;
}

/* Gradient Border Button */
.tcm-btn-gradient-border {
    background: #232328;
    color: #ffffff;
    border: 2px solid transparent;
    background-image:
        linear-gradient(#232328, #232328),
        linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.tcm-btn-gradient-border:hover {
    color: #ffffff;
    background-image:
        linear-gradient(90deg, #A000FF 0%, #50DCC8 100%),
        linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
}

/* Gradient Border with Icon Button */
.tcm-btn-gradient-border-icon {
    background: #232328;
    color: #ffffff;
    border: 1px solid transparent;
    background-image:
        linear-gradient(#232328, #232328),
        linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    padding: 10px 10px 10px 20px;
    font-size: 20px;
}

.tcm-btn-icon {
    width: 30px;
    height: 30px;
    background: #A000FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tcm-btn-icon svg {
    width: 12px;
    height: 12px;
    color: #ffffff;
}

.tcm-btn-gradient-border-icon:hover {
    color: #ffffff;
    background-image:
        linear-gradient(90deg, #A000FF 0%, #50DCC8 100%),
        linear-gradient(90deg, #A000FF 0%, #50DCC8 100%);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .tcm-hs-content-inner {
        padding: 60px 0;
    }

    .tcm-hs-description {
        font-size: 18px;
    }

    .tcm-hero-pagination {
        padding: 0;
    }
}

@media (max-width: 768px) {

    /* ── Background layers ── */

    /* Hide desktop full-bleed bg */
    .tcm-hs-bg--desktop {
        display: none;
    }

    /* Dark block behind text — covers roughly the top 45% of the slide */
    .tcm-hs-mobile-dark {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 46%;
        background: #0e0e14;
        z-index: 1;
    }

    /* Mobile image — covers roughly the bottom 58% (overlaps slightly for a seamless join) */
    .tcm-hs-bg--mobile {
        display: block;
        position: absolute;
        top: 42%;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        z-index: 0;
    }

    /* ── Content layout ── */

    /* Make content a flex column so text sits at top and buttons at bottom */
    .tcm-hs-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        padding: 0;
    }

    .tcm-hs-content-inner {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        max-width: 100%;
        padding: 0;
    }

    /* ── Text group (top / dark section) ── */
    .tcm-hs-text-group {
        padding: 30px 20px 20px;
        position: relative;
        z-index: 5;
    }

    .tcm-hs-subheading {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .tcm-hs-heading {
        margin-bottom: 12px;
    }

    .tcm-hs-description {
        font-size: 16px;
        margin-bottom: 0; /* no gap — buttons are in a separate block */
    }

    /* ── Buttons (bottom / image section) ── */
    .tcm-hs-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 20px 30px;
        position: relative;
        z-index: 5;
    }

    .tcm-btn {
        width: 100%;
        font-size: 18px;
    }

    /* ── Pagination ── */
    .tcm-hero-pagination {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .tcm-hs-description {
        font-size: 14px;
    }

    .tcm-hero-pagination {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ===========================
   Elementor Editor
   =========================== */

.elementor-editor-active .tcm-hero-swiper .swiper-slide {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===========================
   Fade slider (no Swiper)
   =========================== */

.tcm-hero-slider-container.tcm-hero-slider--fade .tcm-hero-swiper {
    position: relative;
    cursor: grab;
    touch-action: pan-y;
}

.tcm-hero-slider-container.tcm-hero-slider--fade.tcm-is-dragging .tcm-hero-swiper {
    cursor: grabbing;
}

.tcm-hero-slider-container.tcm-hero-slider--fade .swiper-wrapper {
    position: relative;
    height: 100%;
}

.tcm-hero-slider-container.tcm-hero-slider--fade .swiper-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(.22,.61,.36,1);
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.tcm-hero-slider-container.tcm-hero-slider--fade .swiper-slide.tcm-slide-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.tcm-hero-slider-container.tcm-hero-slider--fade.tcm-is-dragging {
    user-select: none;
}
