/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Charcoal Gray */
    background-color: #F5F5F5; /* White Smoke */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: #66CDAA; /* Updated Light Sea Green */
    color: white;
    padding: 8px 0;
    text-align: start;
    font-size: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Logo */
.pkp_site_name .is_img img {
    max-width: 300px; /* Increase the width as needed */
    max-height: 150px; /* Keep the aspect ratio */
}

/* Main website navigation link bar max width to 100% */
.pkp_navigation_primary {
    display: inline-block;
    max-width: 100%;
    text-align: center;
}

.pkp_page_index .journals .thumb img {
    display: flex;           /* Enable flexbox */
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    height: 100%;             /* Adjust to container's height */
}

/* Responsive Styles */

/* Mobile and Intermediate Screen Adjustments */
@media (max-width: 1024px) {
    /* Header */
    header {
        font-size: 1.5rem; /* Reduce font size for smaller screens */
        padding: 5px 15px; /* Reduce padding but keep some space for aesthetics */
        text-align: start; /* Maintain left alignment */
    }

    /* Logo */
    .pkp_site_name .is_img img {
        max-width: 150px; /* Reduce the width for better fit on smaller screens */
        max-height: 35px; /* Adjust the height */
        width: auto; /* Maintain aspect ratio */
        height: auto; /* Maintain aspect ratio */
        float: left; /* Keep the logo aligned to the left */
        margin: 0; /* Remove unnecessary margin */
    }

    /* Navigation Bar */
    .pkp_navigation_primary {
        display: inline-block; /* Maintain inline-block for better alignment */
        max-width: 100%; /* Ensure it doesn’t overflow on smaller screens */
        margin: 0 auto; /* Center-align only if necessary */
        text-align: center; /* Maintain center alignment */
    }

    /* Journal Images */
    .pkp_page_index .journals .thumb img {
        height: auto; /* Adjust height automatically to fit the container */
        width: 100%; /* Take the full width of its container for responsiveness */
        display: block; /* Ensure images are displayed properly on small screens */
        margin: auto; /* Center the images */
    }
}

@media (max-width: 768px) {
    /* Further adjustments for mobile (tablets and below) */

    /* Header */
    header {
        font-size: 1.2rem; /* Further reduce font size for mobile */
        padding: 5px 10px; /* Keep some padding for better spacing */
        text-align: start; /* Keep left alignment */
    }

    /* Logo */
    .pkp_site_name .is_img img {
        max-width: 150px; /* Further reduce the logo size for small screens */
        max-height: 35px; /* Maintain aspect ratio */
        float: left; /* Keep it aligned to the left */
        margin: 0; /* No margin to prevent overlapping */
    }

    /* Navigation Links */
    .pkp_navigation_primary {
        padding: 10px 0; /* Add spacing to navigation for better interaction */
        font-size: 1rem; /* Reduce font size of navigation items */
    }

    /* Journal Images */
    .pkp_page_index .journals .thumb img {
        max-width: 90%; /* Limit width to avoid overflowing on smaller screens */
    }
}






/* Links */
a {
    color: #1E90FF; /* Updated Dim Blue */
    text-decoration: none;
}

a:hover {
    color: #104E8B; /* Darker blue on hover */
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #66CDAA; /* Updated Light Sea Green */
    margin-top: 0;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid #66CDAA; /* Updated Light Sea Green */
    padding-bottom: 10px;
}

h2 {
    font-size: 2rem;
    border-bottom: 1px solid #5ab597; /* Slightly darker Light Sea Green */
    padding-bottom: 8px;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
    color: #666666;
}

/* Paragraphs */
p {
    color: #333333; /* Charcoal Gray */
    font-size: 1rem;
    margin: 0 0 20px 0;
    text-align: justify;
}

/* Blockquote */
blockquote {
    font-style: italic;
    background: #AFEEEE; /* Pale Turquoise */
    padding: 15px;
    border-left: 5px solid #66CDAA; /* Updated Light Sea Green */
    margin: 20px 0;
}

/* Lists */
ul, ol {
    margin: 10px 0 20px 40px;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #dddddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #66CDAA; /* Updated Light Sea Green */
    color: white;
}

/* Buttons */
button, .btn {
    background-color: #66CDAA; /* Updated Light Sea Green */
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
}

button:hover, .btn:hover {
    background-color: #5ab597; /* Slightly darker Light Sea Green */
}

/* Footer */
footer {
    background-color: #778899; /* Light Slate Gray */
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Forms */
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #66CDAA; /* Updated Light Sea Green */
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #5ab597; /* Slightly darker Light Sea Green */
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Center Image */
.center-image {
    display: block;
    margin: auto;
}

/* Journal-Specific Styles */
.journal-header {
    background-color: #66CDAA; /* Updated Light Sea Green */
    color: white;
    text-align: center;
    padding: 50px 0;
    margin-bottom: 40px;
}

.journal-title {
    font-size: 3rem;
    font-weight: bold;
}

.journal-subtitle {
    font-size: 1.5rem;
    color: #F5F5F5; /* White Smoke */
}

/* Code Blocks */
pre, code {
    background-color: #F5F5F5; /* White Smoke */
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

/* Custom Elements */
.custom-badge {
    background-color: #5ab597; /* Slightly darker Light Sea Green */
    color: white;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 3px;
    display: inline-block;
}

.highlight {
    background-color: #fff0b3;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
