/* Base Layout */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f7fafd;
    color: #1a355e;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Header Styles */
.header {
    background: linear-gradient(90deg, #1a355e 0%, #2563a6 100%);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(26,53,94,0.08);
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.header-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26,53,94,0.10);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo:hover {
    box-shadow: 0 4px 16px #ffd70099;
    transform: scale(1.08) rotate(-4deg);
}

.header-title {
    flex: 1;
}

.header-title h1 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.header-title p {
    margin: 2px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Search Styles */
.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-logo {
        width: 45px;
        height: 45px;
    }

    .header-title h1 {
        font-size: 1.6rem;
    }

    .header-title p {
        font-size: 0.85rem;
    }

    .search-input {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .header-bar {
        gap: 15px;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .header-title h1 {
        font-size: 1.4rem;
    }

    .header-title p {
        display: none;
    }

    .search-input {
        width: 160px;
    }

    .search-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 10px 0;
    }

    .header-bar {
        gap: 10px;
        padding: 0 15px;
    }

    .menu-toggle {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .header-logo {
        width: 35px;
        height: 35px;
    }

    .header-title h1 {
        font-size: 1.2rem;
    }

    .search-input {
        width: 120px;
        padding: 6px 10px;
    }

    .search-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        padding: 6px;
    }
}

@media (max-width: 400px) {
    .header {
        padding: 8px 0;
    }

    .menu-toggle {
        top: 10px;
        left: 10px;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }

    .header-title h1 {
        font-size: 1.4rem;
        margin-top: 6px;
    }

    .search-input {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .search-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Navigation */
.main-nav {
    background: #2563a6;
    padding: 5px 0;
}

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

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 8px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255,255,255,0.1);
}

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

/* Homepage Modules */
.homepage-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.module {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(26,53,94,0.06);
    padding: 20px;
}

.module h2 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #1a355e;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 0.9rem;
}

th, td {
    padding: 8px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

th {
    background: #f5f7fa;
    font-weight: 600;
}

/* Links Section */
.links-section {
    margin-top: 20px;
}

.links-section a {
    color: #2563a6;
    text-decoration: none;
    transition: color 0.3s;
}

.links-section a:hover {
    color: #1a355e;
}

/* Search Box */
.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9rem;
    width: 200px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-bar,
    .nav-container,
    main {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .header-bar,
    .nav-container,
    main {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .header-bar {
        padding: 10px 15px;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }

    .header-title h1 {
        font-size: 1.6rem;
    }

    .header-title p {
        font-size: 0.85rem;
    }

    .main-nav {
        padding: 5px 15px;
    }

    .main-nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .search-input {
        width: 160px;
    }

    .homepage-modules {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .header-bar {
        padding: 8px 12px;
    }

    .header-logo {
        width: 45px;
        height: 45px;
    }

    .header-title h1 {
        font-size: 1.4rem;
    }

    .header-title p {
        font-size: 0.8rem;
    }

    .search-input {
        width: 120px;
    }

    .module {
        padding: 15px;
    }

    .module h2 {
        font-size: 1.1rem;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 6px;
    }
}

/* Footer Styles */
.footer {
    background: #1a355e;
    color: #fff;
    padding: 40px 0 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer h3 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
}

.footer p {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
}

/* Content Section Styles */
.section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26,53,94,0.07);
    padding: 25px;
    margin-bottom: 30px;
}

.section h2 {
    color: #1a355e;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
}

.section-content {
    line-height: 1.7;
}

.homepage-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.module {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26,53,94,0.07);
    padding: 22px 18px 18px 18px;
    min-height: 220px;
    opacity: 0;
    transform: translateY(40px);
    animation: moduleFadeIn 0.8s forwards;
}
@keyframes moduleFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
.module:nth-child(1) { animation-delay: 0.1s; }
.module:nth-child(2) { animation-delay: 0.2s; }
.module:nth-child(3) { animation-delay: 0.3s; }
.module:nth-child(4) { animation-delay: 0.4s; }
.module h2 {
    color: #1a355e;
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 12px;
    animation: fadeInLeft 0.8s;
}
.module ul {
    padding-left: 18px;
    margin: 0 0 8px 0;
}
.module table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    animation: fadeIn 1.2s;
}
.module table th, .module table td {
    border: 1px solid #b3c6e0;
    padding: 6px 8px;
    text-align: left;
}
.module table th {
    background: #e3ecf7;
    color: #1a355e;
}
.module a {
    color: #2563a6;
    text-decoration: underline;
    transition: color 0.2s;
}
.module a:hover {
    color: #1a355e;
    text-shadow: 0 2px 8px #b3c6e0;
}
section {
    margin-bottom: 36px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26,53,94,0.07);
    padding: 28px 24px;
    opacity: 0;
    transform: translateY(40px);
    animation: sectionFadeIn 0.7s forwards;
}
@keyframes sectionFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
section h2 {
    color: #1a355e;
    margin-top: 0;
}
#page-about, #page-staff, #page-science, #page-training, #page-applicants, #page-publications, #page-support, #page-library {
    min-height: 300px;
}
.footer {
    background: linear-gradient(90deg, #2563a6 0%, #1a355e 100%);
    color: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 2px 16px rgba(26,53,94,0.10);
    margin-top: 40px;
    padding: 0;
    animation: fadeInUp 1.2s;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.footer-adv {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 10vw 18px 10vw;
    border-radius: 18px 18px 0 0;
    background: none;
    box-shadow: none;
    margin: 0;
}
.footer-col {
    flex: 1 1 0;
    min-width: 220px;
    margin-right: 18px;
}
.footer-col:last-child { margin-right: 0; }
.footer-col h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.footer-underline {
    width: 40px;
    height: 4px;
    background: #ff3c3c;
    border-radius: 2px;
    margin-bottom: 18px;
    margin-top: 2px;
}
.footer-col p, .footer-col a {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 8px 0;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover { color: #ffd700; }
.footer-icon { margin-right: 8px; }
.footer-social {
    display: flex;
    gap: 24px;
    margin-top: 8px;
}
.footer-social-icon {
    font-size: 2.3rem;
    color: #fff;
    background: rgba(255,255,255,0.13);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(26,53,94,0.13);
}
.footer-social a:hover .fa-facebook-f {
    background: #1877f3;
    color: #fff;
    box-shadow: 0 4px 16px #1877f355;
    transform: scale(1.12) rotate(-8deg);
}
.footer-social a:hover .fa-tiktok {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 16px #0005;
    transform: scale(1.12) rotate(-8deg);
}
.footer-social a:hover .fa-youtube {
    background: #ff0000;
    color: #fff;
    box-shadow: 0 4px 16px #ff000055;
    transform: scale(1.12) rotate(-8deg);
}
.footer-social a:hover .fa-orcid {
    background: #a6ce39;
    color: #fff;
    box-shadow: 0 4px 16px #a6ce3955;
    transform: scale(1.12) rotate(-8deg);
}
.footer-copyright {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 18px 0 10px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin: 0 10vw;
}
.footer-col-logo {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(26,53,94,0.10);
    margin-bottom: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.footer-logo:hover {
    box-shadow: 0 4px 16px #ffd70099;
    transform: scale(1.08) rotate(-4deg);
}
.footer-col-logo > div {
    flex: 1;
}
.staff-leaders {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}
.staff-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(26,53,94,0.10);
    padding: 24px 28px 18px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    max-width: 260px;
    transition: box-shadow 0.2s, transform 0.2s;
    animation: moduleFadeIn 0.8s;
}
.staff-card:hover {
    box-shadow: 0 6px 24px #2563a655;
    transform: translateY(-4px) scale(1.04);
}
.staff-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3ecf7 60%, #2563a6 100%);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #1a355e;
    box-shadow: 0 2px 8px rgba(26,53,94,0.08);
}
.staff-info h3 {
    margin: 0 0 6px 0;
    font-size: 1.18rem;
    color: #1a355e;
    font-weight: bold;
    text-align: center;
}
.staff-info p {
    margin: 0;
    color: #2563a6;
    font-size: 1.05rem;
    text-align: center;
}
.staff-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.staff-detail-btn {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.profile-modal {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(26,53,94,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
    overflow: auto;
    min-height: 100vh;
}
.profile-modal-content {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 32px #1a355e33;
    max-width: 600px;
    width: 96vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 28px 32px;
    position: relative;
    animation: moduleFadeIn 0.5s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
}
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.profile-info h1 {
    text-align: center;
}
.profile-section-content {
    text-align: center;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #e3ecf7;
    box-shadow: 0 2px 12px #2563a655;
    border: 4px solid #fff;
    display: block;
    margin: 0 auto;
}
.profile-modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 2.2rem;
    color: #2563a6;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s, transform 0.2s;
    z-index: 10;
}
.profile-modal-close:hover {
    color: #ff3c3c;
    transform: scale(1.2) rotate(8deg);
}
.staff-leaders-triangle {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    gap: 0;
}
.staff-row {
    display: flex;
    justify-content: center;
    gap: 38px;
}
.staff-row-top {
    margin-bottom: 18px;
}
.staff-row-top .staff-card {
    margin: 0 auto;
}
.staff-row-bottom {
    gap: 48px;
}
.staff-row-bottom .staff-card {
    margin: 0 12px;
}
.staff-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(26,53,94,0.10);
    padding: 24px 28px 18px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
    max-width: 260px;
    transition: box-shadow 0.2s, transform 0.2s;
    animation: moduleFadeIn 0.8s;
}
.staff-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #e3ecf7;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #1a355e;
    box-shadow: 0 2px 8px rgba(26,53,94,0.08);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.about-container {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}
.about-sidebar {
    min-width: 220px;
    max-width: 260px;
}
.about-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-tab {
    font-size: 1.1rem;
    color: #223;
    padding: 12px 0 12px 18px;
    cursor: pointer;
    margin-bottom: 6px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.about-tab.active {
    color: #2563a6;
    background: #e3ecf7;
    font-weight: bold;
}
.about-arrow {
    color: #2563a6;
    font-size: 1.2rem;
    margin-right: 2px;
    display: inline-block;
    transition: transform 0.2s;
}
.about-tab:not(.active) .about-arrow {
    color: transparent;
}
.about-tab:hover {
    background: #f7fafd;
    color: #2563a6;
}
.about-content {
    flex: 1 1 0;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(26,53,94,0.07);
    padding: 32px 28px;
}
.search-highlight {
    background: #fff59d;
    color: #1a355e;
    font-weight: bold;
    border-radius: 4px;
    padding: 1px 3px;
    box-shadow: 0 1px 4px #ffd70033;
}
.search-loading {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(26,53,94,0.18);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.search-spinner {
    width: 48px;
    height: 48px;
    border: 6px solid #e3ecf7;
    border-top: 6px solid #2563a6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.search-loading-text {
    color: #2563a6;
    font-weight: 500;
}
.search-results-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
    overflow-y: auto;
}

.search-results-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.search-results-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e3ecf7;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-results-header input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #b3c6e0;
    border-radius: 24px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-results-header input:focus {
    border-color: #2563a6;
    box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.1);
}

.search-results-close {
    background: none;
    border: none;
    color: #1a355e;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-results-close:hover {
    background: #f0f4f8;
    transform: scale(1.1);
}

.search-results-stats {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
}

.search-result-item {
    margin-bottom: 25px;
    padding: 0;
    border: none;
}

.search-result-breadcrumb {
    color: #1a355e;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.search-result-title {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.search-result-title a {
    color: #2563a6;
    text-decoration: none;
}

.search-result-title a:hover {
    text-decoration: underline;
}

.search-result-context {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.search-highlight {
    background: #ffd70055;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

.search-related {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e3ecf7;
}

.search-related h3 {
    color: #1a355e;
    font-size: 1.1rem;
    margin: 0 0 15px 0;
}

.search-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-related-item {
    background: #f0f4f8;
    padding: 8px 15px;
    border-radius: 20px;
    color: #2563a6;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-related-item:hover {
    background: #e3ecf7;
    transform: translateY(-2px);
}

.search-loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26,53,94,0.15);
    text-align: center;
    z-index: 1001;
}

.search-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e3ecf7;
    border-top: 4px solid #2563a6;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    animation: spin 1s linear infinite;
}

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

.search-loading-text {
    color: #1a355e;
    margin: 0;
    font-size: 1rem;
}
.library-container {
    padding: 30px 20px;
}

.library-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.library-icon {
    width: 50px;
    height: 50px;
    background: #2563a6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.library-header h2 {
    margin: 0;
    color: #1a355e;
    font-size: 1.8rem;
}

.library-toolbar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.library-search {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #b3c6e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.library-search:focus {
    border-color: #2563a6;
    box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.1);
}

.library-filter {
    min-width: 150px;
    padding: 12px 15px;
    border: 1px solid #b3c6e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
}

.library-filter:focus {
    border-color: #2563a6;
    box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.1);
}

