/* =========================================
   GLOBAL
========================================= */
body {
    font-size: 0;
    font-family: "Segoe UI", Roboto, "Inter", sans-serif;
    background: #f0f2f5;
    line-height: 1.7;
}

.pkp_structure_page {
    font-size: 16px;
}

/* =========================================
   TOP INFO BAR
========================================= */
.pkp_structure_head::before {
    content: "Journal of Civil Engineering & Infrastructure Technology | e-ISSN: 2723-5378";
    display: block;
    background: #0d2b4a;
    color: #f5e6c8;
    text-align: center;
    font-size: 13px;
    padding: 6px 10px;
    letter-spacing: 0.5px;
}

/* =========================================
   HEADER — TIDAK STICKY/FIXED
========================================= */
.pkp_structure_head {
    position: relative !important; /* ← kunci utama: header mengikuti scroll normal */
    top: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: none !important;
}

/* Hapus class scrolled karena tidak diperlukan lagi */
.pkp_structure_head.scrolled {
    box-shadow: none !important;
}

.pkp_head_wrapper {
    background: #1a4a7a !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

.pkp_site_name_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px;
}

.pkp_site_name {
    font-weight: 700;
    font-size: 22px;
    color: #ffffff;
}

.pkp_site_logo img,
.pkp_site_name img {
    max-height: 100px;
    width: auto;
}

/* =========================================
   NAVIGATION BAR
========================================= */
.pkp_navigation_primary_row {
    background-color: #2974a8 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.pkp_navigation_primary_wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pkp_navigation_search_wrapper {
    margin-left: auto;
}

.pkp_navigation_primary {
    display: flex !important;
    align-items: center;
}

.pkp_navigation_primary > li > a {
    color: #e8f4fc !important;
    font-weight: 600 !important;
    padding: 14px 20px !important;
    border-radius: 4px;
    position: relative;
    transition: background-color 0.3s ease;
}

.pkp_navigation_primary > li > a::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: 8px;
    width: 0%;
    height: 2px;
    background: #c9a945;
    transition: 0.3s ease;
}

.pkp_navigation_primary > li > a:hover::after {
    width: 60%;
}

.pkp_navigation_primary > li > a:hover {
    background-color: #1a4a7a !important;
    color: #ffffff !important;
}

.pkp_navigation_primary > li.current > a {
    background-color: #0d2b4a !important;
    color: #c9a945 !important;
}

.pkp_navigation_search_wrapper a {
    color: #e8f4fc !important;
}

/* =========================================
   CONTENT AREA
========================================= */
.pkp_structure_content {
    background: #ffffff !important;
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-top: 4px solid #2974a8;
}

/* =========================================
   ARTICLE CARD
========================================= */
.pkp_list_articles > li {
    background: #ffffff !important;
    padding: 25px !important;
    margin-bottom: 22px !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #dce8f0 !important;
    border-left: 5px solid #2974a8 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pkp_list_articles > li:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(26,74,122,0.12);
}

.pkp_list_articles > li h3 a {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #1a4a7a !important;
    text-decoration: none;
}

.pkp_list_articles > li h3 a:hover {
    color: #2974a8 !important;
    text-decoration: underline;
}

.pkp_list_articles .meta {
    font-size: 14px;
    color: #5a6a7e;
}

