/* ==================================================================
   HYPEROS SIDEBAR - 2 COLUMN STRUCTURE (ICON | TEXT)
   ================================================================== */

/* 1. LOAD FONTAWESOME */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

/* 2. JUDUL BLOCK */
.pkp_block .title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #800000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 2px solid #800000;
}

/* 3. KONTAINER TABEL (BOX PUTIH) */
.sidebar-nav-table {
  width: 100%;
  /* Wajib separate agar rounded corner berfungsi */
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: none;
  border-radius: 16px; /* Sudut membulat */
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 25px;
}

/* 4. PENGATURAN KOLOM */
/* Kolom 1: IKON (Lebar Tetap) */
.col-icon {
  width: 60px; /* Lebar fix untuk kolom ikon */
  text-align: center;
  vertical-align: middle;
  background-color: #fcfcfc; /* Latar sedikit abu */
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0; /* Garis pemisah vertikal */
  padding: 0;
  transition: all 0.3s ease;
}

/* Kolom 2: TEKS (Lebar Otomatis) */
.col-text {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  transition: all 0.3s ease;
  background-color: #fff;
}

/* Hapus border di baris terakhir */
.sidebar-nav-table tr:last-child .col-icon,
.sidebar-nav-table tr:last-child .col-text {
  border-bottom: none;
}

/* 5. ISI KOLOM DAN LINK */
/* Style Ikon */
.menu-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto; /* Tengah secara horizontal */
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #800000;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Style Teks Link */
.sidebar-link {
  text-decoration: none !important;
  display: block; /* Agar bisa di-klik full area */
}

.link-title {
  display: block;
  font-weight: 700;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.2;
  transition: color 0.3s;
}

.link-desc {
  display: block;
  font-size: 0.7rem;
  color: #999;
  font-weight: 500;
  margin-top: 3px;
  transition: color 0.3s;
}

/* =========================================================
   6. EFEK HOVER (SINKRONISASI BARIS)
   Logika: Saat cursor menyentuh baris (TR), semua sel berubah
   ========================================================= */

/* Ubah background kolom teks */
.sidebar-nav-table tr:hover .col-text {
  background-color: #fff5f5; /* Pink muda */
  padding-left: 20px; /* Efek geser kanan sedikit */
}

/* Ubah background kolom ikon */
.sidebar-nav-table tr:hover .col-icon {
  background-color: #800000; /* Merah Marun */
}

/* Ubah warna ikon menjadi putih */
.sidebar-nav-table tr:hover .menu-icon {
  background: transparent;
  color: #fff;
  transform: scale(1.1);
}

/* Ubah warna teks judul */
.sidebar-nav-table tr:hover .link-title {
  color: #800000;
}

/* Ubah warna deskripsi */
.sidebar-nav-table tr:hover .link-desc {
  color: #b05050;
}

/* ==================================================================
   HYPEROS FOOTER - 3 COLUMN LAYOUT
   ================================================================== */

/* 1. CONTAINER FOOTER UTAMA (BAWAAN OJS) */
.pkp_structure_footer_wrapper {
  background-color: #1a1a1a; /* Latar Gelap Elegan */
  color: #b0b0b0; /* Teks abu terang */
  padding: 0;
  border-top: 5px solid #800000; /* Garis aksen Merah Marun di atas */
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
}

/* Sembunyikan footer bawaan OJS yang duplikat */
.pkp_structure_footer {
  padding: 0;
  margin: 0;
}

/* 2. GRID LAYOUT 3 KOLOM */
.hyper-footer-container {
  display: grid;
  /* Membagi 3 kolom: 35% - 25% - 40% (Proporsional) */
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 30px 40px 30px;
}

/* 3. JUDUL KOLOM */
.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

/* Garis bawah kecil di bawah judul */
.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #800000;
  border-radius: 2px;
}

/* 4. KOLOM 1: BRANDING */
.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 5px;
}
.footer-brand span {
  color: #800000;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.footer-desc {
  margin-top: 15px;
  line-height: 1.6;
  color: #ccc;
  font-size: 0.9rem;
}

/* Badge ISSN */
.issn-badges {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}
.badge {
  background: #2c2c2c;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  border: 1px solid #444;
  transition: all 0.3s;
}
.badge:hover {
  background: #800000;
  border-color: #800000;
}

