/* ════════════════════════════════════════════════════════════════
   AJOAMS - American Journal of Advanced Medical and Surgical Sciences
   Professional Academic Journal Theme
   ════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2640;
  --primary-light: #2a5a8c;
  --secondary: #b8860b;
  --secondary-light: #daa520;
  --accent: #c41e3a;
  --success: #28745c;
  --warning: #d4a017;
  --danger: #c41e3a;
  --info: #2a7ab5;

  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #eef2f7;
  --bg-dark: #1a2332;

  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --text-white: #ffffff;

  --border-color: #e2e8f0;
  --border-light: #edf2f7;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1280px;
  --header-height: 140px;

  --transition: all 0.3s ease;
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }

p { margin-bottom: 1em; color: var(--text-secondary); }

/* ─── Container ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════ */
.top-bar {
  background: var(--primary-dark);
  color: var(--text-light);
  font-size: 12px;
  padding: 6px 0;
  letter-spacing: 0.3px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: var(--text-light);
  margin-left: 16px;
}

.top-bar a:hover {
  color: var(--secondary-light);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-bar .issn-badge {
  background: rgba(255,255,255,0.1);
  padding: 2px 10px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ═══════════════════════════════════════════
   HEADER / MASTHEAD
   ═══════════════════════════════════════════ */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 0;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light), var(--secondary));
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 30px;
}

.journal-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
  flex-shrink: 0;
}

.journal-logo {
  width: 70px;
  height: 70px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary-light);
  border: 3px solid var(--secondary);
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.journal-info h1 {
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.journal-info .journal-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-family: var(--font-primary);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border-radius: 30px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
  min-width: 300px;
}

.header-search:focus-within {
  background: rgba(255,255,255,0.2);
  border-color: var(--secondary);
}

