* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Georgia, serif;
    line-height: 1.6;
    background-color: #EDE9E1;
    color: #333;
    min-height: 100vh;
    overflow-y: auto;
}

header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 24px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

nav a.active {
    border-bottom: 2px solid #333;
}

.hero {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    overflow: visible;
}

.header-titles {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-top: 50px;
}

.journal,
.article {
    color: #333;
    font-size: 44px;
    font-weight: 600;
    padding-bottom: 10px;
}

.form-group.dropdown {
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-left: auto;
}

.form-group.dropdown {
    display: none;
}

.form-group.dropdown.active {
    display: block;
}

.form-group label h6 {
    margin: 0;
    margin-right: 10px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #f8f8f8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-content {
    width: 80%;
    height: auto;
    overflow-y: visible;
    padding-right: 15px;
}

.publication {
    margin: 10px 0;
}

.publication p {
    color: black;
    padding: 5px;
    width: 100%;
    text-align: justify;
}

.publication a {
    text-decoration: none;
}

.author {
    font-weight: bold;
    color: #000000;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    background-color: #fff;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #333;
    color: white;
}

.page-item.active .page-link {
    background-color: #333;
    color: white;
    border-color: #333;
}

.scroll-arrow {
    margin: 0px 0;
    animation: bounce 1.5s infinite;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #333;
    margin: 0 auto;
    margin-right: 180px;
}

.arrow.up {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

#prev,
#next {
    font-size: 18px;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: rgb(255, 255, 255);
    background-color: black;
    font-weight: 900;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: flex-start;
    }

    .logo {
        font-size: 20px;
    }

    nav a {
        font-size: 14px;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        width: 100%;
        text-align: center;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .hero-content {
        padding: 10px;
    }

    h2 {
        font-size: 36px;
    }

    .publication p {
        font-size: 14px;
    }

    .arrow {
        margin-right: 100px;
    }

    footer {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: row;
        align-items: flex-start;
    }

    .logo {
        font-size: 18px;
    }

    nav {
        width: 100%;
    }

    .hero-content {
        padding: 5px;
    }

    .journal,
    .article {
        font-size: 24px;
    }

    .publication p {
        font-size: 12px;
    }

    .arrow {
        margin-right: 50px;
    }
}

/* Add a mobile menu button */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    nav {
        display: none;
        background-color: #EDE9E1;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-menu-btn {
        display: block;
        width: auto;
        padding: 10px;
    }
}

.active1 {
    color: #000000;
    position: relative;
    font-weight: 500;
}

.active1::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background-color: #000000;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.active1:hover::after {
    transform: scaleX(1);
}

.journal:hover:not(.active1),
.article:hover:not(.active1) {
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Article Section Responsive Styling */
#article-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    margin: 20px auto;
}

.article-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}

.article-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
    text-align: center;
}

.article-details p {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.article-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    margin-top: auto;
    word-break: break-word;
}

.article-link:hover {
    text-decoration: underline;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    #article-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    #article-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .article-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    #article-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .article-thumbnail {
        height: auto;
    }

    .article-details {
        padding: 15px;
    }

    .article-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .form-group.dropdown {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    #article-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-thumbnail {
        height: auto;
    }

    .article-title {
        font-size: 20px;
    }
}