/* ==========================================================================
   1. DESAIN HEADER GRADIENT JRTN PREMIUM
   ========================================================================== */

/* Buat background header menjadi gradient premium & jadikan relative untuk ISSN */
.pkp_structure_head {
    background: linear-gradient(90deg, #1e40af 0%, #0ea5e9 100%) !important; /* Gradient Biru JRTN */
    border-bottom: none !important;
    position: relative !important;
}

/* Hilangkan kotak warna navy bawaan OJS agar menu menyatu dengan gradient pada Desktop */
@media (min-width: 769px) {
    .pkp_site_nav_menu,
    .pkp_navigation_primary_row,
    .pkp_navigation_primary_wrapper {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Perbaiki Mobile View: Berikan background yang serasi dengan header pada dropdown menu */
@media (max-width: 768px) {
    .pkp_site_nav_menu,
    .pkp_navigation_primary_row {
        background-color: #1e40af !important; /* Warna biru elegan senada dengan sisi kiri gradient header */
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2) !important;
    }
}

/* ==========================================================================
   2. DESAIN TEXT ISSN (TAKTIK DUAL ANCHOR: DESKTOP & MOBILE)
   ========================================================================== */

/* Pastikan elemen search memiliki anchor relatif untuk Desktop */
.pkp_navigation_search_wrapper {
    position: relative !important;
}

/* --- TAMPILAN DESKTOP (Jangkar pada Search Wrapper) --- */
@media (min-width: 769px) {
    .pkp_structure_head::before {
        content: none !important; /* Matikan jangkar header utama di Desktop */
    }
    
    .pkp_navigation_search_wrapper::before {
        content: "E-ISSN: XXXX-XXXX | P-ISSN: XXXX-XXXX" !important; /* Silakan ubah ISSN di sini */
        position: absolute !important;
        bottom: 75px !important; /* TINGGAL UBAH ANGKA INI jika letaknya kurang tinggi lurus dengan logo */
        right: 0 !important; /* Rata Kanan sempurna, dijamin sejajar presisi dengan icon Search! */
        white-space: nowrap !important;
        display: block !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        z-index: 99999 !important;
    }
}

/* --- TAMPILAN MOBILE (Jangkar pada Header Utama) --- */
@media (max-width: 768px) {
    .pkp_navigation_search_wrapper::before {
        content: none !important; /* Matikan jangkar search di Mobile (karena menu-nya sembunyi di laci) */
    }
    
    .pkp_structure_head::before {
        content: "E-ISSN: XXXX-XXXX \A P-ISSN: XXXX-XXXX" !important; /* \A = Baris baru untuk HP (jangan dihapus) */
        position: absolute !important;
        top: 20px !important; /* Posisi lurus dengan logo di layar HP */
        right: 15px !important; /* Tampil cantik di ruang kosong kanan atas HP */
        display: block !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        color: rgba(255, 255, 255, 0.95) !important;
        letter-spacing: 0.5px !important;
        text-align: right !important;
        white-space: pre-wrap !important; /* Izinkan teks memecah jadi 2 baris bersusun */
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        z-index: 99999 !important;
    }
}


/* ==========================================================================
   3. DESAIN FOOTER JRTN PREMIUM (SLIM, FULL-WIDTH, & NO-CONFLICT)
   ========================================================================== */

/* 1. Paksa kontainer terluar OJS melebar penuh 100% ke ujung layar & berwarna gelap premium */
.pkp_structure_footer {
    background-color: #0f172a !important; 
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 25px 0 10px 0 !important; /* Jarak atas-bawah dipangkas agar super tipis & rapat */
    box-sizing: border-box !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* 2. Tengahkan konten isi di dalamnya dengan lebar aman */
.pkp_footer_content {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 20px !important; /* Jarak aman kiri-kanan */
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 3. Sembunyikan Logo Platform OJS di paling bawah agar jarak bawah rapat bersih */
.pkp_brand_footer {
    display: none !important;
}

/* ==========================================================================
   4. PERBAIKAN RESPONSIVE MOBILE FOOTER (ANTI-GEPENG)
   ========================================================================== */

/* Paksa kolom-kolom footer menumpuk ke bawah (vertikal) di layar HP agar tidak berdesakan */
@media (max-width: 768px) {
    /* 1. Hancurkan tabel utama menjadi tumpukan blok vertikal yang rata tengah */
    .pkp_footer_content table,
    .pkp_footer_content tbody,
    .pkp_footer_content tr,
    .pkp_footer_content td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border: none !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    .pkp_footer_content td {
        margin-bottom: 25px !important;
    }

    /* 2. Sembunyikan sel pembatas tengah (garis abu-abu vertikal) pada tabel utama */
    .pkp_footer_content td[width="1"] {
        display: none !important;
    }

    /* 3. KECUALI TABEL LOGO PEKA (Tabel Dalam): Kembalikan sifatnya agar kembali bersebelahan! */
    .pkp_footer_content table table {
        display: table !important;
        width: auto !important;
        margin: 0 auto 15px auto !important; /* Tengahkan keseluruhan blok Logo Peka di layar */
    }
    .pkp_footer_content table table tbody {
        display: table-row-group !important;
    }
    .pkp_footer_content table table tr {
        display: table-row !important;
    }
    .pkp_footer_content table table td {
        display: table-cell !important; /* Kembalikan jadi kolom tabel (kiri-kanan) */
        vertical-align: middle !important;
        width: auto !important; /* Batal paksa width 100% */
        margin-bottom: 0 !important;
        padding-right: 12px !important;
        text-align: left !important; /* Teks Peka Merawat Negeri kembali rata kiri rapi di samping logo */
    }
    
    /* 4. Tengahkan logo Lisensi CC (gambar yang dibungkus tag p/a) */
    .pkp_footer_content p img {
        margin: 0 auto !important;
        display: block !important;
    }
}

/* ==========================================================================
   FULL-SCREEN JOURNAL MIGRATION TAKEOVER
   Former /jrnt address → official /jrtn address
   ========================================================================== */

/* Mengunci halaman lama agar hanya layar pemberitahuan yang terlihat */
body:has(.jrtn-migration-takeover) {
    overflow: hidden !important;
}


/* --------------------------------------------------------------------------
   FULL-SCREEN FOUNDATION
   -------------------------------------------------------------------------- */

.jrtn-page.jrtn-migration-takeover {
    --jrtn-migration-navy: #0b1f43;
    --jrtn-migration-blue: #174f98;
    --jrtn-migration-bright: #2f75d6;
    --jrtn-migration-cyan: #20a4d6;
    --jrtn-migration-white: #ffffff;
    --jrtn-migration-soft: #edf5ff;
    --jrtn-migration-line: rgba(255, 255, 255, 0.16);
    --jrtn-migration-muted: rgba(255, 255, 255, 0.76);

    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;

    display: block !important;

    width: 100vw !important;
    max-width: none !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    color: var(--jrtn-migration-white) !important;

    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(32, 164, 214, 0.23) 0,
            rgba(32, 164, 214, 0) 28%
        ),
        radial-gradient(
            circle at 8% 92%,
            rgba(47, 117, 214, 0.25) 0,
            rgba(47, 117, 214, 0) 32%
        ),
        linear-gradient(
            128deg,
            #081a38 0%,
            #0c2b5e 50%,
            #124d92 100%
        ) !important;

    font-family: inherit !important;
}

.jrtn-page.jrtn-migration-takeover,
.jrtn-page.jrtn-migration-takeover *,
.jrtn-page.jrtn-migration-takeover *::before,
.jrtn-page.jrtn-migration-takeover *::after {
    box-sizing: border-box !important;
}


/* --------------------------------------------------------------------------
   DECORATIVE BACKGROUND
   -------------------------------------------------------------------------- */

.jrtn-migration-decoration::before,
.jrtn-migration-decoration::after {
    position: fixed !important;
    z-index: 0 !important;

    display: block !important;

    content: "" !important;

    border-radius: 50% !important;

    pointer-events: none !important;
}

.jrtn-migration-decoration::before {
    top: -180px !important;
    right: -140px !important;

    width: 520px !important;
    height: 520px !important;

    border: 70px solid rgba(255, 255, 255, 0.045) !important;
}

.jrtn-migration-decoration::after {
    bottom: -230px !important;
    left: -170px !important;

    width: 560px !important;
    height: 560px !important;

    border: 85px solid rgba(32, 164, 214, 0.07) !important;
}


/* --------------------------------------------------------------------------
   PAGE SHELL
   -------------------------------------------------------------------------- */

.jrtn-migration-shell {
    position: relative !important;
    z-index: 2 !important;

    display: flex !important;
    flex-direction: column !important;

    width: min(1240px, calc(100% - 64px)) !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;

    margin: 0 auto !important;
    padding: 28px 0 24px !important;
}


/* --------------------------------------------------------------------------
   TOP STATUS BAR
   -------------------------------------------------------------------------- */

.jrtn-migration-topbar {
    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;

    padding: 13px 16px !important;

    background: rgba(3, 18, 48, 0.32) !important;

    border: 1px solid var(--jrtn-migration-line) !important;
    border-radius: 8px !important;

    backdrop-filter: blur(8px) !important;
}

.jrtn-migration-alert-label {
    display: inline-flex !important;

    align-items: center !important;
    gap: 10px !important;

    color: #ffffff !important;

    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
}

.jrtn-migration-alert-dot {
    width: 9px !important;
    height: 9px !important;

    background: #ffd86b !important;
    border-radius: 50% !important;

    box-shadow:
        0 0 0 5px rgba(255, 216, 107, 0.12),
        0 0 18px rgba(255, 216, 107, 0.5) !important;
}

.jrtn-migration-former-address {
    color: var(--jrtn-migration-muted) !important;

    font-size: 0.76rem !important;
    font-weight: 650 !important;
}


/* --------------------------------------------------------------------------
   MAIN LAYOUT
   -------------------------------------------------------------------------- */

.jrtn-migration-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr) !important;
    gap: clamp(36px, 6vw, 84px) !important;
    align-items: center !important;

    flex: 1 1 auto !important;

    padding: clamp(48px, 8vh, 92px) 0 !important;
}

.jrtn-migration-content {
    min-width: 0 !important;
}

.jrtn-migration-eyebrow {
    margin: 0 0 13px !important;

    color: #8fdfff !important;

    font-size: 0.74rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
}


/* --------------------------------------------------------------------------
   LARGE ROUTE CHANGE
   -------------------------------------------------------------------------- */

.jrtn-migration-route {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: clamp(12px, 2vw, 22px) !important;
    align-items: center !important;

    margin: 0 0 20px !important;

    font-family: inherit !important;
    font-size: clamp(2.4rem, 6vw, 5.7rem) !important;
    font-weight: 850 !important;
    letter-spacing: -0.055em !important;
    line-height: 0.95 !important;
}

.jrtn-migration-route-old {
    color: rgba(255, 255, 255, 0.36) !important;
    text-decoration: line-through !important;
    text-decoration-color: rgba(255, 216, 107, 0.85) !important;
    text-decoration-thickness: 4px !important;
}

.jrtn-migration-route-arrow {
    color: #8fdfff !important;

    font-size: 0.65em !important;
    font-weight: 500 !important;
}

.jrtn-migration-route-new {
    color: #ffffff !important;

    text-shadow:
        0 0 30px rgba(77, 184, 255, 0.25) !important;
}


/* --------------------------------------------------------------------------
   HEADLINE AND DESCRIPTION
   -------------------------------------------------------------------------- */

.jrtn-migration-title {
    max-width: 840px !important;

    margin: 0 0 18px !important;

    color: #ffffff !important;

    font-family: inherit !important;
    font-size: clamp(2.15rem, 4.7vw, 4.65rem) !important;
    font-weight: 760 !important;
    letter-spacing: -0.045em !important;
    line-height: 1.02 !important;
}

.jrtn-migration-lead {
    max-width: 760px !important;

    margin: 0 0 12px !important;

    color: rgba(255, 255, 255, 0.94) !important;

    font-size: clamp(1.02rem, 1.4vw, 1.18rem) !important;
    line-height: 1.7 !important;
}

.jrtn-migration-text {
    max-width: 760px !important;

    margin: 0 0 28px !important;

    color: var(--jrtn-migration-muted) !important;

    font-size: 0.94rem !important;
    line-height: 1.72 !important;
}

.jrtn-migration-lead strong,
.jrtn-migration-text strong {
    color: #ffffff !important;
}


/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */

.jrtn-migration-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 11px !important;

    margin: 0 0 18px !important;
}

