/* =========================
   OJS COLORFUL MAIN PAGE CSS
   ========================= */

/* General body styling */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #fdfbfb, #ebedee);
    color: #2c2c2c;
    margin: 0;
    padding: 0;
}

/* Main wrapper */
.pkp_structure_page {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

/* Header styling */
.pkp_site_name a,
.pkp_navigation_primary_wrapper,
.pkp_head_wrapper {
    background: linear-gradient(90deg, #0f4c81, #1aa7a1, #6dd5ed);
    color: #fff !important;
}

.pkp_site_name a {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    padding: 15px 0;
    display: inline-block;
}

/* Navigation menu */
.pkp_navigation_primary_row {
    background: transparent;
}

.pkp_navigation_primary > li > a {
    color: #fff !important;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pkp_navigation_primary > li > a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff !important;
}

/* Dropdown / popup style navigation */
.pkp_navigation_primary ul {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 8px 0;
}

.pkp_navigation_primary ul li a {
    color: #0f4c81 !important;
    padding: 10px 16px;
    display: block;
    transition: 0.3s ease;
}

.pkp_navigation_primary ul li a:hover {
    background: #eaf6ff;
    color: #009688 !important;
}

/* Main content area */
.page_index_journal,
.obj_issue_toc,
.obj_article_summary,
.current_issue,
.pkp_block {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    padding: 18px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.page_index_journal:hover,
.obj_issue_toc:hover,
.obj_article_summary:hover,
.current_issue:hover,
.pkp_block:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* Titles */
h1, h2, h3, h4, h5 {
    color: #0f4c81;
    font-weight: 700;
}

/* Buttons */
a.read_more,
.cmp_button,
.obj_galley_link,
button,
input[type="submit"] {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    color: #fff !important;
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

a.read_more:hover,
.cmp_button:hover,
.obj_galley_link:hover,
button:hover,
input[type="submit"]:hover {
    background: linear-gradient(90deg, #00b09b, #96c93d);
    transform: scale(1.03);
}

/* Sidebar */
.pkp_structure_sidebar {
    background: linear-gradient(180deg, #fdfdfd, #f2fbff);
    border-left: 3px solid #d9eef8;
    padding: 15px;
    border-radius: 12px;
}

/* Sidebar block titles */
.pkp_block .title,
.block_information .title,
.block_web_feed .title {
    color: #0f4c81;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

/* Indexing images smaller and centered */
.pkp_block img,
.block_custom img,
.pkp_structure_sidebar img {
    display: block;
    margin: 10px auto !important;
    max-width: 150px !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
    border: 1px solid #d7ebe8;
    padding: 6px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.pkp_block img:hover,
.block_custom img:hover,
.pkp_structure_sidebar img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Center all content in custom sidebar blocks if needed */
.block_custom,
.pkp_block {
    text-align: center;
}

/* Journal description / homepage text */
.journal_description,
.additional_content {
    background: linear-gradient(135deg, #ffffff, #f9fcff);
    border-left: 5px solid #1aa7a1;
    padding: 18px;
    border-radius: 14px;
}

/* Current issue cover image */
.current_issue img,
.obj_issue_summary img {
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

/* Footer */
.pkp_structure_footer_wrapper {
    background: linear-gradient(90deg, #0f4c81, #1aa7a1);
    color: #fff;
    padding: 20px 0;
}

.pkp_structure_footer_wrapper a {
    color: #fff !important;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border: 1px solid #c9dce8;
    border-radius: 10px;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Announcement/article cards */
.obj_article_summary,
.cmp_article_list > li,
.cmp_announcements > li {
    border-left: 5px solid #ff7e5f;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
}

/* Mobile popup navigation */
@media (max-width: 768px) {
    .pkp_navigation_primary_wrapper {
        position: relative;
        padding: 10px;
    }

    .pkp_navigation_primary {
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
        padding: 10px;
        margin-top: 10px;
    }

    .pkp_navigation_primary > li {
        display: block;
        margin-bottom: 8px;
    }

    .pkp_navigation_primary > li > a {
        color: #0f4c81 !important;
        background: #f4fbff;
        display: block;
    }

    .pkp_structure_sidebar img,
    .pkp_block img,
    .block_custom img {
        max-width: 110px !important;
    }
}