/* --- Section Container --- */
.vision-section {
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* --- Background Image and Overlay --- */
.vision-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vision-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px);
}

.vision-bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.65);
}

/* --- Content Wrapper --- */
.vision-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* --- Header Text --- */
.vision-header {
    text-align: center;
    margin-bottom: 4rem;
}

.vision-main-heading {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.vision-sub-heading {
    font-size: 1.125rem;
    color: #475569;
    font-style: italic;
}

/* --- Tab Buttons --- */
.vision-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.vision-tabs-list {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
    .vision-tabs-list {
        flex-direction: row;
    }
}

.vision-tab-button {
    /*flex: 1;*/
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #475569;
}

@media (min-width: 640px) {
    .vision-tab-button {
        font-size: 1rem;
    }
}

.vision-tab-button:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
}

@media (min-width: 640px) {
    .vision-tab-button:not(:last-child) {
        border-bottom: none;
        border-right: 1px solid #e2e8f0;
    }
}

/* Active and Hover States */
.vision-tab-button.active {
    background-color: #1e293b;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.vision-tab-button:hover {
    background-color: #f1f5f9;
    color: #1e293b;
}

.vision-tab-button.active:hover {
    background-color: #1e293b;
    color: #fff;
}

/* --- Unified Card Content --- */
.vision-content-card {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.vision-tab-panel {
    display: none;
}

    .vision-tab-panel.active {
        display: block;
    }

.vision-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 450px;
}

@media (min-width: 1024px) {
    .vision-content-grid {
        grid-template-columns: repeat(5, 1fr);
        height: 450px;
    }
}

/* --- Image and Text Layout --- */
.vision-content-image-wrapper {
    grid-column: span 1 / span 1;
    order: 2;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

@media (min-width: 1024px) {
    .vision-content-image-wrapper {
        grid-column: span 2 / span 2;
        order: 1;
        min-height: 0;
    }
}

.vision-content-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-content-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.vision-content-text-wrapper {
    grid-column: span 1 / span 1;
    order: 1;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .vision-content-text-wrapper {
        grid-column: span 3 / span 3;
        order: 2;
    }
}

.vision-content-text-inner {
    position: relative;
    z-index: 10;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

/* --- Content Spacing --- */
.vision-content-paragraph-wrapper {
    /* Mimics a space-y effect */
}

.vision-content-paragraph {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.625;
    font-size: 1rem;
}

.vision-logo-container {
    margin-bottom: 1.5rem;
}

.vision-logo {
    height: 3rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.values-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background-color: var(--flamingo);
    color: #fff;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
