html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #2f6fd0;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f4f6f9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ============ AUTH PAGES ============ */

.auth-page {
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.auth-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0b2a5e 0%, #1d55a8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(10, 42, 94, 0.3);
}

.auth-logo i {
  font-size: 2.2rem;
  color: white;
}

.auth-card {
  border-radius: 12px;
  background: #fff;
}

.auth-input {
  border: 2px solid #e8ecf0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.auth-input:focus {
  border-color: #8a1e35;
  box-shadow: 0 0 0 0.2rem rgba(138, 30, 53, 0.15);
}

.auth-btn {
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #8a1e35 0%, #b02a45 100%);
  border: none;
  transition: all 0.3s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(138, 30, 53, 0.4);
  background: linear-gradient(135deg, #a3243e 0%, #8a1e35 100%);
}

/* ============ NAVBAR ============ */

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-brand img {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.25));
}

.navbar-brand-sub {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.navbar-dark.bg-primary {
  background: linear-gradient(135deg, #0b2a5e 0%, #1d55a8 100%) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid #8a1e35;
}

.nav-link {
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 0.4rem 0.8rem !important;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ============ CARDS ============ */

.card {
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header.bg-primary {
  background: linear-gradient(135deg, #0b2a5e 0%, #1d55a8 100%) !important;
  border-radius: 10px 10px 0 0 !important;
}

/* ============ BUTTONS ============ */

.btn-primary {
  background: linear-gradient(135deg, #8a1e35 0%, #b02a45 100%);
  border: none;
  font-weight: 500;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a3243e 0%, #8a1e35 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138, 30, 53, 0.35);
}

.btn-outline-primary {
  color: #8a1e35;
  border-color: #8a1e35;
}

.btn-outline-primary:hover {
  background: #8a1e35;
  border-color: #8a1e35;
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4, h5, h6 {
  color: #0b2a5e;
  font-weight: 600;
}

.text-primary {
  color: #8a1e35 !important;
}

/* ============ FOOTER ============ */

.footer-main {
  background: linear-gradient(135deg, #071e42 0%, #0b2a5e 100%);
}

.footer-top {
  background: transparent;
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon i {
  font-size: 1.1rem;
  color: white;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.social-icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: rgba(255,255,255,0.25);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
}

/* ============ TABLES ============ */

.table th {
  color: #0b2a5e;
  font-weight: 600;
  border-bottom-width: 2px;
}

/* ============ BADGES ============ */

.badge.bg-primary {
  background: linear-gradient(135deg, #8a1e35 0%, #b02a45 100%) !important;
}

/* ============ FORM CONTROLS ============ */

.form-control:focus {
  border-color: #8a1e35;
  box-shadow: 0 0 0 0.2rem rgba(138, 30, 53, 0.15);
}

.form-control-lg {
  border-radius: 8px;
}

/* ============ ALERTS ============ */

.alert-danger {
  border-radius: 8px;
  border-left: 4px solid #dc3545;
}

/* ============ DASHBOARD ============ */

.dashboard-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* ============ HOMEPAGE SECTIONS ============ */

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #04122e 0%, #071e42 25%, #0b2a5e 50%, #1d55a8 75%, #2f6fd0 100%);
  padding: 10rem 0;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(61,107,168,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.min-vh-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-badge .badge {
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-graphic {
  opacity: 0.8;
}

/* Stats Bar */
.stats-bar {
  position: relative;
  z-index: 2;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.stat-item {
  padding: 1rem 0;
}

.stat-item h4 {
  font-size: 1.8rem;
  color: #0b2a5e;
}

/* Search Card */
.search-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  border: 1px solid #e8ecf0;
}

.search-card .input-group-text {
  border-radius: 8px 0 0 8px;
  border: 2px solid #e8ecf0;
  border-right: none;
  background: #fff;
}

.search-card .form-control {
  border: 2px solid #e8ecf0;
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.search-card .form-control:focus {
  border-color: #1d55a8;
  box-shadow: none;
}

.search-card .btn {
  border-radius: 8px;
}

/* Feature Cards */
.feature-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  border-color: #1d55a8;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0b2a5e 0%, #1d55a8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

/* Journal Card */
.journal-card {
  background: #fff;
  border-radius: 5px;
  border: 1px solid #e8ecf0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.journal-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.journal-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fb 0%, #e8ecf0 100%);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #e8ecf0;
}

.journal-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0b2a5e 0%, #1d55a8 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.journal-icon i {
  font-size: 1.5rem;
  color: white;
}

.journal-body {
  padding: 1.5rem;
}

.journal-meta {
  margin-top: 1rem;
}

.journal-footer {
  padding: 1.25rem 1.5rem;
  background: #f8f9fb;
  border-top: 1px solid #e8ecf0;
}

/* Publication Cards */
.publication-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.publication-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-color: #1d55a8;
}

.publication-header {
  padding: 0.75rem 1.25rem;
  background: #f8f9fb;
  border-bottom: 1px solid #e8ecf0;
}

.bg-primary-subtle {
  background-color: rgba(29, 85, 168, 0.1) !important;
}

.publication-body {
  padding: 1.25rem;
  flex-grow: 1;
}

.publication-body h5 a:hover {
  color: #1d55a8 !important;
}

.publication-footer {
  padding: 1rem 1.25rem;
  background: #f8f9fb;
  border-top: 1px solid #e8ecf0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
  border-top: 1px solid #d0d7e0;
  border-bottom: 1px solid #d0d7e0;
}

/* Info Cards */
.info-card {
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #1d55a8 !important;
}

/* ============ DASHBOARD LOGO ============ */

.dash-logo img {
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(7, 30, 66, 0.25);
}

/* ============ PAYWALL ============ */

.paywall-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #d0d7e0;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.paywall-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b2a5e, #1d55a8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
}

.paywall-price {
  font-size: 2rem;
  font-weight: 700;
  color: #0a2550;
  margin-bottom: 1.25rem;
}

.access-granted {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ============ RESPONSIVE ============ */

/* Prevent horizontal scroll from 100vw full-bleed sections */
html, body {
  overflow-x: hidden;
}

@supports (min-height: 100dvh) {
  .hero-section { min-height: 100dvh; }
}

/* Tablet */
@media (max-width: 991.98px) {
  /* Navbar collapse into a clean dropdown panel */
  .navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar-collapse {
    background: rgba(7, 30, 66, 0.98);
    margin: 0.75rem -0.75rem -0.5rem;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 1rem;
    border-radius: 8px;
  }

  .navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
  }

  .navbar-nav .dropdown-menu {
    background: rgba(255,255,255,0.08);
    border: none;
  }

  .navbar-nav .dropdown-item {
    color: rgba(255,255,255,0.85);
    padding: 0.6rem 1rem;
  }

  .navbar-nav .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
  }

  .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.4rem 0.6rem;
  }

  /* Page hero banners scale down */
  .journals-hero, .board-hero, .issue-hero, .archives-hero {
    padding: 2.5rem 0 !important;
  }

  .journals-hero h1, .board-hero h1, .issue-hero h1, .archives-hero h1 {
    font-size: 1.75rem !important;
  }

  /* Headings */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }

  /* Section spacing */
  .container.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Phones */
@media (max-width: 767.98px) {
  .auth-page {
    padding: 1.5rem 0;
  }

  .auth-logo {
    width: 60px;
    height: 60px;
  }

  .auth-logo i {
    font-size: 1.6rem;
  }

  .card-body {
    padding: 1.25rem !important;
  }

  .hero-section {
    padding: 3.5rem 0;
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }

  .hero-section .display-3 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero-section .lead,
  .hero-section .fs-4 {
    font-size: 1rem !important;
  }

  .hero-section .fs-5 {
    font-size: 0.95rem !important;
  }

  /* Stack hero buttons full-width for easy tapping */
  .hero-section .btn-lg {
    width: 100%;
    padding: 0.8rem 1rem !important;
    font-size: 1rem !important;
    margin-bottom: 0.5rem;
  }

  .hero-section .d-flex {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  .min-vh-hero {
    min-height: auto;
  }

  .stats-bar {
    margin-top: 0;
  }

  .stat-item {
    padding: 0.75rem 0;
  }

  .stat-item h4 {
    font-size: 1.4rem;
  }

  .hero-badge .badge {
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
  }

  /* Tables scroll horizontally instead of breaking layout */
  .table-responsive {
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Footer columns */
  .footer-top .col-md-2.col-6 {
    margin-bottom: 0.5rem;
  }

  .footer-bottom .col-md-6 {
    text-align: center !important;
  }

  .footer-bottom .col-md-6 + .col-md-6 {
    margin-top: 0.5rem;
  }

  /* Journal / member / article cards full-width */
  .journal-actions .btn,
  .journal-actions {
    width: 100%;
  }

  .journal-actions .btn {
    margin-bottom: 0.4rem;
  }

  /* Issue article footer */
  .issue-article-footer {
    flex-wrap: wrap;
  }

  .issue-article-views {
    width: 100%;
    margin-left: 0;
    margin-top: 0.25rem;
  }

  /* Admin dashboard mobile — stacked, full-width menu */
  .admin-panel {
    flex-direction: column !important;
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0 0.75rem !important;
  }

  .admin-sidebar {
    width: 100% !important;
    padding: 0.75rem !important;
  }

  .admin-sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .admin-sidebar .sidebar-link {
    min-height: 44px;
  }

  .admin-topbar {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .stat-card-admin {
    padding: 1rem;
    gap: 0.75rem;
  }

  .stat-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  /* Pipeline rows */
  .pipeline-label {
    width: 80px;
    font-size: 0.72rem;
  }

  /* Trend chart */
  .trend-chart {
    gap: 0.5rem;
    height: 130px;
  }

  .trend-bar {
    width: 10px;
  }

  /* Manuscript detail workflow timeline */
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Touch-friendly tap targets */
  .btn-sm {
    min-height: 34px;
  }

  /* Forms */
  .form-control, .form-select {
    font-size: 16px; /* prevents iOS zoom on focus */
  }
}

/* Very small phones */
@media (max-width: 400px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .hero-section .display-3 {
    font-size: 1.5rem;
  }

  .journal-meta {
    grid-template-columns: 1fr;
  }
}

/* ============ ACADEMIC IDENTITY (international journal look) ============ */

:root {
  --lj-blue: #0b2a5e;
  --lj-blue-2: #1d55a8;
  --lj-blue-bright: #2f6fd0;
  --lj-maroon: #8a1e35;
  --lj-maroon-2: #b02a45;
  --lj-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --lj-sans: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: var(--lj-sans);
}

/* Serif headings — the signature journal look */
h1, h2, h3, h4, h5, h6,
.display-3, .display-4, .display-5,
.navbar-brand,
.card-title,
.article-title {
  font-family: var(--lj-serif);
}

/* Sharper, editorial geometry */
.card { border-radius: 5px; }
.auth-card { border-radius: 6px; }
.dashboard-card { border-radius: 6px; }
.btn { border-radius: 3px; font-weight: 600; }
.form-control { border-radius: 4px; }
.form-control-lg { border-radius: 4px; }
.auth-input { border-radius: 4px; }

/* Top utility bar — journal masthead strip */
.top-utility-bar {
  background: #04122e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
}
.top-utility-bar a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.top-utility-bar a:hover { color: #fff; }
.tub-sep { color: rgba(255, 255, 255, 0.28); margin: 0 0.55rem; }

/* Hero masthead details */
.hero-section .display-3 {
  font-family: var(--lj-serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-title-rule {
  width: 92px;
  height: 4px;
  background: linear-gradient(90deg, var(--lj-maroon), var(--lj-maroon-2));
  border-radius: 2px;
  margin: 1.4rem 0;
}
.hero-meta {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.hero-section .lead, .hero-section .fs-4 {
  font-family: var(--lj-sans);
}

/* Section header eyebrow style */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lj-maroon);
}

/* Table headers — journal index style */
.table th {
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  font-family: var(--lj-sans);
}

/* Footer maroon rule */
.footer-main {
  border-top: 4px solid var(--lj-maroon);
}

/* Article/citation look for publication cards */
.pub-meta {
  font-size: 0.8rem;
  color: #64748b;
}
.pub-meta i { color: var(--lj-maroon); }

/* Article page — journal two-column layout */
.article-breadcrumb .breadcrumb {
  font-size: 0.82rem;
}
.article-breadcrumb .breadcrumb-item a {
  color: var(--lj-blue-2);
  text-decoration: none;
}
.article-breadcrumb .breadcrumb-item a:hover { color: var(--lj-maroon); }
.article-breadcrumb .breadcrumb-item.active { color: #64748b; }

.article-heading {
  font-family: var(--lj-serif);
  font-size: 1.15rem;
  color: var(--lj-blue);
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
  margin-bottom: 0.9rem;
}
.article-abstract {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
  text-align: justify;
}

.article-side-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  overflow: hidden;
}
.article-side-title {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lj-blue);
}
.article-side-title i { color: var(--lj-maroon); }

.article-info-table td {
  font-size: 0.85rem;
  padding: 0.3rem 0;
}

.cite-box {
  background: #f8fafc;
  border-left: 3px solid var(--lj-maroon);
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #334155;
}

/* Journal cover */
.journal-cover {
  width: 100%;
  max-width: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 4px 6px 16px rgba(10, 42, 94, 0.18);
}

/* ============ MOBILE BOTTOM NAV ============ */

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #04122e 0%, #0b2a5e 100%);
  border-top: 3px solid var(--lj-maroon);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.28);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mnav-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.55rem 0.15rem 0.5rem;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.15s ease, background 0.15s ease;
}

.mnav-item i {
  font-size: 1.05rem;
  line-height: 1;
}

.mnav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.mnav-item.active {
  color: #fff;
  box-shadow: inset 0 3px 0 var(--lj-maroon-2);
  background: rgba(255, 255, 255, 0.07);
}

.mnav-item.active i {
  color: #e9a5b1;
}

.mnav-logout {
  border: 0;
  background: none;
  cursor: pointer;
  margin: 0;
}

.mnav-more {
  border: 0;
  background: none;
  cursor: pointer;
  margin: 0;
}

.phone-account-menu {
  height: min(78vh, 620px);
  border-radius: 18px 18px 0 0;
  border-top: 3px solid var(--lj-maroon);
}

.phone-account-menu .offcanvas-header {
  border-bottom: 1px solid #e5e7eb;
}

.phone-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.phone-menu-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: var(--lj-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
}

.phone-menu-link i {
  width: 1.1rem;
  text-align: center;
  color: var(--lj-maroon);
}

.phone-menu-link:active,
.phone-menu-link:hover {
  border-color: var(--lj-blue-2);
  background: #f8fafc;
  color: var(--lj-blue);
}

@media (max-width: 991.98px) {
  body.has-mobile-nav {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .navbar .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0.35rem;
  }

  .page-heading,
  .d-flex.justify-content-between.align-items-center.mb-4,
  .d-flex.justify-content-between.align-items-center.mb-3 {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .page-heading .btn,
  .d-flex.justify-content-between .btn {
    white-space: nowrap;
  }

  /* Tables stay inside the screen and scroll sideways instead of stretching the page */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  /* Forms and buttons stack and stay easy to tap */
  .form-control,
  .form-select,
  .btn {
    min-height: 44px;
  }

  .input-group {
    flex-wrap: wrap;
  }

  .input-group > .form-control,
  .input-group > .btn {
    width: 100%;
    border-radius: 6px !important;
  }

  .input-group > .btn {
    margin-top: 0.5rem;
  }

  /* Action rows in lists become full-width buttons */
  td .btn,
  .card-footer .btn {
    width: 100%;
  }

  .footer-bottom .text-md-end {
    text-align: left !important;
    margin-top: 0.4rem;
  }
}