.jrtn-migration-button {
    display: inline-flex !important;

    min-height: 50px !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 12px 20px !important;

    border-radius: 7px !important;

    font-family: inherit !important;
    font-size: 0.88rem !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    text-decoration: none !important;

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease !important;
}

.jrtn-migration-button-primary {
    color: #10376e !important;

    background: #ffffff !important;

    border: 1px solid #ffffff !important;

    box-shadow:
        0 12px 30px rgba(2, 14, 40, 0.24) !important;
}

.jrtn-migration-button-secondary {
    color: #ffffff !important;

    background: rgba(255, 255, 255, 0.08) !important;

    border: 1px solid rgba(255, 255, 255, 0.34) !important;
}

.jrtn-migration-button:hover,
.jrtn-migration-button:focus-visible {
    transform: translateY(-2px) !important;
}

.jrtn-migration-button-primary:hover,
.jrtn-migration-button-primary:focus-visible {
    color: #0b2c5c !important;

    background: #edf6ff !important;
}

.jrtn-migration-button-secondary:hover,
.jrtn-migration-button-secondary:focus-visible {
    color: #ffffff !important;

    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.58) !important;
}

.jrtn-migration-button:focus-visible,
.jrtn-migration-official-url:focus-visible,
.jrtn-migration-contact a:focus-visible {
    outline: 3px solid rgba(143, 223, 255, 0.75) !important;
    outline-offset: 4px !important;
}

