@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  --navy: #7a1f5c;
  --navy-dark: #56163f;
  --blue: #c9962c;
  --blue-dark: #a97a1f;
  --dark: #201018;
  --paper: #faf7f2;
  --ink: #222222;
  --muted: #6b7280;
  --line: #ecdfe6;
  --radius: 4px;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Work Sans", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

h1, h2, h3, .heading-font {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
}

a { color: var(--blue); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Professional curtain loader ---- */
#siteLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.sl-panel {
  position: absolute;
  left: 0;
  right: 0;
  background: #140b11;
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
}
.sl-top    { top: 0; height: 50%; transform-origin: top; }
.sl-bottom { bottom: 0; height: 50%; transform-origin: bottom; }
#siteLoader.hide .sl-top    { transform: translateY(-100%); }
#siteLoader.hide .sl-bottom { transform: translateY(100%); }
.sl-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.sl-logo-svg {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}
.sl-ring {
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  animation: slRingDraw 1s ease 0.2s forwards;
}
.sl-book {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: slBookDraw 0.9s ease 0.5s forwards;
}
.sl-spine {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: slSpineDraw 0.4s ease 1.1s forwards;
}
@keyframes slRingDraw  { to { stroke-dashoffset: 0; } }
@keyframes slBookDraw  { to { stroke-dashoffset: 0; } }
@keyframes slSpineDraw { to { stroke-dashoffset: 0; } }
.sl-name {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #faf7f2;
  letter-spacing: 0.06em;
  opacity: 0;
  animation: slFadeUp 0.6s ease 1s forwards;
}
.sl-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0;
  animation: slFadeUp 0.6s ease 1.2s forwards;
}
.sl-bar-wrap {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  margin-top: 28px;
  overflow: hidden;
  opacity: 0;
  animation: slFadeUp 0.4s ease 1.3s forwards;
}
.sl-bar {
  height: 100%;
  width: 0;
  background: #c9962c;
  border-radius: 2px;
  animation: slBarFill 1.1s cubic-bezier(0.4,0,0.2,1) 1.4s forwards;
}
@keyframes slFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slBarFill {
  from { width: 0; }
  to   { width: 100%; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Top bar */
.topbar {
  background: var(--dark);
  color: #cfd4dd;
  font-size: 0.78rem;
}
.topbar-inner {
  width: 100%;
  padding: 7px 3vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cfd4dd; margin-left: 16px; }
.topbar a:hover { color: #fff; }

/* Header */
header.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: 100%;
  padding: 18px 3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-name-wrap { display: flex; flex-direction: column; align-items: flex-start; }
.brand .mark {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  color: var(--navy);
  letter-spacing: 0.2px;
}
.brand .brand-oa {
  display: block;
  width: 100%;
  font-size: 0.68rem;
  font-weight: 500;
  color: #b0b8c8;
  white-space: nowrap;
  line-height: 1.3;
}
.brand .tagline {
  font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Nav */
nav.main-nav {
  background: var(--navy);
  border-radius: 0;
}
nav.main-nav .nav-inner {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
nav.main-nav a {
  display: block;
  padding: 13px 18px;
  color: rgba(255,255,255,0.78);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
nav.main-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
nav.main-nav a.active { background: var(--blue); color: #fff; }
nav.main-nav a.admin-link { margin-left: auto; background: var(--blue); color: #fff; }
nav.main-nav a.admin-link:hover { background: var(--blue-dark); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #fff;
  padding: 13px 18px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle .bars span { width: 20px; height: 2px; background: #fff; display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav.main-nav .nav-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: hidden;
    max-height: 600px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }
  nav.main-nav .nav-inner.collapsed { max-height: 0; opacity: 0; }
  nav.main-nav a { width: 100%; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.08); }
  nav.main-nav a.admin-link { margin-left: 0; }
  .header-inner { flex-wrap: nowrap; padding: 14px 4vw; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 4vw; }
  .topbar-inner > div { display: flex; flex-wrap: wrap; gap: 4px 0; }
  .topbar-inner a { margin-left: 0; margin-right: 14px; }
  .section { padding: 36px 4vw; }
  .stats-inner { padding: 16px 4vw; }
  .carousel-content { padding: 24px 4vw; }
  .journal-title-band { padding: 18px 4vw; }
  .journal-layout { padding: 24px 4vw 60px; }
  .footer-inner { padding: 36px 4vw 16px; }
}
@media (max-width: 560px) {
  .section { padding: 28px 4vw; }
  .stats-inner { padding: 14px 4vw; }
  .cert-gallery { grid-template-columns: 1fr; }
}

.nav-toggle .bars span { transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 54px 3vw 60px;
  overflow: hidden;
}
.hero-inner {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { padding: 36px 4vw; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 1.6rem; }
}
.hero-eyebrow {
  color: #e8c164;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero h1 { font-size: 2.1rem; line-height: 1.3; margin: 0 0 16px; }
.hero p { color: #e3d3c4; font-size: 0.98rem; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: #fff;
  border-radius: 6px;
  padding: 26px;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.hero-eyebrow, .hero h1, .hero p, .hero-actions, .hero-card {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero p { animation-delay: 0.25s; }
.hero-actions { animation-delay: 0.35s; }
.hero-card { animation-delay: 0.3s; }
.hero-card h3 { margin: 0 0 14px; color: var(--navy); font-size: 1.05rem; }
.hero-card ul { margin: 0; padding-left: 18px; font-size: 0.88rem; color: var(--muted); }
.hero-card li { margin-bottom: 8px; }

.search-bar {
  display: flex;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 13px 18px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.92rem;
  outline: none;
}
.search-bar button {
  border: none;
  background: var(--blue);
  color: #fff;
  padding: 0 24px;
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}
.search-bar button:hover { background: var(--blue-dark); }
.search-bar input:focus { box-shadow: inset 0 0 0 2px rgba(201,150,44,0.25); }

/* Stats strip */
.stats-strip { background: #fff; border-bottom: 1px solid var(--line); }
.stats-inner {
  width: 100%;
  padding: 26px 3vw;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}
.stats-inner .stat { text-align: center; padding: 6px 18px; }
.stats-inner .num { font-family: "Montserrat", sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.stats-inner .label { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 2px; }

/* Section wrapper */
.section {
  width: 100%;
  padding: 56px 3vw;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head .eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Featured carousel */
.carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
  perspective: 1200px;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  align-items: stretch;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (max-width: 860px) { .carousel-slide { grid-template-columns: 200px 1fr; } }
@media (max-width: 600px) { .carousel-slide { grid-template-columns: 1fr; } }
.carousel-badge {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 0;
  background: rgba(255,255,255,0.1);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  color: var(--blue);
}
@media (max-width: 600px) { .carousel-badge { min-height: 200px; } }
.carousel-badge.has-image { padding: 0; overflow: hidden; }
.carousel-badge.has-image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  min-height: 280px;
  transition: transform 0.4s ease;
}
.carousel-slide:hover .carousel-badge.has-image img { transform: scale(1.04); }
.carousel-content {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 600px) { .carousel-content { padding: 28px 24px; } }
.carousel-content h3 { margin: 10px 0 8px; font-size: 1.5rem; line-height: 1.3; }
.carousel-content h3 a { color: #fff; }
.carousel-authors { color: #e8c164; font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.carousel-abstract { color: #e3d3c4; font-size: 0.92rem; margin-bottom: 20px; line-height: 1.6; }
.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 4;
}
.carousel-arrow:hover { background: var(--blue); transform: translateY(-50%) scale(1.1); }
.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }
.carousel-dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 4;
}
.carousel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active { background: var(--blue); transform: scale(1.2); }

/* Overview: about + sidebar — full-bleed section */
#overview.section {
  max-width: 100%;
  background: #f3ede8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-left: 3vw;
  padding-right: 3vw;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
}
@media (max-width: 860px) { .overview-grid { grid-template-columns: 1fr; } }
.overview-main .eyebrow {
  color: var(--blue);
  font-size: 0.76rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}
.overview-main h2 { color: var(--navy); font-size: 1.6rem; margin: 0 0 14px; }
.overview-main p { color: var(--muted); font-size: 0.95rem; }
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 16px;
}
@media (max-width: 560px) { .why-us-grid { grid-template-columns: 1fr; } }
.why-us-item { display: flex; gap: 14px; align-items: flex-start; }
.why-us-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(201,150,44,0.1);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.why-us-item h4 { margin: 0 0 6px; font-size: 0.95rem; color: var(--navy); font-family: "Montserrat", sans-serif; }
.why-us-item p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.55; }
.mission-callout {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 28px; padding: 18px 20px;
  background: linear-gradient(135deg, rgba(122,31,92,0.06), rgba(201,150,44,0.08));
  border-left: 3px solid var(--blue); border-radius: 6px;
}
.mission-callout p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.65; }
.submit-steps { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.submit-step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; font-family: "Montserrat", sans-serif;
}
.submit-step h4 { margin: 0 0 4px; font-size: 0.92rem; color: var(--navy); font-family: "Montserrat", sans-serif; }
.submit-step p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.55; }
.overview-side { align-self: start; }
.side-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 22px;
  border-top: 3px solid var(--blue);
}
.side-box h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin: 0 0 12px;
}
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: none; }
.side-list a {
  display: block;
  padding: 10px 4px;
  font-size: 0.86rem;
  color: var(--ink);
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.side-list a:hover { color: var(--blue); text-decoration: none; padding-left: 8px; }
.side-list-plain li {
  display: block;
  padding: 10px 4px;
  font-size: 0.92rem;
  color: var(--ink);
}
.cert-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cert-item { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.cert-item svg { display: block; width: 100%; height: auto; }
.latest-article-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.latest-article-item:last-child { border-bottom: none; }
.latest-article-item a {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.15s;
}
.latest-article-item a:hover { color: var(--blue); text-decoration: none; }
.latest-article-item .lat-meta { font-size: 0.76rem; color: var(--muted); }
.section-head h2 { font-size: 1.7rem; color: var(--navy); margin: 0 0 10px; }
.section-head p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Subject grid */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.subject-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  color: inherit;
}
.subject-card:hover { text-decoration: none; }
.subject-card:hover { box-shadow: 0 10px 26px rgba(122,31,92,0.16); transform: translateY(-2px); }
.subject-card:hover .icon { transform: scale(1.08); }
.subject-card:hover .count { transform: translateX(4px); }
.subject-image {
  position: relative;
  height: 290px;
  background: var(--navy);
  overflow: hidden;
}
.subject-image img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
  opacity: 1;
}
.subject-card .icon {
  position: absolute;
  left: 16px; bottom: -22px;
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 3px solid #fff;
  transition: transform 0.2s ease;
}
.subject-body { padding: 32px 20px 20px; border-top: 3px solid var(--blue); }
.subject-card h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--navy); }
.subject-card p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.subject-card .count { font-size: 0.78rem; color: var(--blue); font-weight: 600; margin-top: 10px; display: block; transition: transform 0.2s ease; }

/* Layout: sidebar + main */
.container {
  width: 100%;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
}
@media (max-width: 860px) { .container { grid-template-columns: 1fr; } }

.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  align-self: start;
}
.filters h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
}
.filter-list { list-style: none; padding: 0; margin: 0 0 24px; }
.filter-list li { margin-bottom: 4px; }
.filter-list button {
  background: none;
  border: none;
  padding: 9px 10px;
  width: 100%;
  text-align: left;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Work Sans", sans-serif;
  font-size: 0.87rem;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.filter-list button:hover { background: var(--paper); padding-left: 14px; }
.filter-list button.active { background: var(--blue); color: #fff; font-weight: 600; }

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 12px;
}
.results-head h2 { margin: 0; font-size: 1.3rem; color: var(--navy); }
.results-head .count { color: var(--muted); font-size: 0.85rem; }

.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 16px;
  border-left: 3px solid var(--blue);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.article-card:hover { box-shadow: 0 6px 22px rgba(122,31,92,0.1); transform: translateX(3px); }
.article-card .cat-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  background: rgba(201,150,44,0.09);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.article-card h3 { margin: 0 0 8px; font-size: 1.15rem; font-family: "Montserrat", sans-serif; }
.article-card h3 a { color: var(--navy); }
.article-card .authors {
  font-size: 0.84rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
}
.article-card .abstract {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.article-card .meta {
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 6px;
}

/* Editors */
.editor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.editor-grid .editor-card { width: calc(25% - 15px); }
@media (max-width: 860px) { .editor-grid .editor-card { width: calc(50% - 10px); } }
@media (max-width: 560px) { .editor-grid .editor-card { width: 100%; } }
.editor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 18px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.editor-card:hover { box-shadow: 0 10px 26px rgba(122,31,92,0.1); transform: translateY(-3px); }
.editor-card:hover .editor-avatar { transform: scale(1.06); border-color: var(--blue); }
.editor-avatar {
  display: block;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  object-fit: cover;
  margin: 0 auto 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.editor-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9e9ec;
  color: #7c8089;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}
.editor-card:hover .editor-avatar.placeholder { border-color: var(--blue); }
.editor-card h4 { margin: 0 0 4px; font-size: 0.98rem; color: var(--navy); font-family: "Montserrat", sans-serif; }
.editor-card .role { font-size: 0.78rem; color: var(--blue); font-weight: 600; margin-bottom: 6px; }
.editor-card .affil { font-size: 0.78rem; color: var(--muted); }

/* Article detail page */
.article-detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 90px;
}
.journal-main.article-detail {
  max-width: none;
  margin: 0;
  padding: 0;
}
.article-detail .cat-tag {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  background: rgba(201,150,44,0.09);
  color: var(--blue);
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}
.article-detail h1 { font-size: 1.9rem; margin: 0 0 14px; color: var(--navy); }
.article-detail .authors {
  color: var(--blue);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 18px;
}
.article-detail .meta-row {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 26px;
}
.article-detail h2.section-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--navy);
  margin: 30px 0 12px;
  font-family: "Montserrat", sans-serif;
  border-left: 3px solid var(--blue);
  padding-left: 12px;
}
.article-detail .abstract-body { color: #333; }
.keywords span {
  display: inline-block;
  background: rgba(201,150,44,0.09);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: 3px;
  margin: 4px 6px 0 0;
}
.btn-download {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 10px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-download:hover { background: var(--blue-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201,150,44,0.28); }
.no-pdf-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Footer */
footer.site-footer {
  background: var(--dark);
  color: #a9adb6;
  padding-top: 50px;
  font-size: 0.86rem;
}
.footer-grid {
  width: 100%;
  padding: 0 24px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 16px;
}
.footer-grid .fbrand { color: #fff; font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.3rem; margin-bottom: 12px; }
.footer-grid p { line-height: 1.7; text-align: justify; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; color: #c8ccd6; }
.footer-grid a { color: #c8ccd6; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 18px 24px;
  font-size: 0.8rem;
  color: #8b8f99;
}

/* Per-journal landing page */
.journal-title-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 22px 3vw;
}
.journal-title-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.journal-cover-wrap {
  flex-shrink: 0;
}
.journal-cover-img {
  width: 130px;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
@media (max-width: 560px) {
  .journal-cover-img { width: 90px; height: 120px; }
}
.journal-title-band h1 {
  width: 100%;
  color: var(--navy);
  font-size: 1.7rem;
  margin: 0 0 8px;
}
.journal-issn-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(201,150,44,0.1);
  border: 1px solid rgba(201,150,44,0.3);
  border-radius: 3px;
  padding: 3px 10px;
  letter-spacing: 0.4px;
}
.journal-layout {
  width: 100%;
  padding: 36px 3vw 80px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
}
@media (max-width: 860px) { .journal-layout { grid-template-columns: 1fr; } }
.journal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.journal-sidebar a {
  padding: 13px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
}
.journal-sidebar a:last-child { border-bottom: none; }
.journal-sidebar a:hover { background: var(--paper); color: var(--blue); text-decoration: none; }
.journal-sidebar a::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.journal-main .journal-section { margin-bottom: 34px; scroll-margin-top: 20px; }
.journal-main h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}
.journal-main p { color: #333; font-size: 0.95rem; }
.info-callout {
  background: #fff;
  border-left: 3px solid var(--blue);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-left-color: var(--blue);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 34px;
  font-size: 0.9rem;
  color: #333;
}
.info-callout > div { padding: 3px 0; }
.info-callout strong { color: var(--navy); }
.topics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.topics-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #333;
  width: 50%;
}
.archive-volume-link {
  display: inline-block;
  background: #fdfbf7;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 3px 11px;
  margin: 2px 4px 2px 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.archive-volume-link:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.filter-pill {
  display: inline-block;
  background: #fdfbf7;
  border: 1px solid var(--gold);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.filter-pill .clear-filter { color: var(--plum); font-weight: 600; }
.workflow-list {
  margin: 0;
  padding-left: 22px;
  color: #333;
  font-size: 0.95rem;
}
.workflow-list li { margin-bottom: 10px; }
.workflow-list strong { color: var(--navy); }

/* Admin */
.admin-shell { max-width: 1080px; margin: 0 auto; padding: 40px 24px 90px; }
.admin-body { background: var(--paper); min-height: 100vh; }

.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
}
.admin-topbar-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.1rem;
}
.admin-topbar-title span { color: var(--blue); }

.admin-layout {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 65px);
}
.admin-sidenav {
  flex: 0 0 230px;
  background: var(--navy);
  min-height: calc(100vh - 65px);
  position: sticky;
  top: 65px;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: rgba(255,255,255,0.72);
  padding: 12px 22px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav-item.active {
  background: rgba(201,150,44,0.14);
  border-left-color: var(--blue);
  color: #fff;
}
.admin-nav-item .count {
  margin-left: auto;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}
.admin-nav-item.active .count { background: var(--blue); }

.admin-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 32px 32px 90px;
}
.admin-panel-head {
  margin-bottom: 22px;
}
.admin-panel-head h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1.35rem;
}
.admin-panel-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }

