/* =========================
   NAV & GLOBAL
   ========================= */

/* Background menu utama: samakan wrapper & row */
.pkp_navigation_primary_wrapper,
.pkp_navigation_primary_row{
  background-color:#fff9c4 !important;  /* kuning muda */
}

/* Teks item menu (kontras) */
.pkp_navigation_primary_row .pkp_navigation_primary > li > a{
  color:#333 !important;
  font-weight:600;
}

/* Hover & item aktif */
.pkp_navigation_primary_row .pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary_row .pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary_row .pkp_navigation_primary > li.current > a{
  background:rgba(0,0,0,.05);
  color:#000 !important;
}


/* Garis indikator aktif (jika theme Anda memakainya) */
.pkp_navigation_primary_row .pkp_navigation_primary > li.current > a::after{
  content:"";
  display:block;
  height:3px;
  background:#333;
  margin-top:6px;
}

/* ===== Blok info jurnal (gambar + tabel) ===== */
.krg-info {
  display: flex;
  align-items: flex-start; /* top align */
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 !important;
  padding: 0;
}

/* Kolom gambar */
.krg-cover {
  flex: 0 0 160px;          /* lebar gambar tetap */
  max-width: 160px;
  margin: 0 !important;     /* penting: hilangkan margin default */
  padding: 0 !important;
  display: block;
}
.krg-cover img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: none !important; /* gambar tanpa shadow */
  border-radius: 6px;
}

/* Kolom tabel */
.krg-table-wrap {
  flex: 2 1 420px;
  min-width: 320px;
  width: 100%;
  margin: 0 !important;     /* penting: no top margin */
  padding: 0;
}

.krg-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.22) !important; /* pastikan shadow muncul */
  overflow: hidden;          /* agar radius rapi */
  margin: 0 !important;      /* penting */
}

/* Tabel */
.krg-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0 !important;
  margin: 0 !important;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
.krg-table thead th {
  background: #0f4d66;
  color: #fff;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
}
.krg-table td {
  padding: 8px 10px;
  vertical-align: top;
}
.krg-table tbody tr:nth-child(even) {
  background: #f2f2f2;
}

/* Responsif */
@media (max-width: 768px) {
  .krg-cover { flex-basis: 140px; max-width: 140px; }
}
@media (max-width: 560px) {
  .krg-info { flex-direction: column; }
  .krg-cover { max-width: 180px; }
  .krg-table-wrap { min-width: 0; }
}



/* ====== existing ====== */
.item_menu {
  padding: 7px 15px;
  margin: 0;
  /* background: #2A2B39; */
  border-bottom: 1px solid #077080;
}
.item_menu a { color: #fff; text-decoration: none; }
.item_menu a:hover { color: #daa810; }

.embed-responsive-item { width: 100%; border: none; }

.homepage_about h2 { display: none; visibility: hidden; }

body {
  background-image: url('https://ejournal.uinbukittinggi.ac.id/img/gift/patern.png');
  background-size: 50px;
}

@media (min-width: 1200px){
  .pkp_structure_page { margin-top: 0rem; margin-bottom: 0rem; }
}

/* Sembunyikan brand footer OJS/PKP */
.pkp_brand_footer { display: none !important; }

/* Lebarkan container footer */
.pkp_footer_content,
.pkp_structure_footer_wrapper,
.pkp_structure_footer {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}
.pkp_footer_content {
  padding: 20px 30px;
  box-sizing: border-box;
}

/* =========================
   FOOTER WRAPPER (tema)
   ========================= */
.pkp_structure_footer_wrapper {
  background: linear-gradient(135deg, #000000, #014f60a0); /* hitam → biru */
  color: #ffffff;
  padding: 40px 20px 20px;
  font-family: 'Aptos', sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

/* =========================
   FOOTER TOP → PAKSA 4 KOLOM (GRID)
   ========================= */
.pkp_structure_footer_wrapper .journal-footer .footer-top{
  display: grid !important; /* OVERRIDE flex */
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 kolom sama lebar */
  gap: 24px;
  align-items: start;
  margin-bottom: 25px;
}

/* Kolom: bisa mengecil, netralkan sisa flex */
.pkp_structure_footer_wrapper .journal-footer .footer-top > *{
  min-width: 0 !important;
  flex: 0 1 auto !important;
  width: auto !important;
}
.pkp_structure_footer_wrapper .journal-footer .footer-col{
  min-width: 0 !important;
  flex: 0 1 auto !important;
}

/* Judul kolom */
.pkp_structure_footer_wrapper .journal-footer .footer-top h3{
  font-size: 14px;
  font-weight: bold;
  color: #4fc3f7; /* biru muda */
  margin: 0 0 10px 0;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(25, 84, 108, 0.6);
  padding-bottom: 5px;
  line-height: 1.35;
}

/* Teks & list di kolom */
.pkp_structure_footer_wrapper .journal-footer .footer-top p,
.pkp_structure_footer_wrapper .journal-footer .footer-top li{
  font-size: 13px;
  color: #ddd;
  margin: 6px 0;
}
.pkp_structure_footer_wrapper .journal-footer .footer-top ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.pkp_structure_footer_wrapper .journal-footer .footer-top a{
  color: #ffffff;
  text-decoration: none;
  transition: color .3s ease;
}
.pkp_structure_footer_wrapper .journal-footer .footer-top a:hover{
  color: #4fc3f7;
  text-decoration: underline;
}

/* MAP di footer */
.pkp_structure_footer_wrapper .journal-footer .footer-map{
  margin: 20px 0;
  border: 2px solid #0d5e84af;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.6);
}

/* =========================
   RESPONSIF
   ========================= */
@media (max-width: 1024px){
  .pkp_structure_footer_wrapper .journal-footer .footer-top{
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* tablet: 2 kolom */
  }
}
@media (max-width: 640px){
  .pkp_structure_footer_wrapper .journal-footer .footer-top{
    grid-template-columns: 1fr; /* mobile: 1 kolom */
  }
}

/* =========================
   FOOTER BOTTOM / COPYRIGHT
   ========================= */
.pkp_structure_footer_wrapper .journal-footer .footer-bottom,
.pkp_structure_footer_wrapper .copright-container{
  border-top: 1px solid rgba(79,195,247,0.4);
  padding-top: 15px;
  text-align: center;
  font-size: 12px;
  color: #aaaaaa;
}
.pkp_structure_footer_wrapper .journal-footer .footer-bottom a{
  color: #4fc3f7;
  text-decoration: none;
}
.pkp_structure_footer_wrapper .journal-footer .footer-bottom a:hover{
  text-decoration: underline;
}
.pkp_structure_footer_wrapper .journal-footer .footer-bottom img,
.pkp_structure_footer_wrapper .copright-container img{
  vertical-align: middle;
  margin: 0 4px;
}

/* (Opsional) Kecilkan credit tema */
.pkp_structure_footer_wrapper .theme-credit{
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

/* =========================
   NETRALISIR SISA RULE FLEX LAMA
   ========================= */
.journal-footer .footer-top { display: grid !important; }
.pkp_structure_footer_wrapper .footer { display: block !important; gap: 0 !important; }
.pkp_structure_footer_wrapper .footer .col-6 { flex: 0 0 auto !important; min-width: 0 !important; }
