/* ---------- COLOR SYSTEM ---------- */
:root {
    --jatl-green: #075c3b;
    --jatl-green-dark: #03452c;
    --jatl-green-light: #eaf6ef;
    --jatl-yellow: #d9e600;
    --jatl-yellow-dark: #b8c900;
    --jatl-text: #26352e;
    --jatl-muted: #6d7772;
    --jatl-border: #e3e9e5;
    --jatl-white: #ffffff;
    --jatl-bg: #f5f8f6;
    --jatl-shadow: 0 8px 25px rgba(0, 70, 40, .08);
}


/* =========================================================
   1. GLOBAL PAGE
   ========================================================= */

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--jatl-bg) !important;
    color: var(--jatl-text);
}

.pkp_structure_page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* =========================================================
   2. HEADER FULL WIDTH
   ========================================================= */

.pkp_head_wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pkp_site_name {
    width: 100vw !important;
    max-width: none !important;
    height: 270px !important;

    margin: 0 !important;
    padding: 0 !important;

    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    overflow: hidden !important;
    background: #ffffff !important;
}

.pkp_site_name > a {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

.pkp_site_name img {
    display: block !important;

    width: 100vw !important;
    max-width: none !important;

    height: 270px !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover !important;
    object-position: center center !important;
}

/* =========================================================
   10. SIDEBAR
   ========================================================= */

.pkp_structure_sidebar {
    padding-top: 0 !important;
}

.pkp_block {
    background: #ffffff !important;

    border-radius: 16px !important;

    border: 1px solid var(--jatl-border) !important;

    margin-bottom: 24px !important;

    padding: 0 !important;

    overflow: hidden !important;

    box-shadow: var(--jatl-shadow);
}

.pkp_block .title {
    margin: 0 !important;

    padding: 17px 20px !important;

    background: var(--jatl-green) !important;

    color: #ffffff !important;

    font-size: 16px !important;

    font-weight: 800 !important;

    border-bottom: 4px solid var(--jatl-yellow) !important;
}

.pkp_block .content {
    padding: 20px !important;

    color: #4c5953 !important;

    line-height: 1.7 !important;
}


/* Sidebar links */

.pkp_block a {
    color: var(--jatl-green) !important;

    font-weight: 600;

    text-decoration: none !important;
}

.pkp_block a:hover {
    color: var(--jatl-yellow-dark) !important;
}
.pkp_navigation_primary_wrapper {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    background: var(--jatl-green) !important;

    border: none !important;
    box-shadow: 0 3px 12px rgba(0,0,0,.10);
}

/* =========================================
   FOOTER MODERN JURNAL AGROEKOTEKNOLOGI
   OJS 3
   ========================================= */

/* Footer custom full kiri-kanan */
.pkp_structure_footer_wrapper {
    background: #087443 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.pkp_structure_footer {
    background: #087443 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Isi footer */
.journal-footer {
    width: 100%;
    background: #087443;
    color: #ffffff;
    padding: 45px 6% 25px;
    box-sizing: border-box;
}

.journal-footer * {
    box-sizing: border-box;
}

.journal-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 45px;
}

/* Judul footer */
.journal-footer h3 {
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.5;
}

/* Teks */
.journal-footer p {
    color: rgba(255,255,255,0.88) !important;
    font-size: 14px;
    line-height: 1.9;
    margin: 0 0 10px;
}

/* Link */
.journal-footer a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.journal-footer a:hover {
    color: #f5d547 !important;
    padding-left: 4px;
}

/* Garis pemisah */
.journal-footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin: 35px 0 20px;
}

/* Bagian bawah footer */
.journal-footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.journal-footer-bottom p {
    margin: 0;
    font-size: 13px;
}

/* Hilangkan footer bawaan OJS paling bawah */
.pkp_brand_footer {
    display: none !important;
}

.pkp_footer_content {
    width: 100% !important;
}

/* Full width wrapper halaman */
.pkp_structure_page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.pkp_structure_content {
    width: 100%;
}

