/* =========================================================
   OJS 3.x — Jurnal Kesehatan Modern (Laktosa)
   Theme: Clean Clinical / Medical Red
   ========================================================= */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Nunito+Sans:wght@400;600;700;800&display=swap');

/* ---------- Global ---------- */
html, body, * {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #243447;
    background:
        radial-gradient(circle at 10% 0%, rgba(196, 30, 58, .06), transparent 28%),
        linear-gradient(180deg, #F7FBFE 0%, #EFF7FC 100%);
    line-height: 1.65;
}

a {
    color: #C62828;
    text-decoration: none;
    transition: all .2s ease;
}

a:hover,
a:focus {
    color: #9E1F1F;
    text-decoration: none;
}

/* ---------- Site Header ---------- */
.pkp_site_name {
    margin: 0;
    padding: 0;
}

.pkp_site_name > a {
    display: block;
    padding: 0;
}

.pkp_site_name_wrapper {
    width: 100%;
    max-width: 1200px;
    height: auto;
    min-height: 120px;
    margin: 0 auto;
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pkp_site_name .is_img img {
    max-height: 300px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ---------- USER / LANGUAGE / NAVIGATION ---------- */

.pkp_navigation_user {
    margin-top: 0 !important;
}

.pkp_navigation_user > li > a {
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px !important;
    border-radius: 6px;
    transition: all .2s ease;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
}

/* Navigasi utama tetap berada di dalam header */
.pkp_navigation_primary_row {
    border-top: 1px solid rgba(255,255,255,.12);
    background: transparent !important;
    margin-top: 0 !important;
}

.pkp_navigation_primary {
    margin: 0 !important;
}

.pkp_navigation_primary > li > a {
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 16px !important;
    border: 0 !important;
    border-radius: 7px 7px 0 0;
    transition: background .2s ease, color .2s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a[aria-expanded="true"] {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
}

/* Dropdown menu */
.pkp_navigation_primary .dropdown-menu {
    background: #fff !important;
    border: 1px solid var(--laktosa-border);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--laktosa-shadow);
    padding: 6px;
    min-width: 190px;
}

.pkp_navigation_primary .dropdown-menu a {
    color: var(--laktosa-text) !important;
    padding: 9px 12px !important;
    border-radius: 5px;
    transition: background .2s ease;
}

.pkp_navigation_primary .dropdown-menu a:hover,
.pkp_navigation_primary .dropdown-menu a:focus {
    background: var(--laktosa-blue-light) !important;
    color: var(--laktosa-blue-dark) !important;
}

/* Search di header */
.pkp_navigation_search_wrapper {
    margin: 0 !important;
}

.pkp_search button,
.pkp_navigation_search_wrapper a {
    color: #fff !important;
    font-weight: 600;
    border-radius: 7px;
    transition: background .2s ease;
}

.pkp_search button:hover,
.pkp_navigation_search_wrapper a:hover {
    background: rgba(255,255,255,.14) !important;
}

/* ---------- Main Page Container ---------- */
.pkp_structure_page {
    margin: auto;
    width: 1162px;
    padding-bottom: 0 !important;
    border: 0;
    background: #fff;
    box-shadow: 0 0 35px rgba(142, 18, 41, .08);
}

.pkp_structure_content {
    padding-top: 0;
}

.pkp_structure_sidebar .pkp_block .title,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito Sans', sans-serif;
    color: #0D4775;
    font-weight: 800;
}

h1, h2 {
    letter-spacing: -.02em;
}

@media (max-width: 1000px) {
    .pkp_structure_page {
        margin: auto;
        width: 100%;
        box-shadow: none;
    }
}

/* ---------- Article Cards ---------- */
.obj_article_summary {
    position: relative;
    margin-bottom: 18px;
    padding: 20px !important;
    background: #fff;
    border: 1px solid #D9E5EE !important;
    border-left: 4px solid #B71C1C !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 18px rgba(142, 18, 41, .07) !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.obj_article_summary:hover {
    transform: translateY(-2px);
    border-color: #C9DDEA !important;
    box-shadow: 0 10px 28px rgba(142, 18, 41, .12) !important;
}

.obj_article_summary .title a {
    color: #0D4775;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
}

.obj_article_summary .title a:hover {
    color: #C62828;
}

.obj_article_summary .meta {
    color: #64748B;
}

/* ---------- Buttons ---------- */
.cmp_button_wire,
.obj_galley_link {
    display: inline-block;
    background: #C62828;
    border: 1px solid #C62828;
    color: #fff !important;
    border-radius: 7px;
    padding: 7px 13px;
    font-weight: 600;
    transition: all .2s ease;
}

.cmp_button_wire:hover,
.obj_galley_link:hover {
    background: #9E1F1F;
    border-color: #9E1F1F;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(196,30,58,.2);
}

/* ---------- Blocks / Sidebar ---------- */
.pkp_block {
    margin: 0 !important;
    padding: 15px 10px;
}

.pkp_structure_sidebar .pkp_block .title {
    margin-bottom: 12px;
    padding-bottom: 9px;
    border-bottom: 2px solid #D9E5EE;
    font-size: 1.05rem;
}

#customblock-Sidebar_menu.pkp_block {
    margin: 0 !important;
    padding: 0 !important;
}

#customblock-Sidebar_menu.pkp_block ul,
#customblock-Sidebar_menu.pkp_block ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

#customblock-Sidebar_menu.pkp_block ul {
    border: 1px solid #D9E5EE;
    border-radius: 10px;
    overflow: hidden;
}

