/* Team Container - Centered */
.ot-team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Team Member Card - Centered content */
.ot-team-member {
    text-align: center;
    background: #fff;
    padding: 20px 20px 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    flex: 0 0 200px;
    max-width: 200px;
}

.ot-team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

/* Member Image - Centered */
.ot-member-image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #4CAF50;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.ot-member-image-wrapper:hover {
    border-color: #45a049;
    transform: scale(1.05);
}

.ot-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Member Name - Centered */
.ot-member-name {
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Member Designation - Centered */
.ot-member-designation {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.4;
}

/* No members message */
.ot-no-members {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

/* Modal Styles - Positioned below menu */
.ot-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 90px 20px 40px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ot-modal-overlay.active {
    display: flex;
}

.ot-modal-content {
    background: #fff;
    border-radius: 15px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 50px;
    position: relative;
    padding: 60px 60px 50px;
    animation: otModalIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    min-height: 450px;
    z-index: 9999999;
}

@keyframes otModalIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button - Fixed at top right of modal */
.ot-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease, transform 0.3s ease;
    border: none;
    background: #fff;
    padding: 0;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 99999999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ot-modal-close:hover {
    color: #333;
    transform: rotate(90deg);
    background: #f5f5f5;
}

/* Modal Body - Two Column Layout */
.ot-modal-body {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-top: 5px;
}

/* Left Column - Image, Name, Designation, Qualifications */
.ot-modal-left {
    flex: 0 0 260px;
    text-align: center;
    padding-top: 5px;
}

.ot-modal-image-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #4CAF50;
    margin: 0 auto 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ot-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Member Name in Modal - Bold, Smaller */
.ot-modal-name {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 3px 0;
    line-height: 1.2;
}

/* Designation below name - Smaller */
.ot-modal-designation {
    font-size: 15px;
    color: #555;
    font-weight: 400;
    margin-bottom: 15px;
}

/* Qualifications - No label, no dashes, just the list */
.ot-modal-qualifications {
    margin-top: 5px;
}

.ot-modal-qualifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ot-modal-qualifications-list li {
    font-style: italic;
    color: #555;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.5;
    padding-left: 0;
}

/* Right Column - Profile */
.ot-modal-right {
    flex: 1;
    padding-top: 5px;
}

.ot-modal-profile {
    padding-left: 10px;
}

.ot-modal-profile-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #4CAF50;
    padding-bottom: 6px;
    display: inline-block;
}

.ot-modal-profile p {
    color: #444;
    line-height: 1.8;
    font-size: 14px;
    margin: 12px 0 0 0;
    text-align: justify;
}

.ot-modal-profile p:first-child {
    margin-top: 0;
}

/* Loading Spinner */
.ot-loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4CAF50;
    border-radius: 50%;
    animation: otSpin 1s linear infinite;
}

@keyframes otSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .ot-modal-overlay {
        padding: 80px 15px 30px;
    }
    
    .ot-modal-content {
        padding: 50px 40px 40px;
        max-width: 98%;
        margin: 0 auto 40px;
        min-height: 400px;
    }
    
    .ot-modal-body {
        gap: 35px;
    }
    
    .ot-modal-left {
        flex: 0 0 220px;
    }
    
    .ot-modal-image-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .ot-modal-name {
        font-size: 22px;
    }
    
    .ot-modal-designation {
        font-size: 14px;
    }
    
    .ot-modal-close {
        width: 38px;
        height: 38px;
        font-size: 28px;
        top: 12px;
        right: 15px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .ot-team-container {
        gap: 30px;
        padding: 10px;
    }
    
    .ot-team-member {
        flex: 0 0 160px;
        max-width: 160px;
        padding: 15px 15px 20px;
    }
    
    .ot-member-image-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .ot-member-name {
        font-size: 16px;
    }
    
    .ot-member-designation {
        font-size: 13px;
    }
    
    .ot-modal-overlay {
        padding: 70px 10px 25px;
        align-items: flex-start;
    }
    
    .ot-modal-content {
        padding: 50px 25px 30px;
        margin: 0 auto 30px;
        max-width: 100%;
        border-radius: 12px;
        min-height: 350px;
    }
    
    .ot-modal-body {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .ot-modal-left {
        flex: none;
        width: 100%;
    }
    
    .ot-modal-image-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .ot-modal-name {
        font-size: 22px;
    }
    
    .ot-modal-designation {
        font-size: 15px;
    }
    
    .ot-modal-right {
        width: 100%;
    }
    
    .ot-modal-profile {
        padding-left: 0;
    }
    
    .ot-modal-profile p {
        text-align: left;
        font-size: 14px;
    }
    
    .ot-modal-close {
        width: 36px;
        height: 36px;
        font-size: 26px;
        top: 10px;
        right: 12px;
    }
    
    .ot-modal-qualifications-list li {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 2px;
    }
}

@media (max-width: 480px) {
    .ot-team-container {
        gap: 20px;
        padding: 10px 5px;
    }
    
    .ot-team-member {
        flex: 0 0 140px;
        max-width: 140px;
        padding: 12px 12px 16px;
    }
    
    .ot-member-image-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }
    
    .ot-member-name {
        font-size: 14px;
    }
    
    .ot-member-designation {
        font-size: 12px;
    }
    
    .ot-modal-overlay {
        padding: 60px 8px 20px;
    }
    
    .ot-modal-content {
        padding: 45px 18px 25px;
        min-height: 300px;
    }
    
    .ot-modal-image-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .ot-modal-name {
        font-size: 20px;
    }
    
    .ot-modal-designation {
        font-size: 14px;
    }
    
    .ot-modal-qualifications-list li {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 2px;
    }
    
    .ot-modal-profile p {
        font-size: 13px;
        line-height: 1.7;
    }
    
    .ot-modal-close {
        width: 34px;
        height: 34px;
        font-size: 22px;
        top: 8px;
        right: 10px;
    }
}