/* Modern Team Member Card Styles */
.team-member-card {
    background: #fff;
    /* border-radius: 12px; */
    overflow: hidden;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.team-member-card:hover {
    box-shadow: 0 15px 35px rgba(0, 60, 113, 0.1);
    transform: translateY(-5px);
}

.team-member {
    background: #fff;
    /* border-radius: 12px; */
    overflow: hidden;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.team-member:hover {
    box-shadow: 0 15px 35px rgba(0, 60, 113, 0.1);
    transform: translateY(-5px);
}


.team-member:hover .team-member-image img {
    transform: scale(1.08);
}


.team-member-image {
    position: relative;
    width: 100%;
    /* aspect-ratio: 1 / 1.1; */
    overflow: hidden;
    background: #f8f9fa;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.team-member-card:hover .team-member-image img {
    transform: scale(1.08);
}

/* Overlay that appears on hover */
.team-member-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(18 29 86 / 35%) 0%, rgba(0, 60, 113, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.team-member-card:hover .team-member-overlay {
    opacity: 1;
}

.view-profile-btn {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-member-card:hover .view-profile-btn {
    transform: translateY(0);
}

.team-member-content {
    padding: 24px 20px;
    /* text-align: center; */
    position: relative;
    z-index: 2;
    background: #fff;
}

.team-member-name {
    font-size: 18px;
    font-weight: 700;
    color: #0c1a2d;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.team-member-position {
    display: block;
    font-size: 14px;
    color: #003c71;
    font-weight: 500;
    line-height: normal;
}



/* Modal Styles */
.org-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 26, 45, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 20px;
}

.org-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.org-modal {
    background: #fff;
    /* border-radius: 16px; */
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.org-modal-overlay.active .org-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.org-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #0c1a2d;
}

.org-modal-close:hover {
    background: #e74c3c;
    color: #fff;
    transform: rotate(90deg);
}

.org-modal-image {
    width: 35%;
    position: relative;
}

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

.org-modal-content {
    width: 60%;
    padding: 50px 40px;
    overflow-y: auto;
    background: #fff;
}

.org-modal-name {
    font-size: 28px;
    font-weight: 700;
    color: #2e3790;
    margin-bottom: 5px;
}

.org-modal-role {
    font-size: 15px;
    color: #252525;
    font-weight: 400;
    margin-bottom: 30px;
    display: inline-block;
    padding-bottom: 15px;
    position: relative;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.org-modal-role::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0088cc;
    border-radius: 2px;
    bottom: -1px;
}

.org-modal-section {
    margin-bottom: 25px;
}

.org-modal-section h4 {
    font-size: 18px;
    color: #2e3790;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.org-modal-section p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 0;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .org-modal {
        flex-direction: column;
        max-height: 85vh;
    }

    .org-modal-image {
        width: 100%;
        height: 300px;
    }

    .org-modal-content {
        width: 100%;
        padding: 30px 20px;
    }

    .org-modal-close {
        background: rgba(255, 255, 255, 0.8);
        top: 10px;
        right: 10px;
    }
}