/* ========================================================================
Konstelasi Journal Stylesheet
Adapted from AJSTD v1.031 (4 April 2019) by Joaquim Baeta
Restyled to match modern academic journal design system

Color Palette:
- Primary Blue:  #1e3a8a
- Accent Blue:   #2563eb
- Light Blue:    #dbeafe / #bfdbfe
- Text:          #334155
- Muted:         #64748b / #475569
- Background:    #f8fafc / #ffffff
======================================================================== */

/* 1. Typography */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: #1e3a8a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: #2563eb;
  color: #ffffff;
}

.border-hover {
  color: #1e3a8a;
  border-bottom: 0px solid #bfdbfe;
  transition: cubic-bezier(.45,.05,.55,.95) 0.15s;
}

.border-hover:hover {
  text-decoration: none;
  border-bottom: 3px solid #bfdbfe;
}

.navbar-logo a {
  border-bottom: 0px solid #bfdbfe;
  transition: cubic-bezier(.45,.05,.55,.95) 0.15s;
}

.navbar-logo a:hover {
  border-bottom: 10px solid #bfdbfe;
}

.article-summary-title a {
  color: #0f172a;
  border-bottom: 0px solid #bfdbfe;
  transition: cubic-bezier(.45,.05,.55,.95) 0.15s;
  font-weight: 600;
}

.article-summary-title a:hover {
  border-bottom: 3px solid #bfdbfe;
  color: #1e3a8a;
}

.article-details-issue-identifier a {
  border-bottom: 0px solid #bfdbfe;
  transition: cubic-bezier(.45,.05,.55,.95) 0.15s;
}

.article-details-issue-identifier a:hover,
.article-details-issue-identifier a:focus {
  text-decoration: none;
  border-bottom: 3px solid #bfdbfe;
}

.article-details-doi a {
  border-bottom: 0px solid #bfdbfe;
  transition: cubic-bezier(.45,.05,.55,.95) 0.15s;
}

.article-details-doi a:hover,
.article-details-doi a:focus {
  text-decoration: none;
  border-bottom: 3px solid #bfdbfe;
}

/* 2. Global */
/* 2.1 Body */
body {
  color: #334155;
  background-color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
}

/* 2.2 Header */
.main-header {
  border-bottom: 1px solid #e2e8f0;
  background-color: #ffffff;
}

.navbar-logo {
  max-width: 80%;
  padding-top: 2.5rem;
}

.navbar-logo img {
  width: 100%;
}

/* 2.3 Navbar */
#userNav .nav-link,
.language-toggle .dropdown-toggle {
  color: #64748b;
  font-weight: 500;
}

#userNav .nav-link:hover,
.language-toggle .dropdown-toggle:hover,
#userNav .nav-link:focus,
.language-toggle .dropdown-toggle:focus {
  outline: 0;
  border-color: transparent;
  color: #1e3a8a;
}

#primaryNav .nav-link {
  font-weight: 500;
  color: #334155;
}

#primaryNav .nav-link:hover,
#primaryNav .nav-link:focus {
  background: transparent;
  color: #2563eb;
  border-color: transparent;
}

.badge-light {
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 500;
}

.dropdown-item {
  transition: ease-in-out 0.2s;
  color: #334155;
}

.dropdown-item:hover,
.dropdown-item:focus {
  border-color: transparent;
  background-color: #eff6ff;
  color: #1e3a8a !important;
}

.has_site_logo {
  width: 100%;
}

.pkp_site_name .is_img img {
  max-height: 80%;
}

#headerNavigationContainer {
  background-color: coral;
}

#navigationPrimary {
      padding: 5px 50px 5px 100px;
}

#navigationPrimary .dropdown-menu.show {
  border-radius: 0px 0px 8px 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#navigationPrimary .dropdown-item {
  color: #334155;
  transition: ease-in-out 0.2s;
}

#navigationPrimary .dropdown-item:hover,
#navigationPrimary .dropdown-item:focus {
  background: #eff6ff;
  color: #1e3a8a;
  border-color: transparent;
}

/* 2.4 Footer */
#customblock-prefooter {
  flex-basis: auto;
  width: 100%;
  padding: 0;
}

.site-footer {
  background: #1e3a8a;
  color: #dbeafe;
  padding-bottom: 0;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: ease-in-out 0.2s;
}

.site-footer a:hover {
  color: #bfdbfe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer .row .align-self-center {
  -ms-flex-item-align: flex-start !important;
  align-self: flex-start !important;
}

.footer-brand-image {
  max-width: 92px;
}

/* 2.5 Tooltips */
.hint {
  position: relative;
  display: inline-block;
  color: #1e3a8a;
}

.hint .hint-text {
  visibility: hidden;
  width: 200px;
  background-color: #1e3a8a;
  color: #ffffff;
  border-radius: 6px;
  padding: 10px 12px;
  position: absolute;
  z-index: 1;
  bottom: 110%;
  left: 50%;
  transform: translate(-50%);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.3s;
}

.hint .hint-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1e3a8a transparent transparent transparent;
}

.hint:hover .hint-text {
  visibility: visible;
  opacity: 1;
}

