body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Tabs Styles */
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
}

.tab-button.active {
    background: #0056b3;
    transform: translateY(-2px);
}

.tab-button:hover {
    background: #0069d9;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

/* Team Cards */
.team-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.team-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.team-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #222;
}

.team-card p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #555;
}

.team-card a {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
    font-size: 13px;
    display: inline-block;
    margin-top: 5px;
}

.team-card a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: modalopen 0.4s;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 10px;
    text-align: center;
}

/* Profile Image Styles */
.member-image-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #007bff;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body h2 {
    margin-top: 0;
    color: #007bff;
    font-size: 22px;
}

.modal-body p {
    margin: 5px 0;
    color: #555;
}

.modal-body a {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}

.modal-body a:hover {
    text-decoration: underline;
}

.modal-bio {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: left;
}

.modal-bio h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.modal-bio p {
    line-height: 1.6;
    color: #444;
}

.scholar-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: #4285F4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 14px;
}

.scholar-link:hover {
    background-color: #3367D6;
    text-decoration: none;
}

/* Animations */
@keyframes modalopen {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        width: 100%;
        border-radius: 0;
    }
    
    .tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button {
        width: 100%;
        padding: 12px;
    }
    
    .team-section {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }
    
    .member-image-container {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .modal-body h2 {
        font-size: 20px;
    }
    
    .modal-bio h3 {
        font-size: 16px;
    }
}