/* TABS HEADER */

.tabs-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

@media screen and (max-width: 1420px) {
    .tabs-header {
        flex-direction: column;
        gap: 20px;
    }
    
}

.tabs-header .tabs-header-text {
    color: rgba(255, 255, 255, 0.60);
    font-family: "Instrument Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.16px;
    margin-bottom: 0px!important;
}

.tabs-selector-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs {
    display: flex;
    position: relative;
    background-color: #fff;
    padding: 6px;
    border-radius: 25px;
}

.tabs * {
    z-index: 2;
}

input[type="radio"] {
    display: none;
}

.tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 10px 19px; /* Replaced fixed width with padding */
    font-size: 15px;
    font-weight: 500;
    border-radius: 19px;
    cursor: pointer;
    transition: color 0.15s ease-in;
    white-space: nowrap; /* Prevents text wrapping */
    color: #000B86;
}

input[type="radio"]:checked+label {
    color: #fff;
}

.glider {
    position: absolute;
    height: 38px;
    /* width is now determined by the tab content */
    background-color: #000B86;
    z-index: 1;
    border-radius: 19px;
    transition: 0.25s ease-out;
}

/* Updated glider positioning to accommodate dynamic widths */
#radio-1:checked ~ .glider {
    left: 6px; /* Match the padding of .tabs */
    width: calc(var(--tab-1-width) + 40px); /* Add padding to width */
}

#radio-2:checked ~ .glider {
    left: calc(6px + var(--tab-1-width) + 40px);
    width: calc(var(--tab-2-width) + 40px);
}

#radio-3:checked ~ .glider {
    left: calc(6px + var(--tab-1-width) + var(--tab-2-width) + 80px);
    width: calc(var(--tab-3-width) + 40px);
}

#radio-4:checked ~ .glider {
    left: calc(6px + var(--tab-1-width) + var(--tab-2-width) + var(--tab-3-width) + 120px);
    width: calc(var(--tab-4-width) + 40px);
}

/* MOBILE TABS STYLES */
@media screen and (max-width: 1372px) {
    .desktop-tabs {
        display: none !important;
    }

    .arrow-before,
    .arrow-after {
        display: none !important;
    }

    .mobile-tabs {
        display: flex !important;
        width: 100%;
        text-align: center;
        position: relative;
    }
    .mobile-tabs select {
        width: 100%;
        padding: 8px 14px;
        font-size: 16px;
        font-family: "Instrument Sans", sans-serif;
        font-weight: 500;
        border-radius: 19px;
        border: none;
        background: #fff;
        color: #000B86;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
        outline: none;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        border: 2px solid rgba(0, 11, 134, 0.4)!important;
        transition: border 0.3s ease;
        line-height: 1em;
    }

    .mobile-tabs select:focus {
        border: 2px solid #000B86!important;
    }

    .mobile-tabs::after {
        content: "";
        display: inline-block;
        transform: translateY(-50%);
        pointer-events: none;

        background-repeat: no-repeat!important;
        background-position: center center!important;

        position: absolute;
        right: 12px;
        top: 50%;
        z-index: 10;
        width: 70px;
        height: 21px;
        text-align: right;
        background: url(/wp-content/themes/studio3615/assets/tabs/chevron.svg) center center no-repeat, linear-gradient(to right, transparent, #fff 25%) !important;
        background-size: 16.25px 10px, auto !important;
        /* Remove padding-right to help center the background */
        padding-right: 0;
    }
}

@media screen and (min-width: 1372px) {
    .mobile-tabs {
        display: none !important;
    }
}

/* TABS CONTENT */

.full-width-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}



.tabs-content-container {
    padding: 55px 60px 70px 60px;
    border-radius: 18px;
    background: #F1F3FF;

    width: 1292px!important;

    transition: height 0.3s ease-in-out;
}

@media screen and (max-width: 1372px) {
    .tabs-content-container {
        width: 100%!important;
    }
}

.tabs-content-container {
    position: relative;
    overflow: hidden;
}

.tabs-content-container::after {
    content: attr(data-after-content);
    display: block;
    position: absolute;
    height: fit-content;
    bottom: -20px;
    z-index: 0;
    left: 50%;
    transform: translateX(-50%);

    color: #E7E9F7;
    font-family: "Plus Jakarta Sans";
    font-size: 180px;
    font-style: normal;
    font-weight: 500;
    line-height: 180px;
    white-space: nowrap;

    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .tabs-content-container::after {
        font-size: 120px;
        line-height: 120px;
    }
    
}

.tabs-content {
    transition: opacity 0.5s ease;
    z-index: 99;
    position: relative;
}

.tabs-content .tag{
    color: #000B86;
    font-family: "Plus Jakarta Sans";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 30px;
}

.tabs-content .columns {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 70px;
}

.tabs-content .columns .first-column {
    width: 45%;
}

.tabs-content .columns .first-column h3.title {
    color: #000;
    font-family: "Plus Jakarta Sans";
    font-size: 25px;
    font-style: normal;
    font-weight: 600;
    line-height: 37px; /* 148% */

    margin-bottom: 35px;
}

.tabs-content .columns .first-column p.description {
    color: rgba(0, 0, 0, 0.70);
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 29px; /* 170.588% */
}

.tabs-content .columns .second-column {
    width: 55%;
}

.tabs-content .columns .second-column > p:first-child {
    color: #000;
    font-family: "Plus Jakarta Sans";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.7em;

    margin-bottom: 16px;
}

.tabs-content .columns .second-column ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 40px;
}

.tabs-content .columns .second-column ul li {
    display: flex;
}

.tabs-content .columns .second-column ul li p {
    color: #000B86;
    font-family: "Plus Jakarta Sans";
    font-size: 21px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.6em;
    width: calc(100% - 43px); /* Adjusted to account for icon width */
}

.tabs-content .columns .second-column ul li p span {
    color: #000B86;
    font-family: "Plus Jakarta Sans";
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4em;
}  

.tabs-content .columns .second-column ul li:before {
    content: "";
    margin-right: 16px;
    width: 27px;
    height: 27px;
    background-image: url(/wp-content/themes/studio3615/assets/tabs/checkmark.svg);
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    margin-top: 4px; /* Adjusted for vertical alignment */
}

.tabs-content .columns .second-column > p:last-child {
    color: #020A20;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5em;
}

.tabs-content .columns .second-column > p:last-child span.underline {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.arrow-before,
.arrow-after {
    cursor: pointer;
    margin-top: 200px;
}

.arrow-before circle,
.arrow-after circle {
    transition: fill 0.3s ease;
}

.arrow-before:hover circle,
.arrow-after:hover circle {
    fill: #000B86;
}

@media screen and (max-width: 980px) {
    .tabs-content-container {
        padding: 30px 20px;
    }

    .tabs-content .columns {
        gap: 30px;
        flex-direction: column;
    }

    .tabs-content .columns .first-column,
    .tabs-content .columns .second-column {
        width: 100%;
    }

    .tabs-content .columns .second-column ul li:before {
        width: 20px;
        height: 20px;
        margin-right: 10px;
    }
}
