/* =========================================================
   OJS CUSTOM STYLE
   Header, Footer, Abstract, Sidebar Spacing
   ========================================================= */


/* ================= HEADER ================= */

.pkp_structure_head {
  background: #ffffff;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pkp_site_name_wrapper {
  padding: 10px 0 !important;
  margin: 0 !important;
  text-align: center;
}

.pkp_site_name .is_img img {
  max-height: 100px;
  width: auto;
}

.pkp_navigation_primary_wrapper {
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  padding: 4px 0 !important;
  margin-top: 0 !important;
}

.pkp_navigation_primary > li {
  margin-right: 6px;
}

.pkp_navigation_primary > li > a {
  padding: 10px 18px !important;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pkp_navigation_user_wrapper {
  padding-top: 0 !important;
  padding-right: 20px;
}

.pkp_search {
  margin-top: 0 !important;
}


/* ================= ABSTRACT TEXT ================= */

.obj_article_details .abstract,
.obj_article_details .abstract p,
.obj_article_details .item.abstract,
.obj_article_details .item.abstract p,
.obj_article_summary .summary,
.obj_article_summary .summary p {
  text-align: justify;
}


/* ================= SIDEBAR GAP REDUCE ================= */

.pkp_structure_sidebar .pkp_block {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Custom sidebar blocks */
.pkp_structure_sidebar .journal-menu-block,
.pkp_structure_sidebar .author-downloads-block,
.pkp_structure_sidebar .journal-info-block,
.pkp_structure_sidebar .welcome-ajass-block {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

/* Make Submission button gap reduce */
.pkp_structure_sidebar .block_make_submission {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pkp_structure_sidebar .block_make_submission a {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Remove empty heading spacing */
.pkp_structure_sidebar h2:empty,
.pkp_structure_sidebar h3:empty {
  display: none !important;
}


/* ================= FOOTER ================= */

.pkp_structure_footer_wrapper {
  background: #ffffff !important;
  padding: 0 !important;
  margin: 0 !important;
}

.pkp_structure_footer {
  background: #ffffff !important;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.custom-footer {
  background: #ffffff !important;
  color: #333333 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 35px 30px 25px 30px !important;
  box-sizing: border-box;
  font-family: "Times New Roman", Times, serif;
}

.custom-footer-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  width: 100%;
  margin: 0;
  padding: 0;
  align-items: flex-start;
  box-sizing: border-box;
}

.footer-box img {
  max-width: 100%;
  height: auto;
}

.footer-box h3 {
  color: #222222 !important;
  font-size: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 6px;
  text-transform: uppercase;
}

.footer-box p,
.footer-box li {
  color: #333333 !important;
  font-size: 14px;
  line-height: 1.6;
  margin: 7px 0;
}

.footer-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-box a {
  color: #333333 !important;
  text-decoration: none;
}

.footer-box a:hover {
  color: #000000 !important;
  text-decoration: underline;
}

/* Remove OJS default brand footer */
.pkp_brand_footer,
.pkp_structure_footer_wrapper::after,
.pkp_structure_footer::after {
  display: none !important;
}

html,
body {
  margin: 0 !important;
  padding-bottom: 0 !important;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .custom-footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .pkp_site_name_wrapper {
    padding: 8px 10px !important;
  }

  .pkp_site_name .is_img img {
    max-height: 75px;
  }

  .pkp_navigation_primary > li > a {
    padding: 9px 12px !important;
    font-size: 14px;
  }

  .custom-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .obj_article_details .abstract,
  .obj_article_details .abstract p,
  .obj_article_details .item.abstract,
  .obj_article_details .item.abstract p,
  .obj_article_summary .summary,
  .obj_article_summary .summary p {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .custom-footer-inner {
    grid-template-columns: 1fr;
  }
}
/* ================= WhatsApp ================= */
.apg-wa-smart-block {
  width: 100%;
  margin: 18px 0 30px 0;
  font-family: Arial, Helvetica, sans-serif;
}

.apg-wa-smart-block a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #238b2f;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 5px;
  overflow: hidden;
  min-height: 68px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transition: all 0.25s ease;
}

.apg-wa-smart-block a:hover {
  background: #1f7d2a;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.apg-wa-left {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 10px 10px;
  flex: 1;
}

.apg-wa-circle {
  width: 48px;
  height: 48px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1fb94d;
  color: #ffffff;
  font-size: 27px;
  font-weight: bold;
  line-height: 1;
}

.apg-wa-text {
  color: #ffffff;
  line-height: 1.05;
}

.apg-wa-small {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.apg-wa-main {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.apg-wa-right {
  width: 105px;
  min-height: 68px;
  background: #ffffff;
  color: #238b2f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  padding: 8px;
  box-sizing: border-box;
}

.apg-wa-phone-icon {
  width: 22px;
  height: 34px;
  border: 3px solid #238b2f;
  border-radius: 3px;
  position: relative;
}

.apg-wa-phone-icon:after {
  content: "";
  width: 6px;
  height: 6px;
  background: #238b2f;
  border-radius: 50%;
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 600px) {
  .apg-wa-smart-block a {
    min-height: 62px;
  }

  .apg-wa-main {
    font-size: 18px;
  }

  .apg-wa-small {
    font-size: 10px;
  }

  .apg-wa-right {
    width: 92px;
    font-size: 11px;
  }

  .apg-wa-circle {
    width: 42px;
    height: 42px;
    font-size: 23px;
  }
}
/*================= Full-width header banner for OJS================= */
.pkp_structure_head {
    background: #245c86;
    padding: 0;
    margin: 0;
    width: 100%;
}

.pkp_site_name {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none !important;
}

.pkp_site_name .is_img {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.pkp_site_name .is_img img {
    display: block;
    width: 100% !important;
    height: 220px !important;   /* change height here */
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
}