.library-loading {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.library-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e3ecf7;
    border-top: 4px solid #2563a6;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    animation: spin 1s linear infinite;
}

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

.library-document {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26,53,94,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.library-document:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(26,53,94,0.15);
}

.document-preview {
    position: relative;
    height: 200px;
    background: #f0f4f8;
    overflow: hidden;
}

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

.document-type {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: rgba(26,53,94,0.9);
    color: #fff;
    border-radius: 5px;
    font-size: 0.9rem;
}

.document-info {
    padding: 20px;
}

.document-title {
    margin: 0 0 10px 0;
    color: #1a355e;
    font-size: 1.2rem;
    line-height: 1.4;
}

.document-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    color: #666;
    font-size: 0.9rem;
}

.document-description {
    color: #4a4a4a;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.document-actions {
    display: flex;
    gap: 10px;
}

.document-actions button {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-preview {
    background: #f0f4f8;
    color: #2563a6;
}

.btn-preview:hover {
    background: #e3ecf7;
}

.btn-download {
    background: #2563a6;
    color: #fff;
}

.btn-download:hover {
    background: #1a355e;
}

/* Software open button */
.btn-open {
    background: #16a34a; /* green */
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(22,163,74,0.25);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-open:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(21,128,61,0.28);
}

.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.preview-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e3ecf7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-header h3 {
    margin: 0;
    color: #1a355e;
    font-size: 1.3rem;
}

.preview-close {
    background: none;
    border: none;
    color: #1a355e;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.preview-close:hover {
    background: #f0f4f8;
    transform: scale(1.1);
}

.preview-body {
    flex: 1;
    overflow: hidden;
}

.preview-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .library-toolbar {
        flex-direction: column;
    }

    .library-filter {
        width: 100%;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

    .preview-content {
        width: 95%;
        height: 95vh;
        margin: 2.5vh auto;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: none;
        order: -1;
    }

    .header-bar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 0;
    }

    .header-logo {
        width: 60px;
        height: 60px;
    }

    .header-title {
        flex: 1;
        min-width: 200px;
    }

    .header-title h1 {
        font-size: 1.8rem;
    }

    .header-title p {
        font-size: 0.9rem;
    }

    .header-search {
        margin-left: auto;
        order: 1;
    }

    .main-nav {
        display: block;
        width: 100%;
        background: #2563a6;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(26,53,94,0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    .main-nav li {
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
    }

    .main-nav.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .main-nav li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav li:nth-child(2) { transition-delay: 0.15s; }
    .main-nav li:nth-child(3) { transition-delay: 0.2s; }
    .main-nav li:nth-child(4) { transition-delay: 0.25s; }
    .main-nav li:nth-child(5) { transition-delay: 0.3s; }
    .main-nav li:nth-child(6) { transition-delay: 0.35s; }
    .main-nav li:nth-child(7) { transition-delay: 0.4s; }
    .main-nav li:nth-child(8) { transition-delay: 0.45s; }

    .main-nav a {
        padding: 12px 20px;
        border-radius: 0;
        text-align: left;
        transition: all 0.3s ease;
    }

    .main-nav a:hover, .main-nav a.active {
        background: #1a355e;
        transform: translateX(10px);
        box-shadow: none;
    }

    .header {
        position: relative;
    }
}

