/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
}

/* Header Styles */
header {
    position: relative;
    background-image: url('../../images/banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 220px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 7, 42, 0.7);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.profile-img {
    width: 300px;
    /* height: 200px; */
    /* border-radius: 50%; */
    /* border: 4px solid rgb(9, 3, 92); */
    object-fit: cover;
    background: #ddd;
}

.profile-img-banner {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid rgb(9, 3, 92);
    object-fit: cover;
    background: #ddd;
}

.header-text h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-text p {
    font-size: 0.88rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Navigation Styles */
nav {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 220px;   /* must match header min-height */
    z-index: 100;
}

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

.tabs {
    display: flex;
    gap: 0;
    list-style: none;
}

.tab {
    padding: 0.75rem 1.4rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.82rem;
    color: #555;
}

.tab:hover {
    background: #f8f9fa;
    color: #1e3c72;
}

.tab.active {
    color: #1e3c72;
    border-bottom-color: #1e3c72;
    background: #f8f9fa;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.tab-content {
    display: none;
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Typography */
h2 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

h3 {
    color: #2a5298;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

/* Research Area Styles */
.research-area {
    background: #f8f9fa;
    padding: 1.2rem;
    margin: 1rem 0;
    border-radius: 6px;
    border-left: 4px solid #1e3c72;
}

/* Publication Styles */
.publication {
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.publication:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.publication-title {
    font-weight: bold;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.publication-authors {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.publication-venue {
    color: #330202;
    font-size: 0.9rem;
    font-weight: italic;
    margin-bottom: 0.5rem;
}

/* Contact Info Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    padding: 1.4rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.contact-item strong {
    color: #1e3c72;
    display: block;
    margin-bottom: 0.5rem;
}

/* Footer Styles */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

        .event {
            margin-bottom: 30px;
            padding: 20px;
            background-color: #f9f9f9;
            border-left: 4px solid #3498db;
        }
        .date {
            font-weight: bold;
            color: #3498db;
            font-size: 0.82rem;
            margin-bottom: 10px;
        }
        .role {
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 8px;
            font-size: 0.88rem;
        }
        .details {
            color: #555;
            margin-left: 20px;
        }
        .details p {
            margin: 4px 0;
        }

        .event_nodate {
            margin-bottom: 30px;
            padding: 20px;
            background-color: #f9f9f9;
            border-left: 4px solid #3498db;
        }
        /* .date {
            font-weight: bold;
            color: #3498db;
            font-size: 0.82rem;
            margin-bottom: 10px;
        } */
        .role {
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 8px;
            font-size: 0.88rem;
        }
        .details {
            color: #555;
            margin-left: 20px;
        }
        .details p {
            margin: 4px 0;
        }

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        border-bottom: 1px solid #e0e0e0;
        border-left: 3px solid transparent;
    }

    .tab.active {
        border-bottom-color: #e0e0e0;
        border-left-color: #1e3c72;
    }

    .tab-content {
        padding: 1.3rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

.tab-icon {
    display: flex;
    align-items: center;
    padding: 0 0.7rem;
}

.tab-icon a {
    display: flex;
    align-items: center;
    color: #1e3c72;
    transition: color 0.2s;
}

.tab-icon a:hover {
    color: #2a5298;
}

.tab-separator {
    width: 1px;
    background: #ddd;
    margin: 0.4rem 0.3rem;
    align-self: stretch;
}