:root {
    --vs-tabs-green: 0, 167, 83;
    --vs-tabs-bg: rgba(0, 0, 0, 0.2);
    --vs-tabs-orange: 216, 73, 0;
    --wec-blue: rgba(37, 52, 107, 1);
    --vs-tabs-blue: rgb(165, 237, 255); 
}

.vs-tabs-body {
    margin: 0;
    padding: 0;
    color: white;
    position: relative;
    font-size: 1.1vw;
    background-blend-mode: overlay;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 .1vw .1vw rgba(0, 0, 0, 0.7);
    text-shadow: 0 .1vw .3vw rgba(0, 0, 0, 0.7);
}

/* Remove the old video background styles */
.vs-tabs-video-background,
.vs-tabs-gradient {
    display: none;
}

.vs-tabs-container {
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
    text-align: left;
}

.vs-tabs-header {
    text-align: center;
    padding: 2em 0em 1em 0em;
    max-width: 60em;
    margin: 0 auto;
}

.vs-tabs-title {
    font-size: 3em; 
    font-weight: 900;
}

.vs-tabs-subtitle {
    font-size: 1.21em;
    opacity: 0.9;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    margin-bottom: 0;
}

.vs-tabs-main.active .vs-tabs-subtitle {
    opacity: 0;
    height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

/* Main container animations
 * Initial state: 30vh from top
 * Active state: 0vh from top
 * Duration: 0.8s with cubic-bezier easing
 */
.vs-tabs-main {
    position: relative;
    margin: 10vh auto 0;
    width: 65em;
    max-width: 1600px;
    transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vs-tabs-main:not(.active) {
    margin-top: 10vh;
}

.vs-tabs-main.active {
    margin-top: 0;
}

.vs-tabs-tab-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6em;
    position: relative; 
    opacity: 1;
    width: 90%;
    padding-left: 5%;   
    padding-right: 5%;
}

.vs-tabs-tab-content {
    position: relative;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 0;
    overflow: hidden;
    z-index: 1;
}

.vs-tabs-main.active .vs-tabs-tab-content {
    opacity: 1;
    pointer-events: auto;
    height: auto;
    overflow: visible;
}

/* Panel animations
 * Initial open: Fade in after container movement (0.4s delay)
 * Tab switching: Smooth fade out/in (0.3s duration)
 * Tab close: Immediate fade out
 */
.vs-tabs-panel {
    visibility: hidden;
    padding: 1em;
    border-radius: 0 0 0.75em 0.75em;
    opacity: 0;
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    height: 0;
    overflow: hidden;
    margin-bottom: 1vh;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0s linear 0.6s,
                height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    /* gap: 6em; */
    will-change: height, opacity;
}

.vs-tabs-panel-container {
    flex: 1;
    min-width: 0;
}

.vs-tabs-panel-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1em;
    /* margin-top: 1em; */
    /* margin-bottom: 1em; */
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.2); */
}

.vs-tabs-panel-title {
    font-size: 3em;
    font-weight: 200;
}

.vs-tabs-panel-subtitle {
    font-size: 1.1em;
    line-height: 1.4;
    opacity: 0.9;
}

.vs-tabs-statements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    background: rgba(var(--vs-tabs-green), 0.3);
    padding: .7em;
    border-radius: 0.5em;
    align-self: flex-start;
    height: fit-content;
    align-items: center;
    margin-top: 1em;
}

.vs-tabs-statement {
    padding: 1em;
    border-radius: 0.5em;
    color: #FFFFFF;
    position: relative;
    display: flex;
    flex-direction: row;
    background-color: rgba(var(--vs-tabs-green), 0.5);
    height: fit-content;
    gap: 1em;
    justify-content: center;
}

.vs-tabs-statement-tag {
    position: absolute;
    top: -0.6em;
    left: 1.25em;
    padding: 0.2em 0.6em;
    border-radius: 0.3em;
    font-size: 0.8em;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
}

.vs-tabs-statement-title { 
    font-size: 4em;
    font-weight: 900;
    line-height: 1;
    position: relative;
}

.vs-tabs-statement-text {
    font-size: 1em;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vs-tabs-statement-title-small {
    font-size: .17em;
    font-weight: 600;
    position: absolute;
    top: -.5em;
    left: 1em;  
}

.vs-tabs-statement-text strong {
    font-weight: 900;
}

/* Initial opening animation
 * 1. Container moves up (0.4s)
 * 2. Panel fades in with delay (0.3s + 0.4s delay)
 */
.vs-tabs-main:not(.active) .vs-tabs-panel {
    opacity: 0;
    visibility: hidden;
}

.vs-tabs-main:not(.active) .vs-tabs-panel.active {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.4s, visibility 0s linear 0.4s;
}

/* Tab switching animation
 * Smooth fade out of current panel
 * Smooth fade in of new panel (0.3s)
 */
.vs-tabs-main.active .vs-tabs-panel {
    position: absolute;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.6s;
}

.vs-tabs-main.active .vs-tabs-panel.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear;
    position: relative;
    height: auto;
    overflow: visible;
}

