/* =========================================================
   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;
}

.pkp_site_name {
    margin: 0;
    padding: 0;
    width: 100%;
}

.pkp_site_name .is_img {
    display: block;
    width: 100%;
}

.pkp_site_name .is_img img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}
.ajass-journal-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #222222;
    background-color: #ffffff;
    border: 1px solid #d9dee5;
    box-sizing: border-box;
    font-family: Georgia, "Times New Roman", serif;
}

.ajass-journal-page *,
.ajass-journal-page *::before,
.ajass-journal-page *::after {
    box-sizing: border-box;
}

.ajass-header {
    padding: 24px 20px;
    color: #ffffff;
    background-color: #1f5f8b;
}

.ajass-header .ajass-label {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.ajass-header h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
}

.ajass-header .ajass-subtitle {
    max-width: 850px;
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.8;
}

.ajass-layout {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.ajass-sidebar {
    flex: 0 0 32%;
    width: 32%;
    padding: 18px;
    background-color: #f5f6f8;
    border-right: 1px solid #d9dee5;
}

.ajass-sidebar-box {
    margin-bottom: 20px;
    padding: 14px;
    background-color: #ffffff;
    border: 1px solid #d9dee5;
}

.ajass-sidebar-box:last-child {
    margin-bottom: 0;
}

.ajass-sidebar-box h2 {
    margin: 0 0 10px;
    color: #1f5f8b;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.ajass-sidebar-box p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.7;
}

.ajass-sidebar-box p:last-child {
    margin-bottom: 0;
}

.ajass-navigation a {
    display: block;
    padding: 4px 0;
    color: #1f5f8b;
    line-height: 1.6;
    text-decoration: none;
}

.ajass-navigation a:hover,
.ajass-navigation a:focus {
    color: #163f5d;
    text-decoration: underline;
}

.ajass-email a {
    color: #1f5f8b;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.ajass-main-content {
    flex: 1;
    min-width: 0;
    padding: 20px;
    background-color: #ffffff;
}

.ajass-section {
    margin-bottom: 22px;
    scroll-margin-top: 20px;
}

.ajass-section:last-child {
    margin-bottom: 0;
}

.ajass-section > h2 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    color: #1f5f8b;
    border-bottom: 1px solid #d9dee5;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
}

.ajass-content-box,
.ajass-subject-box {
    padding: 16px;
    background-color: #fbfcfd;
    border: 1px solid #d9dee5;
}

.ajass-content-box p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
}

.ajass-content-box p:last-child {
    margin-bottom: 0;
}

.ajass-subject-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ajass-subject-box h3 {
    margin: 0 0 10px;
    color: #1f5f8b;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.ajass-subject-box ul {
    margin: 0;
    padding-left: 20px;
    font-size: 16px;
    line-height: 1.9;
}

.ajass-office a {
    color: #1f5f8b;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.ajass-office a:hover,
.ajass-office a:focus {
    text-decoration: underline;
}

/* Tablet and mobile */
@media screen and (max-width: 768px) {
    .ajass-header {
        padding: 20px 16px;
    }

    .ajass-header h1 {
        font-size: 25px;
    }

    .ajass-layout {
        display: block;
    }

    .ajass-sidebar {
        width: 100%;
        padding: 15px;
        border-right: 0;
        border-bottom: 1px solid #d9dee5;
    }

    .ajass-main-content {
        width: 100%;
        padding: 15px;
    }

    .ajass-section > h2 {
        font-size: 22px;
    }

    .ajass-subject-grid {
        grid-template-columns: 1fr;
    }

    .ajass-content-box p {
        font-size: 15px;
        line-height: 1.75;
        text-align: left;
    }

    .ajass-subject-box ul {
        font-size: 15px;
        line-height: 1.75;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .ajass-journal-page {
        border-right: 0;
        border-left: 0;
    }

    .ajass-header {
        padding: 18px 14px;
    }

    .ajass-header h1 {
        font-size: 22px;
        line-height: 1.35;
    }

    .ajass-header .ajass-subtitle {
        font-size: 15px;
        line-height: 1.65;
    }

    .ajass-sidebar,
    .ajass-main-content {
        padding: 12px;
    }

    .ajass-sidebar-box,
    .ajass-content-box,
    .ajass-subject-box {
        padding: 13px;
    }

    .ajass-section > h2 {
        font-size: 20px;
    }

    .ajass-subject-box h3 {
        font-size: 18px;
    }
}
/* AJASS homepage content */

.ajass-home-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    color: #222;
    font-family: Georgia, "Times New Roman", serif;
    box-sizing: border-box;
}

