/* Body and Background */
body {
  background: url("https://ejournal.yasin-alsys.org/files/background_kuning.png") #002c69 fixed !important;
}

.pkp_site_name {
    padding-top: 0px;
    padding-bottom: 0px;
}

.pkp_site_name_wrapper {
    padding-left: 0px;
    padding-right: 0px;
}

.pkp_site_name .is_img img {
    display: block;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    margin-bottom: -6px;
}

.pkp_brand_footer {
    display: none;
}

/* Main Menu Styling */
.main-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-menu ul li {
    margin: 0 15px;
}

.main-menu ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
}

.main-menu ul li a:hover {
    background-color: #007bff;
    color: #fff;
}

/* Page Content */
.page-content {
    margin-top: 60px; /* Adjust depending on the height of your menu */
}

/* Container Styling */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Journal Grid Styling */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2-column layout by default */
    gap: 20px; /* Space between items */
    width: 100%;
}

.journal-item {
    display: flex;
    flex-direction: row;
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.journal-item .thumb {
    flex: 2; /* Cover takes up 2/3 of the space */
}

.journal-item .body {
    flex: 1; /* Text takes up 1/3 of the space */
    padding-left: 20px;
}

/* Font size adjustments for journal body */
.body {
    font-size: 16px; /* Base font size for the body content */
}

.body h4 {
    font-size: 13px; /* Journal name heading size */
    font-weight: bold; /* Optional: Make it bold */
}

.body ul.links li a {
    font-size: 10px; /* Font size for the links */
    text-decoration: none; /* Remove underline */
    color: #007bff; /* Optional: Customize the link color */
}

.body ul.links li a:hover {
    text-decoration: underline; /* Underline links on hover */
}

.journal-item .thumb img {
    width: 100%;
    height: auto;
    max-width: 400px;
    transition: transform 0.3s ease-in-out; /* Smooth transition effect */
}

.journal-item:hover .thumb img {
    transform: scale(1.1); /* Enlarge the image to 110% of its original size */
}

.journal-item:hover {
    background-color: #e0f7fa;
}

/* Links in Journal Item */
.journal-item .links a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.journal-item .links a:hover {
    background-color: #007bff;
    color: #fff;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #headerNavigationContainer {
        width: 100%; /* Full width for mobile */
    }

    #headerNavigationContainer img {
        width: 100%; /* Ensure the image is also 100% on smaller screens */
        height: auto; /* Maintain the aspect ratio */
    }
    .journal-grid {
        grid-template-columns: 1fr; /* Switch to 1 column on smaller screens */
    }

    .journal-item {
        flex-direction: column; /* Stack cover and text vertically */
    }

    .journal-item .thumb {
        flex: none;
        width: 100%;
        margin-bottom: 15px;
    }

    .journal-item .thumb img {
        max-width: none; /* Allow the image to fill mobile screen width */
    }

    .journal-item .body {
        padding-left: 0; /* Remove padding on mobile to align text */
    }

  .popup-content {
        width: 95%;            /* Make popup slightly wider on small screens */
        max-height: 80%;       /* Allow more height on mobile for better usage */
    }
}

/* Large Screen Styles */
@media (min-width: 1200px) {
    .journal-grid {
        grid-template-columns: repeat(2, 1fr); /* Maintain 2-column layout on large screens */
    }
}

/* Adjust Description Link Styling */
.journals ul .body .description a {
    display: inline;
}

/* Popup Styling */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    overflow: hidden; /* Prevent overall page scrolling when popup is open */
}

.popup-content h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
    background-color: #007bff; /* Set your desired background color */
    color: white;              /* Text color for contrast */
    padding: 10px;             /* Add padding for better spacing */
    border-radius: 5px;        /* Optional: Rounded corners */
    text-align: center;        /* Optional: Center-align the title */
}

.popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;           /* Use percentage to make width responsive */
    max-width: 500px;      /* Limit max width for larger screens */
    max-height: 70%;       /* Limit height for scrolling */
    overflow-y: auto;      /* Enable vertical scrolling if content exceeds max height */
}

/* Title styling */
.popup-content h2 {
    margin-top: 0;
    font-size: 24px; /* Adjust the size for the title */
    font-weight: bold;
}

/* Description content */
.popup-content p {
    font-size: 14px;
    line-height: 1.5; /* Improve readability */
}

/* Close button styling */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}