@media (max-width: 900px) {
  .admin-layout { flex-direction: column; align-items: stretch; }
  .admin-sidenav {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 8px;
    gap: 4px;
  }
  .admin-nav-item {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    padding: 10px 16px;
  }
  .admin-nav-item.active { border-bottom-color: var(--blue); }
  .admin-main { padding: 22px 18px 60px; min-width: 0; }
}
.login-box {
  max-width: 400px;
  margin: 80px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 34px;
  border-top: 4px solid var(--blue);
}
.login-box h2 { margin-top: 0; color: var(--navy); }
.admin-login-wrap { max-width: 400px; margin: 80px auto; padding: 0 20px; }

.editor-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #ecdfe6;
  color: var(--muted);
}
.status-tag.new { background: #e5ecfb; color: #2952a3; }
.status-tag.published { background: #dff3e4; color: #1a7d3a; }
.status-tag.draft { background: #f1eee7; color: #7a6f5a; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.83rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: "Work Sans", sans-serif;
  font-size: 0.9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(201,150,44,0.3); border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 90px; }
.btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(201,150,44,0.28); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--paper); box-shadow: none; }
.btn.danger { background: #b23434; }
.btn.danger:hover { background: #c94848; }
.error-msg { color: #b23434; font-size: 0.85rem; margin-top: 10px; }
.success-msg { color: #1a7d3a; font-size: 0.85rem; margin-top: 10px; }

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-top h1 { color: var(--navy); margin: 0; font-size: 1.5rem; }

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.admin-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  vertical-align: top;
}
.admin-table th { background: var(--navy); color: #fff; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.6px; }
.admin-table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 8px; }
.row-actions button { font-size: 0.76rem; padding: 6px 12px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(24,36,72,0.6);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto; z-index: 50;
}
.modal-box {
  background: #fff; border-radius: 6px; padding: 30px;
  max-width: 660px; width: 100%;
  border-top: 4px solid var(--blue);
}
.modal-box h2 { margin-top: 0; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.checkbox-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  max-height: 220px;
  overflow-y: auto;
}
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: normal; cursor: pointer; }
.checkbox-item input { width: auto; margin: 0; }
@media (max-width: 560px) { .checkbox-list { grid-template-columns: 1fr; } }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 20px; }
  .admin-top { flex-direction: column; align-items: flex-start; }
  .admin-top .btn, .admin-top .btn.secondary { width: 100%; text-align: center; }
  .login-box { margin: 40px auto; padding: 24px; }
  .admin-login-wrap { margin: 40px auto; padding: 0 16px; }
  .hero { padding: 40px 18px 46px; }
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 40px 18px; }
  .journal-title-band { padding: 16px 18px; }
  .journal-layout { padding: 20px 18px 50px; }
  .stats-inner { gap: 4px; }
  .stats-inner .stat { padding: 10px; flex: 1 1 40%; }
}