.ajass-home-content *,
.ajass-home-content *::before,
.ajass-home-content *::after {
    box-sizing: border-box;
}

/* Introduction banner */

.ajass-intro-banner {
    width: 100%;
    margin: 0 0 28px;
    padding: 24px 22px;
    color: #fff;
    background: #1f5f8b;
    border-radius: 3px;
}

.ajass-intro-banner .ajass-small-title {
    margin: 0 0 7px;
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.ajass-intro-banner h2 {
    margin: 0 0 9px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    border: 0;
    padding: 0;
}

.ajass-intro-banner p {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.7;
}

/* Main sections */

.ajass-section {
    width: 100%;
    margin: 0 0 26px;
    scroll-margin-top: 30px;
}

.ajass-section > h2 {
    margin: 0 0 12px;
    padding: 0 0 8px;
    color: #1f5f8b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 1px solid #d9dee5;
}

.ajass-content-box,
.ajass-subject-card {
    width: 100%;
    padding: 17px;
    background: #fbfcfd;
    border: 1px solid #d9dee5;
    border-radius: 2px;
}

.ajass-content-box p {
    margin: 0 0 13px;
    color: #222;
    font-size: 16px;
    line-height: 1.85;
    text-align: left;
}

.ajass-content-box p:last-child {
    margin-bottom: 0;
}

/* Subject cards */

.ajass-subject-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.ajass-subject-card h3 {
    margin: 0 0 11px;
    color: #1f5f8b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.ajass-subject-card ul {
    margin: 0;
    padding-left: 22px;
    color: #222;
    font-size: 16px;
    line-height: 1.8;
}

.ajass-subject-card li {
    margin-bottom: 4px;
}

.ajass-office a {
    color: #1f5f8b;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-decoration: none;
}

.ajass-office a:hover,
.ajass-office a:focus {
    text-decoration: underline;
}

/* Tablet and mobile */

@media screen and (max-width: 768px) {

    .ajass-intro-banner {
        padding: 20px 17px;
        margin-bottom: 22px;
    }

    .ajass-intro-banner h2 {
        font-size: 24px;
    }

    .ajass-intro-banner p {
        font-size: 15px;
        line-height: 1.65;
    }

    .ajass-section {
        margin-bottom: 22px;
    }

    .ajass-section > h2 {
        font-size: 21px;
    }

    .ajass-subject-grid {
        display: block;
    }

    .ajass-subject-card {
        margin-bottom: 15px;
    }

    .ajass-subject-card:last-child {
        margin-bottom: 0;
    }

    .ajass-content-box,
    .ajass-subject-card {
        padding: 14px;
    }

    .ajass-content-box p,
    .ajass-subject-card ul {
        font-size: 15px;
        line-height: 1.7;
    }

    .ajass-subject-card h3 {
        font-size: 18px;
    }
}

/* Small phones */

@media screen and (max-width: 480px) {

    .ajass-intro-banner {
        padding: 17px 14px;
    }

    .ajass-intro-banner h2 {
        font-size: 21px;
    }

    .ajass-section > h2 {
        font-size: 20px;
    }

    .ajass-content-box,
    .ajass-subject-card {
        padding: 13px;
    }
}