/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: Arial, sans-serif; */
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-family: 'Quicksand', sans-serif ! important;
    font-weight: 500 ! important;
    font-size: 15px ! important;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    padding: 15px 5%;
    background-color: #2e3192;
    /* Deep blue color */
    color: white;
    flex-wrap: wrap;
}

.logo {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.logo img {
    width: 70px;
    height: 70px;
}

.title-container {
    flex-grow: 1;
    margin-bottom: 10px;
}

.journal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.journal-subtitle {
    font-size: 14px;
}

.search-container {
    display: flex;
    margin-top: 10px;
    width: 100%;
    max-width: 300px;
}

.search-container input {
    padding: 8px;
    border: none;
    width: 70%;
}

.search-container button {
    padding: 8px 15px;
    background-color: #1a4e6e;
    color: white;
    border: none;
    cursor: pointer;
    width: 30%;
}

/* Navigation Styles */
.nav {
    background-color: #000;
    color: white;
    padding: 10px 5%;
    position: relative;
}

.nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.nav li {
    margin-right: 15px;
    margin-bottom: 5px;
    position: relative;
}

.nav li:hover {
    text-decoration: underline;
}

.nav .dropdown::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
}

.external-link::after {
    content: "↗";
    font-size: 12px;
    margin-left: 3px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Main Content Styles */
.main-container {
    display: flex;
    padding: 20px 5%;
    flex-wrap: wrap;
}

.content {
    flex: 3;
    min-width: 300px;
    padding-right: 20px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #2e3192;
    color: white;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.journal-info {
    margin-bottom: 20px;
}

.journal-info h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.section-title {
    background-color: #e6e6e6;
    padding: 10px;
    margin: 20px 0 10px 0;
    font-weight: bold;
    color: #333;
}

.article {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

.article-title {
    font-weight: bold;
    font-size: 20px;
}

.article-title p {
    margin: 0;
}

.article-meta {
    font-size: 14px;
    margin-bottom: 0px;
    word-break: break-word;
}

/* Sidebar Styles */
.journal-cover {
    text-align: center;
    margin-bottom: 20px;
}

.journal-cover img {
    width: 100%;
    max-width: 250px;
    border: 2px solid white;
}

.journal-details {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.sidebar-links a {
    display: block;
    background-color: white;
    color: #333;
    padding: 5px 10px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 3px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
}

.sidebar-links a:hover {
    background-color: #f0f0f0;
}

.social-links {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    margin-bottom: 10px;
    font-weight: bold;
}

.social-links .facebook {
    background-color: #3b5998;
}

.social-links .twitter {
    background-color: #1da1f2;
}

.social-links .linkedin {
    background-color: #0077b5;
}

.social-links .google {
    background-color: #db4437;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
    }

    .content {
        padding-right: 0;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .title-container {
        text-align: center;
        margin-bottom: 15px;
    }

    .journal-title {
        font-size: 20px;
    }

    .search-container {
        margin: 0 auto;
        max-width: 100%;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 10px;
    }

    .nav ul {
        flex-direction: column;
        display: none;
    }

    .nav.active ul {
        display: flex;
    }

    .nav li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .journal-info h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .journal-title {
        font-size: 18px;
    }

    .journal-subtitle {
        font-size: 12px;
    }

    .article-title {
        font-size: 14px;
    }

    .article-meta {
        font-size: 12px;
    }

    .social-links {
        bottom: 10px;
        right: 10px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        margin-bottom: 5px;
    }
}

/* // nav css */
/* Base: Hide collapse menu and show toggle button (mobile-first approach) */
.custom-toggler {
    display: block;
}

.custom-collapse {
    display: none;
    flex-direction: column;
    width: 100%;
}

/* Toggle open class (already present) */
.custom-collapse.open {
    display: flex;
}

/* Navigation list direction for small screens */
.custom-nav {
    flex-direction: column;
    gap: 0;
}

/* Medium and up (≥768px) */
@media (min-width: 768px) {
    .custom-toggler {
        display: none;
        /* Hide the toggle button on medium and larger screens */
    }

    .custom-collapse {
        display: flex !important;
        /* Always show nav on larger screens */
        flex-direction: row;
        width: auto;
    }

    .custom-nav {
        flex-direction: row;
        gap: 1rem;
    }
}


.custom-navbar {
    background-color: #000000;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.custom-navbar a {
    color: white;
}

.custom-dropdown-menu a {
    color: rgb(0, 0, 0) !important;
}

.custom-container {
    max-width: 1140px;
    margin: 0 auto;
    /* padding: 0.5rem 1rem; */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.custom-toggler {
    /* background: none; */
    border: none;
    cursor: pointer;
    display: block;
}

.custom-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280,0,0,0.5%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") center/contain no-repeat;
    display: inline-block;
}

.submit-section {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.submit-link {
    color: #212529;
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    font-weight: 500;
}

.custom-collapse {
    width: 100%;
    display: none;
    flex-direction: column;
}

.custom-collapse.open {
    display: flex;
}

.custom-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.custom-link {
    color: #212529;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
}

.custom-dropdown {
    position: relative;
}

.custom-dropdown:hover .custom-dropdown-menu {
    display: block;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.6rem;
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #dee2e6;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
}

.custom-dropdown-item {
    padding: 0.5rem 1rem;
    display: block;
    color: #212529;
    text-decoration: none;
    white-space: nowrap;
}

.custom-dropdown-item:hover {
    background-color: #f1f1f1;
}

.ms-auto {
    margin-left: auto;

}

/* Default: hide toggle button on small screens */
.custom-toggler {
    display: none;
}

/* Show toggle button on medium screens and above (≥768px) */
@media (max-width: 768px) {
    .custom-toggler {
        display: block;
        border-radius: 3px;
    }

    .custom-navbar {
        /* background-color: #ffffff !important; */
        /* border-radius: 3px; */
    }

}


footer {
    background: black;
    color: white;
    text-align: center;
    padding: 10px;
}

.archive-a {
    color: #2e3192 !important;
}

/* // after adding bootstrap */
.nav-link {
    color: white !important;
}

.content {
    padding: 45px !important;
    border: 1px solid gray !important;
    border-radius: 10px !important;
    margin-right: 20px !important;
    margin-top: 20px !important;
}

.journal-info h2 {
    font-weight: bold;
    font-size: 22px;
}

.section-title {
    margin-top: 35px;
    font-size: 20px;
    font-weight: bold;
    color: #0a0c4c;
    border: 1px solid #ccc;
    padding: 8px 17px;
    background: #e8e8e8;

}

.article a:first-child {
    text-decoration: none !important;
    color: black !important;
}

.article a:first-child:hover {
    text-decoration: underline !important;
}

footer p {
    margin: 0;
}

.journal-details p {
    font-size: 13px;
    margin: 0;
}

.doi {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1)) !important;
    text-decoration: underline !important;
}

h1 {
    font-size: 36px;
    font-weight: bold;
}

.articleContent td {
    border: 1px solid black;
    padding: 5px;
}

.journal-info td {
    border: 1px solid black;
    padding: 5px;
}

.journal-info table {
    width: 100%;
}

.journal-info p {
    font-weight: bold;
}