/* ============================================================
   AllStats Journal - Professional Style Sheet
   Designed for: SciNex Publishers
   Author: Dr. Aqeel Ahmad
   Description: Clean, modern academic layout for OJS
   ============================================================ */

/* === Base Styling === */
body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e1e1e;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* === Links === */
a {
    color: #2467a3;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #17446f;
    text-decoration: underline;
}

/* === Header Structure === */
.pkp_structure_head {
    background-color: #2f69a1; /* Decent blue tone */
    border-bottom: 3px solid #21517d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    flex-wrap: wrap;
}

/* === Logo Placement === */
.pkp_site_name_wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.pkp_site_name_wrapper img {
    max-height: 80px;
    width: auto;
    margin-right: 20px;
}

.pkp_site_name {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Primary Navigation === */
.pkp_navigation_primary {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* LEFT alignment */
    flex-wrap: wrap;
    margin-left: 30px;
    flex: 2;
}

.pkp_navigation_primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.pkp_navigation_primary li {
    position: relative;
}

.pkp_navigation_primary a {
    color: #ffffff !important;
    padding: 12px 18px;
    display: block;
    font-weight: 500;
    font-size: 15px;
}

.pkp_navigation_primary a:hover {
    background-color: #21517d;
    border-radius: 4px;
}

/* === Dropdown Menus === */
.pkp_navigation_primary ul.dropdown-menu,
.pkp_navigation_user ul.dropdown-menu {
    background-color: #2f69a1 !important;
    border: 1px solid #21517d;
    border-radius: 6px;
    padding: 0;
    position: absolute;
    z-index: 999;
}

.pkp_navigation_primary ul.dropdown-menu li a,
.pkp_navigation_user ul.dropdown-menu li a {
    color: #ffffff !important;
    padding: 10px 15px;
    display: block;
}

.pkp_navigation_primary ul.dropdown-menu li a:hover,
.pkp_navigation_user ul.dropdown-menu li a:hover {
    background-color: #21517d !important;
}

/* === User Menu (Top Right Corner) === */
.pkp_navigation_user {
    position: relative;
}

.pkp_navigation_user a {
    color: #ffffff !important;
    font-weight: 500;
}

.pkp_navigation_user a:hover {
    background-color: #21517d;
}

/* === Announcements === */
.cmp_announcements, .obj_announcement_summary {
    background-color: #f5f9fd;
    border: 1px solid #cddfee;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.obj_announcement_summary h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2f69a1;
}

/* === Article Listings === */
.obj_issue_summary, .obj_article_summary {
    border-bottom: 1px solid #e6e6e6;
    padding: 20px 0;
}

.obj_issue_summary h2, .obj_article_summary h2 {
    font-size: 20px;
    color: #2f69a1;
    font-weight: 600;
}

.obj_article_summary .authors {
    font-size: 14px;
    color: #555;
}

/* === Buttons and Forms === */
button, input[type=submit], .pkp_button {
    background-color: #2f69a1;
    color: #ffffff !important;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover, input[type=submit]:hover, .pkp_button:hover {
    background-color: #21517d;
}

/* === Sidebar === */
.pkp_block {
    background-color: #f8fafd;
    border: 1px solid #dce5f1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.pkp_block h2 {
    font-size: 16px;
    font-weight: 600;
    color: #2f69a1;
    margin-bottom: 10px;
}

/* === Footer === */
.pkp_structure_footer {
    background-color: #2f69a1;
    color: #ffffff;
    text-align: center;
    padding: 25px 10px;
    margin-top: 50px;
    font-size: 14px;
    border-top: 3px solid #21517d;
}

.pkp_structure_footer a {
    color: #cde4ff;
}

.pkp_structure_footer a:hover {
    color: #ffffff;
}

/* === Headings and Titles === */
.page h1, .page_title {
    font-size: 28px;
    font-weight: 700;
    color: #2f69a1;
    margin-bottom: 20px;
}

/* === Tables === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
}

table th {
    background-color: #f0f5fa;
    color: #2f69a1;
    font-weight: 600;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .pkp_structure_head {
        flex-direction: column;
        text-align: center;
    }

    .pkp_site_name_wrapper {
        justify-content: center;
        margin-bottom: 10px;
    }

    .pkp_navigation_primary ul {
        flex-direction: column;
        align-items: center;
    }

    .pkp_navigation_primary a {
        padding: 10px;
    }
}

/* === Minor Enhancements === */
hr {
    border: 0;
    height: 1px;
    background: #dbe5f4;
    margin: 30px 0;
}

blockquote {
    border-left: 4px solid #2f69a1;
    padding-left: 15px;
    color: #444;
    font-style: italic;
}
