* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #07294d;
    border-bottom: 1px solid #041e42;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #ffc600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #ffc600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffc600;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sections */
.section {
    display: none;
    padding: 100px 0 60px;
    min-height: 100vh;
}

.section.active {
    display: block;
}

.section h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #222;
}

.section h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    color: #333;
}

.section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.section h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #07294d;
}

.section p {
    color: #666;
    margin-bottom: 15px;
}

/* Home Section */
.intro {
    font-size: 20px;
    margin-bottom: 50px;
    color: #555;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.highlight-item {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.highlight-item h3 {
    margin-bottom: 10px;
}

/* News Section */
.news-list {
    margin-top: 30px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Scrollbar styling */
.news-list::-webkit-scrollbar {
    width: 8px;
}

.news-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: #07294d;
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: #041e42;
}

.news-item {
    margin-bottom: 15px;
    padding: 12px 15px;
    background: #ffffff;
    border-radius: 6px;
    border-left: 3px solid #07294d;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-date {
    display: inline-block;
    color: #07294d;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.news-title {
    margin: 5px 0 0 0;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

/* Visitor Map Section */
.visitor-map {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* About Section */
.about-content {
    margin-top: 30px;
}

.about-mission {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #07294d;
}

.about-section {
    margin-bottom: 50px;
}

.about-section h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #07294d;
}

.research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.research-area {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.research-area:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(7, 41, 77, 0.1);
}

.research-area h3 {
    color: #07294d;
    margin-bottom: 12px;
    font-size: 20px;
}

.research-area p {
    color: #666;
    line-height: 1.7;
}

.values-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.values-list li {
    padding: 15px 20px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #ffc600;
    color: #555;
    transition: background 0.3s ease;
}

.values-list li:hover {
    background: #e9ecef;
}

.values-list li::before {
    content: "✓";
    color: #07294d;
    font-weight: bold;
    margin-right: 12px;
    font-size: 18px;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Publications Section */
.publication {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.publication:last-child {
    border-bottom: none;
}

.publication h3 {
    margin-bottom: 8px;
}

.authors {
    color: #777;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 5px;
}

.venue {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

.links {
    display: flex;
    gap: 15px;
}

.links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.links a:hover {
    text-decoration: underline;
}

/* Team Section */
.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.member {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.member-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 60px;
}

.member h3 {
    margin-bottom: 5px;
}

.role {
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 8px;
}

.school {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 8px;
}

.member-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
}

.member-links a {
    color: #666;
    font-size: 20px;
    transition: color 0.3s ease;
}

.member-links a:hover {
    color: #07294d;
}

.member-links .fa-envelope:hover {
    color: #d44638;
}

.member-links .fa-github:hover {
    color: #333;
}

.member-links .fa-linkedin:hover {
    color: #0077b5;
}

.member-links .fa-globe:hover {
    color: #07294d;
}

.member-links .fa-graduation-cap:hover {
    color: #4285f4;
}

/* Photos Section */
.photos-intro {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 15px;
    background: #ffffff;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    min-height: 60px;
}

.photo-category {
    display: inline-block;
    padding: 4px 12px;
    background: #07294d;
    color: #ffc600;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Alumni */
.alumni-list {
    margin-top: 20px;
}

.alumni-item {
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #07294d;
}

.alumni-item h3 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.degree {
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 5px;
}

.current-position {
    color: #666;
    margin-top: 8px;
}

.thesis {
    color: #555;
    margin: 8px 0;
    font-size: 0.95rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item h3 {
    margin-bottom: 10px;
}

.info-item a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: #07294d;
    text-decoration: underline;
}

/* Map */
.map-container {
    margin-top: 50px;
}

.map-container h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: #333;
}

#map {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #07294d;
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #041e42;
}

.footer p {
    color: #ffffff;
    margin: 0;
    font-size: 14px;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-container {
        padding: 15px;
    }

    .highlights,
    .team-list {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #07294d;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 198, 0, 0.1);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .section {
        padding: 80px 0 40px;
    }

    .section h1 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .intro {
        font-size: 1rem;
    }

    .highlights,
    .team-list,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .news-list {
        padding: 15px;
        max-height: 350px;
    }

    .news-item {
        padding: 10px 12px;
    }

    .publication,
    .faq-item,
    .alumni-item {
        padding: 15px;
    }

    .member-photo {
        width: 120px;
        height: 120px;
    }

    .placeholder-avatar {
        font-size: 50px;
    }

    /* About section mobile */
    .research-areas {
        grid-template-columns: 1fr;
    }

    .about-mission {
        font-size: 16px;
        padding: 20px;
    }

    /* Photo gallery mobile */
    .photo-gallery {
        grid-template-columns: 1fr;
    }

    .photo-item img {
        height: 200px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 12px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .section h1 {
        font-size: 1.75rem;
    }

    .section h2 {
        font-size: 1.25rem;
        margin: 30px 0 15px;
    }

    .intro {
        font-size: 0.95rem;
    }

    .highlight-item,
    .member {
        padding: 15px;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }

    .placeholder-avatar {
        font-size: 40px;
    }

    .member-links {
        gap: 10px;
    }

    .member-links a {
        font-size: 18px;
    }

    #map {
        height: 300px;
    }
}