.jrtn-migration-bookmark-note {
    margin: 0 !important;

    color: rgba(255, 255, 255, 0.66) !important;

    font-size: 0.79rem !important;
    line-height: 1.5 !important;
}


/* --------------------------------------------------------------------------
   STATUS PANEL
   -------------------------------------------------------------------------- */

.jrtn-migration-status-panel {
    position: relative !important;

    min-width: 0 !important;

    padding: clamp(26px, 4vw, 38px) !important;

    overflow: hidden !important;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.06)
        ) !important;

    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 14px !important;

    box-shadow:
        0 24px 60px rgba(2, 16, 43, 0.3) !important;

    backdrop-filter: blur(15px) !important;
}

.jrtn-migration-status-panel::after {
    position: absolute !important;
    right: -55px !important;
    bottom: -65px !important;

    width: 180px !important;
    height: 180px !important;

    content: "" !important;

    border: 26px solid rgba(255, 255, 255, 0.045) !important;
    border-radius: 50% !important;

    pointer-events: none !important;
}

.jrtn-migration-status-icon {
    display: inline-flex !important;

    width: 48px !important;
    height: 48px !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 0 20px !important;

    color: #0f5e39 !important;

    background: #a9f0c7 !important;

    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 50% !important;

    font-size: 1.05rem !important;
    font-weight: 900 !important;

    box-shadow:
        0 0 0 8px rgba(169, 240, 199, 0.1) !important;
}

