/* =========================================
   SYNTHEGRIA JOURNAL CUSTOM CSS
   ========================================= */

   .img-fluid{
    max-width: 98px !important;
   }

 

.text-center {
    text-align: left;
}

@media (min-width: 1024px) {
    .lg\:py-20 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* --- 1. FOOTER FIXES --- */
/* Override default light background so the white text is readable */
footer.footer {
    background: linear-gradient(135deg, #0c3b6d 0%, #082647 100%) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-top: 4px solid #facc15;
    padding-top: 40px !important;
    padding-bottom: 20px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

@media (min-width: 1024px) {
    footer.footer {
        padding-left: 15rem !important;
        padding-right: 15rem !important;
    }
}

/* Remove default horizontal padding inside footer to align content perfectly */
footer.footer .px-4 {
    padding-left: 0rem !important;
    padding-right: 0rem !important;
}

/* Ensure links in footer are clearly visible */
footer.footer a {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

footer.footer a:hover {
    color: #facc15 !important;
    text-decoration: none !important;
}

/* Bottom credits section (OJS/Theme info) */
footer.footer .text-sm {
    display: none !important;
}

/* --- 2. GENERAL REFINEMENTS --- */
/* Main page content area spacing */
.pkp_page_index main {
    padding-top: 20px;
}

/* Custom Block adjustments (Sidebar) */
.pkp_block_custom {
    margin-bottom: 30px;
}

/* Ensure tables inside custom blocks (like Additional Content) are responsive */
.additional_content table {
    width: 100% !important;
    max-width: 100%;
}

@media (max-width: 768px) {
    .additional_content > div > div {
        flex-direction: column;
        align-items: left;
        text-align: left;
    }
    .additional_content img {
        margin-bottom: 20px;
    }
    .additional_content td {
        display: block;
        width: 100% !important;
        text-align: left;
        padding: 5px 0 !important;
    }
    .additional_content tr {
        margin-bottom: 15px;
        display: block;
        border-bottom: 1px solid #e2e8f0;
    }
}

/* --- HILANGKAN SCROLL SIDEBAR KANAN --- */
/* Mengesampingkan class Tailwind agar sidebar langsung memanjang ke bawah */
div[class*="xl:sticky"][class*="overflow-y-auto"][class*="scrollbar-thin"] {
    height: auto !important;
    overflow-y: visible !important;
}

/* --- HERO BANNER (MATCH COVER) --- */
/* Ubah background banner menjadi Teal (Hijau Kebiruan) sesuai cover */
div.bg-slate-900.relative.overflow-hidden {
    background-color: #29a399 !important; /* Warna Teal Cover */
    background-image: none !important;
}

/* Sembunyikan gradient noise ungu bawaan tema */
div.bg-slate-900.relative.overflow-hidden > img[src*="gradient-noise"] {
    display: none !important;
}

/* Styling Judul Banner (Putih tebal seperti di cover) */
div.bg-slate-900.relative.overflow-hidden p.text-5xl {
    color: #1e293b !important;
    text-shadow: none !important;
    font-family: 'Georgia', 'Times New Roman', serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
}

/* Tombol Send Article (Warna Emas sesuai aksen cover) */
div.bg-slate-900.relative.overflow-hidden a.bg-sky-300 {
    background-color: #facc15 !important;
    color: #0c3b6d !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}
div.bg-slate-900.relative.overflow-hidden a.bg-sky-300:hover {
    background-color: #eab308 !important;
    transform: translateY(-1px);
}

/* Tombol Archives (Transparan dengan garis putih) */
div.bg-slate-900.relative.overflow-hidden a.bg-slate-800 {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    font-weight: 600 !important;
}
div.bg-slate-900.relative.overflow-hidden a.bg-slate-800:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

/* --- HEADER TEXT DI SAMPING LOGO --- */
/* Menambahkan teks jurnal di sebelah logo pada header menggunakan pseudo-element */
header a:has(> img.img-fluid), .pkp_site_name > a {
    display: flex !important;
    align-items: center !important;
    gap: 15px;
    text-decoration: none !important;
}

header a:has(> img.img-fluid)::after, .pkp_site_name > a::after {
    content: "Synthegria: Journal Multidisciplinary Research";
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b; /* Dark Slate */
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    max-width: 300px;
}

/* Menyembunyikan teks di layar kecil agar layout tidak berantakan */
@media (max-width: 768px) {
    header a:has(> img.img-fluid)::after, .pkp_site_name > a::after {
        display: none !important;
    }
}

/* --- HOME BANNER FIX (TEAL BACKGROUND) --- */
/* Mengganti latar belakang banner dari ungu gelap menjadi Teal (sesuai cover) */
div.bg-slate-900.relative.overflow-hidden {
    background-color: #eef2f5 !important;
    background-image: none !important; /* Hilangkan noise/gradien ungu */
}

/* Sembunyikan gambar noise yang mengganggu */
div.bg-slate-900.relative.overflow-hidden img[src*="gradient-noise"] {
    display: none !important;
}

/* Style Tombol agar senada dengan cover (Teal & Emas) */
div.bg-slate-900.relative.overflow-hidden a.bg-sky-300 {
    background-color: #227c7a !important; /* Warna Teal Gelap */
    color: #ffffff !important; /* Putih */
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

div.bg-slate-900.relative.overflow-hidden a.bg-sky-300:hover {
    background-color: #1c6665 !important; /* Sedikit lebih gelap saat hover */
    transform: translateY(-2px);
}

div.bg-slate-900.relative.overflow-hidden a.bg-slate-800 {
    background-color: transparent !important;
    border-color: #227c7a !important;
    color: #227c7a !important;
}

/* --- SIDEBAR SCROLL FIX --- */
/* Menghilangkan scroll pada sidebar agar memanjang penuh */
div[class*="xl:sticky"] {
    overflow-y: visible !important;
    height: auto !important;
}

/* --- FOOTER FIX --- */
/* Merapikan footer agar teks tidak keluar layout */
footer.footer {
    background: #1e293b !important; /* Biru Tua */
    border-top: 5px solid #227c7a !important; /* Aksen Emas */
    color: #fff !important;
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

footer.footer h4 {
    color: #fff !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

footer.footer a {
    color: #94a3b8 !important; /* Abu-abu muda */
    transition: 0.3s;
}

footer.footer a:hover {
    color: #227c7a !important; /* Teal saat hover */
}

footer.footer .text-sm {
    display: none !important; /* Hilangkan info theme kecil di bawah */
}

/* --- HOMEPAGE LAYOUT FIX --- */
/* Pindahkan Journal Information (additional_content) ke atas Current Issue */
.page_index_journal {
    display: flex;
    flex-direction: column;
}

.page_index_journal .additional_content {
    order: -1; /* Paksa posisi ke paling atas (sebelum elemen lain yang ber-order 0) */
    margin-top: 15px; /* Tambahkan jarak sedikit di atas */
    margin-bottom: 40px; /* Jarak antara Journal Info dengan Current Issue di bawahnya */
}
