@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Comfortaa', sans-serif;
}

button {
    all: unset;
    cursor: pointer;
}

/* ===== Layout ===== */
.leadership-main-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    width: 100%;
    margin-top: 3rem;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .leadership-main-container {
        gap: 2.5rem;
        margin-top: 1.5rem;
    }
}

/* ===== CEO block ===== */
.ceo-section {
    display: flex;
    gap: 3rem;
    margin: 0 4rem;
    align-items: flex-start;
    justify-content: space-around;
}

@media (max-width:992px) {
    .ceo-section {
        flex-direction: column-reverse;
        align-items: center;
        margin: 0 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ceo-section {
        margin: 0 1rem;
        gap: 1rem;
    }
}

.ceo-text-container {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

@media (max-width:992px) {
    .ceo-text-container {
        text-align: left;
    }
}

.leader-name {
    font-size: 43px;
    font-weight: 600;
    color: #2D55C4;
    margin: 0;
}

@media (max-width:1439px) {
    .leader-name {
        font-size: 32px;
    }
}

@media (max-width:992px) {
    .leader-name {
        font-size: 24px;
    }
}

.leadership-title {
    font-size: 25px;
    line-height: 140%;
    font-weight: 500;
    color: #333;
    margin: 0;
}

@media (max-width:992px) {
    .leadership-title {
        font-size: 16px;
        letter-spacing: -.32px;
    }
}

.leadership-text {
    max-width: 910px;
    width: 100%;
    font-weight: 400;
    font-size: 20px;
    line-height: 36px;
    color: #000;
}

@media (max-width:1440px) {
    .leadership-text {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .leadership-text {
        font-size: 16px;
        line-height: 28px;
    }
}

.leadership-text p {
    margin: 0 0 18px;
}

@media (max-width: 992px) {
    .leadership-text p {
        margin: 0 0 12px;
    }
}

.other-leadership-text {
    font-size: 20px;
    line-height: 36px;
    color: #000;
}

@media (max-width:1440px) {
    .other-leadership-text {
        font-size: 18px;
    }
}

@media (max-width:992px) {
    .other-leadership-text {
        font-size: 16px;
        line-height: 28px;
    }
}

.leadership-text a,
.other-leadership-text a {
    color: #1D52E1;
    text-decoration: underline;
}

.leadership-text a:hover,
.other-leadership-text a:hover {
    text-decoration: none;
}

.profile-container {
    flex: 0 0 auto;
    width: 483px;
    height: 597px;
}

@media (max-width:1440px) {
    .profile-container {
        width: 336px;
        height: 416px;
    }
}

@media (max-width:992px) {
    .profile-container {
        width: 100%;
        max-width: 336px;
        height: auto;
        margin: 0 auto;
    }
}

.profile-container img {
    width: 483px;
    height: 597px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    background: none;
}

@media (max-width:1440px) {
    .profile-container img {
        width: 336px;
        height: 416px;
    }
}

@media (max-width:992px) {
    .profile-container img {
        width: 100%;
        max-width: 336px;
        height: auto;
        aspect-ratio: 483/597;
    }
}

/* ===== Quote band ===== */
.color-copy-section {
    background: #F4F5F7;
    width: 100%;
    padding: 4rem;
}

.max-screen {
    max-width: 1440px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.large-copy {
    font-size: 38px;
    line-height: 140%;
    font-weight: 700;
    color: #000;
    text-align: center;
}

@media (max-width:992px) {
    .large-copy {
        font-size: 28px;
    }
}

/* ===== Intro band spacing reduction ===== */
@media (max-width: 992px) {
    .leadership-main-container>section.bg-\[\#F4F5F7\] {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 480px) {
    .leadership-main-container>section.bg-\[\#F4F5F7\] {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* ===== Leadership team section spacing reduction ===== */
@media (max-width: 992px) {
    .leadership-main-container>section.bg-\[\#F6F6F6\] {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 480px) {
    .leadership-main-container>section.bg-\[\#F6F6F6\] {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* ===== Alternating leaders ===== */
.main-leaders-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 0 4rem;
    max-width: 1440px;
}

/* Override Tailwind margins and match CEO section padding at all breakpoints */
.leadership-main-container>section.flex.flex-col {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 4rem !important;
    padding-right: 4rem !important;
}

@media (max-width: 992px) {
    .leadership-main-container>section.flex.flex-col {
        gap: 1.5rem !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .leadership-main-container>section.flex.flex-col {
        gap: 1rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.main-leaders-section {
    margin: 0;
    padding-left: 4rem;
    padding-right: 4rem;
}

@media (max-width: 992px) {
    .main-leaders-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-leaders-section {
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 1rem;
    }
}

@media (min-width:1440px) {
    .main-leaders-section {
        align-items: center;
    }
}

.leader-row {
    display: flex;
    gap: 1rem;
    padding-left: .5rem;
    justify-content: flex-start;
}

.leader-row.normal {
    flex-direction: row-reverse;
}

.leader-row.reverse {
    flex-direction: row;
}

@media (max-width:992px) {

    .leader-row,
    .leader-row.normal,
    .leader-row.reverse {
        flex-direction: column !important;
        margin-bottom: 1rem;
        align-items: center;
        padding-left: 0;
        gap: 0.5rem;
    }
}

.leader-photo-section {
    flex: 0 0 auto;
    width: 483px;
    height: 597px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width:1440px) {
    .leader-photo-section {
        width: 336px;
        height: 416px;
    }
}

@media (max-width:992px) {
    .leader-photo-section {
        width: 100%;
        height: auto;
    }
}

.leader-photo-section img {
    width: 483px;
    height: 597px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width:1440px) {
    .leader-photo-section img {
        width: 336px;
        height: 416px;
    }
}

@media (max-width:992px) {
    .leader-photo-section img {
        width: 100%;
        max-width: 336px;
        height: auto;
        aspect-ratio: 483/597;
    }
}

.leader-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: .5rem;
    flex: 1;
}

@media (max-width:992px) {
    .leader-info-section {
        align-items: flex-start;
        text-align: left;
    }
}

/* ===== View More button ===== */
.view-more-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1rem;
    padding: 7px 12px;
    border: 1px solid #1D52E1;
    border-radius: 100px;
    color: #1D52E1;
    background: transparent;
    font-size: 14px;
    transition: .2s;
    text-decoration: none;
    margin-top: 1rem;
}

.view-more-btn:hover {
    background: #1D52E1;
    color: #fff;
}

/* ===== Team grid ===== */
.team-grid-section {
    background: #F6F6F6;
    width: 100%;
    padding: 3rem 0;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.team-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .25rem;
    margin-bottom: 1.25rem;
}

.our-history-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
}

.rectangle-2191 {
    width: 183px;
    height: 4px;
    border-radius: 100px;
    background: #E50695;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .5rem;
}

.team-card-wrapper {
    min-height: 100%;
    margin-bottom: .5rem;
}

/* 
@media (min-width:1200px) {
    .team-card-wrapper {
        width: calc(25% - .375rem);
    }
}

@media (max-width:1199px) and (min-width:992px) {
    .team-card-wrapper {
        width: calc(33.333% - .333rem);
    }
}

@media (max-width:991px) and (min-width:768px) {
    .team-card-wrapper {
        width: calc(50% - .25rem);
    }
}

@media (max-width:767px) {
    .team-card-wrapper {
        width: 100%;
    }
} */

.team-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    min-height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.leadership-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0 0 .25rem;
    display: block;
}

.team-card-subtitle,
.team-card-subtitle-ext {
    font-size: 14px;
    margin: 0;
    color: #666;
}

/* ===== Modal ===== */
#leader-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

#leader-modal.is-open {
    display: block;
}

.leader-modal__backdrop {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: .7;
}

.leader-modal__shell {
    position: relative;
    max-width: 1110px;
    margin: 60px auto;
    z-index: 1;
    padding-left: 24px;
}

.leader-modal__panel {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    border-left: 6px solid #E50695;
    min-height: 560px;
}

.leader-modal__left {
    flex: 0 0 48%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F4F5F7;
}

.leader-modal__figure {
    width: 85%;
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leader-modal__figure img {
    width: 333px;
    height: 416px;
    object-fit: cover;
    border-radius: 16px;
    max-width: 100%;
    display: block;
}

.leader-modal__right {
    flex: 1;
    padding: 28px 32px;
    position: relative;
    border-left: 1px solid #E5E5E5;
}

.leader-modal__close {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    font-size: 20px;
}

.leader-modal__name {
    font-size: 28px;
    font-weight: 700;
    color: #2D55C4;
    margin: 0 0 6px;
}

.leader-modal__title {
    font-size: 18px;
    color: #333;
    margin: 0 0 18px;
}

.leader-modal__desc {
    font-size: 16px;
    line-height: 1.7;
    color: #101010;
}

.leader-modal__desc a {
    color: #1D52E1;
    text-decoration: underline;
}

.leader-modal__desc a:hover {
    text-decoration: none;
}

.leader-modal__pills {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 130px;
    height: auto;
    pointer-events: none;
}

@media (max-width:1024px) {
    .leader-modal__panel {
        flex-direction: column;
    }

    .leader-modal__left {
        flex-basis: auto;
    }

    .leader-modal__pills {
        width: 100px;
    }
}