/* =========================================================
   JIARI – One Design System (Logo Green Palette)
   ========================================================= */
:root {
  --primary: #0d5c3d;
  --primary-dark: #083d28;
  --primary-light: #1a7a52;
  --accent: #2e8b57;
  --accent-soft: #e8f5ee;
  --gold: #c9a227;
  --gold-hover: #b8911f;
  --text: #1a2e24;
  --text-muted: #4a6356;
  --bg: #f3f8f5;
  --white: #ffffff;
  --border: #cfe0d6;
  --success: #198754;
  --shadow: 0 4px 22px rgba(13, 92, 61, 0.09);
  --radius: 0.55rem;
}

* { box-sizing: border-box; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: #d4e8dc;
  font-size: 0.84rem;
  padding: 0.45rem 0;
}
.top-bar a { color: #c5e0d0; }
.top-bar a:hover { color: #fff; }

/* Header + Logo */
.journal-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow);
}
.journal-brand {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.9rem 0;
}
.journal-brand img {
  height: 72px;
  width: auto;
  object-fit: contain;
}
.journal-title-block h1 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--primary);
}
.journal-title-block .issn-line {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
}
.journal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}
.journal-badges .badge {
  font-weight: 500;
  font-size: 0.72rem;
  padding: 0.28em 0.65em;
  background: var(--accent-soft);
  color: var(--primary);
  border: 1px solid #b8d9c6;
  border-radius: 2rem;
}