@media (max-width: 600px) {
    .header-bar {
        margin-left: 5vw;
        margin-right: 5vw;
        padding: 10px 0;
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .header-title p {
        font-size: 0.85rem;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }
}
@media (max-width: 700px) {
    .profile-modal-content { padding: 18px 4vw; margin: 12px 0; }
    .profile-header { gap: 12px; }
    .profile-avatar { width: 80px; height: 80px; }
} 

.search-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26,53,94,0.08);
    margin-bottom: 30px;
}

.search-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.search-field {
    flex: 1;
}

.search-field label {
    display: block;
    color: #1a355e;
    font-weight: 500;
    margin-bottom: 8px;
}

.search-field input,
.search-field textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #b3c6e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-field textarea {
    height: 100px;
    resize: vertical;
}

.search-field input:focus,
.search-field textarea:focus {
    border-color: #2563a6;
    box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.1);
}

.search-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.search-actions button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-search {
    background: #2563a6;
    color: #fff;
}

.btn-search:hover {
    background: #1a355e;
}

.btn-reset {
    background: #f0f4f8;
    color: #1a355e;
}

.btn-reset:hover {
    background: #e3ecf7;
}

.search-advanced-link {
    text-align: center;
    margin-top: 15px;
}

.search-advanced-link a {
    color: #2563a6;
    text-decoration: none;
    font-size: 0.9rem;
}