/* 5. KOLOM 2: QUICK LINKS */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  border-bottom: 1px solid #333;
}
.footer-links li:last-child {
  border-bottom: none;
}
.footer-links a {
  display: block;
  padding: 10px 0;
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-links a i {
  margin-right: 8px;
  color: #800000;
}
/* Efek Hover Link */
.footer-links a:hover {
  color: #fff;
  padding-left: 10px; /* Geser kanan */
}

/* 6. KOLOM 3: KONTAK */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #ccc;
}
.contact-list i {
  color: #800000;
  font-size: 1.1rem;
  margin-right: 15px;
  margin-top: 4px; /* Luruskan ikon dengan baris pertama teks */
}

/* Placeholder Peta */
.footer-map {
  margin-top: 20px;
  background: #2c2c2c;
  border-radius: 8px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #444;
  cursor: pointer;
  transition: background 0.3s;
}
.footer-map:hover {
  background: #333;
}
.map-placeholder {
  color: #888;
  font-size: 0.85rem;
}

/* 7. COPYRIGHT BAR */
.footer-copyright {
  background-color: #0f0f0f;
  padding: 20px 30px;
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  border-top: 1px solid #222;
}
.footer-copyright strong {
  color: #800000;
}

/* 8. RESPONSIVE MOBILE */
@media (max-width: 991px) {
  .hyper-footer-container {
    grid-template-columns: 1fr; /* Tumpuk 1 kolom */
    gap: 40px;
    padding: 40px 20px;
  }
}

/* ==================================================================
   ULTRA CLEAN BACKGROUND FIX (FORCE WHITE)
   ================================================================== */

/* 1. PAKSA LATAR BELAKANG LUAR (Browser) JADI ABU MUDA */
body {
  background-color: #f0f2f5 !important;
  color: #333 !important; /* Paksa huruf jadi hitam */
}

/* 2. PAKSA CONTAINER UTAMA JADI PUTIH BERSIH */
.pkp_structure_page {
  background-color: #ffffff !important; /* Wajib Putih */
  background-image: none !important; /* Hapus gambar background jika ada */
  max-width: 1300px;
  margin: 30px auto;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1); /* Bayangan agar terlihat timbul */
  border-radius: 12px;
}

/* 3. HAPUS WARNA MERAH DARI BAGIAN TENGAH (INTI MASALAH) */
.pkp_structure_content,
.pkp_structure_main,
.pkp_structure_body {
  background-color: transparent !important; /* Transparan agar warna putih muncul */
  background: none !important;
  border: none !important;
}

/* 4. PASTIKAN HEADER TETAP PUTIH (Kecuali Menu) */
.pkp_structure_head {
  background-color: #ffffff !important;
}

/* 5. PASTIKAN MENU NAVIGASI TETAP MERAH MARUN */
.pkp_navigation_primary_wrapper {
  background-color: #7e2828 !important;
  margin-bottom: 0;
  border-radius: 0;
}

/* 6. PERBAIKAN WARNA TEKS (Agar terbaca di background putih) */
h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a {
  color: #333; /* Warna gelap standar */
}

/* Kecuali link di dalam menu merah & footer, biarkan putih/terang */
.pkp_navigation_primary > li > a,
.pkp_structure_footer_wrapper a,
.pkp_structure_footer_wrapper,
.sidebar-link:hover {
  color: inherit;
}

/* 7. GARIS PEMISAH HALUS ANTARA KONTEN & SIDEBAR */
.pkp_structure_sidebar {
  background-color: transparent !important;
  border-left: 1px solid #eaeaea !important;
}

/* ==================================================================
   HEADER & NAV ALIGNMENT FIX (SEJAJAR PRESISI)
   ================================================================== */

/* 1. HAPUS JARAK PUTIH DI SEKELILING HEADER */
.pkp_structure_head {
  padding: 0 !important; /* Menghapus padding bawaan */
  margin: 0 !important;
  background-color: #fff !important;
  border: none !important;
}