.vs-tabs-panel-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--wec-blue); 
    border-radius: 0 0 0.75em 0.75em;
    height: 0;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 0;
    border: none;
    backdrop-filter: blur(1vw);
    pointer-events: none;
    will-change: height;
}

.vs-tabs-main.active .vs-tabs-panel-background { 
    height: auto;
}

.vs-tabs-close {
    position: absolute;
    right: -1em;
    top: 1em;
    width: 1.2em;
    height: 1.2em;
    transform: translateY(-50%);
    border: none;
    color: rgb(0, 19, 87);
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    line-height: 1.2;
    background: rgb(255, 255, 255);
    border-radius: 10em;
}

.vs-tabs-close:hover {
    transform: translateY(-50%) scale(1.1);
}

.vs-tabs-main.active .vs-tabs-close {
    opacity: 1;
}

.vs-tabs-tab-button {
    background: rgba(37, 52, 107, 0.3);
    border: none;
    color: white;
    padding: 1em 1em;
    font-size: 1.4em;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.5em;
    backdrop-filter: blur(1em);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    border-bottom: 0.4em solid transparent;
    position: relative;
    top: .1em;
    transition: all 0.3s ease;
    height: 3em;
}

.vs-tabs-tab-button:hover {
    /* transform: scale(1.05); */
    background: rgba(0, 72, 255, 0.7);
}

.vs-tabs-tab-button span {
    transition: all 0.3s ease;
}

.vs-tabs-tab-button.active {
    /* -webkit-text-stroke: .1em rgb(255, 255, 255); */
    /* letter-spacing: 0.1em; */
    border-bottom-color: white;
    pointer-events: none;
}

.vs-tabs-tab-button.active span {
    /* -webkit-text-stroke: .1vw rgb(255, 255, 255); */
    /* font-weight: 900; */
    text-shadow: none;
    color: white;
    /* letter-spacing: 0.1em; */
}

.vs-tabs-tab-button.active:hover span {
    color: white;
}

.vs-tabs-main:not(.active) .vs-tabs-tab-button span {
    -webkit-text-stroke: 0 !important;
    letter-spacing: normal !important;
}

.vs-tabs-main:not(.active) .vs-tabs-tab-button {
    padding: 1em 0em;
    background: rgba(0, 37, 173, 0.459);
    backdrop-filter: blur(1vw); 
    border-bottom-color: transparent;
    height: 8em;
}

.vs-tabs-main:not(.active) .vs-tabs-tab-button:hover {
    background: rgba(0, 37, 173, 1);
    backdrop-filter: blur(1vw);
}

.vs-tabs-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.vs-tabs-content.active {
    opacity: 1;
    transform: translateY(0);
}

.vs-tabs-tab-icon {
    width: 4em;
    height: 4em;
    transition: opacity 0.3s ease, height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vs-tabs-main.active .vs-tabs-tab-button {
    padding: 0.5em 1em;
    background: rgba(0, 72, 255, 0);
    backdrop-filter: blur(0);
    border-radius: 0;
    font-size: 1.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
    0 4px 8px rgba(0, 0, 0, 0.3);
    
}

.vs-tabs-main.active .vs-tabs-tab-button:hover {
    background: transparent;
    color: white;
}

/* .vs-tabs-main:not(.active) .vs-tabs-tab-button:hover {
    background: rgba(37, 52, 107, 1);
    backdrop-filter: blur(1vw);
} */

.vs-tabs-main.active .vs-tabs-tab-icon {
    opacity: 0;
    height: 0;
}

.vs-tabs-main:not(.active) .vs-tabs-tab-icon {
    opacity: 1;
    height: 4em;
}


.vs-tabs-content-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    text-shadow: none;
}

.vs-tabs-tab-content {
    position: relative;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 0;
    overflow: hidden;
    z-index: 1;
}

.vs-tabs-tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

.vs-tabs-border-line {
    position: absolute;
    top: 0;
    height: 1px;
    background: white;
    width: 0;
    transform-origin: center;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.vs-tabs-main.active .vs-tabs-border-line {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                left 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    width: 200%;
}

.vs-tabs-tab-indicator {
    position: absolute;
    top: 0;
    height: 0.2vw;
    background: white;
    width: 0;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.vs-tabs-main.active .vs-tabs-tab-indicator {
    width: var(--button-width);
}