.search-advanced-link a:hover {
    text-decoration: underline;
}

/* Search Results */
.search-results {
    margin-top: 30px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e3ecf7;
}

.results-count {
    color: #666;
    font-size: 0.95rem;
}

.advanced-search-link {
    color: #2563a6;
    text-decoration: none;
    font-size: 0.9rem;
}

.advanced-search-link:hover {
    text-decoration: underline;
}

.result-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26,53,94,0.08);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(26,53,94,0.12);
}

.result-title {
    margin: 0 0 12px 0;
}

.result-title a {
    color: #2563a6;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.result-meta span {
    margin-right: 20px;
}

.result-stats {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.result-stats span {
    margin-right: 15px;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.result-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view {
    background: #2563a6;
    color: #fff;
}

.btn-view:hover {
    background: #1a355e;
}

.btn-download {
    background: #4caf50;
    color: #fff;
}

.btn-download:hover {
    background: #388e3c;
}

.btn-cite {
    background: #f0f4f8;
    color: #1a355e;
}

.btn-cite:hover {
    background: #e3ecf7;
}

@media (max-width: 768px) {
    .search-row {
        flex-direction: column;
        gap: 15px;
    }

    .result-meta span {
        display: block;
        margin-bottom: 5px;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions button {
        width: 100%;
    }
} 

.simple-search-container {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.library-logo {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.library-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.library-logo h1 {
    font-size: 2.8rem;
    color: #666;
    font-weight: normal;
    margin: 0;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto 15px auto;
    box-shadow: 0 2px 8px rgba(26,53,94,0.1);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #dfe1e5;
    transition: all 0.3s ease;
}

.search-box:hover,
.search-box:focus-within {
    box-shadow: 0 3px 12px rgba(26,53,94,0.15);
    border-color: #b3c6e0;
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    font-size: 1.1rem;
    border: none;
    outline: none;
    color: #1a355e;
}

.search-box input::placeholder {
    color: #999;
}

.search-button {
    background: none;
    border: none;
    padding: 0 25px;
    color: #2563a6;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: #1a355e;
}

.search-options {
    margin-top: 15px;
}

.advanced-search-toggle {
    color: #2563a6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.advanced-search-toggle:hover {
    color: #1a355e;
    text-decoration: underline;
}

.advanced-search-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26,53,94,0.08);
    margin: 20px auto;
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-bar {
        margin-left: 5vw;
        margin-right: 5vw;
    }

    .main-nav ul {
        padding: 0 5vw;
    }
}

@media (max-width: 992px) {
    .header-title h1 {
        font-size: 2.2rem;
    }

    .header-title p {
        font-size: 1.1rem;
    }

    .main-nav a {
        padding: 12px 15px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        order: -1;
    }

    .header-bar {
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px 20px;
        margin-left: 3vw;
        margin-right: 3vw;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }

    .header-title {
        flex: 1;
        min-width: 200px;
    }

    .header-title h1 {
        font-size: 1.8rem;
    }

    .header-title p {
        font-size: 0.9rem;
        margin-top: 4px;
    }

    .header-search {
        margin-left: auto;
        order: 1;
    }

    .main-nav {
        display: none;
        width: 100%;
        background: #2563a6;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(26,53,94,0.15);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        padding: 15px 20px;
        border-radius: 0;
        text-align: left;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav a:hover, .main-nav a.active {
        background: #1a355e;
        transform: none;
        box-shadow: none;
    }

    .header {
        position: relative;
    }

    /* Điều chỉnh layout trang chủ */
    .homepage-modules {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .module {
        padding: 20px;
    }

    /* Điều chỉnh footer */
    .footer-adv {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .footer-col {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .header-bar {
        padding: 10px 15px;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .header-title p {
        font-size: 0.85rem;
    }

    .search-btn {
        font-size: 1.2rem;
        padding: 5px 8px;
    }

    .search-input {
        min-width: 180px;
        font-size: 0.9rem;
    }

    .main-nav a {
        padding: 12px 15px;
        font-size: 1rem;
    }

    /* Điều chỉnh module trang chủ */
    .module {
        padding: 15px;
    }

    .module h2 {
        font-size: 1.2rem;
    }

    /* Điều chỉnh footer */
    .footer-adv {
        padding: 20px 15px;
    }

    .footer-col h3 {
        font-size: 1.2rem;
    }

    .footer-col p, .footer-col a {
        font-size: 0.9rem;
    }

    .footer-social-icon {
        font-size: 1.2rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
        padding: 15px;
    }
}

/* Điều chỉnh cho màn hình siêu nhỏ */
@media (max-width: 360px) {
    .header-title h1 {
        font-size: 1.3rem;
    }

    .header-title p {
        font-size: 0.8rem;
    }

    .header-logo {
        width: 35px;
        height: 35px;
    }

    .search-input {
        min-width: 150px;
    }

    .main-nav a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
} 

/* Base Navigation Styles */
.main-nav {
    background: #2563a6;
    box-shadow: 0 2px 8px rgba(26,53,94,0.04);
    transition: all 0.3s ease;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Desktop Navigation (901px and above) */
@media (min-width: 901px) {
    .menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block;
        position: relative;
    }
    
    .main-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav li {
        position: relative;
    }
    
    .main-nav a {
        display: block;
        padding: 14px 22px;
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        font-size: 1.08rem;
        transition: all 0.3s ease;
    }
}

/* Mobile Navigation (900px and below) */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        padding: 0;
        z-index: 1000;
        margin-right: 5px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .menu-toggle:hover {
        background: rgba(255,255,255,0.1);
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(37, 99, 166, 0.98);
        z-index: 999;
        padding-top: 60px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
        margin: 5px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .main-nav.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background: #1a355e;
        color: #ffd700;
    }
} 

.citation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.citation-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26,53,94,0.15);
}

.citation-header {
    padding: 20px;
    border-bottom: 1px solid #e3ecf7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.citation-header h3 {
    margin: 0;
    color: #1a355e;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: #1a355e;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f0f4f8;
    transform: scale(1.1);
}

.citation-body {
    padding: 20px;
}

.citation-formats h4,
.citation-downloads h4 {
    color: #1a355e;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.format-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.format-tab {
    padding: 8px 16px;
    border: 1px solid #b3c6e0;
    border-radius: 6px;
    background: #fff;
    color: #2563a6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-tab:hover {
    background: #f0f4f8;
}

.format-tab.active {
    background: #2563a6;
    color: #fff;
    border-color: #2563a6;
}

.citation-text {
    margin-bottom: 25px;
}

.citation-text textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #b3c6e0;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
    margin-bottom: 10px;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #f0f4f8;
    color: #2563a6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #e3ecf7;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.download-buttons .btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #2563a6;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.download-buttons .btn-download:hover {
    background: #1a355e;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .citation-content {
        width: 95%;
        margin: 30px auto;
    }

    .format-tabs {
        flex-wrap: wrap;
    }

    .format-tab {
        flex: 1;
        text-align: center;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }
} 

/* Mobile Styles */
@media (max-width: 900px) {
    .header-bar {
        padding: 10px 15px;
        gap: 12px;
    }

    .header-logo {
        width: 50px;
        height: 50px;
    }

    .header-title {
        flex: 1;
    }

    .header-title h1 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .header-title p {
        font-size: 0.9rem;
        margin-top: 2px;
    }

    .menu-toggle {
        padding: 6px;
        font-size: 1.2rem;
    }

    .main-nav {
        padding-top: 60px;
    }

    .main-nav ul {
        padding: 10px;
    }

    .main-nav li {
        margin: 5px 0;
    }

    .main-nav a {
        padding: 12px 16px;
        font-size: 1.1rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .header-bar {
        padding: 8px 12px;
        gap: 8px;
    }

    .header-logo {
        width: 40px;
        height: 40px;
    }

    .header-title h1 {
        font-size: 1.2rem;
    }

    .header-title p {
        font-size: 0.8rem;
    }

    .menu-toggle {
        padding: 4px;
        font-size: 1.1rem;
    }

    .main-nav {
        padding-top: 50px;
    }

    .main-nav ul {
        padding: 8px;
    }

    .main-nav li {
        margin: 3px 0;
    }

    .main-nav a {
        padding: 10px 14px;
        font-size: 1rem;
    }

    .search-btn {
        padding: 4px 8px;
        font-size: 1.1rem;
    }

    .search-input {
        min-width: 180px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile Styles */
@media (max-width: 360px) {
    .header-bar {
        padding: 6px 10px;
        gap: 6px;
    }

    .header-logo {
        width: 35px;
        height: 35px;
    }

    .header-title h1 {
        font-size: 1.1rem;
    }

    .header-title p {
        font-size: 0.75rem;
    }

    .menu-toggle {
        padding: 3px;
        font-size: 1rem;
    }

    .main-nav {
        padding-top: 45px;
    }

    .main-nav ul {
        padding: 6px;
    }

    .main-nav a {
        padding: 8px 12px;
        font-size: 0.95rem;
    }

    .search-btn {
        padding: 3px 6px;
        font-size: 1rem;
    }

    .search-input {
        min-width: 160px;
        padding: 5px 8px;
        font-size: 0.85rem;
    }
} 

/* Search Styles */
.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.search-input {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    width: 250px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-btn:active {
    transform: scale(0.95);
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-btn {
        font-size: 1rem;
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .search-input {
        width: 220px;
        padding: 7px 10px;
        font-size: 0.9rem;
        right: 0;
    }
}

@media (max-width: 576px) {
    .search-btn {
        font-size: 0.9rem;
        width: 30px;
        height: 30px;
        padding: 5px;
    }

    .search-input {
        width: 200px;
        padding: 6px 10px;
        font-size: 0.85rem;
        right: 0;
    }
} 