/* =========================================================
   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: #2B1116;
    background:
        radial-gradient(circle at 10% 0%, rgba(196, 30, 58, .06), transparent 28%),
        linear-gradient(180deg, #fff8f8 0%, #fef1f2 100%);
    line-height: 1.65;
}

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

a:hover,
a:focus {
    color: #8E1229;
    text-decoration: none;
}

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

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

.pkp_site_name_wrapper {
    padding: 18px 0;
    margin: 0;
}

.pkp_site_name .is_img img {
    max-height: 100%;
    max-width: 100%;
}

/* ---------- User Navigation ---------- */
.pkp_navigation_user_wrapper {
    top: 10px;
    right: 0;
    padding: 0;
    z-index: 20;
}

.pkp_navigation_user_wrapper .pkp_navigation_user {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.pkp_navigation_user_wrapper .pkp_navigation_user > li.profile {
    background: transparent;
    color: #5C0E1E;
}

.pkp_navigation_user_wrapper .pkp_navigation_user > li.profile > a {
    padding-right: 12px;
    color: #5C0E1E;
    font-weight: 600 !important;
}

.pkp_navigation_user_wrapper .pkp_navigation_user > li.profile > a:hover {
    color: #C41E3A;
}

.pkp_navigation_user_wrapper .pkp_navigation_user > li.profile > ul.dropdown-menu {
    border: 1px solid #f3d3d8;
    border-radius: 10px !important;
    box-shadow: 0 12px 30px rgba(142, 18, 41, .12);
    overflow: hidden;
}

.pkp_navigation_user_wrapper .pkp_navigation_user > li.profile > ul.dropdown-menu > li > a {
    font-family: 'Inter', sans-serif;
    font-weight: 500 !important;
}

.pkp_navigation_user {
    border-bottom: 1px solid rgba(196, 30, 58, .12);
}

.pkp_navigation_user > li > a,
.pkp_navigation_user > li.in_focus > a {
    color: #5C0E1E;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    color: #C41E3A;
}

/* ---------- Primary Navigation ---------- */
.pkp_navigation_primary_row {
    background: linear-gradient(90deg, #C41E3A 0%, #D42B48 55%, #E9536B 100%) !important;
    border: 0 !important;
    box-shadow: 0 5px 18px rgba(196, 30, 58, .18);
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li {
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
    margin: 0 !important;
    padding: 0 15px !important;
    line-height: 48px !important;
    border-radius: 0 !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li,
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a {
    font-family: 'Inter', sans-serif;
    color: #fff !important;
    font-weight: 600 !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a:hover,
.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li a:focus {
    background: rgba(255,255,255,.16) !important;
    color: #fff !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul {
    background: #fff !important;
    border: 1px solid #f5d7dc !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 12px 30px rgba(142, 18, 41, .14);
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li {
    border-bottom: 1px solid #fbeef0 !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li:last-child {
    border-bottom: none !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li a {
    color: #7A1228 !important;
    line-height: 42px !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper ul li ul li a:hover {
    background: #fdeef1 !important;
    color: #C41E3A !important;
}

.pkp_navigation_primary_row .pkp_navigation_primary_wrapper .pkp_search.is_open input[type=text] {
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
}

/* ---------- 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: #5C0E1E;
    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 #f6d9dd !important;
    border-left: 4px solid #A61830 !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: #f0c4cb !important;
    box-shadow: 0 10px 28px rgba(142, 18, 41, .12) !important;
}

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

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

.obj_article_summary .meta {
    color: #8a6a70;
}

/* ---------- Buttons ---------- */
.cmp_button_wire,
.obj_galley_link {
    display: inline-block;
    background: #C41E3A;
    border: 1px solid #C41E3A;
    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: #8E1229;
    border-color: #8E1229;
    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 #f6d9dd;
    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 #f6d9dd;
    border-radius: 10px;
    overflow: hidden;
}

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

#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: #7A1228;
    font-weight: 600;
    transition: all .2s ease;
}

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

#customblock-Sidebar_menu.pkp_block ul li a:hover {
    background: #fdeef1 !important;
    color: #C41E3A !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, #C41E3A, #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, #8E1229, #C41E3A);
    transform: translateY(-1px);
}

/* ---------- DOI / Statistics ---------- */
.obj_article_summary .item.doi .label {
    background: none !important;
    width: auto !important;
    height: auto !important;
    color: #C41E3A !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: #fbe6ea;
    border-radius: 5px;
    font-size: .72rem;
}

.obj_article_summary .item.stats .abstract,
.obj_article_summary .item.stats .galley {
    position: relative;
    color: #8a6a70;
}

.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: #A61830;
}

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

/* ---------- 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, #C41E3A, #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: #fffafb;
    border: 1px solid #fbe6e8;
    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: #A61830 !important;
    box-shadow: 0 0 0 3px rgba(196,30,58,.10) !important;
    outline: none;
}

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

table thead th {
    background: #fdeef1;
    color: #5C0E1E;
    font-weight: 700;
}

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

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

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

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

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

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

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

.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 {
        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;
    }
}