/* Responsive HP */
@media (max-width: 768px) {

    .journal-footer {
        padding: 35px 25px 20px;
    }

    .journal-footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .journal-footer h3 {
        font-size: 18px;
    }

    .journal-footer-bottom {
        display: block;
    }

    .journal-footer-bottom p {
        margin-bottom: 8px;
    }
}
/* =========================================================
   MODERN ABOUT THE JOURNAL - JATL
   Humid Tropical Agroecotechnology Journal
   ========================================================= */

.pkp_page_index .about_journal,
.pkp_page_about .about_journal {
    max-width: 1200px;
    margin: 35px auto;
    padding: 0 20px;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    color: #333;
}

/* Judul utama */
.about_journal h2 {
    position: relative;
    margin: 0 0 25px;
    padding-bottom: 15px;
    color: #176b45;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.about_journal h2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 65px;
    height: 4px;
    border-radius: 10px;
    background: #e5b72c;
}

/* Intro card */
.about-intro {
    background: linear-gradient(135deg, #176b45, #228b5b);
    color: #fff;
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.about-intro h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
}

.about-intro p {
    margin: 0;
    color: rgba(255,255,255,.95);
    font-size: 15px;
    line-height: 1.8;
}

/* Grid informasi */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Card */
.about-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8eee9;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 22px rgba(0,0,0,.06);
    transition: all .3s ease;
    overflow: hidden;
}

.about-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #176b45;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.10);
}

.about-card h3 {
    margin: 0 0 14px;
    color: #176b45;
    font-size: 19px;
    font-weight: 700;
}

.about-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.8;
    color: #555;
}

/* List */
.about-card ul {
    margin: 0;
    padding-left: 20px;
}

.about-card li {
    margin-bottom: 8px;
    color: #555;
    font-size: 14.5px;
    line-height: 1.7;
}

.about-card li::marker {
    color: #e5b72c;
}

/* Card full width */
.about-card.full {
    grid-column: 1 / -1;
}

/* Highlight information */
.about-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.about-highlight-item {
    background: #f6faf7;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    border: 1px solid #e2eee6;
}

.about-highlight-item strong {
    display: block;
    color: #176b45;
    font-size: 18px;
    margin-bottom: 7px;
}

.about-highlight-item span {
    color: #666;
    font-size: 13px;
}

/* Ikon */
.about-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #eaf5ee;
    color: #176b45;
    font-size: 20px;
}

/* Link OJS */
.about-card a {
    color: #176b45;
    font-weight: 600;
    text-decoration: none;
}