.jrtn-migration-status-kicker {
    margin: 0 0 7px !important;

    color: #8fdfff !important;

    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.jrtn-migration-status-panel h2 {
    margin: 0 0 13px !important;

    color: #ffffff !important;

    font-family: inherit !important;
    font-size: clamp(1.55rem, 2.6vw, 2.2rem) !important;
    font-weight: 750 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.15 !important;
}

.jrtn-migration-official-url {
    display: block !important;

    max-width: 100% !important;

    margin: 0 0 26px !important;

    color: rgba(255, 255, 255, 0.86) !important;

    font-size: 0.82rem !important;
    line-height: 1.55 !important;
    text-decoration: none !important;

    overflow-wrap: anywhere !important;
}

.jrtn-migration-official-url strong {
    color: #ffffff !important;
}

.jrtn-migration-address-comparison {
    position: relative !important;
    z-index: 1 !important;

    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.jrtn-migration-address-row {
    display: flex !important;

    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;

    padding: 13px 0 !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.jrtn-migration-address-row span {
    color: rgba(255, 255, 255, 0.66) !important;

    font-size: 0.73rem !important;
}

.jrtn-migration-address-row strong {
    color: #ffffff !important;

    font-size: 0.82rem !important;
}

.jrtn-migration-address-old {
    color: rgba(255, 255, 255, 0.47) !important;
    text-decoration: line-through !important;
}

.jrtn-migration-address-current {
    color: #a9f0c7 !important;
}


/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.jrtn-migration-footer {
    display: flex !important;

    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 30px !important;

    padding: 21px 0 4px !important;

    border-top: 1px solid var(--jrtn-migration-line) !important;
}

.jrtn-migration-footer > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.jrtn-migration-footer strong {
    color: #ffffff !important;

    font-size: 0.8rem !important;
}

.jrtn-migration-footer span {
    color: rgba(255, 255, 255, 0.58) !important;

    font-size: 0.7rem !important;
}

.jrtn-migration-contact {
    align-items: flex-end !important;
}

.jrtn-migration-contact a {
    color: rgba(255, 255, 255, 0.88) !important;

    font-size: 0.76rem !important;
    text-decoration: none !important;
}


/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 920px) {

    .jrtn-migration-shell {
        width: min(100% - 40px, 760px) !important;
    }

    .jrtn-migration-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;

        padding: 50px 0 !important;
    }

    .jrtn-migration-status-panel {
        max-width: none !important;
    }
}

@media (max-width: 600px) {

    .jrtn-migration-shell {
        width: min(100% - 28px, 760px) !important;

        padding: 14px 0 18px !important;
    }

    .jrtn-migration-topbar {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 7px !important;

        padding: 12px 13px !important;
    }

    .jrtn-migration-layout {
        padding: 40px 0 !important;
    }

    .jrtn-migration-route {
        font-size: clamp(2.25rem, 15vw, 4.2rem) !important;
    }

    .jrtn-migration-title {
        font-size: clamp(2rem, 10vw, 3.2rem) !important;
        line-height: 1.05 !important;
    }

    .jrtn-migration-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .jrtn-migration-button {
        width: 100% !important;
    }

    .jrtn-migration-footer {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .jrtn-migration-contact {
        align-items: flex-start !important;
    }
}

@media (max-width: 390px) {

    .jrtn-migration-route {
        gap: 8px !important;
    }

    .jrtn-migration-status-panel {
        padding: 24px 20px !important;
    }

    .jrtn-migration-address-row {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
}


/* --------------------------------------------------------------------------
   REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .jrtn-migration-button {
        transition: none !important;
    }

    .jrtn-migration-button:hover,
    .jrtn-migration-button:focus-visible {
        transform: none !important;
    }
}