/* 2. PAKSA GAMBAR BANNER JADI FULL WIDTH (MENTOK KIRI-KANAN) */
.pkp_site_name_wrapper {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.pkp_site_name_wrapper img {
  width: 100% !important; /* Lebar gambar mengikuti lebar website */
  height: auto !important; /* Tinggi otomatis agar proporsional */
  display: block !important; /* Menghilangkan celah garis bawah gambar */
  max-width: 100% !important;
  object-fit: cover; /* Memastikan gambar mengisi area tanpa gepeng */
  border-radius: 8px 8px 0 0; /* (Opsional) Melengkung di sudut atas saja */
}

/* 3. RAPATKAN NAVIGASI KE BANNER */
.pkp_navigation_primary_wrapper {
  width: 100% !important; /* Lebar penuh */
  margin-top: 0 !important; /* Pastikan menempel dengan banner */
  border-radius: 0 0 0 0 !important; /* Sudut bawah lurus (opsional) */
}

/* 4. PASTIKAN POSISI MENU DI DALAM NAVIGASI RAPI */
.pkp_navigation_primary {
  padding-left: 20px !important; /* Jarak teks menu dari kiri */
  padding-right: 20px !important;
}

/* --- HYPER OS STYLE FOR OJS --- */

/* Wrapper Utama */
.hyper-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  color: #334155; /* Slate 700 */
}

/* Judul Halaman */
.hyper-header {
  text-align: center;
  margin-bottom: 40px;
}
.hyper-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}
.hyper-divider {
  height: 4px;
  width: 80px;
  background-color: #3b82f6; /* Blue 500 */
  border-radius: 99px;
  margin: 0 auto;
}

/* Grid System */
.hyper-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
/* Responsif: 2 kolom di layar lebar */
@media (min-width: 768px) {
  .hyper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card Style (Hyper OS Look) */
.hyper-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 24px; /* Sudut Sangat Bulat */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Efek Hover pada Card */
.hyper-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Layout 2 Kolom dalam Card */
@media (min-width: 640px) {
  .hyper-card {
    flex-direction: row;
    align-items: stretch;
  }
}

/* Kolom 1: Foto */
.hyper-photo {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background-color: #e2e8f0;
}
@media (min-width: 640px) {
  .hyper-photo {
    width: 40%; /* Lebar Foto */
    height: auto;
    min-height: 250px;
  }
}
.hyper-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hyper-card:hover .hyper-photo img {
  transform: scale(1.05);
}

/* Kolom 2: Info */
.hyper-info {
  width: 100%;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
@media (min-width: 640px) {
  .hyper-info {
    width: 60%;
  }
}

/* Badge Role */
.hyper-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

/* Text Styles */
.hyper-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 15px 0 5px 0;
  line-height: 1.2;
}
.hyper-affiliate {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ID Grid Container */
.hyper-ids {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ID Row Item */
.id-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 8px 12px;
  border-radius: 12px;
  transition: border-color 0.2s;
}
.id-item:hover {
  border-color: #cbd5e1;
}

.id-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Ikon Kotak Kecil */
.id-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}
/* Warna Ikon */
.scholar-ico {
  background: #dbeafe;
  color: #2563eb;
} /* Biru */
.sinta-ico {
  background: #ffedd5;
  color: #ea580c;
} /* Oranye */
.scopus-ico {
  background: #dcfce7;
  color: #16a34a;
} /* Hijau */

.id-text {
  display: flex;
  flex-direction: column;
}
.id-label {
  font-size: 9px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}
.id-value {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

/* Container Utama */
.indexer-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Grid: 4 Kolom 2 Baris */
.indexer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px 15px; /* Jarak vertikal dan horizontal */
}

/* Item Wrapper (Logo + Card) */
.indexer-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Style Logo (Selalu Sama Besar) */
.indexer-standalone-logo {
  width: 60px; /* Ukuran tetap */
  height: 60px; /* Ukuran tetap */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 18px; /* Hyper OS Rounded */
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.indexer-standalone-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Card Teks (Hyper OS Style) */
.indexer-text-card {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 12px 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.indexer-item:hover .indexer-text-card {
  transform: translateX(5px);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.indexer-label {
  font-size: 9px;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.indexer-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive: 2 Kolom di Tablet, 1 Kolom di Mobile */
@media (max-width: 1024px) {
  .indexer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .indexer-grid {
    grid-template-columns: 1fr;
  }
}
