/* =================================
   TEAM MODAL - FINAL FIX
================================= */

#teamDetailModal {
    z-index: 99999 !important;
    padding: 15px !important;
}

#teamDetailModal .modal-dialog {
    max-width: 800px !important;
    width: 100% !important;
    margin: 0 auto !important;
    min-height: calc(100% - 30px);
    display: flex;
    align-items: center;
}

#teamDetailModal .modal-content {
    width: 100% !important;
    min-height: 0 !important;
    background: #fff !important;
    opacity: 1 !important;
    border: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .15) !important;
    position: relative !important;
}

#teamDetailModal .modal-body {
    background: #fff !important;
    padding: 30px 25px !important;
}

#teamDetailModal .btn-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 10 !important;
    opacity: 1 !important;
    background-color: #fff !important;
    border-radius: 50% !important;
    padding: 10px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

#teamDetailModal .team-modal-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #eee;
}

#teamDetailModal .team-modal-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}

#teamDetailModal .team-modal-content {
    padding: 5px !important;
    background: #fff !important;
}

#teamDetailModal .team-modal-label {
    display: block;
    color: #26a5de !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

#teamDetailModal .team-modal-content h2 {
    color: #202832 !important;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

#teamDetailModal .team-modal-content h5 {
    color: #888 !important;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}

#teamDetailModal .team-modal-divider {
    width: 55px;
    height: 3px;
    background: #26a5de;
    margin-bottom: 35px;
}

#teamDetailModal .team-profile-heading {
    font-size: 19px;
    font-weight: 700;
    color: #202832 !important;
    margin-bottom: 12px;
}

#teamDetailModal .team-modal-summary {
    height: 240px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 12px;
    margin-bottom: 22px;
}

#teamDetailModal .team-modal-summary h4 {
    font-size: 18px;
    font-weight: 700;
    color: #202832 !important;
    margin-bottom: 10px;
}

#teamDetailModal .team-modal-summary p {
    font-size: 15px;
    line-height: 1.8;
    color: #666 !important;
    margin-bottom: 12px;
}

#teamDetailModal .team-modal-date {
    font-size: 13px;
    color: #999 !important;
    margin: 0;
}

#teamDetailModal .team-modal-date i {
    color: #26a5de;
    margin-right: 7px;
}

/* Backdrop should remain behind modal */
.modal-backdrop {
    z-index: 99990 !important;
}

.modal-backdrop.show {
    opacity: .75 !important;
}

/* Mobile */
@media(max-width:767px) {

    #teamDetailModal .modal-dialog {
        max-width: 450px !important;
    }

    #teamDetailModal .modal-body {
        padding: 25px 18px !important;
    }

    #teamDetailModal .team-modal-image {
        height: 260px;
        max-width: 280px;
        margin: auto;
    }

    #teamDetailModal .team-modal-content h2 {
        font-size: 24px;
    }

    #teamDetailModal .team-modal-summary {
        height: 180px;
    }

    #teamDetailModal .team-modal-divider {
        margin-bottom: 20px;
    }
}


 /* ==================================
           OUR TEAM PAGE
        ================================== */

    .fiscal-partners-section {
        padding: 80px 0 100px;
        margin-top: 90px;
    }

    .fiscal-partners-heading {
        max-width: 800px;
        margin: 0 auto 55px;
        text-align: center;
    }

    .fiscal-partners-label {
        display: inline-block;
        color: #26a5de;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }

    .fiscal-partners-heading h2 {
        color: #172554;
        font-size: 38px;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 18px;
    }

    .fiscal-partners-heading p {
        color: #687386;
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 0;
    }

    /* Partner Card */

    .fiscal-partner-card {
        height: 100%;
        background: #fff;
        border: 1px solid #e9edf4;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(25, 40, 80, 0.06);
        transition: all 0.35s ease;
        cursor: pointer;
    }

    .fiscal-partner-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 18px 40px rgba(25, 40, 80, 0.12);
        border-color: #26a5de;
    }

    .fiscal-partner-card .member-image {
        height: 360px;
        width: 100%;
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        border-radius: 0;
        transition: transform 0.5s ease;
    }

    .fiscal-partner-card:hover .member-image {
        transform: scale(1.025);
    }

    .fiscal-partner-card .content-box {
        padding: 24px 25px;
        background: #fff;
    }

    .fiscal-partner-card .team-title {
        margin-bottom: 8px;
    }

    .fiscal-partner-card .team-title a {
        color: #172554;
        font-size: 21px;
        font-weight: 700;
    }

    .fiscal-partner-card .team-subtitle {
        color: #26a5de;
        font-size: 14px;
        font-weight: 600;
    }

    /* LinkedIn */

    .fiscal-partner-social {
        position: absolute;
        right: 20px;
        bottom: 20px;
        z-index: 5;
    }

    .fiscal-partner-social .social-links {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .fiscal-partner-social .social-links a {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #24449e;
        color: #fff;
        border-radius: 50%;
        font-size: 17px;
        transition: all 0.3s ease;
    }

    .fiscal-partner-social .social-links a:hover {
        background: #26a5de;
        color: #fff;
    }

    /* Partner Detail Modal */

    .team-detail-modal {
        border: none;
        border-radius: 16px;
        overflow: hidden;
    }

    .team-detail-modal .btn-close {
        position: absolute;
        right: 18px;
        top: 18px;
        z-index: 10;
    }

    .team-modal-image {
        width: 100%;
        height: 390px;
        overflow: hidden;
        border-radius: 12px;
    }

    .team-modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .team-modal-content {
        padding: 15px;
    }

    .team-modal-label {
        display: inline-block;
        color: #26a5de;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .team-modal-content h2 {
        color: #172554;
        font-size: 29px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .team-modal-content h5 {
        color: #26a5de;
        font-size: 16px;
        margin-bottom: 18px;
    }

    .team-modal-divider {
        width: 55px;
        height: 3px;
        background: #26a5de;
        margin-bottom: 20px;
    }

    .team-profile-heading {
        font-size: 18px;
        font-weight: 700;
        color: #172554;
        margin-bottom: 12px;
    }

    .team-modal-summary {
        color: #687386;
        font-size: 14px;
        line-height: 1.8;
        max-height: 220px;
        overflow-y: auto;
    }

    .team-modal-summary p {
        margin-bottom: 12px;
    }

    .team-modal-date {
        color: #687386;
        font-size: 13px;
        margin-top: 18px;
    }

    @media (max-width: 991px) {

        .fiscal-partners-heading h2 {
            font-size: 32px;
        }

        .fiscal-partner-card .member-image {
            height: 320px;
        }

    }

    @media (max-width: 767px) {

        .fiscal-partners-section {
            padding: 55px 0 65px;
        }

        .fiscal-partners-heading {
            margin-bottom: 35px;
        }

        .fiscal-partners-heading h2 {
            font-size: 27px;
        }

        .fiscal-partners-heading p {
            font-size: 14px;
        }

        .fiscal-partner-card .member-image {
            height: 350px;
        }

        .team-modal-image {
            height: 300px;
        }

        .team-modal-content {
            padding: 5px;
        }

    }