#customblock-Sidebar_menu.pkp_block ul li {
    background: #F8FBFD !important;
    border-bottom: 1px solid #E7F0F6;
}

#customblock-Sidebar_menu.pkp_block ul li:last-child {
    border-bottom: none;
}

#customblock-Sidebar_menu.pkp_block ul li a {
    position: relative;
    display: block;
    line-height: 42px;
    padding: 0 12px 0 20px;
    color: #174E78;
    font-weight: 600;
    transition: all .2s ease;
}

#customblock-Sidebar_menu.pkp_block ul li a:before {
    content: "›";
    position: absolute;
    left: 9px;
    color: #B71C1C;
    font-weight: 800;
}

#customblock-Sidebar_menu.pkp_block ul li a:hover {
    background: #EAF4FB !important;
    color: #C62828 !important;
    padding-left: 24px;
}

.pkp_block.block_make_submission .content {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.pkp_block.block_make_submission .content a {
    display: block;
    background: linear-gradient(135deg, #C62828, #E9536B);
    line-height: 44px;
    font-family: 'Inter', sans-serif;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 7px 16px rgba(196,30,58,.18);
}

.pkp_block.block_make_submission .content a:hover {
    background: linear-gradient(135deg, #9E1F1F, #C62828);
    transform: translateY(-1px);
}

/* ---------- DOI / Statistics ---------- */
.obj_article_summary .item.doi .label {
    background: none !important;
    width: auto !important;
    height: auto !important;
    color: #C62828 !important;
    text-indent: 0;
    white-space: normal;
    overflow: visible;
    font-weight: 700;
}

.obj_article_summary .item.doi .label:before {
    content: "DOI";
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    background: #FDEEEE;
    border-radius: 5px;
    font-size: .72rem;
}

.obj_article_summary .item.stats .abstract,
.obj_article_summary .item.stats .galley {
    position: relative;
    color: #64748B;
}

.obj_article_summary .item.stats .abstract {
    margin-left: 20px;
    margin-right: 10px;
}

.obj_article_summary .item.stats .galley {
    margin-left: 25px;
}

.obj_article_summary .item.stats .abstract:before {
    content: "\f080";
    font-family: FontAwesome;
    left: -15px;
    position: absolute;
    top: 0;
    color: #B71C1C;
}

.obj_article_summary .item.stats .galley:before {
    content: "\f1c1";
    font-family: FontAwesome;
    left: -15px;
    position: absolute;
    top: 0;
    color: #B71C1C;
}

/* ---------- Tools / Visitor Statistics ---------- */
#customblock-Tools .content > .content div {
    width: 80% !important;
    margin: auto;
}

#customblock-Tools .content > .content div a img {
    width: 100% !important;
    border-radius: 8px;
}

#customblock-Visitor_statistics .content > .content .supercounter,
#customblock-Visitor_statistics .content > .content .statcounter {
    text-align: center;
}

