/* ==========================================================================
   1. FONT DISPLAY OPTIMIZATION (Solusi Font Display Blocking PageSpeed)
   ========================================================================== */
@font-face {
  font-family: "Montserrat";
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif";
  font-display: swap;
}

@font-face {
  font-family: "FontAwesome";
  font-display: swap;
}


/* ==========================================================================
   2. HEADER & BANNER OPTIMIZATION (Pencegah Layout Shift & Gambar Responsive)
   ========================================================================== */
.pkp_site_name {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pkp_site_name_wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pkp_site_name a {
  display: block !important;
}

/* Mengoptimalkan gambar banner agar presisi di layar HP/Desktop */
.pkp_site_name img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1200 / 185; /* Menjaga rasio banner agar tidak pecah/meloncat */
  object-fit: contain;
}


/* ==========================================================================
   3. COVER ISSUE OPTIMIZATION (Mencegah CLS / Layout Shift Sampul Jurnal)
   ========================================================================== */
.current_issue .cover img,
.obj_issue_toc .cover img,
.issue_toc .cover img {
  aspect-ratio: 1 / 1.414 !important;
  width: 100% !important;
  max-width: 300px !important;
  height: auto !important;
  object-fit: cover !important;
}


/* ==========================================================================
   4. TYPOGRAPHY & LAYOUT TYPOGRAPHY (Styling Teks & Paragraf)
   ========================================================================== */
.pkp_brand_footer {
  display: none;
}

p {
  text-align: justify;
}

.pkp_page_index .homepage_about .pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3,
.pkp_structure_main h4,
.pkp_structure_main .page h1,
.obj_article_details .item.doi,
.obj_article_details .item.keywords,
.pkp_structure_main p:last-child,
.obj_article_details .item > *:last-child,
#articlesBySameAuthorList ul li,
#articlesBySimilarityList ul li {
  text-align: justify;
}

.additional_content p,
.additional_content td {
  text-align: justify !important;
}

.additional_content table {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
  overflow-x: auto;
}


/* ==========================================================================
   5. SIDEBAR & CUSTOM BLOCKS (Mencegah Gambar Meluap & Wordcloud Styling)
   ========================================================================== */
#wordcloud .title,
#wordcloud h2,
#wordcloud h3,
.pkp_block.block_Keywordcloud .title,
.pkp_block.block_Keywordcloud h2,
.pkp_block.block_Keywordcloud h3 {
  padding: 10px !important;
  border-bottom: 2px solid #000000 !important;
  background-color: #2b3a4a !important;
  color: #ffffff !important;
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  font-size: small !important;
  font-weight: bold !important;
  text-transform: uppercase;
  display: block !important;
}

.pkp_structure_sidebar .pkp_block,
.pkp_structure_sidebar .pkp_block img,
.pkp_structure_sidebar .indexers img,
.pkp_structure_sidebar .visitors img {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}


/* ==========================================================================
   6. FOOTER FLEXBOX CONTAINER (2 Kolom Laptop, 1 Kolom HP)
   ========================================================================== */
.footer-flex-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 30px !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  font-size: 14px;
  line-height: 1.5;
  width: 100% !important;
}

.footer-flex-item {
  flex: 1 1 50% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

.footer-flex-item iframe {
  width: 100% !important;
  max-width: 100% !important;
  height: 250px !important;
  border: 0 !important;
  display: block !important;
}


/* ==========================================================================
   7. MEDIA QUERIES (RESPONSIVE FOR MOBILE)
   ========================================================================== */
@media screen and (max-width: 768px) {
  .footer-flex-container {
    flex-wrap: wrap !important;
    flex-direction: column !important;
  }
  .footer-flex-item {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

@media only screen and (max-width: 480px) {
  #headerNavigationContainer {
    padding-bottom: 17px !important;
  }
}