/* =====================================================
   Split Hero Category Slider - Responsive Height Fix
   Widget: Split Hero Category Slider 2654
   ===================================================== */

.shcs-2654-wrapper {
    --shcs-hero-height: 500px;
    --shcs-stacked-image-height: 260px;
    --swiper-theme-color: #6B4F3B;
    --swiper-pagination-color: #6B4F3B;
    --swiper-pagination-bullet-inactive-color: #D6CFC7;
    --swiper-pagination-bullet-inactive-opacity: 1;

    position: relative;
    width: 100%;
    max-width: 100%;
    height: var(--shcs-hero-height);
    min-height: var(--shcs-hero-height);
    overflow: hidden;
    background: #f9f9f9;
    box-sizing: border-box;
}

.shcs-2654-wrapper *,
.shcs-2654-wrapper *::before,
.shcs-2654-wrapper *::after {
    box-sizing: border-box;
}

.shcs-2654-wrapper > .swiper-wrapper {
    width: 100%;
    height: var(--shcs-hero-height);
    min-height: var(--shcs-hero-height);
    align-items: stretch;
}

.shcs-2654-slide {
    width: 100%;
    height: var(--shcs-hero-height);
    min-height: var(--shcs-hero-height);
    overflow: hidden;
    background: #f9f9f9;
}

.shcs-2654-content-split {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    background: #f9f9f9;
}

.shcs-2654-left {
    display: flex;
    flex: 0 0 auto;
    width: 66.666%;
    height: 100%;
    min-height: 0;
    padding: 40px;
    background-color: #f9f9f9;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shcs-2654-text-wrap {
    width: 100%;
    max-width: 720px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.shcs-2654-wrapper .swiper-slide-active .shcs-2654-text-wrap {
    opacity: 1;
    transform: translateY(0);
}

.shcs-2654-heading {
    margin: 0 0 15px;
    font-weight: 700;
    line-height: 1.1;
}

.shcs-2654-subheading {
    margin: 0 0 30px;
    line-height: 1.5;
}

.shcs-2654-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.shcs-2654-button:hover {
    background-color: #333333;
    color: #ffffff;
}

.shcs-2654-right {
    position: relative;
    flex: 0 0 auto;
    width: 33.333%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: transparent;
}

.shcs-2654-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

/* Pagination */
.shcs-2654-pagination {
    right: 20px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
}

.shcs-2654-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: #D6CFC7 !important;
    background-color: #D6CFC7 !important;
    opacity: 1 !important;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.shcs-2654-pagination .swiper-pagination-bullet-active {
    background: #6B4F3B !important;
    background-color: #6B4F3B !important;
    opacity: 1 !important;
    transform: scale(1.2);
}

.shcs-2654-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

/* Tablet */
@media (max-width: 1024px) {
    .shcs-2654-wrapper {
        --shcs-hero-height: 420px;
    }

    .shcs-2654-left {
        padding: 32px;
    }

    .shcs-2654-heading {
        margin-bottom: 12px;
    }

    .shcs-2654-subheading {
        margin-bottom: 24px;
    }
}

/* Mobile and small tablets */
@media (max-width: 767px) {
    .shcs-2654-wrapper {
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .shcs-2654-wrapper > .swiper-wrapper {
        height: auto;
        min-height: 0;
        align-items: stretch;
    }

    .shcs-2654-slide {
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .shcs-2654-content-split {
        flex-direction: column !important;
        height: auto;
        min-height: 0;
        overflow: hidden;
    }

    .shcs-2654-left,
    .shcs-2654-right {
        width: 100% !important;
        flex-basis: auto !important;
    }

    .shcs-2654-left {
        height: auto;
        min-height: 0;
        padding: 28px 22px;
        order: 1;
    }

    .shcs-2654-right {
        height: var(--shcs-stacked-image-height);
        min-height: var(--shcs-stacked-image-height);
        order: 2;
    }

    .shcs-2654-image {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .shcs-2654-text-wrap {
        max-width: 100%;
    }

    .shcs-2654-heading {
        margin-bottom: 10px;
    }

    .shcs-2654-subheading {
        margin-bottom: 20px;
    }

    .shcs-2654-button {
        padding: 13px 24px;
    }

    .shcs-2654-pagination {
        right: auto !important;
        left: 50% !important;
        top: auto !important;
        bottom: 12px !important;
        transform: translateX(-50%) !important;
        flex-direction: row;
        gap: 8px;
    }

    .shcs-2654-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .shcs-2654-pagination .swiper-pagination-bullet-active {
        transform: scale(1.15);
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .shcs-2654-wrapper {
        --shcs-stacked-image-height: 230px;
    }

    .shcs-2654-left {
        padding: 24px 18px;
    }

    .shcs-2654-subheading {
        margin-bottom: 18px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .shcs-2654-wrapper {
        --shcs-stacked-image-height: 210px;
    }

    .shcs-2654-left {
        padding: 22px 16px;
    }
}