/* ============================================================
   Mobile refinements
   ============================================================ */

/* 1. Prevent CSS-grid track blowout: grid items default to
   min-width:auto and refuse to shrink below their content,
   forcing tracks wider than the container. Reset to 0 so every
   grid child respects its track on narrow screens. */
.hero-inner > *,
.overview-grid > *,
.subject-grid > *,
.editor-grid > *,
.container > *,
.journal-layout > *,
.footer-grid > * { min-width: 0; }

.hero-card { min-width: 0; }
.search-bar input { min-width: 0; }

/* 2. Global overflow safety net + responsive media */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe, table { max-width: 100%; }

/* 3. Long titles / DOIs / URLs must wrap rather than overflow */
h1, h2, h3, h4, p, a, .article-card h3, .carousel-content h3,
.subject-card h3, .editor-card h4 { overflow-wrap: break-word; }

/* 4. Small-phone tuning (<=560px) */
@media (max-width: 560px) {
  /* Stats: tidy 2-column grid instead of cramped wrapping flex */
  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 8px;
    padding: 20px 18px;
  }
  .stats-inner .stat { padding: 4px; flex: none; }
  .stats-inner .num { font-size: 1.4rem; }

  /* Hero: comfortable heading + full-width buttons */
  .hero h1 { font-size: 1.5rem; line-height: 1.28; }
  .hero p { font-size: 0.94rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-card { padding: 22px 18px; }

  /* Section headings scale down a touch */
  .section-head h2, .overview-main h2 { font-size: 1.4rem; }
  .article-card h3 { font-size: 1.05rem; }

  /* Comfortable card padding */
  .article-card { padding: 18px 18px; }
  .filters { padding: 18px; }
}

/* 5. Very small phones (<=380px): keep the search bar usable */
@media (max-width: 380px) {
  .search-bar { flex-direction: column; }
  .search-bar button { padding: 12px; width: 100%; }
}


/* ============================================================
   Blog
   ============================================================ */
.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { box-shadow: 0 10px 26px rgba(122,31,92,0.12); transform: translateY(-3px); }
.blog-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9);
}
.blog-thumb svg { width: 46px; height: 46px; }
.blog-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-date {
  font-size: 0.74rem; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700;
  margin-bottom: 8px;
}
.blog-card h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--navy); font-family: "Montserrat", sans-serif; }
.blog-card p { margin: 0 0 16px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.blog-card .blog-more { margin-top: auto; font-size: 0.82rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.4px; }

/* Recently Published grid (About Us page) */
.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
