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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Top Bar */
.top-bar {
    background-color: #001f4b;
    color: #fff;
    padding: 7px 0;
    font-size: 14px;
}

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

.top-bar .date {
    color: #ccc;
}

.top-bar .university-link {
    color: #ccc;
}

/* Header */
.header {
    background-color: #00275f;
    padding: 20px 0;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    /* width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 50%; */
    width: 337px;
    height:94px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
}

.lab-title h1 {
    color: #fff;
    font-size: 44px;
    font-weight: normal;
    letter-spacing: 1px;
    font-family: 'Jost';
    line-height: 1.2;
}

.lab-title p {
    color: #FFD700;
    font-size: 16px;
    font-style: italic;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 12px 15px;
    border: none;
    border-radius: 3px 0 0 3px;
    width: 230px;
    outline: none;
}

.search-box button {
    padding: 8px 12px;
    background-color: #be0000;
    border: none;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    color: #00275f;
}
.search-box button img {
    width: 20px;
    height: 20px;
}
/* Navigation */
.nav {
    background-color: #f0f0f0;
    border-bottom: 1px solid #ddd;
    position: relative;
}

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

/* Mobile Menu Toggle Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px 0;
    width: 100%;
    text-align: left;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #00275f;
    margin: 5px 0;
    transition: 0.3s;
}

.nav-toggle-label {
    font-size: 18px;
    color: #00275f;
    margin-left: 10px;
    font-family: times;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
}

/* Header Actions - Mobile Only */
.header-actions {
    display: none;
}

.mobile-search-overlay {
    display: none;
}

.nav li {
    position: relative;
}

.nav a {
    display: block;
    padding: 15px 41px;
    color: #333;
    font-size: 20px;
    font-family: times;
    transition: background-color 0.3s;
}

.nav a:hover,
.nav a.active {
    background-color: #00275f;
    color: #fff;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* About Section with Slider */
.about-section {
    display: flex;
    margin-bottom: 30px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.about-text {
    width: 35%;
    background-color: #00275f;
    color: #fff;
    padding: 30px;
}

.about-text h2 {
    font-size: 26px;
    font-family: times;
    margin-bottom:15px;
    font-weight: normal;
    text-transform: uppercase;
}

.about-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #f0f0f0;
    text-align:justify;
}

.slider {
    width: 65%;
    position: relative;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

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

.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.slider-controls button {
    width: 35px;
    height: 35px;
    background-color: rgba(139, 0, 0, 0.8);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.slider-controls button:hover {
    background-color: #00275f;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-box {
    background-color: #fff;
    border-top: 3px solid #00275f;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.info-header .icon {
    width: 36px;
    height: 36px;
    background-color: #00275f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 18px;
}

.info-header h3 {
    flex: 1;
    font-size: 28px;
    font-family: times;
    font-weight: normal;
    color: #333;
}

.info-header .more {
    font-size: 12px;
    color: #00275f;
    padding: 3px 10px;
    border: 1px solid #00275f;
    border-radius: 3px;
    transition: all 0.3s;
}

.info-header .more:hover {
    background-color: #00275f;
    color: #fff;
}

.info-content {
    padding: 15px 20px;
}

/* Publications List */
.publications-list li {
    padding: 18px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.publications-list li:last-child {
    border-bottom: none;
}

.publications-list .pub-icon {
    color: #00275f;
    font-size: 14px;

}

.publications-list .pub-icon img {
    margin-top: 6px;
    width: 20px;
}

.publications-list a {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    transition: color 0.3s;
}

.publications-list a:hover {
    color: #00275f;
}

/* Publications Scroll Animation */
.publications-scroll {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.publications-scroll .publications-list {
    animation: scrollUp 10s linear infinite;
}

.publications-scroll:hover .publications-list {
    animation-play-state: paused;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* News List */
.news-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    gap: 15px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    text-align: center;
    min-width: 40px;
}

.news-date .month {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.news-date .day {
    font-size: 32px;
    color: #00275f;
    font-weight: bold;
    line-height: 1;
}

.news-content a {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    display: block;
    transition: color 0.3s;
}

.news-content a:hover {
    color: #00275f;
}

/* Contact Info */
.contact-info-box .info-content {
    text-align: center;
}

.contact-info-box .contact-image {
    width: 100%;
    height: 120px;
    background-color: #f0f0f0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.contact-info-box p {
    font-size: 16px;
    color: #666;
    margin: 8px 0;
    text-align: left;
}

.contact-info-box .label {
    color: #333;
    font-weight: bold;
}

/* Footer */
.footer {
    background-color: #00275f;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.footer p {
    font-size: 16px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: rgba(139, 0, 0, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: none;
    transition: background-color 0.3s;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #00275f;
}

.back-to-top.show {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .about-section {
        flex-direction: column;
    }
    
    .about-text,
    .slider {
        width: 100%;
    }
    
    .info-section {
        grid-template-columns: 1fr;
        display: flex;flex-direction: column;
    }
    
    .nav a {
        padding: 12px 20px;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    /* Hide nav toggle from nav, move to header */
    .nav .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        padding: 15px 20px;
        font-size: 18px;
    }
    
    /* Header mobile layout - Logo, Search, Menu in one row */
    .header {
        padding: 10px 0;
    }
    
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .logo-section {
        flex: 1;
    }
    
    .logo {
        width: 180px;
        height: 50px;
    }
    
    /* Mobile header actions - Search + Menu */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .mobile-search-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
    }
    
    .mobile-search-btn img {
        width: 24px;
        height: 24px;
    }
    
    .mobile-nav-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
    }
    
    .mobile-nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #fff;
        margin: 3px 0;
        transition: 0.3s;
    }
    
    /* Hamburger animation when active */
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }
    
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }
    
    /* Hide desktop search box on mobile */
    .header .search-box {
        display: none;
    }
    
    /* Mobile search overlay */
    .mobile-search-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.8);
        z-index: 2000;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }
    
    .mobile-search-overlay.active {
        display: flex;
    }
    
    .mobile-search-box {
        width: 100%;
        max-width: 400px;
        display: flex;
    }
    
    .mobile-search-box input {
        flex: 1;
        padding: 15px;
        border: none;
        border-radius: 5px 0 0 5px;
        font-size: 16px;
    }
    
    .mobile-search-box button {
        padding: 15px 20px;
        background-color: #be0000;
        border: none;
        border-radius: 0 5px 5px 0;
        color: #fff;
        cursor: pointer;
    }
    
    .mobile-search-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #fff;
        font-size: 30px;
        cursor: pointer;
    }
    
    /* Top bar adjustments */
    .top-bar .container {
        /* flex-direction: column; */
        gap: 1px;
        text-align: center;
    }
    
    /* About section text adjustments */
    .about-text {
        padding: 20px;
    }
    
    .about-text h2 {
        font-size: 22px;
    }
    
    .about-text p {
        font-size: 15px;
    }
    
    /* Info box adjustments */
    .info-header h3 {
        font-size: 22px;
    }
    
    .publications-scroll {
        height: 250px;
    }
}
