/* ==========================================================================
   EDITORIAL ACADEMIC POLISH LAYER
   Inspired by modern open-source GitHub academic & editorial themes
   Pairs with locally vendored GitHub AOS (michalsnik/aos)
   Media Digital Publikasi Indonesia
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Refined Editorial Typography & Selection */
::selection {
  background: rgba(2, 132, 199, 0.16);
  color: #0c192c;
}

/* Subtle Paper Surface Rhythm & Hairline Borders */
.section {
  position: relative;
}
.section-alt {
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

/* Tactile Editorial Cards (Services, Products, Journals, Workflow) */
.service-card,
.journal-card,
.workflow-card-adaptive,
.turnitin-table-card,
.cert-preview-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease;
}

.service-card:hover,
.journal-card:hover,
.workflow-card-adaptive:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -12px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  border-color: rgba(2, 132, 199, 0.38);
}

/* Refined Journal Cards */
.journal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  position: relative;
}
.journal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, #0f2747, #0284c7, #d97706);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.journal-card:hover::before {
  opacity: 1;
}

/* Polished Buttons with Tactile Feedback */
.btn {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.28);
}
.btn-primary:hover {
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.38);
}

/* Elevated Editor Spotlight Box */
.editor-spotlight-box {
  border-radius: 20px;
  box-shadow: 0 20px 45px -15px rgba(10, 22, 40, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Form Input Focus Ring (Humanized Accessibility) */
.search-input:focus,
.year-select:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

/* Smooth FAQ Chevron Rotation */
.faq-card .faq-question-btn svg {
  transition: transform 0.25s ease;
}
.faq-card.is-open .faq-question-btn svg {
  transform: rotate(180deg);
  color: #0284c7;
}

/* Subtle Reading Progress Bar at Top of Viewport */
#editorialScrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0284c7, #d97706);
  z-index: 1200;
  pointer-events: none;
  transition: width 0.08s linear;
}