.header-search input {
  background: transparent;
  border: none;
  padding: 8px 16px;
  color: white;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.header-search input::placeholder {
  color: rgba(255,255,255,0.5);
}

.header-search button {
  background: var(--secondary);
  border: none;
  color: white;
  padding: 8px 18px;
  border-radius: 26px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.header-search button:hover {
  background: var(--secondary-light);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.main-nav {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 14px 18px;
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav-links a.active {
  border-bottom: 3px solid var(--secondary);
}

/* Dropdown */
.nav-links .dropdown {
  position: relative;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  z-index: 100;
  border-top: 3px solid var(--secondary);
}

.nav-links .dropdown:hover .dropdown-menu {
  display: block;
}

.nav-links .dropdown-menu a {
  color: var(--text-primary);
  padding: 10px 20px;
  font-size: 13px;
  text-transform: none;
  border-bottom: 1px solid var(--border-light);
}

.nav-links .dropdown-menu a:hover {
  background: var(--bg-tertiary);
  color: var(--primary);
}

.nav-submit-btn {
  background: var(--accent) !important;
  color: white !important;
  border-radius: 4px;
  margin: 8px 0;
  padding: 8px 20px !important;
  font-weight: 600 !important;
}

.nav-submit-btn:hover {
  background: #a01830 !important;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
}

/* ═══════════════════════════════════════════
   ANNOUNCEMENTS BAR
   ═══════════════════════════════════════════ */
.announcements-bar {
  background: linear-gradient(135deg, #fff3cd, #ffeeba);
  border-bottom: 1px solid #f0d58e;
  padding: 10px 0;
}

.announcement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}

.announcement-badge {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.announcement-badge.success { background: var(--success); }
.announcement-badge.info { background: var(--info); }

.announcement-text {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   HERO / BANNER
   ═══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e4d7a 50%, var(--primary-dark) 100%);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184,134,11,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 50px;
  align-items: center;
}

.hero h2 {
  color: white;
  font-size: 1.9rem;
  margin-bottom: 12px;
  line-height: 1.25;
}

.hero-lead {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-badge svg { width: 14px; height: 14px; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Quick Stats Card in Hero */
.hero-stats-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.hero-stats-card h3 {
  color: var(--secondary-light);
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stat-row:last-child { border-bottom: none; }

.stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.stat-value {
  color: white;
  font-weight: 700;
  font-size: 15px;
}

.stat-value.pending {
  color: var(--secondary-light);
  font-size: 12px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-primary);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #a01830;
  border-color: #a01830;
  color: white;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ═══════════════════════════════════════════
   PAGE LAYOUT
   ═══════════════════════════════════════════ */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 35px 0;
  position: relative;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light), var(--secondary));
}

.page-banner h1 {
  color: white;
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}
.breadcrumb a:hover {
  color: var(--secondary-light);
}

.breadcrumb-sep {
  color: rgba(255,255,255,0.3);
}

.page-content {
  flex: 1;
  padding: 40px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.content-main {
  background: white;
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.sidebar-widget-header {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget-body {
  padding: 20px;
}

.sidebar-info-list {
  list-style: none;
}

.sidebar-info-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.sidebar-info-list li:last-child { border-bottom: none; }

.sidebar-info-list .label {
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar-info-list .value {
  color: var(--text-primary);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   ARTICLE CARDS
   ═══════════════════════════════════════════ */
.articles-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.article-card:first-child { padding-top: 0; }
.article-card:last-child { border-bottom: none; }

.article-card-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  color: var(--primary);
  margin-bottom: 8px;
}

.article-card-type.review { background: #f0e6ff; color: #6b21a8; }
.article-card-type.case_report { background: #e6f7ff; color: #0369a1; }
.article-card-type.editorial { background: #fef3c7; color: #92400e; }

.article-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 8px;
}

.article-card h3 a {
  color: var(--primary-dark);
}
.article-card h3 a:hover {
  color: var(--primary-light);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-authors {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}

.article-abstract {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.article-actions a {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-actions a:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   ARTICLE VIEW (Full)
   ═══════════════════════════════════════════ */
.article-full {
  max-width: 100%;
}

.article-full-header {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
}

.article-full-header .article-type-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 4px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.article-full-header h1 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin-bottom: 16px;
}

.article-full-authors {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-full-affiliations {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
}

.article-date-item strong {
  color: var(--text-secondary);
}

.article-doi {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--info);
  margin-top: 8px;
}

.article-doi a {
  color: var(--info);
}

/* Article sections */
.article-section {
  margin-bottom: 32px;
}

.article-section-title {
  font-size: 1.15rem;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
  display: inline-block;
}

.article-abstract-box {
  background: var(--bg-tertiary);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 30px;
}

.article-abstract-box h2 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-abstract-box p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.keyword-tag {
  background: white;
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.keyword-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.article-html-content {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-html-content h2 {
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 14px;
  color: var(--primary);
}

.article-html-content h3 {
  font-size: 1.05rem;
  margin-top: 24px;
}

.article-html-content p {
  margin-bottom: 14px;
}

.article-references {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre-line;
}

/* Citation Box */
.citation-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}

.citation-box h4 {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.citation-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 12px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* ═══════════════════════════════════════════
   SECTIONS ON HOME PAGE
   ═══════════════════════════════════════════ */
.section {
  padding: 50px 0;
}

.section-alt {
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.6rem;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

.section-header p {
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── Latest Articles Grid ─── */
.latest-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.latest-article-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.latest-article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.latest-article-card .article-card-type {
  align-self: flex-start;
}

.latest-article-card h3 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 10px;
  flex-grow: 1;
}

.latest-article-card h3 a {
  color: var(--primary-dark);
}

.latest-article-card .article-authors {
  font-size: 12px;
}

.latest-article-card .article-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

/* ─── Features / Journal Info Cards ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
  background: var(--bg-tertiary);
  color: var(--primary);
}

.feature-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Indexing Partners ─── */
.indexing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.indexing-item {
  background: white;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: var(--transition);
  min-width: 150px;
}

.indexing-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.indexing-item-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
}

.indexing-item-status {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   EDITORIAL BOARD
   ═══════════════════════════════════════════ */
.board-section {
  margin-bottom: 40px;
}

.board-section-title {
  font-size: 1.1rem;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  margin-bottom: 20px;
  display: inline-block;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.board-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.board-card:hover {
  box-shadow: var(--shadow-md);
}

.board-card-header {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.board-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.board-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.board-info .board-title {
  font-size: 12px;
  color: var(--text-muted);
}

.board-details {
  font-size: 13px;
  color: var(--text-secondary);
}

.board-details p {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.board-eic-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 32px;
}

.board-eic-card h4,
.board-eic-card .board-title,
.board-eic-card .board-details,
.board-eic-card .board-details p {
  color: rgba(255,255,255,0.9);
}

.board-eic-card .board-avatar {
  background: var(--secondary);
  color: var(--primary-dark);
}

/* ═══════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-primary);
  transition: var(--transition);
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

.form-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ═══════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════ */
.flash-message {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.flash-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/* ═══════════════════════════════════════════
   ARCHIVES
   ═══════════════════════════════════════════ */
.volume-block {
  margin-bottom: 30px;
}

.volume-header {
  background: var(--primary);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.issue-list {
  background: white;
  border: 1px solid var(--border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.issue-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.issue-item:last-child { border-bottom: none; }

.issue-item:hover {
  background: var(--bg-tertiary);
}

.issue-item a {
  font-weight: 600;
  color: var(--primary);
  font-size: 14px;
}

.issue-date {
  font-size: 12px;
  color: var(--text-muted);
}

.current-badge {
  background: var(--success);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-light);
  padding-left: 4px;
}

.footer-contact p {
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--secondary-light);
}

/* ═══════════════════════════════════════════
   CMS CONTENT
   ═══════════════════════════════════════════ */
.cms-content {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.cms-content h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.cms-content h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

.cms-content ul, .cms-content ol {
  margin: 14px 0;
  padding-left: 28px;
}

.cms-content li {
  margin-bottom: 6px;
}

.cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.cms-content table th,
.cms-content table td {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  font-size: 13px;
}

.cms-content table th {
  background: var(--bg-tertiary);
  font-weight: 700;
  text-align: left;
}

/* ═══════════════════════════════════════════
   SUBMISSION FORM
   ═══════════════════════════════════════════ */
.submission-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  overflow-x: auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
}

.step.active {
  color: var(--primary);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.step.active .step-number {
  background: var(--primary);
  color: white;
}

/* ═══════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════ */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.data-table th {
  background: var(--bg-tertiary);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:hover td {
  background: var(--bg-secondary);
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-published { background: #d4edda; color: #155724; }
.status-draft { background: #e2e8f0; color: #4a5568; }
.status-under_review { background: #fff3cd; color: #856404; }
.status-accepted { background: #cce5ff; color: #004085; }
.status-rejected { background: #f8d7da; color: #721c24; }
.status-new { background: #d1ecf1; color: #0c5460; }
.status-revision_required { background: #ffeeba; color: #856404; }

/* ═══════════════════════════════════════════
   SEARCH
   ═══════════════════════════════════════════ */
.search-bar-large {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  display: flex;
  gap: 12px;
}

.search-bar-large input {
  flex: 1;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-stats-card {
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar { display: none; }

  .header-main {
    flex-direction: column;
    text-align: center;
    padding: 16px 0;
    gap: 16px;
  }

  .header-search {
    min-width: unset;
    width: 100%;
    max-width: 400px;
  }

  .journal-brand { flex-direction: column; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .nav-links.active { display: flex; }

  .nav-links a {
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    background: rgba(0,0,0,0.1);
  }

  .nav-links .dropdown-menu a {
    color: white;
  }

  .nav-links .dropdown .dropdown-menu {
    display: block;
  }

  .hero { padding: 40px 0 30px; }
  .hero h2 { font-size: 1.5rem; }

  .content-main { padding: 24px; }

  .latest-articles-grid {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ─── Print Styles ─── */
@media print {
  .top-bar, .site-header, .main-nav, .sidebar,
  .site-footer, .announcements-bar, .article-actions,
  .hero, .nav-toggle { display: none !important; }

  .content-grid { grid-template-columns: 1fr; }
  .content-main { box-shadow: none; border: none; }
  body { font-size: 12pt; }
  h1 { font-size: 18pt; }
}

/* ─── Utility Classes ─── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.d-flex { display: flex; }
.gap-2 { gap: 16px; }
.fw-bold { font-weight: 700; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.hidden { display: none; }

/* ==============================
   Conferences
   ============================== */
.conf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.conf-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.conf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.conf-card-banner { width: 100%; height: 200px; object-fit: cover; }
.conf-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.conf-card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.conf-card-body h3 a { color: var(--text-dark); text-decoration: none; }
.conf-card-body h3 a:hover { color: var(--primary); }
.conf-card-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--text-muted); margin-bottom: 10px; }
.conf-card-meta span { display: flex; align-items: center; gap: 4px; }
.conf-card-desc { font-size: .9rem; color: var(--text-light); margin-bottom: 14px; flex: 1; }
.conf-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.conf-status-upcoming { background: #e0f2fe; color: #0369a1; }
.conf-status-ongoing { background: #dcfce7; color: #15803d; }
.conf-status-completed { background: #f3f4f6; color: #6b7280; }
.conf-status-cancelled { background: #fee2e2; color: #b91c1c; }
.conf-detail-banner { width: 100%; max-height: 400px; object-fit: cover; border-radius: 12px; margin-bottom: 24px; }
.conf-meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.conf-meta-item { padding: 14px; background: var(--bg-light); border-radius: 8px; }
.conf-meta-item .label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.conf-meta-item .value { font-weight: 600; color: var(--text-dark); }
.conf-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.conf-topics .tag { background: var(--primary-light, #e8f4f8); color: var(--primary); padding: 4px 14px; border-radius: 20px; font-size: .85rem; }
.conf-speakers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 20px 0; }
.conf-speaker-card { text-align: center; padding: 20px; background: var(--bg-light); border-radius: 10px; }
.conf-speaker-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.conf-speaker-name { font-weight: 600; font-size: 1rem; }
.conf-speaker-affil { font-size: .85rem; color: var(--text-muted); }
.conf-speaker-talk { font-size: .85rem; color: var(--primary); margin-top: 6px; font-style: italic; }
.conf-schedule-day { margin-bottom: 30px; }
.conf-schedule-day h3 { padding-bottom: 8px; border-bottom: 2px solid var(--primary); margin-bottom: 12px; }
.conf-session { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.conf-session-time { min-width: 120px; font-weight: 600; color: var(--primary); font-size: .9rem; }
.conf-session-info h4 { font-size: .95rem; margin-bottom: 4px; }
.conf-session-type { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .75rem; font-weight: 600; background: var(--bg-light); }
.conf-reg-form { background: var(--bg-light); border-radius: 12px; padding: 24px; margin-top: 24px; }
.conf-reg-form h3 { margin-bottom: 16px; }

/* ==============================
   Certificates
   ============================== */
.cert-verify-section { max-width: 600px; margin: 0 auto; text-align: center; padding: 40px 0; }
.cert-verify-section h2 { margin-bottom: 12px; }
.cert-verify-form { display: flex; gap: 12px; margin: 24px 0; }
.cert-verify-form input { flex: 1; padding: 12px 16px; border: 2px solid var(--border); border-radius: 8px; font-size: 1rem; }
.cert-verify-form button { padding: 12px 24px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.cert-verify-form button:hover { background: var(--primary-dark); }
.cert-result { margin-top: 24px; padding: 24px; border-radius: 12px; text-align: left; }
.cert-result.valid { background: #dcfce7; border: 2px solid #86efac; }
.cert-result.invalid { background: #fee2e2; border: 2px solid #fca5a5; }
.cert-result h3 { margin-bottom: 12px; }
.cert-details-table { width: 100%; border-collapse: collapse; }
.cert-details-table td { padding: 8px 12px; border-bottom: 1px solid rgba(0,0,0,.08); }
.cert-details-table td:first-child { font-weight: 600; width: 40%; color: var(--text-muted); }
.cert-view-card { max-width: 800px; margin: 30px auto; background: white; border-radius: 16px; padding: 40px; box-shadow: var(--shadow-lg); text-align: center; }
.cert-view-card .cert-logo { max-height: 60px; margin-bottom: 16px; }
.cert-view-card .cert-type-heading { font-size: .85rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 8px; }
.cert-view-card h1 { font-size: 1.5rem; margin-bottom: 20px; }
.cert-view-card .cert-recipient { font-size: 1.8rem; font-weight: 700; color: var(--primary-dark); margin: 16px 0; }
.cert-view-card .cert-body { font-size: 1.05rem; line-height: 1.8; color: var(--text-light); margin: 20px 0; }
.cert-view-card .cert-article-info, .cert-view-card .cert-conference-info { background: var(--bg-light); border-radius: 10px; padding: 16px; margin: 16px 0; text-align: left; }
.cert-view-card .cert-sig-block { margin-top: 30px; padding-top: 20px; border-top: 2px solid var(--border); display: flex; justify-content: space-around; }
.cert-view-card .cert-sig-item { text-align: center; }
.cert-view-card .cert-sig-line { width: 150px; border-bottom: 1px solid var(--text-dark); margin: 0 auto 6px; }
.cert-view-card .cert-number { font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: var(--text-muted); margin-top: 20px; }
.cert-actions { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.cert-style--classic { border: 3px double var(--primary); }
.cert-style--modern { border: none; border-top: 5px solid var(--primary); }
.cert-style--formal { border: 4px double #1a365d; }
.cert-style--academic { border: 2px solid var(--primary); border-top: 8px solid var(--primary); }
.cert-style--gold { border: 3px solid #b8860b; background: linear-gradient(135deg, #fffef7, #fff9e6); }
