/* ============================================
   CSS EQUALS — OJS Custom Stylesheet
   Versi: 2.0 (Cleaned & Rewritten)
   ============================================ */

/* ============================================
   1. VARIABEL WARNA & FONT
   ============================================ */
:root {
    --color-primary:     #3a7fb0;   /* Biru utama */
    --color-accent:      #FAAB00;   /* Kuning/emas */
    --color-accent-dark: #d98c00;   /* Kuning gelap (hover) */
    --color-green:       #23b832;   /* Hijau (hover tombol) */
    --color-link:        #135f89;   /* Warna link konten */
    --color-link-dark:   #00526b;   /* Warna link judul artikel */
    --color-text:        #23b832;   /* Teks utama */
    --color-white:       #ffffff;
    --color-border:      #dddddd;

    --font-main: Aptos, "Segoe UI", Arial, sans-serif;

    --radius-sm:  4px;
    --radius-md:  10px;
    --radius-lg:  14px;
    --shadow-sm:  0 4px 10px rgba(0, 0, 0, 0.15);
    --shadow-md:  0 6px 16px rgba(0, 0, 0, 0.2);
    --shadow-page: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* ============================================
   2. RESET & BODY
   ============================================ */
html,
body {
    font-family: var(--font-main) !important;
    margin: 0;
    background-image: url(https://thumbs.dreamstime.com/b/science-technology-engineering-math-seamless-pattern-vector-made-stem-blue-linear-icons-white-background-133034355.jpg);
    background-repeat: repeat;
    background-size: 640px;
    background-position: center;
    background-attachment: fixed;
}

/* ============================================
   3. CONTAINER HALAMAN
   ============================================ */
.pkp_structure_page {
    max-width: 1200px;
    margin: 20px auto;
    background: var(--color-white);
    box-shadow: var(--shadow-page);
    border-radius: var(--radius-lg);
}

/* ============================================
   4. HEADER & LOGO
   ============================================ */
.pkp_structure_head,
.pkp_head_wrapper {
    padding: 2px 0 0 0 !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pkp_site_name {
    margin: 0 !important;
    width: 100%;
}

.pkp_site_name img,
.pkp_site_name .is_img img {
    width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    max-width: 100% !important;
    display: block;
}

/* ============================================
   5. NAVIGASI / NAVBAR
   ============================================ */

/* Wrapper & bar utama */
.pkp_navigation_primary_row,
.pkp_navigation_primary_row ul.pkp_navigation_primary {
    background: inherit;
    font-weight: normal;
    border-bottom: 2px solid var(--color-primary);
    margin-top: 0 !important;
}

/* Link menu */
.pkp_navigation_primary_row a {
    color: #000000 !important;
    padding: 0 10px !important;
    line-height: 30px !important;
}

/* Hover menu */
.pkp_navigation_primary_row a:hover {
    background: #ffefb5;
    border-radius: var(--radius-sm);
    color: var(--color-text) !important;
}

/* Dropdown — background */
.pkp_navigation_primary_row ul ul {
    background: #ffefb5 !important;
    border-radius: var(--radius-sm);
}

/* Dropdown — link */
.pkp_navigation_primary_row ul ul a {
    color: #000000 !important;
}

/* Dropdown — hover */
.pkp_navigation_primary_row ul ul a:hover {
    background: #f39c12 !important;
    color: #000000 !important;
}

/* ============================================
   6. BREADCRUMB
   ============================================ */
.pkp_breadcrumbs {
    background: transparent !important;
    border: none !important;
}

.pkp_breadcrumbs a {
    color: var(--color-accent);
}

/* ============================================
   7. AREA KONTEN UTAMA
   ============================================ */
.pkp_structure_content {
    background: var(--color-white) !important;
}

.pkp_structure_main {
    padding: 20px;
}

/* Judul halaman */
.pkp_structure_main h1 {
    font-weight: 600;
    font-size: 20px;
}

/* Link umum */
.pkp_structure_main a {
    color: var(--color-link);
}

/* Hover link — DIPERBAIKI: syntax rgba yang salah */
.pkp_structure_main a:hover {
    color: rgba(230, 180, 2, 0.85) !important;
}

/* ============================================
   8. DAFTAR ARTIKEL
   ============================================ */
.obj_article_summary {
    padding: 4px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--color-border) !important;
    font-size: 14px;
}

.obj_article_summary:hover {
    background: transparent !important;
}

/* Judul artikel */
.obj_article_summary .title a {
    color: var(--color-link-dark) !important;
    font-weight: 600;
}

.obj_article_summary .title a:hover {
    color: var(--color-accent-dark);
}

/* ============================================
   9. TOMBOL UNDUH (PDF / GALLEY)
   ============================================ */
.obj_galley_link {
    font-weight: 700;
    text-transform: capitalize !important;
    background: #FFC344 !important;
    color: #000000 !important;
    border: none !important;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.obj_galley_link:hover {
    background: var(--color-green) !important;
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   10. FOOTER
   ============================================ */
.pkp_structure_footer_wrapper {
    background: var(--color-accent) !important;
    border-bottom: 20px solid var(--color-accent);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.pkp_footer_content {
    width: 100%;
    padding: 10px 0;
}

.pkp_footer_content img {
    border: 0;
}

/* Sembunyikan branding OJS bawaan */
.pkp_brand_footer {
    display: none;
}

/* ============================================
   11. HOMEPAGE
   ============================================ */
.homepage_image {
    display: inline-block;
    width: 28%;
    float: right;
}

.homepage_image img {
    margin: 0;
    box-shadow: 4px 2px 5px gray;
    width: 300px;
}

.homepage_about {
    display: inline-block;
    width: 70%;
}

.homepage_about p {
    text-align: justify;
}

/* ============================================
   12. SIDEBAR
   ============================================ */
.sidebar {
    font-family: var(--font-main);
}

/* Card / box */
.box {
    background: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
}

.box:hover {
    transform: translateY(-2px);
}

/* Header card */
.box-header {
    padding: 10px;
    background: var(--color-accent);
    color: #000000;
    text-align: center;
    font-weight: normal;
    font-size: 14px;
}

/* Daftar menu sidebar */
.menu {
    list-style: none;
    margin: 0;
    padding: 5px 0;
}

.menu li {
    border-bottom: 1px solid #eeeeee;
}

.menu li:last-child {
    border-bottom: none;
}

.menu li a {
    display: block;
    padding: 1px 14px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, padding-left 0.2s;
}

.menu li a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    padding-left: 16px;
}

/* Utilitas */
.center {
    text-align: center;
    padding: 15px;
}

.img-full {
    width: 100%;
    max-width: 270px;
}

/* Grid logo/tools di sidebar */
.tools {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 10px 10px 18px 10px;
}

.tools img {
    width: 100%;
    max-width: 110px;
    margin: 0 auto;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tools img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   13. RESPONSIVE
   ============================================ */

/* Layar ≤ 600px */
@media (max-width: 600px) {
    .homepage_about {
        width: 100%;
    }
}

/* Layar ≤ 360px */
@media (max-width: 360px) {
    .homepage_image {
        width: 90%;
        margin: 0;
    }
}