﻿

/* =========================
   CSS VARIABLES
========================= */
:root {
    /* Fonts */
    --font-primary: Arial, sans-serif;
    --font-secondary: 'Segoe UI', Arial, sans-serif;
    /* Colors */
    --white: #ffffff;
    --black: #000000;
    --text-dark: #333333;
    --text-light: #666666;
    --muted: #cccccc;
    --border-light: #eeeeee;
    --border-gray: #dee2e6;
    --border-footer: rgba(255, 255, 255, 0.1);
    --blue: #0088cc;
    --orange: #f39c12;
    --orange-bg: #f7941d;
    --footer-bg: #002133;
    /* Spacing */
    --s-0: 0;
    --s-5: 5px;
    --s-8: 8px;
    --s-10: 10px;
    --s-15: 15px;
    --s-20: 20px;
    --s-30: 30px;
    /* Font Sizes */
    --fs-10: 10px;
    --fs-12: 12px;
    --fs-13: 13px;
    --fs-14: 14px;
    --fs-16: 16px;
    --fs-18: 18px;
    --fs-20: 20px;
    --fs-22: 22px;
    --fs-24: 24px;
    /* Radius */
    --radius-4: 4px;
    /* Effects */
    --transition: 0.3s ease;
}

/* =========================
   BASE
========================= */
body {
    font-family: var(--font-primary);
    margin: var(--s-0);
}

/* =========================
   HEADER
========================= */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s-10) var(--s-20);
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 50px;
        margin-right: var(--s-10);
    }

.logo-text h1 {
    font-size: var(--fs-24);
    margin: var(--s-0);
    text-transform: lowercase;
    font-style: italic;
    color: var(--text-dark);
}

.logo-text p {
    font-size: var(--fs-10);
    margin: var(--s-0);
    color: var(--text-light);
}

/* Navigation */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: var(--s-20);
    margin: var(--s-0);
}

    .nav-menu ul li a {
        text-decoration: none;
        color: var(--text-dark);
        font-size: var(--fs-14);
        font-weight: 500;
    }

        .nav-menu ul li a.active {
            color: var(--orange);
        }

.nav-menu i {
    font-size: var(--fs-12);
    margin-left: 3px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--s-15);
}

.submit-btn {
    background-color: var(--blue);
    color: var(--white);
    padding: 8px 15px;
    border-radius: var(--radius-4);
    text-decoration: none;
    font-weight: bold;
    font-size: var(--fs-14);
}

.search-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 8px 10px;
    border-radius: var(--radius-4);
    cursor: pointer;
}

/* Language */
.lang-selector {
    display: flex;
    gap: var(--s-10);
    font-size: var(--fs-13);
    font-weight: bold;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: var(--s-5);
}

    .lang-item img {
        width: 18px;
    }

/* =========================
   BANNER
========================= */
.orange-bg {
    background-color: #f7941d;
}

.banner-section {
    color: #ffffff;
    padding: 15px;
    margin-bottom: 20px; /* spacing below banner */
}

    .banner-section h1 {
        font-size: 2rem;
        margin: 0;
        font-weight: 400;
    }

.breadcrumb-text {
    opacity: 0.9;
    font-size: 0.875rem;
}

    .breadcrumb-text a {
        color: #ffffff;
        text-decoration: none;
    }

        .breadcrumb-text a:hover {
            text-decoration: underline;
        }


/* =========================
   BODY & GENERAL
========================= */
body {
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
}
/* =========================
   CONTENT SECTIONS
========================= */
.content-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.section-content {
    padding: 10px 0;
}

.content-section h2 {
    margin-top: 20px;
    padding-bottom: 0;
    font-size: 22px;
    border-bottom: none;
    font-weight: 700; /* make headings bold */
}

.content-section ul {
    padding-left: 18px;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    position: sticky;
    top: 20px; /* distance from top of viewport */
}

.sidebar-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    /* remove margin-top to avoid sticky issues */
    margin-bottom: 20px;
}

.sidebar-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid #dee2e6; /* underline below "On this page" */
    padding-bottom: 5px;
}

.sidebar-body ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .sidebar-body ul li {
        margin-bottom: 8px;
    }

        .sidebar-body ul li a {
            color: #007bff;
            text-decoration: none; /* no underline by default */
            display: block;
            transition: color 0.3s ease;
        }

            .sidebar-body ul li a:hover,
            .sidebar-body ul li a.active {
                color: #0056b3; /* slightly darker */
                text-decoration: none; /* never underline */
            }

/* =========================
   CONTENT SECTIONS
========================= */


.content-section {
    margin-top: 20px; /* space between sections */
    margin-bottom: 20px; /* balanced bottom spacing */
}

    .content-section h2 {
        margin-top: 0; /* remove default extra spacing */
        margin-bottom: 12px; /* space between heading and content */
        font-size: 22px;
        font-weight: 700;
        line-height: 1.3;
    }

.section-content {
    padding: 0; /* remove unnecessary vertical padding */
}

    .section-content p {
        margin-bottom: 12px; /* clean paragraph spacing */
    }

.content-section ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.content-section li {
    margin-bottom: 6px; /* spacing between list items */
}

/* ===== Sidebar actions ===== */
.section-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .section-actions button {
        line-height: 1;
        border-radius: 4px;
    }

    .section-actions i {
        font-size: 0.9rem;
    }

