/* New About Page Layout */
.about-mission-final {
    padding: 1rem 0 5rem 0 !important;
    background-color: var(--bg-body);
}

.mission-vision-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    /* Gap between columns */
    margin: 0 var(--container-padding);
    margin-bottom: 5rem;
}

.mission-container,
.vision-container {
    flex: 1;
    /* Each takes equal width (50%) */
    margin: 0;
    /* Margin handled by wrapper/gap */
}

.mission-container {
    text-align: left;
}

.vision-container {
    text-align: left;
    /* Keep body text left aligned */
}

.vision-container .mission-title {
    text-align: right;
}

.vision-container .title-divider {
    margin-left: auto;
    margin-right: 0;
}

.team-container {
    width: 100%;
    padding: 0 var(--container-padding);
    /* Padding creates the symmetric spacing from edges */
    text-align: left;
    margin-top: 5rem;
}

@media (max-width: 900px) {
    .mission-vision-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
}

.mission-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: rgb(35, 35, 35);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.title-divider {
    width: 240px;
    height: 4px;
    background-color: #d4af37;
    /* Gold accent */
    margin-bottom: 2.5rem;
    border-radius: 2px;
}

.mission-body p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--about-text-light);
    margin-bottom: 1rem;
}

/* Base styles for About page */
:root {
    --about-text-light: #555;
}

.about-page {
    background-color: var(--bg-body);
    min-height: 100vh;
    padding-top: 15rem !important;
}

.section-divider {
    width: 100%;
    max-width: 900px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    margin: 5rem 0 0 var(--container-padding);
}

.founders-row {
    display: flex;
    justify-content: space-between;
    /* Pushes first to left, last to right */
    align-items: flex-start;
    width: 100%;
    margin-top: 2rem;
    flex-wrap: nowrap;
    overflow: visible;
}

.founder-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 22%;
    /* Approx 66% of the available 33% space per column */
    margin: 0;
    position: relative;
}

/* Nuvard (1st item) - Left Border */
/* Nuvard (1st item) - Left Border + Horizontal Corner */
.founders-row .founder-item:first-child {
    padding-left: 0;
}

.founders-row .founder-item:first-child::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 8px;
    /* Thickness */
    height: calc(100% - 2.5rem);
    /* Hacky fix to stop at photo bottom, assuming height includes name text. 
                                    Better approach: Use a wrapper around IMG only for the border. 
                                    However, since I can't change HTML structure easily here without potentially breaking zoom context again... 
                                    Let's try to target the IMG height. 
                                    Actually, the cleanest way is adding a wrapper div in HTML around the img. 
                                    But if sticking to CSS: 
                                    Let's rely on the fact that .founder-img is the first child in .founder-item. 
                                    Actually the pseudo element is on .founder-item. 
                                    Let's put the border on the IMG itself if possible? No, can't overlap easily without wrapper.
                                    
                                    Let's switch to using a wrapper in HTML for the image to anchor borders to IT, not the whole item (which includes text).
                                    */
    height: 100%;
    /* Temporary placeholder, see below */
    display: none;
    /* Disabling this strategy to do it properly with HTML change */
}


.founder-img-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Nuvard: Left Vertical + Top & Bottom Horizontal (Bracket [ ) */
.founders-row .founder-item:first-child .founder-img-wrapper {
    /* Using background gradients to draw the borders */
    background-repeat: no-repeat;
    background-image:
        /* Vertical Left: Solid Gold */
        linear-gradient(to bottom, #d4af37, #d4af37),
        /* Top Horizontal: Fade to Right */
        linear-gradient(to right, #d4af37 0%, rgba(212, 175, 55, 0) 100%),
        /* Bottom Horizontal: Fade to Right */
        linear-gradient(to right, #d4af37 0%, rgba(212, 175, 55, 0) 100%);

    background-size:
        8px 100%,
        /* Vertical: 8px width, full height */
        108px 8px,
        /* Top: 108px width, 8px height */
        108px 8px;
    /* Bottom: 108px width, 8px height */

    background-position:
        left center,
        /* Vertical anchored left */
        left top,
        /* Top anchored left-top */
        left bottom;
    /* Bottom anchored left-bottom */

    /* Padding to ensure content doesn't overlap borders if they were inside, 
       but here borders are background. If images are transparent, borders show through.
    */
}

/* All Founders: Double Bracket Borders [ ] */
.founders-row .founder-item .founder-img-wrapper::before {
    /* Vertical Lines (Left and Right) */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8px;
    right: -8px;
    border-left: 8px solid #d4af37;
    border-right: 8px solid #d4af37;
    border-radius: 2px;
    pointer-events: none;
}

.founders-row .founder-item .founder-img-wrapper::after {
    /* Horizontal Gradients (2 arms: Top-Left and Bottom-Right) */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8px;
    right: -8px;
    background-image:
        /* Top Left -> Fade Right */
        linear-gradient(to right, #d4af37 0%, #d4af37 20%, rgba(212, 175, 55, 0) 100%),
        /* Bottom Right -> Fade Left */
        linear-gradient(to left, #d4af37 0%, #d4af37 20%, rgba(212, 175, 55, 0) 100%);

    background-size:
        108px 8px,
        /* Top Left */
        108px 8px;
    /* Bottom Right */

    background-repeat: no-repeat;
    background-position:
        top left,
        bottom right;

    pointer-events: none;
}

.founder-img {
    display: block;
    width: 100%;
    /* Fill the container width */
    height: auto;
    /* Maintain aspect ratio */
    object-fit: cover;
    /* Ensure consistent fill if we forced height, but auto is safer for now */
}

.founder-name {
    margin-top: 1rem;
    font-size: 2.2rem;
    /* Much bigger */
    font-weight: 800;
    /* Match .mission-title weight */
    color: rgb(35, 35, 35);
    /* Match .mission-title color */
    letter-spacing: -0.02em;
    /* Match .mission-title spacing */
    line-height: 1.1;
    text-align: left;
    /* Left align to photo edge */
    width: 100%;
    /* Ensure it fills width */
    max-width: 100%;
}

.founder-role {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--about-text-light);
    /* Or slightly lighter grey than the name */
    text-align: left;

    width: 100%;
    line-height: 1.4;
}

.founder-bio {
    margin-top: 1rem;
    margin-bottom: 1rem;
    /* Added for consistency */
    font-size: 1.0rem !important;
    line-height: 1.6;
    color: #333 !important;
    text-align: left;
    width: 100%;
    max-width: 100%;
}

.founder-divider {
    width: 60px;
    height: 3px;
    background-color: #d4af37;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    align-self: flex-start;
    /* Ensure left alignment in flex column */
}

@media (max-width: 768px) {
    .founders-row {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
        margin-top: 3rem;
    }

    .founder-item {
        width: 100%;
        max-width: 400px;
        /* Limit width on mobile so images don't get absurdly large */
        margin-bottom: 2rem;
    }

    .founder-img-wrapper {
        width: 100%;
        /* Ensure wrapper fills the item width */
    }
}