/* ============================================================
   DIGISTEM — Custom Footer CSS
   Tempel di: Website Settings > Appearance > CSS
   (OJS 3.5.x — path: Setup > Website > Appearance > tab "CSS")
   Tidak perlu ubah HTML footer yang sudah ada.
   ============================================================ */

/* ===== Wrapper utama footer: jadikan flex row agar OJS logo sejajar ===== */
.pkp_structure_footer {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  background-color: #fafbfc;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Konten 3 kolom mengambil sisa ruang */
.pkp_footer_content {
  flex: 1 1 auto;
  background-color: transparent;
}

.pkp_footer_content > div {
  padding: 32px 0 24px 0 !important;
  max-width: 100%;
}

/* ===== Grid 3 kolom: Penerbit / Licensing / Editorial Office ===== */
.pkp_footer_content > div > div[style*="display: flex"] {
  align-items: flex-start;
  gap: 40px !important;
}

.pkp_footer_content > div > div[style*="display: flex"] > div {
  padding-right: 24px;
  border-right: 1px solid #e2e6ea;
}

.pkp_footer_content > div > div[style*="display: flex"] > div:last-child {
  border-right: none;
  padding-right: 0;
}

/* Judul tiap kolom */
.pkp_footer_content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #003366 !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid #003366;
  display: inline-block;
}

/* Paragraf isi kolom */
.pkp_footer_content p {
  color: #4a4a4a;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 8px 0;
}

/* Tautan (email, link CC, website) */
.pkp_footer_content a {
  color: #0b5ed7;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

.pkp_footer_content a:hover {
  color: #003366;
  text-decoration: underline;
}

/* Badge Creative Commons */
.pkp_footer_content img[alt="Creative Commons License"] {
  display: block;
  margin-bottom: 10px !important;
  border-radius: 3px;
}

/* Baris copyright paling bawah */
.pkp_footer_content > div > div[style*="text-align: center"] {
  margin-top: 20px !important;
  padding-top: 14px !important;
  border-top: 1px dashed #d5d9dd !important;
}

.pkp_footer_content > div > div[style*="text-align: center"] p {
  color: #8a8a8a !important;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ===== Logo OJS/PKP — sejajar di kanan, rata atas kolom ===== */
.pkp_brand_footer {
  flex: 0 0 auto;
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 32px 0 24px 32px;
  background-color: transparent;
  border-left: 1px solid #e2e6ea;
  margin-left: 24px;
}

.pkp_brand_footer img {
  max-width: 120px;
  height: auto;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.pkp_brand_footer img:hover {
  opacity: 1;
}

/* Wrapper luar agar background seragam */
.pkp_structure_footer_wrapper {
  background-color: #fafbfc;
  border-top: 2px solid #003366;
}

/* ===== Responsif: tablet & HP ===== */
@media (max-width: 768px) {
  .pkp_structure_footer {
    flex-direction: column !important;
    padding: 0 16px;
  }

  .pkp_footer_content > div > div[style*="display: flex"] {
    flex-direction: column;
    gap: 24px !important;
  }

  .pkp_footer_content > div > div[style*="display: flex"] > div {
    border-right: none;
    border-bottom: 1px solid #e2e6ea;
    padding: 0 0 20px 0;
    text-align: center;
  }

  .pkp_footer_content > div > div[style*="display: flex"] > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .pkp_footer_content h4 {
    display: block;
  }

  .pkp_footer_content img[alt="Creative Commons License"] {
    margin-left: auto;
    margin-right: auto;
  }

  /* Di HP, logo OJS turun ke bawah dan center */
  .pkp_brand_footer {
    border-left: none;
    border-top: 1px solid #e2e6ea;
    margin-left: 0;
    padding: 16px 0;
    justify-content: center;
    width: 100%;
  }
}