/* ==========================================================================
   IGRF–IJEGISET — Unified IJMGR-Referenced Scholarly Design System
   Reference Visual Architecture: https://ijmgr.igrf.co.in (Royal Emerald,
   Academic Navy Blue & 24K Liquid Gold + Volumetric 3D Showcase + /EBMs Cards)
   Typography: Playfair Display + Plus Jakarta Sans | WCAG 2.2 AA | Light/Dark
   ========================================================================== */

:root {
  --navy-950: #063521;
  --navy-900: #0b4f32;
  --navy-800: #0d5c3a;
  --navy-700: #0f6b43;
  --navy-500: #158454;
  --emerald-950: #063521;
  --emerald-900: #0b4f32;
  --emerald-800: #0d5c3a;
  --emerald-700: #0f6b43;
  --emerald-500: #158454;
  --emerald-100: #eefcf4;
  --emerald-200: #a7f3d0;
  --heading-blue: #102a56;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-metal: #d4af37;
  --gold-primary: #d4af37;
  --gold-bright: #f59e0b;
  --gold-light: #fff3b0;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f7f4;
  --border: #d7e3dc;
  --text: #070d19;
  --text-muted: #334155;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --warning: #b45309;
  --warning-bg: #fffbeb;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --info: #14366b;
  --info-bg: #eff6ff;
  --shadow-sm: 0 3px 12px rgba(11, 79, 50, 0.06);
  --shadow: 0 8px 24px rgba(11, 79, 50, 0.08);
  --shadow-lg: 0 22px 52px rgba(6, 53, 33, 0.16);
  --radius: 12px;
}

[data-theme="dark"] {
  --navy-950: #041f14;
  --navy-900: #0b4f32;
  --navy-700: #158454;
  --emerald-950: #041f14;
  --emerald-900: #0b4f32;
  --emerald-700: #158454;
  --emerald-100: #0b2419;
  --emerald-200: #1e4232;
  --heading-blue: #f1f5f9;
  --bg: #07130e;
  --surface: #0d2118;
  --surface-alt: #112a1f;
  --border: #1e4232;
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --success: #4ade80;
  --success-bg: rgba(21, 128, 61, 0.18);
  --warning: #fbbf24;
  --warning-bg: rgba(180, 83, 9, 0.22);
  --danger: #f87171;
  --danger-bg: rgba(185, 28, 28, 0.22);
  --info: #7dd3fc;
  --info-bg: rgba(29, 78, 216, 0.22);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 500;
  line-height: 1.64;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--heading-blue);
  font-weight: 800;
  line-height: 1.2;
  text-wrap: balance;
}
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: #f8fafc; }