/* 3. Styling */
.btn {
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  color: #334155;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85em;
  letter-spacing: 0.5px;
  padding: 0.5em 1.2em;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.btn-primary {
  border-radius: 6px;
  border-color: #1e3a8a !important;
  background-color: #2563eb;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #1e3a8a;
  border-color: #1e3a8a !important;
  color: #ffffff;
}

.modal-content .btn-primary {
  background: transparent;
  border-radius: 6px !important;
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  transition: ease-in-out 0.2s;
}

.modal-content .btn-primary:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.form-control {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  transition: all 0.2s ease;
}

.form-control:hover {
  border-color: #94a3b8;
}

.form-control:focus {
  color: #0f172a;
  background-color: #ffffff;
  border-color: #2563eb;
  outline: 0;
  box-shadow: 0 0 0 0.2rem #bfdbfe;
}

@media (max-width: 575px) {
  .list-img {
    text-align: center !important;
  }
  .list-img > img {
    width: 150px !important;
    margin-bottom: 2rem;
  }
}

/* 4. Page-specific */
/* 4.1 Homepage */
/* 4.1.1 Homepage issue */
.homepage-image-behind-issue::after {
  background: rgba(30, 58, 138, 0.3);
}

.homepage-issue-current {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e3a8a;
  letter-spacing: 0.5px;
}

.homepage-issue-cover {
  width: 210px;
  height: 297px;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.homepage-issue-identifier {
  display: none;
}

.homepage-issue-published {
  margin-top: 1.5rem !important;
  color: #64748b;
}

.homepage-issue-description-wrapper {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 0 1px #e2e8f0;
  height: 297px;
  padding: 2.8rem 3rem;
  border-radius: 8px;
}

.homepage-issue-description .h2 {
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
}

.homepage-issue-description p {
  color: #475569;
}

.homepage-issue-description-more > a {
  padding: .6em 1.4em;
  border-radius: 6px;
  border: 1px solid #2563eb;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: ease-in-out 0.2s;
}

.homepage-issue-description-more > a:hover {
  border-color: #1e3a8a;
  background-color: #eff6ff;
  color: #1e3a8a;
}

.homepage-issue-description::after {
  background-image: linear-gradient(rgba(255, 255, 255, 0), #ffffff 20%);
}

@media (max-width: 1199px) {
  .homepage-issue-current {
    color: #64748b;
  }
  .homepage-issue-published {
    color: #94a3b8;
  }
  .homepage-issue-description-wrapper {
    background: #ffffff;
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }
  .homepage-issue-description::after {
    background-image: linear-gradient(rgba(255, 255, 255, 0), #ffffff 20%);
  }
}

/* 4.1.2 Homepage table of contents */
.issue-toc-section-title {
  font-size: 1.75rem;
  color: #1e3a8a;
  font-weight: 700;
  border-bottom: 2px solid #2563eb;
  padding-bottom: 8px;
}

.article-summary-authors,
.article-summary-pages {
  font-size: 0.9rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.33;
  letter-spacing: 0.3px;
}

@media (min-width: 992px) {
  .article-summary-pages {
    width: 56px;
  }
}

.article-summary-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-style: normal;
  font-weight: 600;
  color: #0f172a;
}

.article-summary-doi {
  display: none;
}

/* 4.1.3 Introduction */
.asean-terms {
  list-style: none;
}

.asean-terms li::before {
  content: "\2aa2";
  color: #2563eb;
  font-size: 1rem;
  display: inline-block;
  width: 2.5rem;
  margin-left: -2.5rem;
}

/* 4.2 Article page */
.article-details-issue-identifier a {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #64748b;
  font-size: 1.15rem;
  font-weight: 500;
}

.article-details-issue-section {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85em;
  font-weight: 600;
}

.article-details-published {
  color: #64748b;
}

.authors-string {
  font-size: 1.25rem;
  color: #1e3a8a;
  font-weight: 600;
}

.authors-string a {
  border-bottom: 0px solid #bfdbfe;
  color: #1e3a8a;
}

.authors-string a:hover {
  color: #2563eb;
}

/* 4.3 Contact page */
.contact-name {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.contact-affiliation {
  font-size: 16px;
  color: #64748b;
}

.contact-email {
  font-size: 16px;
  color: #2563eb;
}

/* 4.4 Submissions page */
.submissions-checklist ul {
  margin-top: 1rem;
  list-style: none;
}

.submissions-checklist ul li::before {
  content: "\2aa2";
  color: #2563eb;
  font-size: 1rem;
  display: inline-block;
  width: 2.5rem;
  margin-left: -2.7rem;
}

/* 4.5 FAQ page */
.faq-return a {
  color: #64748b;
  transition: ease-in-out 0.2s;
  font-weight: 500;
}

.faq-return a:hover {
  color: #1e3a8a;
  text-decoration: none;
}

/* ========================================================================
Additional Enhancements for Consistency with Inline Components
======================================================================== */

/* Policy page cards (for use with inline-styled policy content) */
.policy-card {
  background-color: #f8fafc;
  border-left: 4px solid #2563eb;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-radius: 0 6px 6px 0;
}

.policy-card--teal {
  background-color: #f0fdfa;
  border-left-color: #0d9488;
}

.policy-card--indigo {
  background-color: #eef2ff;
  border-left-color: #4f46e5;
}

.policy-card--amber {
  background-color: #fffbeb;
  border-left-color: #f59e0b;
}

.policy-card--red {
  background-color: #fef2f2;
  border-left-color: #dc2626;
}

.policy-card__title {
  color: #1e3a8a;
  display: block;
  margin-bottom: 8px;
  font-size: 1.05em;
  font-weight: 700;
}

/* Sidebar navigation consistency */
.sidebar-nav {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  max-width: 320px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-nav__header {
  background-color: #1e3a8a;
  color: #ffffff;
  font-size: 1em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 14px 16px;
}

.sidebar-nav__item {
  display: flex;
  align-items: center;
  padding: 11px 16px;
  color: #334155;
  text-decoration: none;
  font-size: 0.9em;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.sidebar-nav__item:hover {
  background-color: #eff6ff;
  color: #1e3a8a;
  text-decoration: none;
}

.sidebar-nav__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #2563eb;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}