﻿/* =====================================
   HEADER BIRU SERAGAM (SAMAKAN FOOTER)
===================================== */

.pkp_structure_head {
    background: #1f3b57; /* samakan dengan footer */
    border-bottom: 3px solid #162c40;
}

/* Wrapper */
.pkp_head_wrapper {
    padding: 10px 0;
}

/* FLEX LOGO + JUDUL */
.pkp_site_name_wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LOGO */
.pkp_site_name .is_img img {
    max-height: 60px;
    width: auto;
}

/* =====================================
   JUDUL MANUAL (PENTING)
===================================== */

/* Sembunyikan judul bawaan OJS */
.pkp_site_name .is_text {
    display: none !important;
}

/* Judul manual */
.pkp_site_name_wrapper::after {
    content: "Sahata: Jurnal Pengabdian kepada Masyarakat";
    color: #ffffff;
    font-weight: 700;
    font-size: clamp(20px, 2.8vw, 30px); /* DIPERBESAR */
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* =====================================
   MENU NAVIGASI
===================================== */

.pkp_navigation_primary_wrapper {
    background: #162c40;
}

.pkp_navigation_primary > li > a {
    color: #ffffff;
    font-size: 14px;
    padding: 10px 14px;
}

.pkp_navigation_primary > li > a:hover {
    background: #2c5d8a;
    border-radius: 4px;
}

/* =====================================
   USER MENU
===================================== */

.pkp_navigation_user_wrapper {
    background: #1f3b57;
}

.pkp_navigation_user > li > a {
    color: #ffffff;
    font-size: 13px;
}

/* =====================================
   STABIL ZOOM
===================================== */

.pkp_structure_page {
    max-width: 1200px;
    margin: auto;
}

body {
    overflow-x: hidden;
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 768px) {

    .pkp_site_name_wrapper::after {
        font-size: 14px;
        white-space: normal; /* boleh turun di HP */
    }

    .pkp_site_name .is_img img {
        max-height: 45px;
    }
}

/* =====================================
   HILANGKAN LOGO OJS / PKP
===================================== */

.pkp_brand_footer {
    display: none !important;
}

/* =====================================
   FOOTER UTAMA (LEBIH ELEGAN)
===================================== */

.pkp_structure_footer_wrapper {
    background: #1f3b57;
    padding: 20px 0;
}

/* Container footer */
.pkp_structure_footer {
    max-width: 1200px;
    margin: auto;
    color: #ffffff;
    font-size: 13px;
}

/* Judul kolom */
.pkp_structure_footer h3 {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Link footer */
.pkp_structure_footer a {
    color: #cfe2ff;
    text-decoration: none;
}

.pkp_structure_footer a:hover {
    text-decoration: underline;
}

/* Copyright bawah */
.pkp_structure_footer .copyright {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.8;
}

/* =====================================
   SIDEBAR SAHATA (CLEAN + AKADEMIK)
===================================== */

/* Container */
.pkp_structure_sidebar {
    padding-left: 20px;
}

/* BOX SIDEBAR */
.pkp_block {
    background: #ffffff;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;

    border: 1px solid #e6eaf0;
    border-left: 4px solid #1f3b57; /* aksen biru */

    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

/* Hover ringan (tidak berlebihan) */
.pkp_block:hover {
    transform: translateY(-2px);
}

/* JUDUL */
.pkp_block .title {
    font-size: 14px;
    font-weight: 700;
    color: #1f3b57;
    margin-bottom: 8px;

    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 6px;
}

/* LIST */
.pkp_block ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.pkp_block ul li {
    padding: 5px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.pkp_block ul li:last-child {
    border-bottom: none;
}

/* TEXT */
.pkp_block p,
.pkp_block li {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
}

/* LINK */
.pkp_block a {
    color: #333;
    text-decoration: none;
    display: block;
    transition: 0.2s;
}

/* Hover link (halus & profesional) */
.pkp_block a:hover {
    color: #1f3b57;
    padding-left: 4px;
}

/* IMAGE (indexing dll) */
.pkp_block img {
    max-width: 90%;
    display: block;
    margin: 8px auto;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {
    .pkp_structure_sidebar {
        padding-left: 0;
    }
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {
    .pkp_structure_sidebar {
        padding-left: 0;
    }
}

/* =====================================
   LOCK STRUCTURE (STABIL SEMUA DEVICE)
===================================== */

/* Pastikan semua elemen tidak melebar liar */
* {
    box-sizing: border-box;
}

/* Body aman */
body {
    overflow-x: hidden;
}

/* Wrapper utama */
.pkp_structure_page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* KONTEN + SIDEBAR GRID */
.pkp_structure_content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* KONTEN UTAMA */
.pkp_structure_main {
    flex: 3;
    min-width: 0; /* penting agar tidak overflow */
}

/* SIDEBAR */
.pkp_structure_sidebar {
    flex: 1;
    min-width: 0;
}

/* =====================================
   MOBILE LOCK (HP)
===================================== */

@media (max-width: 768px) {

    /* Layout jadi vertikal */
    .pkp_structure_content {
        flex-direction: column;
    }

    /* Semua full width */
    .pkp_structure_main,
    .pkp_structure_sidebar {
        width: 100%;
    }

    /* Padding lebih rapat */
    .pkp_structure_page {
        margin: 10px;
        padding: 0 10px;
    }

    /* Judul header tidak pecah */
    .pkp_site_name_wrapper::after {
        white-space: normal;
        line-height: 1.3;
    }
}

