* { box-sizing: border-box; }

.vhc-wrapper {
    display: flex;
    gap: 14px;
    padding: 24px;
    border-radius: 26px;
    min-height: 500px;
}

/* CARD */
.vhc-card {
    position: relative;
    flex: 0 0 80px;
    border-radius: 22px;
    overflow: hidden;
    transition: flex 0.6s ease;
    padding: 30px;
}

/* ACTIVE */
.vhc-wrapper.active-1 .vhc-card[data-card="1"],
.vhc-wrapper.active-2 .vhc-card[data-card="2"],
.vhc-wrapper.active-3 .vhc-card[data-card="3"] {
    flex: 1;
}

/* DETAILS */
.vhc-details {
    background: #fff;
    height: 100% !important;
    padding: 30px 24px; /* Moved padding here from .vhc-card */
    display: flex;
    gap: 60px;
    border-radius: 22px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all .4s ease;
    z-index: 2;
    position: relative;
    box-shadow: 0px 3px 36px 0px rgba(217, 210, 192, 0.16);
    z-index: 2 !important;
}

.vhc-tab-arrow-outer {
    width: 100px;
    height: 100px;
    rotate: 180deg;
}

.vhc-tab-arrow-outer svg{
    width: 100px;
    
}

.vhc-wrapper.active-1 .vhc-card[data-card="1"]::after,
.vhc-wrapper.active-2 .vhc-card[data-card="2"]::after,
.vhc-wrapper.active-3 .vhc-card[data-card="3"]::after  {
    content: "";
    width: 200px;
    height: 85%; /* Adjusted for better positioning */
    background: #f8f0db;
    position: absolute;
    left: 17px;
    bottom: 18px;
    border-radius: 20px;
    z-index: 0;
}

.vhc-wrapper.active-1 .vhc-card[data-card="1"] .vhc-details,
.vhc-wrapper.active-2 .vhc-card[data-card="2"] .vhc-details,
.vhc-wrapper.active-3 .vhc-card[data-card="3"] .vhc-details {
    opacity: 1;
    transform: none;
}

/* IMAGE */
.vhc-img {
    flex-shrink: 0;
    width: 350px;
    height: 400px;
}

.vhc-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
}

/* DIVIDER */
.vhc-text hr {
    height: 1px !important;
    border: none !important;
    background-color: #EBEBEB !important;
    margin: 16px 0 !important;
}

/* TEXT */
.vhc-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vhc-text {
    max-height: 430px !important;
}

.vhc-text h3 { 
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1F1F1F;
    line-height: 1.3;
    font-family: 'Unageo' !important;
    margin-top: 20px !important;
}

.vhc-text .sub { 
    font-size: 17px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-family: 'Unageo' !important;
}

.vhc-text ul {
    padding: 0;
    margin: 0 !important;
    list-style: none;
}

.vhc-text li {
    list-style: none;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #454545;
    font-size: 17px;
    line-height: 1.5;
    font-family: 'Unageo' !important;
}

.vhc-text li:last-child {
    margin-bottom: 0;
}

.vhc-text li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.vhc-text .outcome {
    color: #454545;
    font-size: 17px;
    margin: 0;
    line-height: 1.5;
    font-family: 'Unageo' !important;
}

/* TAB */
.vhc-tab {
    position: absolute;
    inset: 0;
    background: #F4D98A;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
    border-radius: 22px;
    letter-spacing: 0.3px;
    font-family: 'Unageo' !important;
    margin: 0px; /* Changed from 30px 0px to 0px */
    padding: 30px 0px; /* Added padding here instead of margin */
}

.vhc-wrapper.active-1 .vhc-card[data-card="1"] .vhc-tab,
.vhc-wrapper.active-2 .vhc-card[data-card="2"] .vhc-tab,
.vhc-wrapper.active-3 .vhc-card[data-card="3"] .vhc-tab {
    opacity: 0;
    pointer-events: none;
}

.vhc-wrapper .vhc-card[data-card="1"] .vhc-tab,
.vhc-wrapper .vhc-card[data-card="2"] .vhc-tab { background: #FEEDBD !important;}

@media screen and (max-width: 768px) {
    .vhc-img {
        max-width: 200px;
    }
    .vhc-details {padding: 20px;}
}

@media (max-width: 600px) {

    /* Wrapper stack */
    .vhc-wrapper {
        flex-direction: column;
        gap: 0px;
        padding: 16px;
    }

    /* Card */
    .vhc-card {
        flex: 0 0 auto !important;
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        padding: 0px;
    }

    /* TAB – horizontal on mobile */
    .vhc-tab {
        position: relative;
        inset: auto;
        writing-mode: horizontal-tb;
        transform: none;
        height: auto;
        min-height: 52px;
        padding: 0px 15px;
        margin: 0;
        border-radius: 18px 18px 0 0;
        font-size: 16px;
        justify-content: space-between;
    }

    /* Arrow reset */
    .vhc-tab-arrow-outer {
        width: 70px;
        height: 70px;
        rotate: 0deg;
    }

    .vhc-tab-arrow-outer svg {
        width: 70px;
        height: 70px;
    }

    /* DETAILS – hidden default */
    .vhc-details {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        opacity: 0;
        max-height: 0;
        transform: translateY(40px);
        transition: all 0.45s ease;
        pointer-events: none;
        border-radius: 0 0 22px 22px;
    }

    /* ACTIVE CARD – show details */
    .vhc-wrapper.active-1 .vhc-card[data-card="1"] .vhc-details,
    .vhc-wrapper.active-2 .vhc-card[data-card="2"] .vhc-details,
    .vhc-wrapper.active-3 .vhc-card[data-card="3"] .vhc-details {
        opacity: 1;
        max-height: 2000px;
        transform: translateY(0);
        pointer-events: auto;
    }

    .vhc-wrapper.active-1 .vhc-card[data-card="1"] .vhc-tab,
    .vhc-wrapper.active-2 .vhc-card[data-card="2"] .vhc-tab,
    .vhc-wrapper.active-3 .vhc-card[data-card="3"] .vhc-tab {
        display: none;
    }

    /* Image */
    .vhc-img {
        width: 100%;
        max-width: 100%;
    }

    .vhc-img img {
        width: 100%;
        height: auto;
        border-radius: 16px;
    }

    /* Typography */
    .vhc-text h3 {
        font-size: 22px;
        margin-top: 8px !important;
    }

    .vhc-text .sub,
    .vhc-text li,
    .vhc-text .outcome {
        font-size: 15px;
    }

    /* Remove desktop bg shape */
    .vhc-card::after {
        display: none !important;
    }
}