/* PDF Button */
.obj_galley_link {
    background: #2974a8 !important;
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.obj_galley_link:hover {
    background: #1a4a7a !important;
}

/* =========================================
   SIDEBAR
========================================= */
.pkp_sidebar .pkp_block {
    border-radius: 10px;
    border-top: 3px solid #2974a8;
    margin-bottom: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.pkp_sidebar .pkp_block h2,
.pkp_sidebar .pkp_block h3 {
    color: #1a4a7a;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #dce8f0;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* =========================================
   FOOTER
========================================= */
.pkp_structure_footer_wrapper {
    background: #0d2b4a !important;
    color: #ffffff !important;
    margin-top: 60px;
    padding: 40px 0;
}

.pkp_footer_content p {
    color: #c9a945 !important;
    font-size: 14px;
}

.pkp_footer_content a {
    color: #e8d68a !important;
    font-weight: 600;
    text-decoration: none;
}

.pkp_footer_content a:hover {
    color: #c9a945 !important;
    text-decoration: underline;
}

.pkp_brand_footer img {
    opacity: 0.75;
    transition: opacity 0.3s;
}

.pkp_brand_footer img:hover {
    opacity: 1;
}

.pkp_structure_footer_wrapper {
    background: #0d2b4a !important;
    color: #ffffff !important;
    margin-top: 60px;
    padding: 40px 0;
}

.pkp_footer_content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .pkp_structure_content {
        margin: 20px;
        padding: 15px;
    }

    .pkp_site_logo img {
        max-height: 75px !important;
    }
}

@media (max-width: 768px) {
    .pkp_structure_head::before {
        font-size: 11px;
        padding: 4px;
    }

    .pkp_site_name {
        font-size: 18px;
    }

    .pkp_navigation_primary > li > a {
        padding: 10px 12px !important;
        font-size: 14px;
    }
}


/* Sleector Img */
div[style*="text-align: center"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 16px 0 !important;
    padding: 16px 20px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #dce8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    text-align: center !important;
}

/* Semua img di dalam div tersebut */
div[style*="text-align: center"] img {
    height: 36px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: grayscale(20%) !important;
    opacity: 0.85 !important;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.2s ease !important;
    vertical-align: middle !important;
}

div[style*="text-align: center"] img:hover {
    opacity: 1 !important;
    filter: grayscale(0%) !important;
    transform: scale(1.08) !important;
}

/* Responsive */
@media (max-width: 768px) {
    div[style*="text-align: center"] {
        gap: 14px !important;
        padding: 12px !important;
    }

    div[style*="text-align: center"] img {
        height: 26px !important;
    }
}

/* =========================================
   DROPDOWN MENU — BLUE & GOLD THEME
========================================= */
.pkp_navigation_primary ul {
    background: #0d2b4a !important;
    border: 1px solid #1a4a7a !important;
    border-top: 3px solid #c9a945 !important;
    box-shadow: 0 6px 20px rgba(13,43,74,0.25) !important;
}

.pkp_navigation_primary ul li a {
    color: #e8f4fc !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.pkp_navigation_primary ul li a:hover {
    background: #1a4a7a !important;
    color: #c9a945 !important;
    padding-left: 24px !important;
}

.pkp_navigation_primary > li.has_submenu > a::after {
    content: " ▼" !important;
    font-size: 8px;
    color: #c9a945;
    margin-left: 6px;
}

/* =========================================
   ARTICLE LIST — JACEIT PROFESSIONAL STYLE
========================================= */

/* Section wrapper */
.section {
    margin-bottom: 40px;
}

.section > h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0d2b4a;
    padding: 10px 18px;
    background: linear-gradient(90deg, #f0f6fb, #ffffff);
    border-left: 5px solid #1a4a7a;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

/* Article list reset */
.cmp_article_list.articles {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Each article card */
.cmp_article_list.articles > li {
    background: #ffffff;
    border: 1px solid #dce8f0;
    border-left: 5px solid #2974a8;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
    overflow: hidden;
}

.cmp_article_list.articles > li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26,74,122,0.13);
    border-left-color: #0d2b4a;
}

/* Article summary inner */
.obj_article_summary {
    padding: 20px 24px;
}

/* Numbering badge — otomatis via CSS counter */
.cmp_article_list.articles {
    counter-reset: article-counter;
}

.cmp_article_list.articles > li {
    counter-increment: article-counter;
    position: relative;
}

.cmp_article_list.articles > li::before {
    content: counter(article-counter);
    position: absolute;
    top: 18px;
    right: 20px;
    background: #f0f6fb;
    color: #1a4a7a;
    font-size: 12px;
    font-weight: 700;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 26px;
    text-align: center;
}

/* Article title */
.obj_article_summary h4.title {
    margin: 0 0 10px;
    padding-right: 36px; /* ruang untuk badge nomor */
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.5;
}

.obj_article_summary h4.title a {
    color: #0d2b4a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.obj_article_summary h4.title a:hover {
    color: #2974a8;
    text-decoration: underline;
}

/* Meta: authors + pages */
.obj_article_summary .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-bottom: 14px;
}

.obj_article_summary .meta .authors {
    font-size: 13.5px;
    color: #4a6a7e;
    font-style: italic;
    flex: 1;
    min-width: 200px;
}

.obj_article_summary .meta .pages {
    font-size: 12.5px;
    color: #ffffff;
    background: #2974a8;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.obj_article_summary .meta .pages::before {
    content: "pp. ";
    font-weight: 400;
    opacity: 0.85;
}

/* Galley / PDF links */
.galleys_links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.obj_galley_link {
    display: inline-block;
    background: #1a4a7a !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.15s ease !important;
}

.obj_galley_link:hover {
    background: #0d2b4a !important;
    transform: scale(1.03);
}

.obj_galley_link.pdf::before {
    content: "📄 ";
    font-size: 12px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 600px) {
    .obj_article_summary {
        padding: 16px;
    }

    .obj_article_summary h4.title {
        font-size: 14px;
    }

    .obj_article_summary .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cmp_article_list.articles > li::before {
        top: 14px;
        right: 14px;
    }
}