.about-card a:hover {
    color: #d29d12;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {

    .pkp_page_index .about_journal,
    .pkp_page_about .about_journal {
        padding: 0 15px;
        margin: 25px auto;
    }

    .about_journal h2 {
        font-size: 24px;
    }

    .about-intro {
        padding: 22px;
        border-radius: 14px;
    }

    .about-intro h3 {
        font-size: 21px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-card.full {
        grid-column: auto;
    }

    .about-highlight {
        grid-template-columns: 1fr;
    }
}
/* Membuat tulisan menu utama menjadi putih */
.pkp_site_nav_menu a,
.pkp_navigation_primary > li > a {
    color: #ffffff !important;
}

/* Menu About dan submenu */
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li > a:active {
    color: #ffffff !important;
}

/* Tulisan submenu About */
.pkp_navigation_primary .dropdown-menu a {
    color: #ffffff !important;
}

/* Saat mouse diarahkan ke submenu */
.pkp_navigation_primary .dropdown-menu a:hover,
.pkp_navigation_primary .dropdown-menu a:focus {
    color: #ffffff !important;
}
/* =========================================================
   FIX TOTAL MOBILE - JATL OJS 3
   Menu 1 baris + header tidak menumpuk dengan isi
   ========================================================= */

@media screen and (max-width: 768px) {

    /* =====================================================
       1. HEADER HP - TIDAK TERLALU TINGGI
       ===================================================== */

    .pkp_site_name {
        width: 100vw !important;
        height: 120px !important;
        max-height: 120px !important;

        margin: 0 !important;
        padding: 0 !important;

        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;

        overflow: hidden !important;
    }

    .pkp_site_name > a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pkp_site_name img {
        display: block !important;

        width: 100% !important;
        height: 120px !important;
        max-height: 120px !important;

        margin: 0 !important;
        padding: 0 !important;

        object-fit: cover !important;
        object-position: center center !important;
    }


    /* =====================================================
       2. NAVIGASI - WAJIB SATU BARIS
       ===================================================== */

    .pkp_navigation_primary_wrapper {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        white-space: nowrap !important;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }

    .pkp_navigation_primary_wrapper::-webkit-scrollbar {
        display: none !important;
    }


    /* Container menu */
    .pkp_navigation_primary {
        display: flex !important;

        flex-direction: row !important;
        flex-wrap: nowrap !important;

        width: max-content !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        white-space: nowrap !important;
    }


    /* Semua item menu */
    .pkp_navigation_primary > li {
        display: block !important;

        float: none !important;

        flex: 0 0 auto !important;

        width: auto !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        white-space: nowrap !important;
    }


    /* Link menu */
    .pkp_navigation_primary > li > a {
        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        width: auto !important;
        min-width: max-content !important;

        height: 46px !important;
        min-height: 46px !important;

        padding: 0 12px !important;
        margin: 0 !important;

        font-size: 13px !important;
        line-height: 1 !important;

        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;

        text-align: center !important;
    }


    /* Tulisan di dalam link */
    .pkp_navigation_primary > li > a *,
    .pkp_navigation_primary > li > a span {
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;

        display: inline !important;
    }


    /* =====================================================
       3. PAKSA SEMUA TEKS MENU TIDAK WRAP
       ===================================================== */

    .pkp_navigation_primary li,
    .pkp_navigation_primary li a,
    .pkp_navigation_primary li span {
        white-space: nowrap !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }


    /* =====================================================
       4. KONTEN TIDAK MENABRAK HEADER
       ===================================================== */

    .pkp_structure_content {
        width: 100% !important;
        max-width: 100% !important;

        margin-top: 0 !important;
        padding-top: 0 !important;

        clear: both !important;
    }

    .pkp_structure_main {
        width: 100% !important;
        max-width: 100% !important;

        margin-top: 0 !important;
        padding-top: 0 !important;
    }


    /* =====================================================
       5. ABOUT JOURNAL TIDAK MENUMPUK
       ===================================================== */

    .pkp_page_index .about_journal,
    .pkp_page_about .about_journal {

        width: 100% !important;
        max-width: 100% !important;

        margin: 20px auto !important;

        padding: 0 15px !important;

        box-sizing: border-box !important;
    }


    /* =====================================================
       6. FOOTER TETAP RESPONSIVE
       ===================================================== */

    .journal-footer {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* =========================================================
   HP KECIL - 480PX
   ========================================================= */

@media screen and (max-width: 480px) {

    /* Header lebih pendek */
    .pkp_site_name {
        height: 100px !important;
        max-height: 100px !important;
    }

    .pkp_site_name img {
        height: 100px !important;
        max-height: 100px !important;
    }


    /* Menu tetap satu baris */
    .pkp_navigation_primary > li > a {
        height: 42px !important;
        min-height: 42px !important;

        padding: 0 10px !important;

        font-size: 12px !important;

        white-space: nowrap !important;
    }


    .pkp_navigation_primary {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
    }
}


/* =========================================================
   HP SANGAT KECIL - 360PX
   ========================================================= */

@media screen and (max-width: 360px) {

    .pkp_site_name {
        height: 90px !important;
        max-height: 90px !important;
    }

    .pkp_site_name img {
        height: 90px !important;
        max-height: 90px !important;
    }

    .pkp_navigation_primary > li > a {
        padding-left: 8px !important;
        padding-right: 8px !important;

        font-size: 11px !important;

        white-space: nowrap !important;
    }
}
