/* === Global Font Size Override (OJS default 14px terlalu kecil) === */
html, body {
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* Konten utama */
.pkp_structure_main {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

/* Judul artikel di daftar */
.obj_article_summary > .title {
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
}
.obj_article_summary > .title a {
    font-size: inherit !important;
}

/* Subtitle dan meta artikel */
.obj_article_summary .subtitle {
    font-size: 1.05rem !important;
}
.obj_article_summary .meta,
.obj_article_summary .authors {
    font-size: 1rem !important;
}

/* Halaman detail artikel */
.obj_article_details .title {
    font-size: 1.6rem !important;
    line-height: 1.4 !important;
}
.obj_article_details .subtitle {
    font-size: 1.15rem !important;
}
.obj_article_details .authors {
    font-size: 1.05rem !important;
}
.obj_article_details .abstract .value,
.obj_article_details .item .value {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
}
.obj_article_details .item .label {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* Galley links (PDF, HTML) */
.obj_galley_link {
    font-size: 1rem !important;
}

/* Issue TOC */
.obj_issue_toc .title,
.obj_issue_toc h2 {
    font-size: 1.35rem !important;
}
.obj_issue_toc .description {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

/* Section headings di TOC */
.obj_issue_toc .sections .section .title {
    font-size: 1.2rem !important;
}

/* Halaman About, Info, dsb */
.page h1, .page_index_journal h1 {
    font-size: 1.7rem !important;
}
.page h2 {
    font-size: 1.4rem !important;
}
.page h3 {
    font-size: 1.2rem !important;
}
.page p, .page li, .page td, .page dd {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

/* Announcements */
.obj_announcements .title {
    font-size: 1.2rem !important;
}
.obj_announcements .description,
.obj_announcement_full .description {
    font-size: 1.05rem !important;
    line-height: 1.75 !important;
}

/* Breadcrumb / navigation trail */
.pkp_breadcrumb {
    font-size: 0.95rem !important;
}

/* Search */
.pkp_search input[type="text"],
.pkp_search .search_input {
    font-size: 1.05rem !important;
}

/* Sidebar content text */
.pkp_structure_sidebar .pkp_block .content {
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

/* === Sidebar Block Card Style === */
.pkp_structure_sidebar .pkp_block {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 14px;
    border: 1px solid #edf0f5;
}

/* === Block Title via blockTitle span === */
.pkp_structure_sidebar .pkp_block .content span.blockTitle {
    display: block;
    color: #1C3B68 !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

/* === Aksen oranye di bawah judul === */
.pkp_structure_sidebar .pkp_block .content span.blockTitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 3px;
    background-color: #f97316;
    border-radius: 2px;
}

/* === Block Title via h2.title (bawaan OJS seperti Browse, Language) === */
.pkp_structure_sidebar .pkp_block h2.title:not(.pkp_screen_reader) {
    display: block !important;
    color: #1C3B68 !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}
.pkp_structure_sidebar .pkp_block h2.title:not(.pkp_screen_reader)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 3px;
    background-color: #f97316;
    border-radius: 2px;
}

/* === Quick Menu Tombol Biru === */
.pkp_structure_sidebar #customblock-menu .content a {
    display: block;
    background-color: #1C3B68;
    color: #ffffff !important;
    padding: 10px 15px;
    margin-bottom: 4px;
    border-radius: 8px;
    text-decoration: none !important;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease, transform 0.15s ease;
    text-align: center;
}
.pkp_structure_sidebar #customblock-menu .content a:hover,
.pkp_structure_sidebar #customblock-menu .content a:focus {
    background-color: #f97316 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* === Gambar di sidebar === */
.pkp_structure_sidebar .pkp_block .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    margin: 8px auto;
}
.pkp_structure_sidebar .pkp_block .content a:hover img {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* === Link di sidebar (selain quick menu) === */
.pkp_structure_sidebar .pkp_block .content a {
    color: #1C3B68;
    text-decoration: none;
    transition: color 0.2s;
}
.pkp_structure_sidebar .pkp_block .content a:hover {
    color: #f97316;
}

/* === Header Tampilan Modern === */
.pkp_structure_head {
    background-color: #1C3B68;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Wrapper atas (Register/Login/Language) */
.pkp_navigation_user_wrapper {
    background: transparent !important;
    border-bottom: none !important;
    padding-top: 15px; 
}

/* Menu Register & Login dibuat lebih modern dan agak turun */
.pkp_navigation_user {
    margin-top: 5px;
}
.pkp_navigation_user > li > a {
    color: #ffffff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: rgba(255,255,255,0.1);
    margin-left: 10px;
    transition: all 0.25s ease;
}
.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
    background-color: #f97316 !important;
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.4);
}

/* Wrapper Judul/Logo Jurnal - tidak terlalu tinggi */
.pkp_site_name_wrapper {
    padding-top: 10px !important;
    padding-bottom: 15px !important;
}

/* Teks Judul Jurnal (jika menggunakan teks) */
.pkp_site_name .is_text {
    color: #ffffff !important;
    font-size: 2.1rem;
    font-weight: 800;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

/* Navigasi Utama (Home, Current, dll) */
.pkp_navigation_primary_wrapper {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border-bottom: 1px solid #edf0f5;
}
.pkp_navigation_primary a {
    font-weight: 700;
    color: #1C3B68 !important;
    text-transform: uppercase;
    font-size: 1.05rem;
    padding: 15px 20px !important;
}
.pkp_navigation_primary a:hover {
    color: #f97316 !important;
}

/* === Footer Full Biru Tua & Garis Oranye === */
.pkp_structure_footer_wrapper {
    position: relative;
    border-top: 5px solid #f97316;
    background: linear-gradient(135deg, #1a3560 0%, #0f2140 60%, #1C3B68 100%);
    margin-top: 40px;
    padding-top: 55px;
    padding-bottom: 0;
    color: #ffffff;
}

/* Pastikan pkp_structure_footer punya padding cukup */
.pkp_structure_footer_wrapper .pkp_structure_footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 40px;
}

/* Mengubah warna teks dan link di footer menjadi putih/terang */
.pkp_structure_footer_wrapper a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.pkp_structure_footer_wrapper a:hover {
    color: #f97316 !important;
}
.pkp_structure_footer_wrapper p,
.pkp_structure_footer_wrapper span {
    color: #cbd5e1 !important;
}
.pkp_structure_footer_wrapper .pkp_brand_footer {
    background: transparent !important;
}

/* === Modern Footer Grid === */
.modern-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

/* Kolom 1 - Logo & Info */
.footer-col-brand {
    flex: 1.2;
    min-width: 230px;
}
.footer-polikami-logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
    transition: filter 0.3s ease, transform 0.3s ease;
}
.footer-polikami-logo:hover {
    filter: drop-shadow(0 4px 14px rgba(249,115,22,0.5));
    transform: scale(1.05);
}
.footer-col-brand p {
    margin-top: 18px;
    font-size: 1.05em;
    line-height: 1.8;
    color: #cbd5e1 !important;
}
.footer-col-brand strong {
    color: #ffffff !important;
    font-size: 1.15em;
    display: block;
    margin-bottom: 4px;
}

/* Kolom 2 - Informasi */
.footer-col-content {
    flex: 1;
    min-width: 220px;
}
.footer-col-content h3,
.footer-col-maps h3 {
    color: #ffffff !important;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #f97316;
    padding-bottom: 10px;
    margin-bottom: 18px;
    position: relative;
}
.footer-col-content p {
    font-size: 1.02em;
    color: #cbd5e1 !important;
    line-height: 1.75;
}

/* Daftar info kontak/link */
.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
}
.footer-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.02em;
    color: #cbd5e1;
    margin-bottom: 10px;
    line-height: 1.6;
}
.footer-info-list li span.fi-icon {
    color: #f97316;
    font-size: 1em;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Kolom 3 - Maps */
.footer-col-maps {
    flex: 1.3;
    min-width: 250px;
}
.footer-col-maps iframe {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    width: 100%;
    height: 190px;
    transition: box-shadow 0.3s ease;
}
.footer-col-maps iframe:hover {
    box-shadow: 0 8px 28px rgba(249,115,22,0.3);
}

/* Bar copyright paling bawah */
.footer-bottom-bar {
    margin-top: 45px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.95em;
    color: #94a3b8 !important;
}
.footer-bottom-bar div {
    color: #94a3b8 !important;
}

@media (max-width: 768px) {
    .modern-footer-grid {
        flex-direction: column;
        gap: 30px;
    }
    .footer-col, .footer-col-brand, .footer-col-content, .footer-col-maps {
        min-width: 100%;
    }
}

/* === Modern Article List Styling === */
ul.cmp_article_list.articles {
    list-style: none;
    padding-left: 0;
}

ul.cmp_article_list.articles > li {
    border-bottom: 1px solid #e0e6ed;
    padding-bottom: 24px;
    margin-bottom: 24px;
    transition: background-color 0.2s ease;
    padding: 20px;
    border-radius: 8px;
}

ul.cmp_article_list.articles > li:hover {
    background-color: #f8fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

ul.cmp_article_list.articles > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.obj_article_summary > .title {
    margin-bottom: 8px !important;
}

.obj_article_summary > .title a {
    color: #1e293b;
    transition: color 0.2s ease;
}

.obj_article_summary > .title a:hover {
    color: #2563eb;
}

.obj_article_summary .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.obj_article_summary .authors {
    display: flex;
    align-items: center;
    color: #475569 !important;
    font-weight: 500;
}

.obj_article_summary .authors::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    background-image: url("/public/site/polikami_src.png");
    background-size: contain;
    background-repeat: no-repeat;
}

.obj_article_summary .pages {
    color: #64748b !important;
    font-size: 0.9em;
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 12px;
}

.obj_article_summary .pages::before {
    content: "Pages: ";
    font-weight: 600;
}

/* Modernize Galley Buttons (PDF/HTML) */
.obj_article_summary .galleys_links li a.obj_galley_link {
    background-color: #f1f5f9;
    color: #2563eb;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.obj_article_summary .galleys_links li a.obj_galley_link:hover {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}


/* === Modern Login & Register Forms === */
.page_login, .page_register {
    max-width: 500px;
    margin: 60px auto !important;
    padding: 40px !important;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.page_register {
    max-width: 600px;
}

.page_login h1, .page_register h1 {
    text-align: center;
    color: #1e293b;
    margin-bottom: 30px;
    font-size: 2rem !important;
    font-weight: 700;
}

.page_login .cmp_form fieldset,
.page_register .cmp_form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.page_login .cmp_form .fields,
.page_register .cmp_form .fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page_login .cmp_form .control-group,
.page_register .cmp_form .control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page_login .cmp_form label,
.page_register .cmp_form label {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
}

.page_login .cmp_form input[type="text"],
.page_login .cmp_form input[type="password"],
.page_login .cmp_form input[type="email"],
.page_register .cmp_form input[type="text"],
.page_register .cmp_form input[type="password"],
.page_register .cmp_form input[type="email"],
.page_register .cmp_form select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.page_login .cmp_form input[type="text"]:focus,
.page_login .cmp_form input[type="password"]:focus,
.page_login .cmp_form input[type="email"]:focus,
.page_register .cmp_form input[type="text"]:focus,
.page_register .cmp_form input[type="password"]:focus,
.page_register .cmp_form input[type="email"]:focus,
.page_register .cmp_form select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
    outline: none;
    background-color: #ffffff;
}

.page_login .cmp_form .buttons,
.page_register .cmp_form .buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page_login .cmp_form .submit,
.page_login .cmp_form button[type="submit"],
.page_register .cmp_form .submit,
.page_register .cmp_form button[type="submit"] {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page_login .cmp_form .submit:hover,
.page_login .cmp_form button[type="submit"]:hover,
.page_register .cmp_form .submit:hover,
.page_register .cmp_form button[type="submit"]:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29,78,216,0.2);
}

.page_login .cmp_form a,
.page_register .cmp_form a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    display: inline-block;
    width: 100%;
}

.page_login .cmp_form a:hover,
.page_register .cmp_form a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.page_register .cmp_form .checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.page_register .cmp_form input[type="checkbox"] {
    margin-top: 5px;
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}


/* === Fix Spacing in Quick Menu === */
.pkp_structure_sidebar #customblock-menu .content p,
.pkp_structure_sidebar #customblock-menu .content ul,
.pkp_structure_sidebar #customblock-menu .content li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pkp_structure_sidebar #customblock-menu .content p:not(:last-child),
.pkp_structure_sidebar #customblock-menu .content li:not(:last-child) {
    margin-bottom: 8px !important;
}

/* Ensure the link itself has no extra margins */
.pkp_structure_sidebar #customblock-menu .content a {
    margin-bottom: 0 !important;
}

