/* Base Wrapper: Gives unique context */
.cwc-hs-unique-wrapper {
    width: 100%;
    position: relative;
    /* Height is dynamic, calculated by JS */
    z-index: 10;
}

/* Sticky Viewport: Pins the content */
.cwc-hs-unique-wrapper .cwc-hs-sticky-viewport {
    position: sticky;
    top: 50px;
    height: auto;
    min-height: 80vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Stack header top, cards bottom */
    align-items: flex-start;
    justify-content: center;
    background: transparent;
}

/* Mover Track: The long horizontal strip */
.cwc-hs-unique-wrapper .cwc-hs-mover-track {
    display: flex;
    height: 100%;
    will-change: transform;
    gap: 50px;
    /* Reduced gap */
    padding-left: 5vw;
    box-sizing: border-box;
    min-width: max-content;
}

/* Slide Container: Auto Width */
.cwc-hs-unique-wrapper .cwc-hs-slide-container {
    flex: 0 0 auto;
    width: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Nested Item: The Blue Card */
.cwc-hs-unique-wrapper .cwc-hs-nested-item {
    background-color: #2166F3;
    width: auto;
    min-width: 800px;
    /* Force width auto but with a decent minimum */
    max-width: 1200px;
    height: 320px;
    /* Fixed height just over 300px */
    border-radius: 40px;
    display: flex;
    align-items: stretch;
    padding: 15px;
    /* More compact padding */
    gap: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* Media (Left) - Limited to 40% */
.cwc-hs-unique-wrapper .cwc-hs-nested-media {
    flex: 0 0 40%;
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 30px;
}

.cwc-hs-unique-wrapper .cwc-hs-nested-media img,
.cwc-hs-unique-wrapper .cwc-hs-nested-media video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Content (Right) - More Width */
.cwc-hs-unique-wrapper .cwc-hs-nested-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /* Distribute items with equal space around them */
    text-align: left;
    min-width: 300px;
    padding: 10px 0;
    height: 100%;
}

/* Title */
.cwc-hs-unique-wrapper .cwc-hs-nested-title {
    font-size: 32px;
    /* Smaller font for compact height */
    font-weight: 800;
    color: #8CC63F;
    margin: 0 0 10px 0;
    /* Reduced margin */
    line-height: 1.1;
}

/* Desc Bubble */
.cwc-hs-unique-wrapper .cwc-hs-nested-desc {
    background: #fff;
    padding: 15px 25px;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    margin-top: 0;
    /* Removed auto margin to allow space-around to work */
    min-height: 100px;
    display: flex;
    align-items: center;
}

.cwc-hs-unique-wrapper .cwc-hs-nested-desc p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Intro Section Styling (Now Static Header) */
.cwc-hs-unique-wrapper .cwc-hs-header-area {
    width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.cwc-hs-unique-wrapper .cwc-hs-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.cwc-hs-unique-wrapper .cwc-hs-intro-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.cwc-hs-unique-wrapper .cwc-hs-intro-subtitle {
    color: #4CAF50;
    /* Green from design */
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.cwc-hs-unique-wrapper .cwc-hs-intro-title {
    color: #4A89FF;
    /* Blue from design */
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 30px 0;
}

.cwc-hs-unique-wrapper .cwc-hs-intro-btn {
    display: inline-flex;
    align-items: center;
    background-color: #63E281;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    gap: 12px;
}

.cwc-hs-unique-wrapper .cwc-hs-intro-btn:hover {
    background-color: #4fd16f;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(99, 226, 129, 0.3);
}

.cwc-hs-unique-wrapper .cwc-hs-btn-icon {
    background: #2166F3;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.cwc-hs-unique-wrapper .cwc-hs-btn-icon svg {
    width: 100%;
    height: 100%;
}

/* Tablet Responsive (1000px and down) - Fine-tuned professional centering */
@media (max-width: 1000px) {
    .cwc-hs-unique-wrapper .cwc-hs-nested-item {
        flex-direction: column;
        align-items: center;
        /* Center everything horizontally */
        height: auto;
        min-height: 500px;
        width: 90vw !important;
        max-width: 450px !important;
        min-width: 0 !important;
        padding: 40px 30px;
        /* Increased padding for more breathable UI */
        text-align: center;
    }

    .cwc-hs-unique-wrapper .cwc-hs-nested-media {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        /* Keep image perfectly centered and proportional */
        height: 180px;
        margin-bottom: 25px;
        background: transparent;
    }

    .cwc-hs-unique-wrapper .cwc-hs-nested-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center title & bubble */
        padding: 0;
        gap: 0;
        height: auto;
    }

    .cwc-hs-unique-wrapper .cwc-hs-nested-title {
        font-size: 26px;
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .cwc-hs-unique-wrapper .cwc-hs-nested-desc {
        width: 100%;
        min-height: auto;
        padding: 20px;
        border-radius: 20px;
        justify-content: center;
    }

    .cwc-hs-unique-wrapper .cwc-hs-nested-desc p {
        text-align: center;
        width: 100%;
    }

    .cwc-hs-unique-wrapper .cwc-hs-intro-title {
        font-size: 42px;
    }

    .cwc-hs-unique-wrapper .cwc-hs-header-area {
        padding-bottom: 20px;
    }
}

/* Mobile Adjustments (767px and down) */
@media (max-width: 767px) {
    .cwc-hs-unique-wrapper .cwc-hs-intro-title {
        font-size: 32px;
    }

    .cwc-hs-unique-wrapper .cwc-hs-nested-title {
        font-size: 22px;
    }

    .cwc-hs-unique-wrapper .cwc-hs-intro-btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}