/* Inline edit input */
.sidebar-body input.form-control-sm {
    height: 28px;
    font-size: 0.85rem;
    padding: 2px 6px;
}
/* =========================
   FOOTER
========================= */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: var(--s-20) 0 var(--s-10);
    font-family: var(--font-secondary);
}

.footer-logo {
    font-size: var(--fs-22);
    font-weight: bold;
    margin-bottom: var(--s-5);
}

.journal-info {
    font-size: var(--fs-13);
    color: var(--muted);
    margin-bottom: var(--s-10);
}

.open-access {
    font-size: var(--fs-14);
}

.footer-heading {
    font-weight: bold;
    margin-bottom: var(--s-20);
    font-size: var(--fs-16);
}

.footer-links {
    list-style: none;
    padding: var(--s-0);
}

    .footer-links li {
        margin-bottom: 1px;
    }

    .footer-links a {
        color: var(--white);
        text-decoration: none;
        font-size: var(--fs-14);
    }

/* Newsletter */
.custom-field {
    background-color: var(--white) !important;
    border: none !important;
    height: 45px;
    padding-left: var(--s-20) !important;
    font-size: var(--fs-14);
    color: var(--text-dark) !important;
}

.subscribe-btn {
    background-color: var(--blue) !important;
    color: var(--white) !important;
    font-weight: bold;
    height: 45px;
    border: none;
    letter-spacing: 0.5px;
    cursor: pointer;
}

    .subscribe-btn:hover {
        opacity: 0.9;
    }

.footer-bottom {
    border-top: 1px solid var(--border-footer);
    position: relative;
}

.copyright-text {
    font-size: var(--fs-13);
    color: var(--muted);
}

.scroll-up-btn {
    position: absolute;
    right: 0;
    bottom: 15px;
    color: var(--blue);
    font-size: var(--fs-18);
    cursor: pointer;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .main-header {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--s-15);
    }

    .nav-menu ul {
        gap: var(--s-10);
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: var(--s-10);
        flex-direction: column;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        margin-bottom: var(--s-10);
    }

        .logo img {
            margin-right: 0;
            margin-bottom: var(--s-5);
        }

    .nav-menu {
        width: 100%;
        overflow-x: auto;
        padding-bottom: var(--s-10);
    }

        .nav-menu ul {
            justify-content: flex-start;
            white-space: nowrap;
            padding: 0 var(--s-10);
        }

    .sidebar-card {
        position: static;
        margin-top: var(--s-20);
    }

    .footer-heading {
        margin-top: 25px;
        margin-bottom: var(--s-10);
    }

    .subscribe-btn,
    .custom-field {
        width: 100%;
        margin-bottom: var(--s-10);
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: var(--fs-20);
    }

    .header-actions {
        flex-direction: column;
        gap: var(--s-10);
    }

    .submit-btn {
        width: 100%;
        text-align: center;
    }
}


/* =========================
   BODY & GENERAL
========================= */
body {
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
}
/* =========================
   CONTENT SECTIONS
========================= */
.content-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.section-content {
    padding: 10px 0;
}

.content-section h2 {
    margin-top: 20px;
    padding-bottom: 0;
    font-size: 22px;
    border-bottom: none;
    font-weight: 700; /* make headings bold */
}

.content-section ul {
    padding-left: 18px;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    position: sticky;
    top: 20px; /* distance from top of viewport */
}

.sidebar-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    /* remove margin-top to avoid sticky issues */
    margin-bottom: 20px;
}

.sidebar-header {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    border-bottom: 1px solid #dee2e6; /* underline below "On this page" */
    padding-bottom: 5px;
}

.sidebar-body ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .sidebar-body ul li {
        margin-bottom: 8px;
    }

        .sidebar-body ul li a {
            color: #007bff;
            text-decoration: none; /* no underline by default */
            display: block;
            transition: color 0.3s ease;
        }

            .sidebar-body ul li a:hover,
            .sidebar-body ul li a.active {
                color: #0056b3; /* slightly darker */
                text-decoration: none; /* never underline */
            }

/* =========================
   CONTENT SECTIONS
========================= */


.content-section {
    margin-top: 20px; /* space between sections */
    margin-bottom: 20px; /* balanced bottom spacing */
}

    .content-section h2 {
        margin-top: 0; /* remove default extra spacing */
        margin-bottom: 12px; /* space between heading and content */
        font-size: 22px;
        font-weight: 700;
        line-height: 1.3;
    }

.section-content {
    padding: 0; /* remove unnecessary vertical padding */
}

    .section-content p {
        margin-bottom: 12px; /* clean paragraph spacing */
    }

.content-section ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.content-section li {
    margin-bottom: 6px; /* spacing between list items */
}

/* ===== Sidebar actions ===== */
.section-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-actions button {
    line-height: 1;
    border-radius: 4px;
}

.section-actions i {
    font-size: 0.9rem;
}

/* Inline edit input */
.sidebar-body input.form-control-sm {
    height: 28px;
    font-size: 0.85rem;
    padding: 2px 6px;
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
    .sidebar {
        position: relative; /* disable sticky on small screens */
        top: 0;
    }

    .sidebar-card {
        margin-bottom: 20px;
    }
}