a { color: #0f6b43; font-weight: 600; text-decoration: none; }
[data-theme="dark"] a { color: #6ee7b7; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

code {
  background: rgba(11, 79, 50, 0.08);
  color: #0b4f32;
  border: 1px solid rgba(11, 79, 50, 0.18);
  padding: 0.12rem 0.42rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.86em;
}
[data-theme="dark"] code { background: rgba(255,255,255,0.12); color: #fff3b0; border-color: rgba(255,243,176,0.35); }

.reading-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #f59e0b 0%, #fde68a 50%, #34d399 100%);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.78);
  z-index: 2000; pointer-events: none; transition: width 0.08s linear;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: #fff3b0; color: #110b01; font-weight: 800; padding: 8px 14px; border-radius: 6px; z-index: 2001;
}
.skip-link:focus { left: 12px; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* 1. TOP ROYAL EMERALD PUBLISHER & OPEN-ACCESS RIBBON */
.igrf-announcement, .igrf-top-bar {
  background: linear-gradient(90deg, #063521 0%, #0f6b43 50%, #063521 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 1px solid rgba(251, 191, 36, 0.48);
}
.igrf-announcement .container, .ann-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.igrf-announcement a { color: #fff3b0; font-weight: 700; text-decoration: none; }
.igrf-announcement a:hover { color: #fde68a; text-decoration: underline; }

/* 2. STICKY PRIMS-STYLED HEADER + OFFICIAL IGRF COMPANY LOGO + 24K LIQUID-GOLD NAVIGATION */
.pub-header {
  background: rgba(255, 255, 255, 0.99);
  border-bottom: 2px solid #0b4f32;
  box-shadow: 0 4px 18px rgba(11, 79, 50, 0.08);
  position: sticky; top: 0; z-index: 1020;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.pub-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(6, 14, 26, 0.12);
}
[data-theme="dark"] .pub-header, [data-theme="dark"] .pub-header.is-scrolled { background: rgba(13, 33, 24, 0.96); }

.pub-brand-bar { padding: 8px 0; border-bottom: 1px solid var(--border); }
.pub-brand-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-lockup { display: flex; align-items: center; gap: 14px; text-decoration: none !important; min-width: 0; flex: 1; }
.brand-logo {
  width: clamp(60px, 5.6vw, 76px);
  height: clamp(60px, 5.6vw, 76px);
  border-radius: 14px;
  object-fit: contain !important;
  background: #ffffff;
  padding: 3px;
  flex-shrink: 0;
  border: 1.5px solid #d4af37;
  box-shadow: 0 4px 14px rgba(11, 79, 50, 0.12), 0 0 10px rgba(212, 175, 55, 0.22);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}
a:hover .brand-logo {
  transform: perspective(550px) rotateY(24deg) rotateX(8deg) scale(1.05);
  filter: drop-shadow(0 10px 18px rgba(212, 175, 55, 0.55));
}
.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.12rem, 1.78vw, 1.52rem);
  font-weight: 800; line-height: 1.16; color: #0b4f32;
}
[data-theme="dark"] .brand-title { color: #fff3b0; }
.brand-sub {
  font-size: clamp(0.75rem, 0.92vw, 0.85rem);
  color: #102a56; font-weight: 700; margin-top: 2px;
}
[data-theme="dark"] .brand-sub { color: #d1fae5; }
.pub-brand-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Institutional Masthead Banner Showcase (Exact IJMGR Live Reference Pattern) */
.ijmgr-banner-showcase, .igrf-banner-showcase {
  background: var(--surface);
  border-bottom: 2px solid rgba(212, 175, 55, 0.55);
  padding: 10px 0;
}
.igrf-masthead-card {
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 2px solid #d4af37; border-radius: 14px;
  padding: 14px 26px; box-shadow: 0 8px 24px rgba(6, 53, 33, 0.10);
}
.igrf-masthead-logo {
  width: 96px; height: 96px; border-radius: 14px; background: #ffffff; padding: 3px;
  border: 2px solid #0b4f32; object-fit: contain !important; flex-shrink: 0;
}

/* Primary 24K Liquid-Gold Navigation Pills */
.pub-nav-bar { padding: 7px 0; background: rgba(255, 255, 255, 0.97); }
[data-theme="dark"] .pub-nav-bar { background: rgba(11, 30, 22, 0.96); }
.pub-nav { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pub-nav a {
  padding: 6px 12px; border-radius: 999px; font-size: 0.79rem; font-weight: 800;
  color: #110b01 !important;
  background: linear-gradient(135deg, #c8961e 0%, #f0cb5c 22%, #fff3b0 48%, #e2b63b 70%, #f6d872 88%, #b8860b 100%) !important;
  background-size: 220% 220% !important;
  border: 1px solid #c99d2e !important;
  text-shadow: 0 1px 0 rgba(255, 253, 232, 0.82);
  box-shadow: inset 0 1px 1px rgba(255, 254, 240, 0.94), inset 0 -2px 3px rgba(133, 94, 15, 0.30), 0 3px 10px rgba(212, 175, 55, 0.38);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  white-space: nowrap; position: relative; overflow: hidden; isolation: isolate;
  animation: goldSurfaceGlow 4.5s ease-in-out infinite;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none !important;
}
.pub-nav a:hover, .pub-nav a:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 2px rgba(255, 255, 245, 0.98), 0 6px 18px rgba(212, 175, 55, 0.62);
}
.pub-nav a.active-link {
  border: 2px solid #0b4f32 !important;
  box-shadow: 0 0 0 2px rgba(11, 79, 50, 0.22), 0 5px 14px rgba(212, 175, 55, 0.65);
}

/* Sub-Category Quick Bar */
.sub-category-bar {
  background-color: #eefcf4; border-bottom: 1px solid #a7f3d0; padding: 7px 0; font-size: 0.8rem;
}
[data-theme="dark"] .sub-category-bar { background-color: #0b2419; border-bottom-color: #1e4232; }
.sub-category-scroll { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.category-chip {
  color: #110b01 !important; text-decoration: none !important; font-weight: 800; font-size: 0.76rem;
  padding: 4px 12px; border-radius: 20px;
  background: linear-gradient(135deg, #c8961e 0%, #f0cb5c 22%, #fff3b0 48%, #e2b63b 70%, #f6d872 88%, #b8860b 100%);
  border: 1px solid #c99d2e;
  box-shadow: inset 0 1px 1px rgba(255, 254, 240, 0.92), 0 2px 8px rgba(212, 175, 55, 0.34);
  display: inline-flex; align-items: center; gap: 4px; position: relative; overflow: hidden; isolation: isolate;
  transition: transform 0.2s ease;
}
.category-chip:hover { transform: translateY(-2px); }

/* 3. UNIFIED 24K LIQUID-GOLD BUTTONS + SPECULAR SHIMMER */
.btn, .btn-gold, .btn-primary, .btn-navy, .btn-outline, .btn-danger, .btn-hero-primary, .btn-hero-outline, .book-3d-ctrl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 800; cursor: pointer; text-decoration: none !important;
  position: relative; overflow: hidden; isolation: isolate; flex-shrink: 0;
  background: linear-gradient(135deg, #c8961e 0%, #f0cb5c 22%, #fff3b0 48%, #e2b63b 70%, #f6d872 88%, #b8860b 100%) !important;
  background-size: 220% 220% !important;
  border: 1px solid #c99d2e !important;
  color: #110b01 !important;
  text-shadow: 0 1px 0 rgba(255, 253, 232, 0.82);
  box-shadow: inset 0 1px 1px rgba(255, 254, 240, 0.94), inset 0 -2px 3px rgba(133, 94, 15, 0.34), 0 4px 14px rgba(212, 175, 55, 0.45);
  animation: goldSurfaceGlow 4.5s ease-in-out infinite;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-hero-primary, .btn-hero-outline { padding: 12px 24px; font-size: 0.94rem; }
.btn-primary, .btn-navy { border: 1.5px solid #0b4f32 !important; }
.btn-danger { color: #991b1b !important; border: 1.5px solid #b91c1c !important; }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; }
.btn-lg { padding: 12px 26px; font-size: 0.96rem; }
.book-3d-ctrl-btn { font-size: 0.72rem; padding: 4px 11px; }

.btn:hover:not(:disabled), .btn-hero-primary:hover, .btn-hero-outline:hover, .book-3d-ctrl-btn:hover, .book-3d-ctrl-btn.active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: inset 0 1px 2px rgba(255, 255, 245, 0.98), 0 8px 22px rgba(212, 175, 55, 0.64), 0 0 20px rgba(255, 236, 145, 0.45);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; animation: none !important; }

.btn::before, .btn-hero-primary::before, .btn-hero-outline::before, .pub-nav a::before, .badge::before, .category-chip::before {
  content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 44%; border-radius: 0 0 50% 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.36) 0%, rgba(255,255,255,0.04) 100%);
  pointer-events: none; z-index: -1;
}
.btn:not(:disabled)::after, .btn-hero-primary::after, .btn-hero-outline::after, .pub-nav a::after, .category-chip::after {
  content: ''; position: absolute; top: -35%; left: -85%; width: 48%; height: 170%;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.28) 35%, rgba(255,255,255,0.72) 50%, rgba(255,255,255,0.28) 65%, rgba(255,255,255,0) 100%);
  transform: skewX(-24deg);
  animation: goldMetallicShine 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none; z-index: -1;
}
@keyframes goldMetallicShine {
  0% { left: -85%; opacity: 0; }
  12% { opacity: 1; }
  48% { left: 135%; opacity: 1; }
  55%, 100% { left: 135%; opacity: 0; }
}
@keyframes goldSurfaceGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 4. HERO SECTION & 6-FACE VOLUMETRIC 3D JOURNAL PRESENTATION */
.hero {
  position: relative; overflow: hidden; perspective: 1400px;
  background-color: #0b4f32;
  background-image:
    radial-gradient(circle at 78% 28%, rgba(251, 191, 36, 0.24) 0%, transparent 48%),
    radial-gradient(circle at 16% 82%, rgba(52, 211, 153, 0.24) 0%, transparent 45%),
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.30) 0%, transparent 55%),
    linear-gradient(135deg, #063521 0%, #0b4f32 50%, #158454 100%);
  color: #ffffff;
  padding: 52px 0 66px;
  border-bottom: 4px solid #f59e0b;
}
.hero > .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.95fr); gap: 30px; align-items: center; }
.hero h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(2, 24, 15, 0.45);
  font-size: clamp(1.65rem, 2.75vw, 2.38rem);
  margin: 12px 0 14px; line-height: 1.18;
}
.hero-title-accent {
  background: linear-gradient(120deg, #ffffff 0%, #fffbeb 38%, #fef3c7 72%, #fde68a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto;
  animation: goldSurfaceGlow 7s ease-in-out infinite;
}
.hero p.lead { font-size: 1.01rem; color: #f8fafc !important; max-width: 720px; margin: 0 0 20px; }
.hero-badge-pill, .eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 243, 176, 0.65); background: rgba(255, 255, 255, 0.14);
  color: #fff3b0 !important; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.page-hero {
  background: linear-gradient(135deg, #063521 0%, #0b4f32 55%, #158454 100%);
  color: #ffffff; padding: 34px 0 38px; border-bottom: 3px solid #f59e0b;
}
.page-hero h1 { color: #ffffff !important; margin: 8px 0 6px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.page-hero p { color: #ecfdf5; margin: 0; max-width: 820px; font-size: 0.96rem; }
.breadcrumb { font-size: 0.8rem; color: #fff3b0; margin-bottom: 6px; }
.breadcrumb a { color: #fde68a; }

/* Ambient 3D Floating Volumes & Stardust Canvas */
.hero-3d-ambient { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.hero-3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.95; }
.floating-book-3d {
  position: absolute; border-radius: 5px 12px 12px 5px;
  border: 1.5px solid rgba(255, 240, 168, 0.72);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.34) 0%, rgba(11, 79, 50, 0.78) 52%, rgba(110, 231, 183, 0.32) 100%);
  box-shadow: -14px 22px 38px rgba(2, 24, 15, 0.54), inset 8px 0 0 rgba(251, 191, 36, 0.85);
  transform-style: preserve-3d; will-change: transform;
}
.floating-book-3d.fb-1 { width: 84px; height: 114px; top: 8%; left: 2%; opacity: 0.85; animation: floatBook3D-A 7.4s ease-in-out infinite; }
.floating-book-3d.fb-2 { width: 70px; height: 96px; bottom: 10%; left: 44%; opacity: 0.78; animation: floatBook3D-B 8.6s ease-in-out infinite; }
.floating-book-3d.fb-3 { width: 92px; height: 126px; top: 10%; right: 2%; opacity: 0.82; animation: floatBook3D-A 9.2s ease-in-out infinite reverse; }
@keyframes floatBook3D-A {
  0%, 100% { transform: perspective(850px) rotateX(24deg) rotateY(-36deg) rotateZ(-8deg) translateY(0px); }
  50% { transform: perspective(850px) rotateX(-8deg) rotateY(-12deg) rotateZ(5deg) translateY(-24px) translateZ(24px); }
}
@keyframes floatBook3D-B {
  0%, 100% { transform: perspective(850px) rotateX(-20deg) rotateY(32deg) rotateZ(8deg) translateY(0px); }
  50% { transform: perspective(850px) rotateX(16deg) rotateY(6deg) rotateZ(-6deg) translateY(-22px) translateZ(22px); }
}

/* 6-Face Volumetric 3D Journal Cover Stage */
.flagship-3d-card {
  border-radius: 18px !important; border: 1.5px solid rgba(245, 158, 11, 0.58) !important;
  background: #ffffff !important; color: #070d19 !important; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.44), 0 0 38px rgba(245, 158, 11, 0.16) !important;
}
.book-studio-backdrop {
  position: relative; border-radius: 12px; border: 1px solid #d7e3dc;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f4fcf8 52%, #dbeee5 100%);
  padding: 20px 12px 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.book-3d-stage { perspective: 950px; display: inline-flex; flex-direction: column; align-items: center; padding: 6px 14px 10px; }
.book-3d-interactive-stage { cursor: grab; user-select: none; touch-action: pan-y; }
.book-3d-interactive-stage.is-dragging { cursor: grabbing; }
.book-3d-object {
  --book-depth: 26px;
  position: relative; display: inline-block; transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(7deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  animation: flagshipBookFloat 5s ease-in-out infinite;
}
.book-3d-autospin { animation: bookSpin360 8.5s linear infinite !important; }
.book-3d-object.is-dragging, .book-3d-object.is-manual-pose, .book-3d-stage:hover .book-3d-object:not(.is-dragging):not(.is-manual-pose) { animation: none; }
.book-3d-stage:hover .book-3d-object:not(.is-dragging):not(.is-manual-pose) {
  transform: rotateY(-36deg) rotateX(9deg) translateY(-10px) translateZ(24px);
}
.book-3d-front {
  position: relative; display: block; background: #ffffff; border-radius: 3px 8px 8px 3px;
  transform: translateZ(calc(var(--book-depth) / 2)); transform-origin: left center; transform-style: preserve-3d;
  box-shadow: inset 6px 0 12px rgba(4, 34, 22, 0.24), 0 16px 32px rgba(4, 34, 22, 0.3);
  overflow: hidden;
}
.book-3d-inner-page {
  position: absolute; inset: 3px 3px 3px 4px;
  background: linear-gradient(135deg, #fffdf7 0%, #f8f4e8 60%, #efe7d2 100%);
  border: 1px solid #d4c49a; border-radius: 2px 6px 6px 2px;
  transform: translateZ(calc(var(--book-depth) / 2 - 2px)); pointer-events: none;
}
.book-3d-spine {
  position: absolute; top: 0; left: 0; width: var(--book-depth); height: 100%;
  background:
    linear-gradient(180deg, #f59e0b 0%, #fff3b0 5%, #d4af37 8%, transparent 8%, transparent 92%, #d4af37 92%, #fff3b0 95%, #f59e0b 100%),
    linear-gradient(90deg, #063521 0%, #0f6b43 50%, #0b4f32 100%);
  transform-origin: left center; transform: rotateY(-90deg) translateX(calc(var(--book-depth) / -2));
  border-radius: 3px 0 0 3px; pointer-events: none;
}
.book-3d-pages {
  position: absolute; top: 4px; right: 0; width: calc(var(--book-depth) - 4px); height: calc(100% - 8px);
  background: repeating-linear-gradient(90deg, #fffdf7 0px, #fffdf7 1.5px, #cbd5e1 1.5px, #cbd5e1 2.5px);
  transform-origin: right center; transform: rotateY(90deg) translateX(calc(var(--book-depth) / 2 - 2px));
  pointer-events: none;
}
.book-3d-back {
  position: absolute; inset: 0; background: linear-gradient(145deg, #0b4f32 0%, #158454 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.65); border-radius: 3px 8px 8px 3px;
  transform: translateZ(calc(var(--book-depth) / -2)); pointer-events: none;
}
.book-3d-sheen {
  position: absolute; inset: 0;
  background: linear-gradient(118deg, rgba(255,255,255,0) 15%, rgba(255,255,255,0.72) 48%, rgba(255,255,255,0) 78%);
  opacity: 0; transform: translateX(-85%); transition: opacity 0.45s ease, transform 0.72s ease; pointer-events: none; z-index: 4;
}
.book-3d-stage:hover .book-3d-sheen { opacity: 1; transform: translateX(85%); }
.book-3d-shadow {
  width: 82%; height: 13px; margin-top: 8px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(4, 34, 22, 0.44) 0%, transparent 76%); filter: blur(4px);
}
.book-3d-controls {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 5px;
  background: rgba(11, 79, 50, 0.08); padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, 0.48); margin-top: 8px;
}
@keyframes flagshipBookFloat {
  0%, 100% { transform: rotateY(-24deg) rotateX(7deg) translateY(0px); }
  50% { transform: rotateY(8deg) rotateX(-4deg) translateY(-10px) translateZ(14px); }
}
@keyframes bookSpin360 {
  0% { transform: rotateX(7deg) rotateY(0deg); }
  100% { transform: rotateX(7deg) rotateY(360deg); }
}

/* 5. SECTIONS, CARDS, GRIDS, 3D TILT SPOTLIGHT & SCROLL REVEAL */
.section { padding: 36px 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(1.32rem, 2.1vw, 1.78rem); }
.section-sub { margin: 4px 0 0; color: var(--text-muted); font-size: 0.92rem; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.card-title { margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--heading-blue); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.kpi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); border-top: 3px solid #0f6b43;
}
.kpi-card.accent, .kpi-card.gold { border-top-color: #f59e0b; }
.kpi-card.blue { border-top-color: #102a56; }
.kpi-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 800; }
.kpi-value { font-family: 'Playfair Display', Georgia, serif; font-size: 1.72rem; font-weight: 800; color: var(--text); margin: 5px 0 2px; line-height: 1.1; }
.kpi-sub { font-size: 0.78rem; color: var(--text-muted); }

.tilt-3d-card {
  position: relative; transform-style: preserve-3d;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.25s ease;
}
.tilt-3d-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 158, 11, 0.18), rgba(16, 185, 129, 0.06) 42%, transparent 62%);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.tilt-3d-card:hover {
  box-shadow: 0 22px 44px rgba(11, 79, 50, 0.18), 0 0 24px rgba(212, 175, 55, 0.22) !important;
  border-color: rgba(212, 175, 55, 0.72) !important;
}
.tilt-3d-card:hover::after { opacity: 1; }
.no-3d-form-section, .no-3d-form-section:hover { transform: none !important; }
.no-3d-form-section::after { display: none !important; }

.reveal-3d {
  opacity: 0;
  transform: perspective(900px) rotateX(10deg) translateY(24px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-3d.is-visible { opacity: 1; transform: none; }

/* 6. IJMGR-MATCHED EDITORIAL BOARD (/EBMs) PROFILE CARDS */
.ebm-section-heading, .ebm-tier-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-radius: 10px;
  background: linear-gradient(90deg, #063521 0%, #0b4f32 60%, #158454 100%);
  color: #ffffff !important; border-left: 5px solid #f59e0b;
  margin: 26px 0 16px;
}
.ebm-section-heading h2, .ebm-tier-header h2 { color: #ffffff !important; margin: 0; font-size: 1.25rem; }

.ebm-profile-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 5px solid #0b4f32;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 26px rgba(11, 79, 50, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.ebm-profile-card.is-chief {
  border-color: #d4af37;
  border-left: 6px solid #d4af37;
  background: linear-gradient(180deg, #fffdf5 0%, #f4fbf7 32%, #ffffff 100%);
}
[data-theme="dark"] .ebm-profile-card.is-chief { background: linear-gradient(180deg, #163426 0%, #0d2118 60%); }
.ebm-profile-card:hover { border-color: #d4af37; box-shadow: 0 16px 38px rgba(11, 79, 50, 0.14); }
.ebm-photo-frame {
  width: 140px; height: 172px;
  border-radius: 12px; border: 2px solid #d4af37;
  background: linear-gradient(180deg, #ffffff 0%, #eefcf4 100%);
  padding: 4px; box-shadow: 0 6px 18px rgba(11, 79, 50, 0.14);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ebm-photo-frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.ebm-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.32rem; font-weight: 800; color: var(--heading-blue); margin: 0 0 6px; }
.ebm-affil { font-size: 0.94rem; color: var(--text); margin: 6px 0; line-height: 1.55; }
.ebm-meta-line { font-size: 0.87rem; margin: 4px 0; color: var(--text-muted); }
.ebm-id-pills, .ebm-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ebm-id-pill, .ebm-link-pill, .acad-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 800;
  border: 1px solid #0b4f32; background: #eefcf4; color: #063521 !important;
  text-decoration: none !important; transition: all 0.18s ease;
}
.ebm-id-pill:hover, .ebm-link-pill:hover { background: #0b4f32; color: #fff3b0 !important; transform: translateY(-1px); }
.ebm-id-pill.orcid, .ebm-link-pill.orcid { border-color: #65a30d; background: #f7fee7; color: #365314 !important; }
.ebm-id-pill.scopus, .ebm-link-pill.scopus { border-color: #ea580c; background: #fff7ed; color: #9a3412 !important; }
.ebm-id-pill.scholar, .ebm-link-pill.scholar { border-color: #1d4ed8; background: #eff6ff; color: #1e3a8a !important; }
.ebm-id-pill.rg { border-color: #0d9488; background: #f0fdfa; color: #115e59 !important; }
.ebm-id-pill.linkedin { border-color: #0369a1; background: #f0f9ff; color: #0c4a6e !important; }

/* Article Listings & Citations */
.article-item, .article-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px; margin-bottom: 16px; border-left: 4px solid #0b4f32;
  box-shadow: var(--shadow-sm);
}
.article-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.08rem; margin: 0 0 6px; line-height: 1.35; }
.article-authors { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.article-meta, .article-meta-row { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.citation-box {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; font-size: 0.88rem; font-family: Georgia, serif; line-height: 1.6;
}

/* 7. BADGES, ALERTS, FORMS, WIZARD & TABLES */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 0.71rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate;
}
.badge-success { background: linear-gradient(135deg, #064e3b, #059669); color: #ffffff; border: 1px solid #34d399; }
.badge-warning { background: linear-gradient(135deg, #d97706, #f59e0b); color: #ffffff; border: 1px solid #fde68a; }
.badge-gold    { background: linear-gradient(135deg, #d4af37, #fff3b0, #c99d2e); color: #110b01; border: 1px solid #c99d2e; }
.badge-danger  { background: linear-gradient(135deg, #7f1d1d, #dc2626); color: #ffffff; border: 1px solid #f87171; }
.badge-info    { background: linear-gradient(135deg, #102a56, #1d4ed8); color: #ffffff; border: 1px solid #60a5fa; }

.alert {
  padding: 13px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 0.9rem;
  border-left: 4px solid var(--info); background: var(--info-bg); color: var(--text);
}
.alert-success { border-left-color: var(--success); background: var(--success-bg); }
.alert-warning { border-left-color: var(--warning); background: var(--warning-bg); }
.alert-danger  { border-left-color: var(--danger); background: var(--danger-bg); }

.form-group { margin-bottom: 14px; }
label, .form-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 5px; color: var(--text); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"],
input[type="date"], input[type="datetime-local"], input[type="search"], input[type="file"], select, textarea, .form-control {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font-size: 0.9rem; font-family: inherit;
}
input:focus, select:focus, textarea:focus { border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22); outline: none; }
textarea { min-height: 96px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.help-text { font-size: 0.79rem; color: var(--text-muted); margin-top: 4px; }

.wizard-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 22px; }
.wizard-step {
  padding: 10px 8px; border-radius: 10px; text-align: center; font-size: 0.76rem; font-weight: 800;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted);
}
.wizard-step.active { border-color: var(--gold-metal); background: linear-gradient(135deg, #0b4f32, #158454); color: #fff3b0; }
.wizard-step.done   { border-color: #15803d; background: var(--success-bg); color: var(--success); }

.table-wrap { overflow-x: auto; width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--heading-blue); background: var(--surface-alt); font-weight: 800; }
[data-theme="dark"] th { color: #fde68a; }
tr:hover td { background: var(--surface-alt); }

/* 8. AUTHENTICATED ROLE PORTAL SHELL (Author, Reviewer, Editor, Production, Finance, Director, Super Admin) */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 274px; flex-shrink: 0;
  background: linear-gradient(180deg, #063521 0%, #0b4f32 100%);
  color: #e2e8f0; display: flex; flex-direction: column;
  border-right: 2px solid rgba(212, 175, 55, 0.45);
}
.sidebar-head { padding: 16px; border-bottom: 1px solid rgba(255, 243, 176, 0.18); }
.sidebar-head img { width: 48px; height: 48px; border-radius: 10px; border: 1.5px solid #d4af37; background: #ffffff; padding: 2px; object-fit: contain !important; }
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-section { font-size: 0.69rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fde68a; font-weight: 800; padding: 12px 12px 5px; }
.sidebar-link {
  display: flex; align-items: center; justify-content: space-between; gap: 9px; color: #ecfdf5 !important;
  padding: 8px 12px; border-radius: 8px; font-size: 0.84rem; font-weight: 600; margin-bottom: 2px;
  text-decoration: none !important; transition: background 0.18s ease;
}
.sidebar-link:hover, .sidebar-link.active { background: rgba(245, 158, 11, 0.22); color: #fff3b0 !important; }
.sidebar-link.active { border-left: 3px solid #f59e0b; font-weight: 800; }
.sidebar-foot { padding: 12px 16px; border-top: 1px solid rgba(255, 243, 176, 0.18); font-size: 0.75rem; color: #d1fae5; }

.main-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--surface); border-bottom: 2px solid rgba(11, 79, 50, 0.18);
  padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.topbar-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; font-weight: 800; color: var(--heading-blue); margin: 0; }
.page-body { padding: 24px; max-width: 1420px; width: 100%; margin: 0 auto; flex: 1; }

/* 9. PRIMS-MATCHED HOMEPAGE ANNOUNCEMENT POPUP MODAL */
.prims-modal-backdrop {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(6, 26, 17, 0.74); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; transition: opacity 0.24s ease;
}
.prims-modal-backdrop[hidden] { display: none !important; }
.prims-modal-backdrop.is-open { opacity: 1; }
.prims-modal-dialog {
  width: 100%; max-width: 820px; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: 16px; border: 2px solid #d4af37;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.45);
  transform: translateY(16px) scale(0.97); transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
.prims-modal-backdrop.is-open .prims-modal-dialog { transform: translateY(0) scale(1); }
.prims-modal-header {
  background: linear-gradient(100deg, #063521 0%, #0b4f32 58%, #158454 100%);
  border-bottom: 3px solid #f59e0b; padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.prims-modal-close {
  background: rgba(255, 255, 255, 0.14); color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 999px;
  width: 36px; height: 36px; font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.prims-modal-close:hover { background: #f59e0b; color: #063521; }
.prims-modal-body { padding: 20px 22px; }
.prims-modal-footer {
  padding: 12px 22px; border-top: 1px solid var(--border); background: var(--surface-alt);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* 10. PUBLIC FOOTER (Exact IJMGR Emerald Gradient + Amber Top Border) */
.pub-footer {
  background: linear-gradient(135deg, #063521 0%, #0b4f32 52%, #158454 100%);
  color: #ffffff; padding: 44px 0 24px; margin-top: 48px; border-top: 3px solid #f59e0b; font-size: 0.87rem;
}
.pub-footer h4 { color: #fde68a !important; font-size: 0.98rem; margin: 0 0 10px; }
.pub-footer a { color: #ffffff; font-weight: 500; display: inline-block; margin-bottom: 5px; }
.pub-footer a:hover { color: #fff3b0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; }
.footer-bottom {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: #ecfdf5;
}

.mobile-menu-btn { display: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .wizard-steps { grid-template-columns: repeat(3, 1fr); }
  .sidebar { position: fixed; left: -285px; top: 0; bottom: 0; z-index: 1050; transition: left 0.22s ease; }
  .sidebar.open { left: 0; }
  .mobile-menu-btn { display: inline-flex; }
}
@media (max-width: 720px) {
  .ebm-profile-card { grid-template-columns: 1fr; }
  .ebm-photo-frame { margin: 0 auto; }
  .wizard-steps { grid-template-columns: repeat(2, 1fr); }
  .floating-book-3d.fb-2, .floating-book-3d.fb-3 { display: none; }
  .page-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-book-3d, .book-3d-object, .book-3d-autospin, .hero-title-accent,
  .btn, .pub-nav a, .btn::after, .pub-nav a::after, .category-chip::after { animation: none !important; }
  .reveal-3d { opacity: 1 !important; transform: none !important; transition: none !important; }
  .book-3d-object, .tilt-3d-card, .brand-logo { transition: none !important; transform: none !important; }
  .hero-3d-canvas { display: none !important; }
}
@media print {
  .sidebar, .topbar, .pub-header, .pub-footer, .sub-category-bar, .igrf-announcement, .ijmgr-banner-showcase, .reading-progress-bar, .prims-modal-backdrop, .no-print { display: none !important; }
  .card { box-shadow: none; border: 1px solid #cbd5e1; }
}


/* === COMPLETE MOBILE-FIRST RESPONSIVE UPGRADE (320px - 1920px) === */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; }
.table-responsive, table.table { width: 100%; }

@media (max-width: 1024px) {
  .workspace-shell, .ws-layout { grid-template-columns: 1fr !important; display: block !important; }
  .workspace-sidebar, .ws-sidebar { width: 100% !important; position: static !important; height: auto !important; border-right: none !important; border-bottom: 1px solid var(--border); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 820px) {
  .grid-2, .grid-3, .grid-4, .kpi-grid, .form-row { grid-template-columns: 1fr !important; }
  table.table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .card { padding: 16px !important; }
  .container { padding-left: 14px !important; padding-right: 14px !important; }
}

@media (max-width: 430px) {
  body { font-size: 14px; }
  h1 { font-size: 1.45rem !important; }
  h2 { font-size: 1.25rem !important; }
  .btn, button, input[type="submit"] { min-height: 42px; }
  .kpi-value { font-size: 1.35rem !important; }
}
