/* =========================
   FONTS / RESET / BASE
========================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-sans: 'Inter', 'Segoe UI', sans-serif;
  --emerald-deep: #063d2c;
  --emerald: #0b7a5c;
  --emerald-bright: #17b884;
  --gold: #f0c14b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: #f4f7f6;
  padding-top: 120px;
  color: #222;
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


/* =========================
   HEADER — BASE (DESKTOP)
========================= */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: linear-gradient(120deg, #063d2c 0%, #0b7a5c 55%, #0e9d70 100%);
  background-size: 200% 200%;
  animation: headerShift 14s ease infinite;
  box-shadow: 0 8px 30px rgba(6, 61, 44, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-sans);
}

@keyframes headerShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 28px;
  position: relative;
}

.top-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 65%;
}

.site-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.08);
  padding: 3px;
}

.site-title h1 {
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.site-title span {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-actions a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.top-actions a:hover {
  text-decoration: underline;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.1);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e8a93a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  color: #063d2c;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5), 0 0 12px rgba(240,193,75,0.6);
  flex-shrink: 0;
}

.user-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  color: #ffffff;
}

.logout-link {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: 0.2s ease;
}

.logout-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.auth-links {
  display: flex;
  gap: 8px;
}

.auth-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.auth-links a:first-child {
  border: 1px solid rgba(255,255,255,0.35);
}

.auth-links a:last-child {
  background: linear-gradient(135deg, var(--gold), #e8a93a);
  color: #063d2c;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(240,193,75,0.35);
}

.auth-links a:first-child:hover {
  background: rgba(255,255,255,0.12);
}

.auth-links a:last-child:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240,193,75,0.45);
}

/* Header search pill */
.header-search-form {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-search-input {
  padding: 9px 40px 9px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  font-size: 13px;
  width: 190px;
  font-family: var(--font-sans);
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  backdrop-filter: blur(6px);
  transition: 0.2s ease;
}

.header-search-input::placeholder {
  color: rgba(255,255,255,0.65);
}

.header-search-input:focus {
  outline: none;
  background: rgba(255,255,255,0.95);
  color: #17392c;
  border-color: rgba(255,255,255,0.6);
  width: 220px;
}

.header-search-input:focus::placeholder {
  color: #8a9a93;
}

.header-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--gold), #e8a93a);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: #063d2c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(240,193,75,0.4);
  transition: 0.2s ease;
}

.header-search-btn:hover {
  transform: translateY(-50%) scale(1.08);
}


/* =========================
   MENU TOGGLE + MOBILE MENU (hidden on desktop by default)
========================= */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: linear-gradient(135deg, #0a5b3f, #0f7a55);
  padding: 10px 20px;
}

.mobile-menu a {
  color: white;
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
}

.mobile-menu.show-menu {
  display: flex;
}


