/* About Page Specific Styles */

/* About Page Typography */
.people-p {
    font-size: 2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.people-p-black {
    font-size: 3rem;
    color: var(--main-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive text container */
.responsive-text {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* ----- About Page Team Section ----- */
.team-titles .text-small {
    line-height: 1;
}

/* team card hover*/
.team-cross-w,
.team-cross {
    transition-duration: 600ms;
    transition-timing-function: ease;
    transition-property: transform, opacity;
}

.team-title-w {
    transition-duration: 600ms;
    transition-timing-function: ease;
    transition-property: opacity;
}

/* team card active */
.team-item-w.is--active .team-img-w {
    transform: scale(1.1);
}

.team-item-w.is--active .team-title-w {
    opacity: 1;
}

.team-item-w.is--active .team-cross-w {
    transform: scale(1);
    opacity: 1;
}

.team-item-w.is--active .team-cross {
    transform: rotate(45deg);
}

/* bento blocks */
.abt-block-w.is-2 {
    aspect-ratio: 1 / 1;
}

.abt-block-w.is-1 .abt-block-info-w {
    color: var(--main-light);
}

.abt-block-w.is-4 .abt-block-info-w {
    display: flex;
    justify-content: center;
    align-items: center;
}

[abt-vid] {
    height: 100%;
    width: 100%;
}

.abt-block-w.is-1 .abt-txt,
.abt-block-w.is-1 .span-small {
    color: var(--main-dark) !important;
}

.text-small.flip-text {
    transform: rotate(180deg);
    display: inline-block;
}

.abt-cross-svg {
    fill: var(--main-dark);
}

html.dark .abt-cross-svg {
    fill: var(--main-light);
}

.abt-rotator-svg {
    fill: var(--main-light-alt);
}

html.dark .abt-rotator-svg {
    fill: var(--main-dark-alt);
}

.abt-block-w.is-2 {
    background: var(--main-light-alt);
    border: 1px solid var(--light-grey);
}

html.dark .abt-block-w.is-2 {
    background: var(--main-dark-alt);
    border: 1px solid var(--light-grey);
}

/* Desktop hover effects for team cards */
@media only screen and (min-width: 992px) {
    .team-item-w:hover .team-img-w {
        transform: scale(1.1);
    }

    .team-item-w:hover .team-cross-w {
        transform: scale(1);
        opacity: 1;
    }

    .team-item-w:hover .team-title-w {
        opacity: 1;
    }
}

/* About page specific block styles */
.abt-block-w.is-2 {
    aspect-ratio: 1 / 1;
    background: var(--main-light-alt);
    border: 1px solid var(--light-grey);
}

html.dark .abt-block-w.is-2 {
    background: var(--main-dark-alt);
    border: 1px solid var(--light-grey);
}

.abt-block-w.is-1 .abt-block-info-w {
    color: var(--main-light);
}

.abt-block-w.is-4 .abt-block-info-w {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    min-height: 300px;
    text-align: center;
}

.abt-block-w.is-1 .abt-txt,
.abt-block-w.is-1 .span-small {
    color: var(--main-dark) !important;
}

.div-line {
    font-size: 2.5em;
    line-height: 1.2;
}

/* Section 4/4 styles */
.h-b {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--main-dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

html.dark .h-b {
    color: var(--main-light);
}

.abt-txt {
    font-size: 2rem;
    line-height: 1.3;
    color: var(--main-dark);
    opacity: 0.9;
}

html.dark .abt-txt {
    color: var(--main-light);
}

.no-break {
    white-space: nowrap;
}

.break-mobile {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Section container improvements */
#todobetter {
    padding: 6rem 0;
}

#todobetter .grid-main {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#todobetter .mbm-diff {
    padding: 3rem;
    min-width: 100%;
    text-align: center;
}

.abt-cross-svg {
    fill: var(--main-dark);
}

html.dark .abt-cross-svg {
    fill: var(--main-light);
}

.abt-rotator-svg {
    fill: var(--main-light-alt);
}

html.dark .abt-rotator-svg {
    fill: var(--main-dark-alt);
}

/* Tablet Responsive Styles */
@media only screen and (max-width: 992px) {
    .people-p {
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        position: relative;
        vertical-align: baseline;
    }

    .people-p-black {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        position: relative;
        vertical-align: baseline;
    }
    
    .abt-block-w.is-4 .abt-block-info-w {
        padding: 2.5rem;
        min-height: 350px;
    }
    
    .div-line {
        font-size: 2.2em;
    }
    
    /* Section 4/4 responsive - Tablet */
    .h-b {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .abt-txt {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .no-break {
        white-space: normal;
    }
    
    #todobetter {
        padding: 4rem 0;
    }
    
    #todobetter .mbm-diff {
        padding: 2rem;
    }
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 768px) {
    .people-p {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        position: relative;
        vertical-align: baseline;
    }

    .people-p-black {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        position: relative;
        vertical-align: baseline;
    }
    
    .abt-block-w.is-4 .abt-block-info-w {
        padding: 3rem;
        min-height: 400px;
        flex-direction: column;
    }
    
    .div-line {
        font-size: 2em;
    }
    
    /* Section 4/4 responsive - Mobile */
    .h-b {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .abt-txt {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    #todobetter {
        padding: 3rem 0;
    }
    
    #todobetter .mbm-diff {
        padding: 1.5rem;
    }
}

.abt-content-w2 {
    z-index: 10;
    grid-row-gap: 1em;
    /* flex-direction: column; */
    flex: 1;
    justify-content: flex-end;
    height: 100%;
    display: flex;
    position: relative;
}

/* Small Mobile Responsive Styles */
@media only screen and (max-width: 480px) {
    .people-p {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        position: relative;
        vertical-align: baseline;
    }

    .people-p-black {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        position: relative;
        vertical-align: baseline;
    }
    
    .abt-block-w.is-4 .abt-block-info-w {
        padding: 2rem;
        min-height: 300px;
        flex-direction: column;
    }
    
    .div-line {
        font-size: 1.8em;
    }
    
    /* Section 4/4 responsive - Small Mobile */
    .h-b {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .abt-txt {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .no-break {
        white-space: normal;
    }
    
    #todobetter {
        padding: 2rem 0;
    }
    
    #todobetter .grid-main {
        min-height: 300px;
    }
    
    #todobetter .mbm-diff {
        padding: 1rem;
    }
}
