/* --- KONFIGURASI WARNA --- */
:root {
    --primary-blue: #003366;       /* Biru Tua untuk Header/Navigasi */
    --secondary-blue: #0056b3;     /* Biru Lebih Terang untuk Sub-elemen */
    --accent-red: #D32F2F;         /* Merah untuk Tombol/Aksen */
    --hover-red: #b71c1c;          /* Merah Gelap saat Hover */
    --text-white: #ffffff;
}

/* 1. HEADER & NAVIGASI ATAS */
.pkp_structure_head {
    background-color: var(--primary-blue);
    border-bottom: 4px solid var(--accent-red); /* Garis merah di bawah header */
}

.pkp_site_name .is_text {
    color: var(--text-white); /* Warna Judul Jurnal */
}

/* Menu Navigasi Utama */
.pkp_navigation_primary > li > a {
    color: var(--text-white);
    font-weight: bold;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li:focus > a {
    background-color: var(--accent-red);
    color: var(--text-white);
    border-radius: 4px;
}

/* User Nav (Login/Register) */
.pkp_navigation_user > li > a {
    color: var(--text-white);
}

/* 2. TOMBOL PDF (GALLEY) - Bagian Paling Penting */
.obj_galley_link, 
.pkp_button_primary {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--text-white) !important;
    border-radius: 4px;
}

.obj_galley_link:hover, 
.pkp_button_primary:hover {
    background-color: var(--hover-red);
    border-color: var(--hover-red);
}

/* 3. SIDEBAR (MENU SAMPING) */
.pkp_block .title {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-red); /* Garis bawah merah pada judul blok */
    font-weight: bold;
}

/* 4. JUDUL ARTIKEL & KONTEN */
.page_title {
    color: var(--primary-blue);
}

h1, h2, h3 {
    color: var(--primary-blue);
}

/* Link standar di dalam teks */
a {
    color: var(--secondary-blue);
}

a:hover {
    color: var(--accent-red);
}

/* 5. FOOTER */
.pkp_structure_footer_wrapper {
    background-color: var(--primary-blue);
    color: var(--text-white);
    border-top: 4px solid var(--accent-red);
}

.pkp_structure_footer a {
    color: #ffd700; /* Warna link di footer (sedikit emas agar terbaca di biru) */
}

/* Menyembunyikan seluruh blok branding OJS di footer */
.pkp_brand_footer {
    display: none !important;
}

/* Mengatur gambar logo header agar full width */
.pkp_site_name .is_img img {
    width: 100%;       /* Memaksa lebar 100% dari wadah */
    height: auto;      /* Menjaga proporsi agar tidak gepeng */
    max-height: none;  /* Menghapus batasan tinggi bawaan OJS */
    max-width: 100%;   /* Memastikan tidak melebihi layar */
}

/* Menyembunyikan About Journal di Homepage */
.homepage-image .homepage-about {
    display: none;
}

/* Alternatif untuk beberapa tema OJS 3 yang berbeda */
.page_index_journal .journal-description {
    display: none !important;
}



/* Wrapper sidebar */
.ojs-sidebar-buttons {
  background: linear-gradient(135deg, #0d47a1 0%, #1976d2 40%, #b71c1c 100%);
  padding: 14px 12px 16px 12px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Title */
.ojs-sidebar-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 10px;
  text-align: center;
}

/* Button group layout (inspirasi dari vertical button group Bootstrap) */
.ojs-sidebar-buttons .btn-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Base button style */
.ojs-btn {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: none;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  background: rgba(13, 71, 161, 0.9);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    padding-left 0.18s ease;
}

/* Warna dasar biru, merah, kuning */
.ojs-btn-blue {
  background: linear-gradient(135deg, #1565c0, #42a5f5);
}
.ojs-btn-red {
  background: linear-gradient(135deg, #c62828, #ef5350);
}
.ojs-btn-yellow {
  background: linear-gradient(135deg, #f9a825, #ffd54f);
  color: #263238;
}

/* Icon bullet kecil di kiri (pseudo-element) */
.ojs-btn::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* Text digeser sedikit karena bullet */
.ojs-btn {
  padding-left: 24px;
}

/* Hover effect */
.ojs-btn:hover,
.ojs-btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  filter: brightness(1.05);
}

/* Active (klik) */
.ojs-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Responsif: rapikan di layar sempit */
@media (max-width: 768px) {
  .ojs-sidebar-buttons {
    padding: 10px;
    border-radius: 10px;
  }
  .ojs-btn {
    font-size: 11px;
    padding: 7px 9px 7px 22px;
  }
}




/* Footer */
/* ====== FOOTER WRAPPER ====== */
footer {
  background: radial-gradient(circle at top left, #1a237e 0%, #0d47a1 35%, #b71c1c 80%, #f9a825 100%);
  color: #f5f5f5;
  padding: 30px 20px;
  margin-top: 40px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}

/* Lapisan efek glass */
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
  mix-blend-mode: screen;
  opacity: 0.7;
  pointer-events: none;
}

/* Konten footer agar tidak ikut efek overlay */
footer > * {
  position: relative;
  z-index: 1;
}

/* ====== JUDUL & TEKS ====== */
footer h3 {
  font-size: 15px;
  margin: 18px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fffde7;
}

footer strong {
  font-weight: 700;
}

footer p {
  margin: 8px 0 4px;
}

/* ====== LOGO INDEXING & LICENCE ====== */
footer img {
  max-height: 40px;
  margin: 6px 8px 6px 0;
  vertical-align: middle;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 6px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

/* Kecilkan logo khusus CC agar proporsional */
footer img[alt*="Creative Commons"],
footer img[alt*="Lisensi"] {
  background: transparent;
  padding: 0;
  border-radius: 0;
  max-height: 32px;
}

/* Hover efek logo */
footer a img:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.18);
  filter: brightness(1.05);
}

/* ====== SOSMED ICONS ====== */
footer img.social {
  max-height: 32px;
  margin: 4px 6px 4px 0;
  border-radius: 999px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

footer img.social:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ====== TABEL KONTAK & MAP ====== */
footer table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

footer td {
  border: none;
  padding: 10px 10px 0 0;
  vertical-align: top;
}

/* Kolom teks */
footer td:first-child {
  color: #e3f2fd;
}

/* Link di footer */
footer a {
  color: #ffecb3;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 236, 179, 0.6);
  transition: color 0.2s ease, border-color 0.2s ease;
}

footer a:hover {
  color: #fffde7;
  border-color: #fffde7;
}

/* Map iframe */
footer iframe {
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* ====== GARIS PEMBATAS HALUS DI ATAS FOOTER (opsional) ====== */
.pkp_structure_footer::before,
.pkp_structure_footer_wrapper::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, transparent 0%, #ffeb3b 25%, #f44336 50%, #2196f3 75%, transparent 100%);
  opacity: 0.85;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  footer {
    border-radius: 18px 18px 0 0;
    padding: 22px 14px;
    font-size: 12px;
  }

  footer table,
  footer tbody,
  footer tr,
  footer td {
    display: block;
    width: 100% !important;
  }

  footer td {
    padding-right: 0;
  }

  footer iframe {
    width: 100% !important;
    height: 180px !important;
    margin-top: 10px;
  }

  footer img {
    max-height: 34px;
  }

  footer img.social {
    max-height: 28px;
  }
}