/* =========================
   NAVBAR (DESKTOP) + DROPDOWNS
========================= */
.navbar {
  display: flex;
  gap: 2px;
  padding: 8px 24px;
  flex-wrap: nowrap;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.navbar a,
.navbar .dropdown {
  flex: 0 0 auto;
  white-space: nowrap;
}

.navbar a {
  position: relative;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 9px 11px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar a:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  text-decoration: none;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 2px;
}

.navbar a:hover::after {
  transform: scaleX(1);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-toggle::after {
  content: " \25BE";
  font-size: 12px;
}

.dropdown-content,
.dropdown-menu-custom {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  min-width: 240px;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(6,61,44,0.22);
  border: 1px solid rgba(11,125,79,0.08);
  z-index: 1000;
  overflow: hidden;
  padding: 6px;
  list-style: none;
}

.dropdown-content a,
.dropdown-menu-custom a {
  display: block;
  padding: 11px 14px;
  color: var(--emerald-deep);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 8px;
  transition: 0.15s ease;
}

.dropdown-content a:hover,
.dropdown-menu-custom a:hover {
  background: linear-gradient(135deg, #e6f7f0, #d9f2e6);
  color: var(--emerald);
  padding-left: 18px;
}

.dropdown:hover .dropdown-content,
.dropdown:hover .dropdown-menu-custom {
  display: block;
}


/* =========================
   PAGE LAYOUT
========================= */
.page-container {
  display: flex;
  padding: 30px;
  gap: 30px;
  align-items: flex-start;
}

.main-content {
  flex: 3;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.right-sidebar {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.home-page {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.home-page .main-content {
  flex: 3;
}

.home-page .right-sidebar {
  flex: 1;
}


/* =========================
   GENERIC TEXT / CONTENT
========================= */
section {
  margin-bottom: 18px;
}

section h1,
section h2,
.page-title {
  margin-bottom: 12px;
  color: #0b7d4f;
}

section p,
.main-content p,
.page-text,
.main-content li {
  line-height: 1.7;
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 14px;
  margin-bottom: 18px;
  color: #555;
}

.breadcrumb a {
  color: #0b7d4f;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}


/* =========================
   HOME PAGE CARDS
========================= */
.home-intro-card {
  background: linear-gradient(135deg, #eefaf5, #e3f6ee);
  border-left: 5px solid #169c68;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.home-intro-card h2 {
  color: #0b7d4f;
  margin-bottom: 10px;
  font-size: 28px;
}

.home-intro-card p {
  color: #444;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

.small-btn, .review-btn, .toggle-btn, .admin-links a {
  transition: transform .12s ease, box-shadow .12s ease;
}
.small-btn:hover, .review-btn:hover, .toggle-btn:hover, .admin-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(7, 86, 62, 0.12);
}

.right-sidebar-home {
  position: relative;
}

.sidebar-box {
  background: #fff;
  border: 1px solid #e3e8e6;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.sidebar-box h3 {
  margin-bottom: 10px;
  color: #111;
}

.sidebar-box p {
  line-height: 1.6;
}

.sidebar-box a {
  display: block;
  margin-top: 8px;
  color: #0b7d4f;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.5;
}

.sidebar-box a:hover {
  text-decoration: underline;
}

.sidebar-box.highlight,
.home-call-papers {
  background: linear-gradient(135deg, #ecfaf4, #ddf5ea);
  padding: 18px;
  border-left: 4px solid #0b7d4f;
  border-radius: 10px;
  margin-top: 0;
}

.home-call-papers h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.right-sidebar .sidebar-box p,
.right-sidebar .sidebar-box a {
  font-size: 14px;
  line-height: 1.6;
}

/* Notification box */
.notification-box {
  background: #fffdf6;
  border-left: 4px solid #f0b429;
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.notification-box h3 {
  color: #9a6700;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}

.notification-box p {
  color: #5c4b1f;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Home Submission Bar (premium gloss CTA) */
.home-submit-bar-wrap {
  margin-bottom: 22px;
  padding: 3px;
  border-radius: 16px;
  background: linear-gradient(120deg, #f0c14b, #17b884, #0b7d4f, #f0c14b);
  background-size: 300% 300%;
  animation: submitBorderFlow 6s ease infinite, submitGlowPulse 2.6s ease-in-out infinite;
}

@keyframes submitBorderFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes submitGlowPulse {
  0%, 100% {
    box-shadow: 0 10px 28px rgba(11, 125, 79, 0.22), 0 0 0 rgba(23, 184, 132, 0);
  }
  50% {
    box-shadow: 0 12px 34px rgba(11, 125, 79, 0.32), 0 0 22px rgba(23, 184, 132, 0.45);
  }
}

.home-submit-bar {
  position: relative;
  display: block;
  width: 100%;
  padding: 17px 24px;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-heading, inherit);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 13px;
  background: linear-gradient(135deg, #0b7d4f 0%, #159968 45%, #1fc189 100%);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -12px 20px rgba(0,0,0,0.12),
    0 6px 16px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 58px;
}

.cta-group {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  z-index: 2;
  transform: translate(-50%, -50%);
  animation: ctaGroupTravel 6s cubic-bezier(.61,.02,.34,1) infinite;
}

.home-submit-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.08) 45%,
    rgba(255,255,255,0) 60%
  );
  pointer-events: none;
}

.home-submit-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.home-submit-bar:hover::after {
  left: 130%;
}

.home-submit-bar:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -12px 20px rgba(0,0,0,0.14),
    0 10px 24px rgba(0,0,0,0.2);
}

/* Submission CTA heading + subtext (sits above .home-submit-bar-wrap) */
.submit-cta-heading {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--emerald-deep);
  margin-bottom: 4px;
}

.submit-cta-sub {
  font-size: 14px;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.6;
}

.cta-arrow {
  display: inline-flex;
  align-items: center;
}

.cta-arrow-shaft {
  display: inline-block;
  width: 44px;
  height: 3px;
  background: currentColor;
}

.cta-arrow-head {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
  margin-left: -1px;
}

@keyframes ctaGroupTravel {
  0%   { left: 4%;  transform: translate(0%, -50%);    opacity: 0; }
  12%  { opacity: 1; }
  50%  { left: 50%; transform: translate(-50%, -50%); }
  88%  { opacity: 1; }
  100% { left: 96%; transform: translate(-100%, -50%); opacity: 0; }
}

/* Old circular submission button — permanently retired */
.submission-slot {
  display: none !important;
}

/* Home articles box (compact list) */
.home-articles-box {
  background: #fff;
  border: 1px solid #e3e8e6;
  padding: 18px;
  margin-top: 15px;
  margin-bottom: 18px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.home-articles-box h2 {
  margin-bottom: 10px;
  color: #0b7a5c;
  font-size: 18px;
  font-weight: 600;
}

.article-line {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.article-line:last-child {
  border-bottom: none;
}

.article-line a {
  color: #0b7a5c;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.article-line a:hover {
  text-decoration: underline;
}

.article-date {
  display: block;
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.no-articles {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* ===== HOME PAGE — CURRENT ISSUE CARD (single source of truth) ===== */
.home-issue-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e3e8e6;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.home-issue-image {
  flex: 0 0 180px;
}

.home-issue-image img {
  width: 180px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d9dfdc;
  display: block;
}

.home-issue-content {
  flex: 1;
  min-width: 0;
}

.home-issue-title {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #2f6f94;
  text-decoration: none;
  margin-bottom: 5px;
}

.home-issue-title:hover {
  text-decoration: underline;
}

.home-issue-id {
  font-size: 12px;
  font-weight: 700;
  color: #6c7580;
  margin-bottom: 5px;
}

.home-issue-author {
  font-size: 13px;
  line-height: 1.5;
  color: #222;
  margin-bottom: 10px;
}

.home-issue-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-issue-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #2d2d2d;
}

.home-issue-pdf-btn {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  padding: 8px 20px;
  text-align: center;
  background: #0b7a5c;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.home-issue-pdf-btn:hover {
  background: #095f47;
}

/* ===== Trendy blinking eye icon (replaces the old 👁 emoji) ===== */
.eye-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #0b7a5c;
  transform-origin: center;
  animation: eyeBlink 4.5s ease-in-out infinite;
}

@keyframes eyeBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  92%           { transform: scaleY(0.1); }
  94%           { transform: scaleY(1); }
  96%           { transform: scaleY(0.1); }
  98%           { transform: scaleY(1); }
}

/* ===== Brand slogan — shimmering light-to-dark green gradient ===== */
.site-slogan {
  display: inline-block;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, #b9f3cc, #4fd196, #0b7d4f, #063d2c, #0b7d4f, #4fd196, #b9f3cc);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: #0b7d4f;
  -webkit-text-fill-color: transparent;
  animation: sloganShine 5s linear infinite;
}

@keyframes sloganShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.site-slogan-leaf {
  display: inline-block;
  font-size: 1.6em;
  vertical-align: middle;
  margin-left: 2px;
  -webkit-text-fill-color: initial;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: initial;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .eye-icon,
  .cta-group,
  .home-submit-bar-wrap,
  .site-slogan {
    animation: none;
  }
  .cta-group {
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  .site-slogan {
    -webkit-text-fill-color: initial;
    color: #0b7d4f;
    background: none;
  }
}


/* =========================
   ARTICLE CARD (generic listing)
========================= */
.article-card {
  display: flex;
  gap: 20px;
  padding: 16px;
  margin-bottom: 18px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  align-items: center;
}

.article-card img {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.article-content {
  flex: 1;
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  color: #0b5c4b;
  margin-bottom: 6px;
}

.article-id {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}

.article-author {
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-btn {
  background: #0b7a5c;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

.pdf-btn:hover {
  background: #095c47;
}

.view-count {
  font-size: 13px;
  color: #555;
}


/* =========================================================
   CURRENT ISSUE / ARCHIVE / ARTICLE LISTING
   Used by: current_issue.php, archives.php
   ========================================================= */
.issue-wrapper {
  background: #ffffff;
  border: 1px solid #e3e8e6;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.issue-heading {
  font-size: 20px;
  font-weight: 800;
  color: #566575;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.issue-heading-line {
  width: 120px;
  height: 4px;
  background: #16384f;
  border-radius: 4px;
  margin-bottom: 28px;
}

.issue-summary {
  margin-bottom: 34px;
}

.issue-summary h2 {
  font-size: 22px;
  line-height: 1.4;
  color: #132238;
  margin-bottom: 12px;
}

.issue-summary p {
  font-size: 16px;
  color: #2f3c48;
  margin-bottom: 0;
}

.issue-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #5a6878;
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 8px;
}

.issue-section-line {
  width: 100px;
  height: 4px;
  background: #16384f;
  border-radius: 4px;
  margin-bottom: 18px;
}

.issue-article-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e3e8e6;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.issue-article-image {
  flex: 0 0 180px;
}

.issue-article-image img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  border: 1px solid #d9dfdc;
}

.issue-article-content {
  flex: 1;
  min-width: 0;
}

.issue-article-title {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: #3d7393;
  text-decoration: none;
  margin-bottom: 6px;
}

.issue-article-title:hover {
  text-decoration: underline;
}

.issue-article-id {
  font-size: 13px;
  font-weight: 700;
  color: #6f7a86;
  margin-bottom: 6px;
}

.issue-article-author {
  font-size: 15px;
  line-height: 1.6;
  color: #1f1f1f;
  margin-bottom: 12px;
}

.issue-article-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.issue-view-count {
  font-size: 15px;
  font-weight: 600;
  color: #2d2d2d;
}

.issue-pdf-btn {
  display: inline-block;
  padding: 8px 14px;
  background: #0b7a5c;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.issue-pdf-btn:hover {
  background: #095f47;
}

.issue-pdf-missing {
  font-size: 13px;
  font-weight: 600;
  color: #8a8a8a;
}

.issue-empty-box {
  padding: 16px 18px;
  background: #fff8e8;
  border: 1px solid #f4dfaa;
  border-radius: 8px;
  color: #856404;
}


/* =========================
   SUBMISSION FORM PAGE
========================= */
.submission-main {
  max-width: 980px;
  margin: 0 auto;
}

.submission-steps {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  margin: 20px 0 30px;
  border-bottom: 1px solid #d9e3df;
  padding-bottom: 14px;
}

.step-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 8px 6px;
  background: #f3f7f5;
  color: #225f4c;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #dce8e2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-item.active {
  background: #ffffff;
  color: #0b7d4f;
  border-bottom: 3px solid #0b7d4f;
}

.submission-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.submission-card {
  background: #ffffff;
  border: 1px solid #e2ece7;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.submission-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #183f31;
}

.submission-select,
.submission-textarea,
.submission-file {
  width: 100%;
  padding: 12px;
  border: 1px solid #cfdad5;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.submission-select:focus,
.submission-textarea:focus,
.submission-file:focus {
  outline: none;
  border-color: #0b7d4f;
  box-shadow: 0 0 0 3px rgba(11, 125, 79, 0.12);
}

.field-note {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #666;
}

.submission-subtitle {
  font-size: 24px;
  color: #0b7d4f;
  margin-bottom: 10px;
}

.submission-text {
  margin-bottom: 16px;
  color: #444;
  line-height: 1.6;
}

.submission-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.submission-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  font-size: 14px;
  color: #2a2a2a;
}

.submission-checklist input[type="checkbox"] {
  margin-top: 4px;
  width: auto;
  flex-shrink: 0;
}

.submission-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 5px;
}

.submission-save-btn {
  width: auto;
  min-width: 180px;
}

.submission-cancel-btn {
  color: #b23a3a;
  text-decoration: none;
  font-weight: 600;
}

.submission-cancel-btn:hover {
  text-decoration: underline;
}

.required-note {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

/* Submission action bar / checklist (used on submission info pages) */
.submission-action-bar {
  background: #f1f8f5;
  border-left: 4px solid #0b7d4f;
  padding: 14px;
  margin: 20px 0;
  border-radius: 6px;
}

.action-link {
  color: #0b7d4f;
  font-weight: 600;
  text-decoration: none;
}

.action-link:hover {
  text-decoration: underline;
}

.divider {
  margin: 0 8px;
  color: #888;
}

.checklist {
  margin-top: 15px;
  padding-left: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.checklist li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  color: #0b7d4f;
  font-weight: bold;
}

.checklist-desc {
  margin-bottom: 10px;
  color: #555;
}

/* Toast */
.toast-success {
  position: fixed;
  top: 95px;
  right: 24px;
  min-width: 320px;
  max-width: 420px;
  padding: 16px 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  background: rgba(34, 197, 94, 0.22);
  background-image: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.82),
    rgba(22, 163, 74, 0.72)
  );
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  z-index: 99999;
  opacity: 0;
  transform: translateY(-18px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.toast-success.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* Form box (login/register) */
.form-box {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.form-box h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #0b7d4f;
}

.form-box label {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  padding: 11px 12px;
  margin-top: 6px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
  border-color: #0b7d4f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 125, 79, 0.12);
}

.checkbox-group {
  margin-top: 16px;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 12px;
  font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: auto;
  flex-shrink: 0;
}

.btn-primary {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  background: #0b7d4f;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary:hover {
  background: #095f3b;
}

.form-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #0b7d4f;
  text-decoration: none;
}

.form-link:hover {
  text-decoration: underline;
}

.error-text {
  display: flex;
  align-items: center;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-height: 18px;
}

.error-text::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background-size: contain;
  background-repeat: no-repeat;
}

.error-text.success {
  color: #28a745;
}

.error-text.success::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='%2328a745' viewBox='0 0 16 16'%3E%3Cpath d='M13.485 1.929a1.5 1.5 0 0 1 0 2.121l-7.778 7.778a1.5 1.5 0 0 1-2.121 0L2.515 9.757a1.5 1.5 0 1 1 2.121-2.121l.95.95 6.718-6.718a1.5 1.5 0 0 1 2.121 0z'/%3E%3C/svg%3E");
}

.error-text.error {
  color: #dc3545;
}

.error-text.error::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='%23dc3545' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}


/* =========================
   EDITORIAL / FEES / FOOTER
========================= */
.editorial-section {
  margin-bottom: 40px;
}

.editorial-section h2 {
  color: #0b7a53;
  border-bottom: 2px solid #0b7a53;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.editorial-section ul {
  padding-left: 20px;
}

.editorial-section li {
  margin-bottom: 15px;
  line-height: 1.7;
}

.fee-note {
  background: #f8f9fa;
  border-left: 4px solid #0b7a53;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
}

.bank-details-card {
  background: #f4faf6;
  border: 1px solid #c9ded2;
  border-left: 4px solid #0b7a53;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 16px 0 24px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.bank-details-table {
  width: 100%;
  border-collapse: collapse;
}

.bank-details-table th,
.bank-details-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #dcece3;
  font-size: 14px;
  line-height: 1.5;
}

.bank-details-table tr:last-child th,
.bank-details-table tr:last-child td {
  border-bottom: none;
}

.bank-details-table th {
  width: 220px;
  color: #0b7a53;
  font-weight: 700;
}

.bank-details-table td {
  color: #222;
}

@media (max-width: 640px) {
  .bank-details-table th,
  .bank-details-table td {
    display: block;
    width: 100%;
    padding: 4px 0;
  }
  .bank-details-table th {
    padding-top: 12px;
  }
}

.main-content h2 {
  color: #0b7a53;
  margin-top: 25px;
}

.main-content h3 {
  color: #333;
  margin-top: 20px;
}

.jrams-footer {
  background: linear-gradient(135deg,#0f7f57,#0a5b3f);
  color: #fff;
  margin-top: 40px;
}

.footer-top {
  max-width: 1200px;
  margin: auto;
  padding: 35px 25px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 30px;
}

.footer-top h3,
.footer-top h4 {
  color: #fff;
  margin-bottom: 12px;
}

.footer-top p {
  line-height: 1.7;
  color: #f3f3f3;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 10px 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #c9f5df;
}

.footer-license {
  text-align: center;
  padding: 15px;
  background: rgba(255,255,255,0.08);
}

.footer-bottom {
  text-align: center;
  padding: 18px;
  background: #084731;
  font-size: 14px;
}

.footer-bottom strong {
  color: #ffd166;
}


/* =========================
   BACKGROUND + GLASS EFFECT
========================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/assets/images/JRAMS_LOGO.jpeg') center center no-repeat;
  background-size: cover;
  opacity: 0.25;
  z-index: -1;
}

.main-content,
.home-intro-card,
.home-articles-box,
.sidebar-box,
.notification-box {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 8px 32px rgba(31,38,135,0.08);
  border-radius: 20px;
}


/* =========================================================
   RESPONSIVE — TABLET (<=900px)
   ========================================================= */
@media (max-width: 900px) {
  body {
    padding-top: 135px;
  }

  .page-container,
  .home-page {
    flex-direction: column;
    padding: 20px;
  }

  .main-content,
  .right-sidebar {
    width: 100%;
  }

  .top-bar {
    padding: 10px 14px;
  }

  .logo-wrap {
    max-width: 100%;
  }

  .site-title h1 {
    font-size: 20px;
  }

  .site-title span {
    font-size: 12px;
  }

  .home-intro-card h2 {
    font-size: 22px;
  }

  .home-intro-card p {
    font-size: 14px;
  }

  .notification-box h3 {
    font-size: 18px;
  }

  .issue-wrapper {
    padding: 22px;
  }

  .issue-summary h2 {
    font-size: 20px;
  }

  .issue-article-card {
    gap: 14px;
  }

  .issue-article-image {
    flex-basis: 150px;
  }

  .issue-article-image img {
    width: 150px;
    height: 105px;
  }

  .issue-article-title {
    font-size: 17px;
  }

  .submission-btn {
    width: 120px;
    height: 120px;
    font-size: 12px;
  }
}


/* =========================================================
   RESPONSIVE — MOBILE HEADER (<=768px)
   Single, authoritative block for hamburger + header layout
   ========================================================= */
@media (max-width: 768px) {

  body {
    padding-top: 230px;
  }

  .desktop-navbar {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 16px;
  }

  /* Row 1: hamburger + logo, side by side */
  .menu-toggle {
    order: 1;
  }

  .logo-wrap {
    order: 2;
    flex: 1 1 auto;
    max-width: none;
  }

  .site-logo {
    height: 42px;
  }

  .site-title h1 {
    font-size: 19px;
  }

  .site-title span {
    font-size: 11.5px;
  }

  /* Row 2: user/search/logout stacked full width */
  .top-actions {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .top-actions .user-row,
  .top-actions .auth-links,
  .top-actions .header-search-form,
  .top-actions .logout-link {
    width: 100%;
  }

  .auth-links {
    flex-direction: row;
  }

  .auth-links a {
    flex: 1;
    text-align: center;
  }

  .header-search-input,
  .header-search-input:focus {
    width: 100%;
  }

  .logout-link {
    display: block;
    text-align: center;
  }

  /* Mobile dropdown nav — scrollable so nothing is ever cut off */
  .mobile-menu {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu a {
    padding: 12px 8px;
  }
}


/* =========================================================
   RESPONSIVE — SMALL CARD LAYOUTS
   ========================================================= */
@media (max-width: 700px) {
  .home-issue-card {
    flex-direction: column;
  }

  .home-issue-image {
    width: 100%;
    flex: none;
  }

  .home-issue-image img {
    width: 100%;
    height: 180px;
  }

  .home-issue-pdf-btn {
    width: 100%;
  }

  .home-submit-bar {
    font-size: 17px;
    padding: 15px 16px;
  }
}

@media (max-width: 640px) {
  .issue-wrapper {
    padding: 18px;
  }

  .issue-heading {
    font-size: 18px;
  }

  .issue-summary h2 {
    font-size: 18px;
  }

  .issue-section-title {
    font-size: 16px;
  }

  .issue-article-card {
    flex-direction: column;
    padding: 14px;
  }

  .issue-article-image {
    flex: none;
    width: 100%;
  }

  .issue-article-image img {
    width: 100%;
    height: 180px;
  }

  .issue-article-title {
    font-size: 16px;
  }

  .issue-article-author {
    font-size: 14px;
  }

  .issue-article-actions {
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .toast-success {
    top: 90px;
    right: 12px;
    left: 12px;
    min-width: auto;
    max-width: none;
    padding: 14px 16px;
    font-size: 14px;
  }
}

@media (max-width: 1024px) {
  .submission-steps {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .step-item {
    flex: 0 0 auto;
    min-width: 110px;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* =========================
   HOME PAGE — ARTICLE SECTION GROUPING
   (Editorial / Original Article / Research Protocol / etc.)
========================= */
.home-section-block {
  margin-bottom: 26px;
}

.home-section-block:last-child {
  margin-bottom: 0;
}

.home-section-title {
  font-size: 15px;
  font-weight: 800;
  color: #0b7a5c;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 22px;
  margin-bottom: 6px;
}

.home-section-block:first-child .home-section-title {
  margin-top: 0;
}

.home-section-line {
  width: 70px;
  height: 3px;
  background: #0b7a5c;
  border-radius: 3px;
  margin-bottom: 14px;
}

/* =========================================
   EDITORIAL BOARD
   ========================================= */

.editorial-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 0 0 28px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.editorial-section h2 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8eef5;
    color: #173b5f;
    font-size: 23px;
    font-weight: 700;
}

/* Chief Editor */

.editorial-section:first-of-type {
    border-left: 5px solid #1d5d8f;
}

.editorial-section:first-of-type p {
    margin: 0 0 18px;
    line-height: 1.7;
    color: #4b5563;
    font-size: 15px;
}

.editorial-section:first-of-type p:last-child {
    margin-bottom: 0;
}

.editorial-section strong {
    color: #263b50;
}

.editorial-section:first-of-type p:first-of-type strong {
    color: #173b5f;
    font-size: 20px;
}

/* Email */

.editorial-section strong + a {
    color: #1d5d8f;
}

/* Editorial Members */

.editorial-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.editorial-section li {
    background: #f8fafc;
    border: 1px solid #e4e9ef;
    border-radius: 10px;
    padding: 22px 24px;
    line-height: 1.65;
    color: #4b5563;
    font-size: 14.5px;
    transition: all 0.25s ease;
}

.editorial-section li:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
    border-color: #cbd9e6;
    background: #ffffff;
}

.editorial-section li strong:first-child {
    display: block;
    color: #173b5f;
    font-size: 18px;
    margin-bottom: 6px;
}

/* Make designation stand out */

.editorial-section li strong {
    color: #334e68;
}

/* Email text */

.editorial-section li strong:last-of-type {
    color: #173b5f;
}

/* Responsive */

@media (max-width: 768px) {

    .editorial-section {
        padding: 22px 20px;
        margin-bottom: 20px;
    }

    .editorial-section h2 {
        font-size: 20px;
    }

    .editorial-section ul {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .editorial-section li {
        padding: 19px;
    }

    .editorial-section:first-of-type p:first-of-type strong {
        font-size: 18px;
    }
}

@media (max-width: 480px) {

    .editorial-section {
        padding: 18px 15px;
        border-radius: 8px;
    }

    .editorial-section li {
        padding: 17px;
        font-size: 14px;
    }

    .editorial-section li strong:first-child {
        font-size: 17px;
    }
}