/* --- NEW HEADER STYLES --- */

/* Top Blue Banner */
.header-banner {
    background-color: #0b7bc1; /* Scientific African blue */
    color: #ffffff;
    padding: 20px 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: visible;
}

.banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.journal-cover-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    margin-top: -35px;
    margin-bottom: -10px;
    position: relative;
    z-index: 10;
}

.journal-title-box {
    display: flex;
    flex-direction: column;
}

.journal-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-sans);
}

.journal-title a {
    color: #ffffff;
    text-decoration: none;
}

.open-access-badge {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
}

.journal-metrics {
    display: flex;
    align-items: center;
    gap: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.metric-divider {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.4);
}

/* White Navigation Bar */
.header-nav-container {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Make items fill height */
    min-height: 55px;
}

.nav-left {
    display: flex;
    align-items: stretch;
}

.nav-item-dropdown {
    display: flex;
    align-items: stretch;
}

.nav-item-dropdown > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    color: #222;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-right: 1px solid #f0f0f0;
}

.nav-item-dropdown:first-child > a {
    border-left: 1px solid #f0f0f0;
}

.nav-item-dropdown > a:hover {
    background-color: #f8f9fa;
    color: #0b7bc1;
}

/* Right Action Links */
.nav-right.nav-action-links {
    display: flex;
    align-items: stretch;
    border-left: 1px solid #f0f0f0;
}

.nav-action-links a {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #555;
    border-right: 1px solid #f0f0f0;
    transition: color 0.2s, background-color 0.2s;
}

.submit-article-link {
    color: #0b7bc1 !important;
    gap: 6px;
}

.submit-article-link:hover {
    text-decoration: underline;
    background-color: #f0f8ff;
}

.guide-authors-link:hover {
    color: #0b7bc1;
    background-color: #f8f9fa;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-top {
        flex-direction: column !important;
        align-items: center;
        padding-bottom: 10px;
    }
    .header-top-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .banner-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }
    .banner-left {
        flex-direction: column;
        gap: 15px;
    }
    .journal-title-box {
        align-items: center;
    }
    .journal-metrics {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .metric-divider {
        display: none;
    }
    .header-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .nav-left {
        flex-direction: column;
        width: 100%;
    }
    .nav-item-dropdown {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    .nav-item-dropdown > a {
        border: none !important;
        padding: 15px 20px;
        width: 100%;
        justify-content: space-between; /* If there are arrows */
        font-size: 1rem;
        color: #333;
    }
    .journal-cover-img {
        width: 100px;
        height: 100px;
        margin-top: 0 !important;
        margin-bottom: 0;
    }
    .journal-title {
        font-size: 1.8rem;
    }
    .nav-right.nav-action-links {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-action-links a {
        padding: 15px 20px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
        justify-content: flex-start;
        font-size: 1rem;
    }
    .nav-action-links a:last-child {
        border-bottom: none;
    }
}

/* --- ABOUT JOURNAL SECTION --- */
.about-journal-section {
    background-color: #f5f5f5;
    padding: 30px 0;
    margin-bottom: 30px;
}

.about-journal-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.about-journal-left {
    flex: 2;
}

.about-journal-left h2 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-journal-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.view-aims-scope-link {
    color: #0b7bc1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.view-aims-scope-link:hover {
    text-decoration: underline;
}

.about-journal-right {
    flex: 1;
    border-left: 1px solid #ddd;
    padding-left: 40px;
}

.about-journal-right h2 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: 500;
}

.publishing-option-box h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.publishing-option-box p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #0b7bc1;
    color: #0b7bc1;
    background-color: transparent;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background-color: #0b7bc1;
    color: white;
}

/* --- OFFCANVAS SIDEBAR --- */
.aims-scope-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 500px;
    max-width: 100vw;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.aims-scope-sidebar.open {
    transform: translateX(0);
}

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

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0b7bc1;
    padding: 0;
    line-height: 1;
}

.sidebar-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .about-journal-container {
        flex-direction: column;
        gap: 20px;
    }
    .about-journal-right {
        border-left: none;
        border-top: 1px solid #ddd;
        padding-left: 0;
        padding-top: 20px;
    }
    .aims-scope-sidebar {
        width: 100vw;
    }
}