/* Navigation */
.main-nav {
  background: var(--primary);
  padding: 0;
}
.main-nav .navbar-nav .nav-link {
  color: rgba(255,255,255,0.93) !important;
  font-weight: 500;
  font-size: 0.93rem;
  padding: 0.8rem 1.05rem !important;
  transition: background 0.2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.14);
}
.main-nav .dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-radius: 0.4rem;
  padding: 0.4rem 0;
}
.main-nav .dropdown-item {
  font-size: 0.9rem;
  padding: 0.5rem 1.3rem;
}
.main-nav .dropdown-item:hover {
  background: var(--accent-soft);
  color: var(--primary);
}
.btn-login-nav {
  background: rgba(255,255,255,0.15);
  color: #fff !important;
  font-weight: 600;
  border-radius: 0.3rem;
  padding: 0.4rem 1rem !important;
  margin-left: 0.4rem;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-login-nav:hover { background: rgba(255,255,255,0.28); color: #fff !important; }
.btn-submit-nav {
  background: var(--gold);
  color: #1a1a1a !important;
  font-weight: 600;
  border-radius: 0.3rem;
  padding: 0.4rem 1.1rem !important;
  margin-left: 0.5rem;
}
.btn-submit-nav:hover { background: var(--gold-hover); color: #000 !important; }

/* Hero */
.hero-journal {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, #1a7a52 100%);
  color: #fff;
  padding: 3.8rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}
.hero-journal::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 55%;
  height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-journal h2 { color: #fff; font-size: 1.9rem; margin-bottom: 1rem; }
.hero-journal .lead { font-size: 1.12rem; opacity: 0.95; max-width: 700px; }
.hero-actions .btn { min-width: 155px; font-weight: 600; border-radius: 0.35rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
  font-size: 0.92rem;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.13);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
}

/* Sections */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  position: relative;
  padding-bottom: 0.55rem;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

.glance-table {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.glance-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  width: 34%;
  font-size: 0.92rem;
}
.glance-table td, .glance-table th {
  padding: 0.72rem 1.1rem;
  border-color: var(--border);
  font-size: 0.94rem;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: box-shadow 0.25s, transform 0.25s;
}
.info-card:hover {
  box-shadow: 0 10px 28px rgba(13,92,61,0.12);
  transform: translateY(-3px);
}
.info-card .icon-wrap {
  width: 50px;
  height: 50px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.issue-header {
  background: var(--white);
  border-left: 5px solid var(--primary);
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 0 0.4rem 0.4rem 0;
  box-shadow: var(--shadow);
}

.process-step { text-align: center; padding: 1.2rem 0.6rem; }
.process-step .step-num {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 4px 14px rgba(13,92,61,0.28);
}
.process-step h6 { font-size: 0.95rem; margin-bottom: 0.3rem; }

/* Diagram / process visual */
.process-diagram {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
}
.process-diagram .pd-step {
  flex: 1 1 100px;
  min-width: 100px;
  max-width: 130px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 0.5rem;
  text-align: center;
  position: relative;
}
.process-diagram .pd-step .num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.process-diagram .pd-arrow {
  display: flex;
  align-items: center;
  color: var(--accent);
  font-size: 1.4rem;
  padding: 0 0.15rem;
}

.price-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 0.65rem;
  padding: 1.8rem;
  text-align: center;
  height: 100%;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 32px rgba(13,92,61,0.14);
}
.price-card .price {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Merriweather', serif;
}

.page-header {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 2.1rem 0;
}
.page-header h1 { color: #fff; font-size: 1.7rem; margin: 0; }
.page-header .breadcrumb { margin: 0.45rem 0 0; background: transparent; padding: 0; }
.page-header .breadcrumb-item a { color: #b8dcc8; }
.page-header .breadcrumb-item.active { color: #fff; }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: #8ab89a; }

.content-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
  margin-top: -1.4rem;
  position: relative;
  z-index: 2;
}

/* Auth */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eef6f1 0%, #d8ebe0 100%);
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 12px 40px rgba(13,92,61,0.12);
  padding: 2.4rem 2.2rem;
}
.auth-card .auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-card .auth-logo img { height: 70px; margin-bottom: 0.6rem; }
.auth-card .auth-logo h2 { font-size: 1.35rem; margin: 0; }
.auth-card .auth-logo p { font-size: 0.9rem; color: var(--text-muted); margin: 0.25rem 0 0; }
.auth-card .form-label { font-weight: 600; font-size: 0.88rem; }
.auth-card .form-control {
  border-radius: 0.4rem;
  padding: 0.65rem 0.9rem;
  border-color: var(--border);
}
.auth-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(46,139,87,0.18);
}
.auth-card .btn-auth {
  background: var(--primary);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem;
  border-radius: 0.4rem;
  width: 100%;
}
.auth-card .btn-auth:hover { background: var(--primary-dark); color: #fff; }
.auth-note {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  border-radius: 0 0.35rem 0.35rem 0;
  margin-top: 1.25rem;
}

/* Modal popup for process diagram */
.modal-content { border: none; border-radius: 0.65rem; overflow: hidden; }
.modal-header {
  background: var(--primary);
  color: #fff;
  border: none;
}
.modal-header .btn-close { filter: brightness(0) invert(1); }

/* Footer */
.journal-footer {
  background: var(--primary-dark);
  color: #b8d0c4;
  padding: 3rem 0 1.4rem;
  margin-top: 3.5rem;
  font-size: 0.91rem;
}
.journal-footer h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
}
.journal-footer a { color: #b8d0c4; }
.journal-footer a:hover { color: #fff; }
.journal-footer ul { padding-left: 0; list-style: none; }
.journal-footer ul li { margin-bottom: 0.35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.84rem;
}

@media (max-width: 991px) {
  .journal-title-block h1 { font-size: 1.05rem; }
  .journal-brand img { height: 56px; }
  .hero-journal h2 { font-size: 1.45rem; }
}
@media (max-width: 575px) {
  .hero-actions .btn { width: 100%; margin-bottom: 0.45rem; }
  .content-wrap { padding: 1.4rem; }
  .auth-card { padding: 1.8rem 1.4rem; }
  .process-diagram .pd-arrow { display: none; }
}

/* Clean nav actions */
.main-nav .btn-outline-light {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  font-weight: 500;
}
.main-nav .btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
}
.main-nav .navbar-nav .nav-link {
  white-space: nowrap;
}
@media (min-width: 992px) {
  .main-nav .navbar-nav .nav-link {
    padding: 0.75rem 0.65rem !important;
    font-size: 0.88rem;
  }
}

/* Designer credit – subtle animated effect */
.designer-credit {
  font-size: 0.85rem;
  color: #9bb5a8;
  letter-spacing: 0.02em;
}
.kdrt-brand {
  display: inline-block;
  font-weight: 600;
  background: linear-gradient(90deg, #7dcea0, #f4d03f, #5dade2, #7dcea0);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: kdrt-shine 4s ease-in-out infinite;
}
@keyframes kdrt-shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.kdrt-brand:hover {
  filter: brightness(1.15);
}

/* Issue / article list (shared) */
.issue-hero {
  background: linear-gradient(135deg, #0d5c3d 0%, #1a7a52 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}
.issue-hero h1 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.issue-hero .meta { opacity: 0.9; font-size: 0.95rem; }
.toc-section {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}
.article-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
  background: #fff;
}
.article-item h2 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}
.article-item h2 a {
  color: var(--primary-dark);
  text-decoration: none;
}
.article-item h2 a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.article-item .authors { color: #555; font-size: 0.95rem; margin-bottom: 0.35rem; }
.article-item .pages { font-size: 0.85rem; color: #777; margin-bottom: 0; }
.article-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.65rem; }
.archive-year {
  font-size: 1.25rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  margin: 1.5rem 0 1rem;
}
.issue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.issue-row h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.issue-row .meta { font-size: 0.9rem; color: #666; margin: 0; }
.abstract-box {
  background: #f8faf9;
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.35rem;
  border-radius: 0 10px 10px 0;
  margin-bottom: 1.5rem;
}
.cite-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

.footer-legal {
  white-space: normal;
  font-size: 0.85rem;
  color: #9bb5a8;
}
@media (min-width: 768px) {
  .footer-legal {
    white-space: nowrap;
  }
}

.footer-quick-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
@media (min-width: 768px) {
  .footer-quick-links {
    display: inline-block;
    text-align: left;
  }
}

/* Issue hero – ensure title always visible */
.issue-hero {
  background: linear-gradient(135deg, #0d5c3d 0%, #1a7a52 100%) !important;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(13, 92, 61, 0.25);
}
.issue-hero h1,
.issue-hero h1#issueTitle {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 0.4rem !important;
  line-height: 1.35 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.issue-hero .meta,
.issue-hero #issueMeta {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 0.95rem !important;
  opacity: 1 !important;
}

/* Guideline cards / policy visuals */
.guide-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
}
.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft, #e8f5f0);
  color: var(--primary, #0d5c3d);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(13, 92, 61, 0.15);
}
.section-card {
  background: #fff;
  border: 1px solid var(--border, #e2e8e6);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.section-card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark, #0a4a31);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-card h3 .num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.policy-tile {
  background: linear-gradient(180deg, #f8faf9 0%, #fff 100%);
  border: 1px solid var(--border, #e2e8e6);
  border-radius: 12px;
  padding: 1.15rem;
  text-align: center;
}
.policy-tile i {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.policy-tile h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
}
.policy-tile p {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}
.stage-table th {
  background: #0d5c3d !important;
  color: #fff !important;
}