.sidebar-block {
    background: linear-gradient(135deg, #C62828, #E9536B);
    padding: 9px 12px;
    color: #fff;
    margin: 10px -10px;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(196,30,58,.14);
}

/* ---------- Announcements ---------- */
.cmp_announcements .obj_announcement_summary.full_width {
    width: 100% !important;
}

.cmp_announcements .obj_announcement_summary {
    padding: 15px;
    margin-bottom: 12px;
    background: #FCFEFF;
    border: 1px solid #E3EDF4;
    border-radius: 10px;
}

.cmp_announcements .obj_announcement_summary .summary p {
    line-height: 1.6em;
    margin-top: 0 !important;
    margin-bottom: 1em !important;
}

/* ---------- Forms / Inputs ---------- */
input[type=text],
input[type=email],
input[type=password],
input[type=url],
select,
textarea {
    border: 1px solid #f3d6da !important;
    border-radius: 7px !important;
    background: #fff !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=url]:focus,
select:focus,
textarea:focus {
    border-color: #B71C1C !important;
    box-shadow: 0 0 0 3px rgba(196,30,58,.10) !important;
    outline: none;
}

/* ---------- Tables ---------- */
table {
    border-color: #D9E5EE !important;
}

table thead th {
    background: #EAF4FB;
    color: #0D4775;
    font-weight: 700;
}

table tbody tr:hover {
    background: #F8FBFD;
}

/* ---------- Footer ---------- */
.pkp_structure_footer_wrapper {
    border-bottom: none !important;
}

.pkp_structure_footer .pkp_footer_content {
    background: linear-gradient(135deg, #0D4775 0%, #C62828 60%, #B71C1C 100%);
    padding: 22px !important;
    color: #fff;
}

.pkp_structure_footer .pkp_footer_content p {
    margin: 0;
    color: #E8F4FA;
}

.pkp_structure_footer .pkp_footer_content a {
    color: #DDEEFF;
}

.pkp_structure_footer .pkp_footer_content a:hover {
    color: #fff;
}

.pkp_structure_footer .pkp_brand_footer {
    background: #F3F8FB;
    height: auto !important;
    padding: 8px 0;
    border-top: 1px solid #D9E5EE;
}

.pkp_structure_footer .pkp_brand_footer img {
    width: 48px !important;
    height: auto;
}

.pkp_structure_footer .pkp_footer_content img {
    width: 88px;
    height: 31px;
}

.pkp_structure_footer .pkp_footer_content div.logo img {
    width: 65px;
    height: 65px;
}

.pkp_structure_footer .pkp_footer_content div.logo2 img {
    width: 88px;
    height: 31px;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .pkp_site_name_wrapper {
        width: 100% !important;
        height: auto !important;
        padding: 12px 15px;
    }

    .pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
        line-height: 42px !important;
        padding: 0 12px !important;
    }

    .obj_article_summary {
        padding: 16px !important;
        border-radius: 10px !important;
    }

    .pkp_structure_sidebar {
        padding-top: 10px;
    }

    .pkp_structure_footer .pkp_footer_content {
        padding: 18px 15px !important;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .obj_article_summary {
        margin-bottom: 14px;
    }

    .cmp_button_wire,
    .obj_galley_link {
        padding: 6px 10px;
    }
}


/* ---------- Enhancing Primary Navigation Tanpa Ikon ---------- */
.pkp_navigation_primary_row {
    background: #0D4775 !important;
    padding: 0 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(92, 14, 30, 0.2);
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
    font-size: 15px;
    letter-spacing: 0.3px;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a:hover {
    background: #C62828 !important;
    color: #fff !important;
    border-radius: 6px;
}

/* =========================================================
   LAKTOSA — RED / BLUE / WHITE MODERN THEME
   OJS 3.4.x
   ========================================================= */

/* Main header: BLUE */
.pkp_structure_head {
    background: linear-gradient(135deg, #0D4775 0%, #1769AA 58%, #2388C9 100%) !important;
    border: 0 !important;
    box-shadow: 0 4px 18px rgba(13,71,117,.20) !important;
}

/* Banner area */
.pkp_site_name_wrapper {
    background: transparent !important;
    border: 0 !important;
}

.pkp_site_name {
    background: transparent !important;
}

/* Primary navigation: BLUE with RED active/hover */
.pkp_navigation_primary_row {
    background: rgba(13,71,117,.96) !important;
    border-top: 1px solid rgba(255,255,255,.18) !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_primary_wrapper ul li a {
    color: #FFFFFF !important;
    background: transparent !important;
    transition: all .2s ease !important;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a[aria-expanded="true"],
.pkp_navigation_primary_wrapper ul li a:hover {
    background: #C62828 !important;
    color: #FFFFFF !important;
    border-radius: 6px !important;
}

/* User navigation */
.pkp_navigation_user > li > a {
    color: #FFFFFF !important;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    background: rgba(255,255,255,.16) !important;
    color: #FFFFFF !important;
}

/* Search */
.pkp_navigation_search_wrapper a,
.pkp_search button {
    color: #FFFFFF !important;
}

.pkp_navigation_search_wrapper a:hover,
.pkp_search button:hover {
    background: #C62828 !important;
    color: #FFFFFF !important;
}

/* Headings */
.pkp_structure_sidebar .pkp_block .title,
h1, h2, h3, h4, h5, h6 {
    color: #0D4775 !important;
}

/* Links */
a {
    color: #1769AA;
}

a:hover,
a:focus {
    color: #C62828;
}

/* Article cards: white with BLUE/RED accent */
.obj_article_summary {
    background: #FFFFFF !important;
    border: 1px solid #D9E5EE !important;
    border-left: 4px solid #1769AA !important;
    box-shadow: 0 5px 18px rgba(13,71,117,.07) !important;
}

.obj_article_summary:hover {
    border-color: #B9D4E6 !important;
    border-left-color: #C62828 !important;
    box-shadow: 0 10px 28px rgba(13,71,117,.12) !important;
}

.obj_article_summary .title a {
    color: #0D4775 !important;
}

.obj_article_summary .title a:hover {
    color: #C62828 !important;
}

/* Buttons: RED primary */
.cmp_button_wire,
.obj_galley_link {
    background: #C62828 !important;
    border-color: #C62828 !important;
    color: #FFFFFF !important;
}

.cmp_button_wire:hover,
.obj_galley_link:hover {
    background: #9E1F1F !important;
    border-color: #9E1F1F !important;
    color: #FFFFFF !important;
    box-shadow: 0 5px 12px rgba(198,40,40,.22) !important;
}

/* Sidebar */
#customblock-Sidebar_menu.pkp_block ul {
    border-color: #D9E5EE !important;
}

#customblock-Sidebar_menu.pkp_block ul li {
    background: #FFFFFF !important;
    border-bottom-color: #E7F0F6 !important;
}

#customblock-Sidebar_menu.pkp_block ul li a {
    color: #174E78 !important;
}

#customblock-Sidebar_menu.pkp_block ul li a:before {
    color: #C62828 !important;
}

#customblock-Sidebar_menu.pkp_block ul li a:hover {
    background: #EAF4FB !important;
    color: #C62828 !important;
}

/* Submission button: RED */
.pkp_block.block_make_submission .content a {
    background: linear-gradient(135deg, #C62828, #E53935) !important;
    color: #FFFFFF !important;
}

.pkp_block.block_make_submission .content a:hover {
    background: linear-gradient(135deg, #9E1F1F, #C62828) !important;
}

/* Forms: BLUE focus */
input[type=text],
input[type=email],
input[type=password],
input[type=url],
select,
textarea {
    border-color: #C9DDEA !important;
    background: #FFFFFF !important;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=url]:focus,
select:focus,
textarea:focus {
    border-color: #1769AA !important;
    box-shadow: 0 0 0 3px rgba(23,105,170,.12) !important;
}

/* Tables */
table {
    border-color: #D9E5EE !important;
}

table thead th {
    background: #EAF4FB !important;
    color: #0D4775 !important;
}

table tbody tr:hover {
    background: #F7FBFE !important;
}

/* Footer: BLUE */
.pkp_structure_footer .pkp_footer_content {
    background: linear-gradient(135deg, #0D4775 0%, #1769AA 65%, #0F5A91 100%) !important;
    color: #FFFFFF !important;
}

.pkp_structure_footer .pkp_footer_content p,
.pkp_structure_footer .pkp_footer_content a {
    color: #FFFFFF !important;
}

.pkp_structure_footer .pkp_footer_content a:hover {
    color: #FFCDD2 !important;
}

/* Red accent strip */
.pkp_structure_footer_wrapper {
    border-top: 4px solid #C62828 !important;
}

/* Dropdown */
.pkp_navigation_primary .dropdown-menu {
    background: #FFFFFF !important;
    border-color: #D9E5EE !important;
}

.pkp_navigation_primary .dropdown-menu a {
    color: #243447 !important;
}

.pkp_navigation_primary .dropdown-menu a:hover,
.pkp_navigation_primary .dropdown-menu a:focus {
    background: #EAF4FB !important;
    color: #C62828 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .pkp_structure_head {
        background: linear-gradient(180deg, #0D4775, #1769AA) !important;
    }

    .pkp_navigation_primary_row {
        background: #0D4775 !important;
    }

    .pkp_navigation_primary_wrapper ul li a:hover {
        background: #C62828 !important;
    }
}