/* ============================================================
   JLIVE — Academic Journal Website
   Design System & Component Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=IBM+Plex+Serif:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    /* Colors */
    --navy: #0A1F44;
    --navy-light: #16386b;
    --navy-dark: #051024;
    --teal: #008C8C;
    --teal-hover: #007070;
    --gold: #C9A84C;
    --gold-light: #d6bc70;
    --gold-hover: #b3923c;
    --off-white: #F7F8FC;
    --white: #ffffff;
    --light-teal: #1AB5B5;
    --light-teal-soft: rgba(26, 181, 181, 0.1);

    /* Neutral Grays */
    --gray-50: #f4f7fb;
    --gray-100: #eaf1f8;
    --gray-200: #d4e3f1;
    --gray-300: #b5cde4;
    --gray-400: #8db0d2;
    --gray-500: #6592bf;
    --gray-600: #4376a9;
    --gray-700: #294d75;
    --gray-800: #142a42;
    --gray-900: #0a1521;

    /* Typography */
    --font-display: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
    --font-body: 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'DM Mono', 'Fira Code', 'Consolas', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(0, 85, 255, 0.25);

    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 18px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background-color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-normal) ease;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: var(--space-6);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 640px;
    line-height: 1.7;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all var(--duration-normal) ease;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    position: relative;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy);
    z-index: -1;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    z-index: 10;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.04em;
}

.nav-logo-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-left: 2px;
    display: inline-block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link {
    font-size: 15px !important;
    font-weight: 500 !important;
    font-family: var(--font-body) !important;
    color: rgba(255, 255, 255, 0.75);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    letter-spacing: 0.01em;
    transition: all var(--duration-normal) ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: transparent;
}



/* Mobile Menu Toggle */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
    padding: var(--space-2);
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--duration-normal) ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
}

.mobile-menu .nav-link {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-3) var(--space-6);
}

.mobile-menu .nav-link:hover {
    color: var(--gold);
}

/* ============================================================
   IEEE INSPIRED HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end; /* Align card to bottom */
    justify-content: flex-start; /* Align card to left */
    overflow: hidden;
    padding: var(--nav-height) var(--space-8) var(--space-12);
    background: var(--navy-dark);
}



/* Floating left-aligned card matching IEEE theme */
.hero-ieee-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 720px;
    background: transparent;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-bottom: var(--space-4);
    margin-left: var(--space-4);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpCard 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.5s;
}

@keyframes slideUpCard {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header in deep Navy */
.hero-card-header {
    background: rgba(10, 31, 68, 0.92);
    padding: var(--space-10) var(--space-10);
    color: var(--white);
}

.hero-card-badge {
    display: none;
}

.hero-card-title {
    font-family: var(--font-body);
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.25;
    margin: 0;
}

/* Body in Off-white/white */
.hero-card-body {
    padding: var(--space-8) var(--space-10) var(--space-6);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.hero-card-description {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #222;
    line-height: 1.6;
    margin-bottom: var(--space-4);
    min-height: auto;
}

.hero-card-actions {
    display: flex;
    margin-bottom: var(--space-8);
}

.hero-text-link {
    display: flex;
    align-items: center;
    color: #006699;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.hero-text-link:hover {
    color: var(--teal);
}

.hero-text-link svg {
    margin-right: 6px;
    margin-top: 2px;
}

/* Footer / Indicators & Arrows */
.hero-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--space-4);
}

.hero-slider-indicators {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.indicator-bar {
    width: 24px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--duration-normal) ease;
    position: relative;
    overflow: hidden;
}

.indicator-bar.active {
    background: #006699;
    width: 24px;
}

.hero-slider-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slider-arrow {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #006699;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) ease;
    padding: 0;
}

.slider-arrow:hover {
    color: var(--navy);
    transform: scale(1.1);
}

/* Bottom Right Video Controls */
.hero-video-controls {
    position: absolute;
    bottom: var(--space-8);
    right: var(--space-8);
    z-index: 10;
}

.control-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) ease;
    backdrop-filter: blur(8px);
}

.control-btn:hover {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
    transform: scale(1.05);
}

/* ============================================================
   PUBLICATIONS IN JLIVE (IEEE INSPIRED)
   ============================================================ */
.publications-section {
    padding: var(--space-16) 0;
    background: var(--off-white);
}

.publications-section .container {
    max-width: 1500px;
}

.publications-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.publications-title {
    font-family: var(--font-body);
    font-size: 2.8rem;
    font-weight: 300;
    color: #222;
    margin-bottom: var(--space-4);
}

.publications-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #444;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: 240px; 
}

.pub-card {
    display: flex;
    flex-direction: column;
    background: #006699;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 4px;
}

.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.pub-card-large {
    grid-column: 1 / 2;
    grid-row: span 2;
}

.pub-card-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    flex: 1 1 50%;
}

.pub-card-large .pub-card-image {
    flex: 1 1 65%;
}

.pub-card-body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #006699;
    flex: 1 1 50%;
}

.pub-card-large .pub-card-body {
    flex: 1 1 35%;
}

.pub-card-category {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.pub-card-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.4;
    margin: 0;
}

.pub-card-large .pub-card-title {
    font-size: 1.6rem;
    font-weight: 300;
}

@media (max-width: 992px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pub-card-large {
        grid-column: 1 / -1;
        grid-row: span 1;
        height: 400px;
    }
    .pub-card-large .pub-card-image {
        flex: 1 1 50%;
    }
}

@media (max-width: 600px) {
    .publications-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .pub-card {
        height: 350px;
    }
}

/* ============================================================

.control-btn svg.hidden {
    display: none;
}

/* Floating Vertical Stats Bar on the Right */
.hero-stats-vertical {
    position: absolute;
    right: var(--space-12);
    bottom: calc(var(--space-12) + 60px); /* Positioned above the play button */
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(20px);
    animation: slideInRight 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.7s;
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-stat-vertical {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-stat-vertical-number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: var(--space-1);
}

.hero-stat-vertical-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hero Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-video.playing {
    opacity: 1.0; /* Plays videos raw with full brightness, colors, and no overlay blend */
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 85, 255, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
}

.btn-outline-navy:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-icon-right {
    transition: transform var(--duration-normal) ease;
}

.btn:hover .btn-icon-right {
    transform: translateX(3px);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    padding: var(--space-32) 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-quote {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: var(--space-8);
    position: relative;
    padding-left: var(--space-8);
    border-left: 3px solid var(--gold);
}

.about-text {
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.about-cards {
    display: grid;
    gap: var(--space-6);
}

.about-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.about-card:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-icon {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    color: var(--white);
    font-size: var(--text-xl);
}

.about-card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-3);
}

.about-card-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================================
   AIMS & SCOPE SECTION
   ============================================================ */
/* ==========================================================================
   ABOUT TABS SECTION
   ========================================================================== */
.about-tabs-section {
    padding: var(--space-20) 0;
    background: var(--bg-primary);
}

.about-tabs-main-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 300;
    color: var(--navy);
    margin-bottom: var(--space-16);
}

.about-tabs-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    max-width: 1300px;
    margin: 0 auto;
}

.about-tabs-sidebar {
    padding-right: var(--space-8);
    position: relative;
}

.about-tabs-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: var(--navy);
    opacity: 0.1;
}

.about-tabs-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--navy-light);
    margin-bottom: var(--space-6);
    font-size: var(--text-lg);
}

.about-tabs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-tabs-list li {
    margin-bottom: var(--space-4);
}

.about-tab-btn {
    background: none;
    border: none;
    padding: var(--space-2) 0;
    text-align: left;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--navy);
    cursor: pointer;
    width: 100%;
    position: relative;
    transition: color var(--duration-fast) ease;
}

.about-tab-btn:hover {
    color: var(--teal);
}

.about-tab-btn.active {
    font-weight: 600;
    color: var(--navy-dark);
}

.about-tab-btn.active::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -32px;
    width: 32px;
    height: 2px;
    background: var(--teal);
    transform: translateY(-50%);
    z-index: 10;
}

.about-tabs-content {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-8) var(--space-12);
    border-radius: 0;
}

.about-tab-pane {
    display: none;
    animation: fadeIn var(--duration-normal) ease;
}

.about-tab-pane.active {
    display: block;
}

.about-tab-pane p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.about-tab-pane h4 {
    color: var(--gold);
    font-size: var(--text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: var(--space-6) 0 var(--space-2);
}

.aims-list, .manuscripts-list {
    list-style: none;
    padding: 0;
}

.aims-list li, .manuscripts-list li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    color: rgba(255, 255, 255, 0.85);
}

.aims-list li::before, .manuscripts-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
}

@media (max-width: 900px) {
    .about-tabs-grid {
        grid-template-columns: 1fr;
    }
    
    .about-tabs-sidebar::after {
        display: none;
    }
    
    .about-tabs-sidebar {
        padding-right: 0;
        margin-bottom: var(--space-8);
    }
    
    .about-tab-btn.active::after {
        display: none;
    }
    
    .about-tabs-content {
        border-radius: 0;
        padding: var(--space-8);
    }

    /* Homepage Archives Section Optimizations */
    .innovations-section {
        padding: var(--space-16) 0;
    }

    .innovations-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
        margin-bottom: var(--space-8);
    }

    .innovations-header h2 {
        font-size: var(--text-3xl) !important;
    }

    .innovations-grid {
        grid-template-columns: 1fr !important;
        gap: var(--space-6);
    }
}

.aims-scope {
    padding: var(--space-32) 0;
    background: var(--off-white);
}

.aims-intro {
    max-width: 720px;
    margin-bottom: var(--space-16);
}

.aims-intro p {
    font-size: var(--text-lg);
    color: var(--gray-600);
    line-height: 1.8;
}

.scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.scope-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid var(--gray-200);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.scope-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-slow) var(--ease-out);
}

.scope-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.scope-card:hover::after {
    transform: scaleX(1);
}

.scope-card-number {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gold);
    font-weight: 500;
    margin-bottom: var(--space-4);
    letter-spacing: 0.05em;
}

.scope-card-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-3);
}

.scope-card-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================================
   EDITORIAL BOARD
   ============================================================ */
.editorial-board-new {
    background: var(--white);
}



/* ============================================================
   GUIDELINES SECTION (Authors / Reviewers / Editors)
   ============================================================ */
.guidelines {
    padding: var(--space-32) 0;
    background: var(--off-white);
}

.guidelines-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.guidelines-header .section-label {
    justify-content: center;
}

.guidelines-header .section-subtitle {
    margin: 0 auto;
    text-align: center;
}

/* Tabs */
.guidelines-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-12);
    background: var(--white);
    border-radius: var(--radius-full);
    padding: var(--space-1);
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--gray-200);
}

.guidelines-tabs-wrap {
    text-align: center;
    margin-bottom: var(--space-12);
}

.tab-btn {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-500);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--navy);
}

.tab-btn.active {
    background: var(--navy);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

/* Tab Content */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeInUp 0.4s var(--ease-out);
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    pointer-events: none;
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    position: relative;
    z-index: 1;
}

.step-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-2);
}

.step-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.6;
}

/* Guidelines Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    border: 1px solid var(--navy);
    border-bottom: none;
    overflow: hidden;
    transition: all var(--duration-normal) ease;
}

.accordion-item:last-child {
    border-bottom: 1px solid var(--navy);
}

.accordion-item:hover {
    background: var(--gray-50);
}

.accordion-item.open {
    border-color: var(--navy);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    transition: color var(--duration-normal) ease;
}

.accordion-trigger:hover {
    color: var(--teal);
}

.accordion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-normal) ease;
    color: var(--gray-400);
    flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
    color: var(--teal);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out);
}

.accordion-body {
    padding: 0 var(--space-6) var(--space-6);
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.8;
}

.accordion-body ul {
    padding-left: var(--space-6);
    margin-top: var(--space-3);
}

.accordion-body ul li {
    list-style: disc;
    margin-bottom: var(--space-2);
}

/* ============================================================
   INNOVATIONS SECTION
   ============================================================ */
.innovations-section {
    padding: var(--space-32) 0;
    background: var(--off-white);
}

.innovations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-12);
}

.innovations-header h2 {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 300;
    color: var(--navy);
    margin: 0;
}

.btn-view-archives {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-6);
    border: 1px solid var(--navy);
    border-radius: var(--radius-full);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--duration-fast) ease;
}

.btn-view-archives:hover {
    background: var(--navy);
    color: var(--white);
}

.innovations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.innovation-card {
    background: #fae9c8; /* Light beige from screenshot */
    display: flex;
    flex-direction: column;
}

.innovation-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.innovation-card-content {
    padding: var(--space-8) var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.innovation-tag {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.innovation-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--navy);
    margin-bottom: var(--space-6);
    line-height: 1.4;
}

.innovation-date {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: rgba(0, 0, 0, 0.6);
    margin-top: auto;
}

/* ============================================================
   CONTACT & FAQ SECTION
   ============================================================ */
.contact {
    padding: var(--space-32) 0;
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
}

.contact-left .section-title {
    margin-bottom: var(--space-4);
}

.contact-text {
    font-size: var(--text-base);
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.contact-info-text {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.5;
}

.contact-info-text strong {
    display: block;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 2px;
}

/* Contact Hub Card */
.contact-hub-card {
    background: var(--white);
    padding: var(--space-8);
    border: 1px solid var(--navy);
}

.contact-hub-header {
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--navy);
    padding-bottom: var(--space-4);
}

.contact-hub-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: var(--space-2);
}

.contact-hub-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-2);
}

.contact-hub-subtitle {
    font-size: var(--text-sm);
    color: var(--gray-500);
    line-height: 1.5;
}

.contact-departments {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.dept-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    padding: var(--space-6);
    transition: all var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.dept-card:hover {
    border-color: var(--navy);
}

.dept-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.dept-icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.dept-info {
    display: flex;
    flex-direction: column;
}

.dept-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.dept-email {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray-500);
}

.dept-desc {
    font-size: var(--text-xs);
    color: var(--gray-600);
    line-height: 1.6;
}

.dept-link {
    align-self: flex-start;
}

/* FAQ */
.faq-section-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-6);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-logo .nav-logo-dot {
    width: 6px;
    height: 6px;
}

.footer-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer-issn {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--gold);
    letter-spacing: 0.05em;
}

.footer-col-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-5);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.45);
    transition: all var(--duration-normal) ease;
}

.footer-link:hover {
    color: var(--gold);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    transition: all var(--duration-normal) ease;
}

.footer-social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Stagger children */
.stagger-children > * {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }

/* Counter animation */
.counter-animate {
    display: inline-block;
}

/* ============================================================
   SUBMIT MANUSCRIPT CTA BANNER
   ============================================================ */
.cta-banner {
    padding: var(--space-20) 0;
    background: var(--navy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.8) 1px, transparent 0);
    background-size: 30px 30px;
}

.cta-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }

    .hero-stats {
        gap: var(--space-8);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .scope-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chief-editor {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .chief-avatar {
        margin: 0 auto;
    }

    .chief-expertise {
        justify-content: center;
    }

    .board-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }

    .process-step::after {
        display: none;
    }

    .current-issue {
        grid-template-columns: 1fr;
    }

    .past-issues-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding: var(--nav-height) var(--space-4) var(--space-10);
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
        align-items: center;
    }

    .hero-stat-number {
        font-size: var(--text-3xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: var(--text-3xl);
    }

    .scope-grid {
        grid-template-columns: 1fr;
    }

    .board-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .past-issues-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .container {
        padding: 0 var(--space-4);
    }

    .about,
    .aims-scope,
    .editorial-board,
    .guidelines,
    .issues,
    .contact {
        padding: var(--space-20) 0;
    }

    .guidelines-tabs {
        flex-wrap: wrap;
        border-radius: var(--radius-lg);
    }

    .tab-btn {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-4);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.65rem;
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .chief-editor {
        padding: var(--space-8);
    }

    .chief-name {
        font-size: var(--text-2xl);
    }

    .current-issue {
        padding: var(--space-8);
    }

    .past-issues-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   PORTAL LOGIN AND ROLE SELECTION SYSTEM
   ============================================================ */

/* SPA State Override */
body.portal-active {
    background-color: #ffffff;
    overflow-y: auto;
}
body.portal-active header.navbar,
body.portal-active main,
body.portal-active footer,
body.portal-active .hero-stats-vertical,
body.portal-active .hero-video-controls {
    display: none !important;
}

/* Base Modal Overlay Styles */
.portal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}
.portal-modal-overlay.active {
    display: flex;
}

.portal-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1;
}

.portal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: 0;
    box-shadow: var(--shadow-xl);
    z-index: 5;
    padding: var(--space-8) var(--space-10);
    transition: all var(--duration-normal) var(--ease-spring);
}

.portal-card.glassmorphic {
    background: var(--off-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Animations */
.animate-in {
    animation: scaleIn 0.3s var(--ease-spring) forwards;
}
.hidden-slide {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    display: none !important;
}
.slide-in-right {
    display: block !important;
    animation: slideInR 0.4s var(--ease-out) forwards;
}
.slide-out-left {
    animation: slideOutL 0.3s var(--ease-out) forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideInR {
    from { opacity: 0; transform: translateX(40px) scale(0.98); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideOutL {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-40px); display: none !important; }
}

/* Modal UI Elements */
.portal-modal-close {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    font-size: 24px;
    color: var(--gray-400);
    transition: color 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
.portal-modal-close:hover {
    color: var(--navy);
}

.portal-card-header {
    margin-bottom: var(--space-6);
    text-align: center;
}
.portal-card-subtitle {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--teal);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-2);
}
.portal-card-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--navy);
    font-weight: 700;
}

/* Role Selection List */
.role-portals-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.role-portal-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: var(--space-4) var(--space-5);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-align: left;
}

.role-portal-item:hover {
    border-color: var(--teal);
    background: rgba(0, 85, 255, 0.03);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.role-portal-item.active {
    border-color: var(--light-teal);
    background: rgba(0, 85, 255, 0.05);
}

.role-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-4);
    color: var(--white);
}

.author-bg { background: var(--navy); }
.editor-bg { background: var(--navy); }
.reviewer-bg { background: var(--navy); }
.manager-bg { background: var(--navy); }
.admin-bg { background: var(--navy); }

.role-portal-name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--navy);
    flex-grow: 1;
}

/* Badges for roles */
.role-portal-badge {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--white);
}
.badge-green { background-color: var(--light-teal); }
.badge-teal { background-color: var(--teal); }
.badge-rose { background-color: #0055ff; }
.badge-gold { background-color: var(--gold); }

/* Login Form UI elements */
.form-group-custom {
    margin-bottom: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.form-group-custom label {
    font-weight: 600;
    font-size: var(--text-xs);
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.forgot-link {
    font-size: var(--text-xs);
    color: var(--teal);
}
.forgot-link:hover {
    color: var(--teal-hover);
    text-decoration: underline;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon-wrap svg {
    position: absolute;
    left: var(--space-4);
    color: var(--gray-400);
    pointer-events: none;
}
.input-icon-wrap input,
.form-group-custom select,
.form-group-custom textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 20px);
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--gray-800);
    transition: all 0.2s ease;
}
.form-group-custom select {
    padding-left: var(--space-4) !important;
}
.form-group-custom textarea {
    padding-left: var(--space-4) !important;
}

.input-icon-wrap input:focus,
.form-group-custom select:focus,
.form-group-custom textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.15);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
}

.form-error-msg {
    color: #0055ff;
    font-size: var(--text-xs);
    font-weight: 500;
    margin-bottom: var(--space-4);
    display: none;
}
.form-error-msg.active {
    display: block;
    animation: shake 0.3s linear;
}

.quick-access-helper {
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    border-top: 1px dashed var(--gray-200);
    padding-top: var(--space-4);
}
.back-roles-link {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--gray-500);
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.back-roles-link:hover {
    color: var(--navy);
}

/* ============================================================
   AUTHOR PORTAL SPA DASHBOARD LAYOUT
   ============================================================ */
.portal-main-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: var(--space-10) var(--space-6) var(--space-16);
    opacity: 0;
    animation: scaleIn 0.5s var(--ease-spring) forwards 0.2s;
}
.portal-main-container.hidden {
    display: none !important;
}

/* Dashboard Header */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-10);
    gap: var(--space-6);
    flex-wrap: wrap;
}
.portal-breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    margin-bottom: var(--space-2);
}
.portal-breadcrumbs svg {
    color: var(--gray-400);
}
.active-crumb {
    color: var(--teal);
    font-weight: 600;
}
.portal-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--navy);
    font-weight: 800;
}
.portal-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Badges for stats */
.badge-accent {
    background-color: #0055ff;
    color: var(--white);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    margin-left: var(--space-1);
}

/* Summary Grid */
.portal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-6) var(--space-6) var(--space-5);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--gray-300);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Top Border Colors */
.stat-active { border-top-color: var(--teal); }
.stat-revision { border-top-color: var(--gold); }
.stat-accepted { border-top-color: var(--teal); }
.stat-apc { border-top-color: var(--gold); }
.stat-rejection { border-top-color: #e63946; } /* keeping standard red */
.stat-production { border-top-color: var(--navy); }

.stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    display: block;
    margin-bottom: var(--space-3);
}
.stat-value-group {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.1;
}
.stat-subtext {
    font-size: var(--text-xs);
    color: var(--gray-600);
    margin-top: 1px;
}

/* Manuscripts Table Panel */
.portal-table-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-8);
}

.table-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}
.table-section-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
}

.table-controls {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrap .search-icon {
    position: absolute;
    left: var(--space-3);
    color: var(--gray-400);
}
.search-input-wrap input {
    padding: var(--space-2) var(--space-4) var(--space-2) calc(var(--space-4) + 12px);
    font-size: var(--text-xs);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    width: 220px;
    transition: all 0.2s ease;
    background-color: var(--gray-50);
}
.search-input-wrap input:focus {
    width: 260px;
    background-color: var(--white);
    outline: none;
    border-color: var(--teal);
}

.filter-group {
    display: flex;
    background-color: var(--gray-100);
    padding: 3px;
    border-radius: var(--radius-md);
}
.filter-pill {
    padding: var(--space-1) var(--space-3);
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.filter-pill:hover {
    color: var(--navy);
}
.filter-pill.active {
    background-color: var(--white);
    color: var(--teal);
    box-shadow: var(--shadow-sm);
}

/* Manuscripts Table UI */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}
.manuscripts-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.manuscripts-table th {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    padding: var(--space-4) var(--space-4);
    border-bottom: 2px solid var(--gray-200);
}
.manuscripts-table td {
    padding: var(--space-5) var(--space-4);
    border-bottom: 1px solid var(--gray-100);
    font-size: var(--text-sm);
    color: var(--gray-800);
    vertical-align: middle;
}
.manuscripts-table tr:hover td {
    background-color: var(--gray-50);
}

.manuscript-id-col {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--teal);
    cursor: pointer;
}
.manuscript-id-col:hover {
    text-decoration: underline;
}

.manuscript-title-col {
    font-weight: 600;
    color: var(--navy);
    max-width: 320px;
    line-height: 1.4;
}

.manuscripts-table td button {
    white-space: nowrap;
}

/* Styled Badges in Table */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-full);
}
.status-pill.under-review {
    background-color: #ffffff; /* beige/gold */
    color: #0055ff;
}
.status-pill.revision-required {
    background-color: #ffffff; /* orange/beige */
    color: #0055ff;
}
.status-pill.apc-pending {
    background-color: #ffffff; /* yellow/brown */
    color: #0055ff;
}
.status-pill.published {
    background-color: #ffffff; /* light blue */
    color: #0055ff;
}
.status-pill.accepted {
    background-color: #ffffff; /* light green */
    color: #000000;
}
.status-pill.in-production {
    background-color: #ffffff; /* cyan */
    color: #0055ff;
}

/* Action button configurations inside table */
.actions-cell-btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid var(--navy);
    background-color: var(--white);
    color: var(--navy);
    cursor: pointer;
    transition: all 0.2s ease;
}
.actions-cell-btn:hover {
    background-color: var(--navy);
    color: var(--white);
}

.actions-cell-btn.btn-action-green {
    background-color: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.actions-cell-btn.btn-action-green:hover {
    background-color: var(--teal-hover);
    border-color: var(--teal-hover);
}

.actions-cell-btn.btn-action-gold {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.actions-cell-btn.btn-action-gold:hover {
    background-color: var(--gold-hover);
    border-color: var(--gold-hover);
}

/* ============================================================
   DEMO PLACEHOLDER CARD
   ============================================================ */
.demo-placeholder-card {
    max-width: 580px;
    margin: 80px auto 0;
    text-align: center;
    padding: var(--space-10) var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.demo-placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 85, 255, 0.1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}
.demo-placeholder-card h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--navy);
    margin-bottom: var(--space-4);
}
.demo-placeholder-card p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-8);
}

/* ============================================================
   WIZARDS, DRAWERS, AND POPUP LAYOUTS
   ============================================================ */

/* New Submission Wizard Modal */
.wizard-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    z-index: 5;
    padding: var(--space-8) var(--space-10);
    box-shadow: var(--shadow-xl);
}
.wizard-card.glassmorphic {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
}
.wizard-header {
    text-align: center;
    margin-bottom: var(--space-8);
}
.wizard-header h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--navy);
    margin-bottom: var(--space-6);
}

/* Wizard Steps Node Indicator */
.wizard-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    max-width: 500px;
    margin: 0 auto;
}
.wizard-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    position: relative;
    flex-shrink: 0;
}
.node-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.node-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.wizard-step-node.active .node-dot {
    background-color: var(--teal);
    color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.15);
}
.wizard-step-node.active .node-label {
    color: var(--teal);
    font-weight: 700;
}
.wizard-step-node.completed .node-dot {
    background-color: #0055ff;
    color: var(--white);
}
.wizard-step-node.completed .node-label {
    color: #0055ff;
}

.wizard-step-line {
    height: 2px;
    background-color: var(--gray-200);
    flex-grow: 1;
    margin-bottom: 16px; /* Offset label spacing */
}

/* Wizard Panels switcher */
.wizard-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}
.wizard-panel.active {
    display: block;
}

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

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-8);
    border-top: 1px solid var(--gray-200);
    padding-top: var(--space-5);
}

/* Upload Dropzone Styling */
.upload-dropzone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: var(--space-8) var(--space-4);
    text-align: center;
    background-color: var(--gray-50);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.upload-dropzone:hover {
    border-color: var(--teal);
    background-color: rgba(0, 85, 255, 0.02);
}
.upload-dropzone.dragover {
    border-color: var(--light-teal);
    background-color: rgba(0, 85, 255, 0.06);
}
.dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--gray-500);
}
.dropzone-text {
    font-size: var(--text-xs);
    font-weight: 500;
}
.hidden-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.dropzone-mini {
    padding: var(--space-5) var(--space-4);
}

.dropzone-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-2);
}
.file-name-text {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-700);
}
.remove-file-btn {
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-400);
    cursor: pointer;
}
.remove-file-btn:hover {
    color: #0055ff;
}

/* Custom form validations feedback */
.validation-feedback {
    font-size: var(--text-xs);
    color: #0055ff;
    font-weight: 500;
    display: none;
    margin-top: 1px;
}
.form-group-custom.has-error input,
.form-group-custom.has-error textarea,
.form-group-custom.has-error select {
    border-color: #0055ff;
}
.form-group-custom.has-error .validation-feedback {
    display: block;
}

/* Checklist / Declarations Form Styling */
.declarations-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}
.checkbox-container {
    display: flex;
    position: relative;
    cursor: pointer;
    font-size: var(--text-xs);
    line-height: 1.5;
    color: var(--gray-700);
    padding-left: 30px;
    user-select: none;
}
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkbox-checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    transition: all 0.2s ease;
}
.checkbox-container:hover input ~ .checkbox-checkmark {
    border-color: var(--teal);
}
.checkbox-container input:checked ~ .checkbox-checkmark {
    background-color: var(--teal);
    border-color: var(--teal);
}
.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
.checkbox-container input:checked ~ .checkbox-checkmark:after {
    display: block;
}
.checkbox-container .checkbox-checkmark:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ============================================================
   MESSAGING SLIDE-OUT DRAWER PANEL
   ============================================================ */
.portal-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2500;
    display: none;
}
.portal-drawer-overlay.active {
    display: block;
}
.portal-drawer-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.portal-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: var(--white);
    z-index: 10;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.portal-drawer-overlay.active .portal-drawer {
    transform: translateX(0);
}

.drawer-header {
    padding: var(--space-6) var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--gray-50);
}
.drawer-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.drawer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-xs);
}
.drawer-title-group h3 {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--navy);
}
.drawer-status {
    font-size: 10px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0055ff;
    display: inline-block;
}
.drawer-close-btn {
    font-size: 26px;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.drawer-close-btn:hover {
    color: var(--navy);
}

.drawer-chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background-color: var(--off-white);
}

/* Chat bubble designs */
.chat-msg-row {
    display: flex;
    width: 100%;
}
.chat-msg-row.incoming {
    justify-content: flex-start;
}
.chat-msg-row.outgoing {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.chat-msg-row.incoming .chat-bubble {
    background-color: var(--white);
    color: var(--gray-800);
    border-bottom-left-radius: 2px;
}
.chat-msg-row.outgoing .chat-bubble {
    background-color: var(--teal);
    color: var(--white);
    border-bottom-right-radius: 2px;
}

.chat-msg-time {
    font-size: 9px;
    color: var(--gray-400);
    display: block;
    margin-top: var(--space-1);
    text-align: right;
}
.chat-msg-row.outgoing .chat-msg-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Typing indicator bubble */
.typing-bubble {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 16px;
}
.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--gray-400);
    animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
}

.drawer-input-form {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: var(--space-3);
    background-color: var(--white);
}
.drawer-input-form input {
    flex-grow: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
}
.drawer-input-form input:focus {
    outline: none;
    border-color: var(--teal);
}
.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.chat-send-btn:hover {
    background-color: var(--teal-hover);
}

/* ============================================================
   MANUSCRIPT DETAILS MODAL PANEL
   ============================================================ */
.details-card {
    position: relative;
    width: 100%;
    max-width: 820px;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    z-index: 5;
    padding: var(--space-10) var(--space-10);
    box-shadow: var(--shadow-xl);
}
.details-card.glassmorphic {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}
.details-header-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-8);
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: var(--space-6);
    gap: var(--space-6);
}
.details-title-wrap {
    flex-grow: 1;
}
.details-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-2);
}
.details-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
}
.details-badge {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.details-content-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-10);
}

.details-main-info h4,
.details-sidebar-info h5,
.reviewer-reports-section h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.details-abstract-text {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--space-8);
}

.reviewer-reports-section {
    border-top: 1px dashed var(--gray-200);
    padding-top: var(--space-6);
}
.reviewer-report {
    background-color: var(--gray-50);
    border-left: 3px solid var(--teal);
    padding: var(--space-4);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
}
.reviewer-report:nth-child(even) {
    border-left-color: var(--gold);
}
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}
.reviewer-tag {
    font-weight: 700;
    font-size: var(--text-xs);
    color: var(--navy);
}
.score-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
}
.score-accept {
    background-color: #ffffff;
    color: #000000;
}
.score-revision {
    background-color: #ffffff;
    color: #0055ff;
}
.report-text {
    font-size: var(--text-xs);
    font-style: italic;
    color: var(--gray-600);
    line-height: 1.5;
}

.details-sidebar-info {
    background-color: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}
.sidebar-info-block p {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--navy);
}
.file-attachment {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--teal);
    font-weight: 600;
    font-size: var(--text-xs);
    cursor: pointer;
}
.file-attachment:hover {
    text-decoration: underline;
}

/* Details timeline */
.timeline-list {
    position: relative;
    padding-left: 20px;
}
.timeline-list::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 2px;
    height: calc(100% - 10px);
    background-color: var(--gray-300);
}
.timeline-item {
    position: relative;
    margin-bottom: var(--space-4);
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.time-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--teal);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--gray-300);
}
.timeline-item:first-child .time-dot {
    background-color: var(--light-teal);
    box-shadow: 0 0 0 2px rgba(0, 85, 255, 0.25);
}
.time-text {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--navy);
    display: block;
}
.time-date {
    font-size: 10px;
    color: var(--gray-500);
    display: block;
}

/* Contextual Revision & Pay Modals */
.action-modal-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    z-index: 5;
    padding: var(--space-8) var(--space-10);
    box-shadow: var(--shadow-xl);
}
.action-modal-card.glassmorphic {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
}
.action-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}
.action-card-header h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--navy);
}
.text-amber { color: #0055ff; }
.text-emerald { color: #0055ff; }

.action-card-desc {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.action-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

/* Checkout / APC Payment Invoice visualizer */
.invoice-summary {
    background-color: var(--gray-50);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
    border: 1px solid var(--gray-200);
}
.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    color: var(--gray-600);
    margin-bottom: var(--space-2);
}
.invoice-label {
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.invoice-val {
    font-weight: 600;
    color: var(--navy);
}
.invoice-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: var(--space-3) 0;
}
.invoice-row.invoice-total {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--navy);
}

.pay-spinner {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.spinner-dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Published Article Preview Card */
.published-article-card {
    position: relative;
    width: 100%;
    max-width: 780px;
    background-color: var(--white);
    border-radius: var(--radius-xl);
    z-index: 5;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.published-article-card.glassmorphic {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px);
}
.article-header-pane {
    background-color: var(--navy);
    color: var(--white);
    padding: var(--space-10) var(--space-10);
    border-bottom: 3px solid var(--gold);
}
.journal-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--gold-light);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-3);
}
.article-showcase-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-4);
}
.article-showcase-authors {
    font-size: var(--text-sm);
    color: var(--gray-300);
    margin-bottom: var(--space-4);
}
.article-showcase-meta {
    display: flex;
    gap: var(--space-6);
    font-size: var(--text-xs);
    color: var(--gray-400);
}
.article-body-pane {
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    max-height: 480px;
    overflow-y: auto;
}
.article-section h3 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--navy);
    margin-bottom: var(--space-3);
    font-weight: 700;
}
.article-section p {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.8;
}

.keywords-tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.keyword-pill {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--teal);
    background-color: rgba(0, 85, 255, 0.08);
    border-radius: var(--radius-sm);
}

/* ============================================================
   RESPONSIVENESS AND MOBILE PORTAL ADJUSTMENTS
   ============================================================ */
@media (max-width: 900px) {
    .portal-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .details-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .portal-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .portal-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    .table-actions-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .table-controls {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .search-input-wrap,
    .search-input-wrap input {
        width: 100% !important;
    }
    .filter-group {
        width: 100%;
        overflow-x: auto;
    }
}

/* ============================================================
   SCREEN SPECIFICATIONS (SCREEN AP-01 & AP-02) STYLING ENHANCEMENTS
   ============================================================ */

/* Stat Cards Hover & Clickable Indicator */
.stat-card {
    cursor: pointer;
    user-select: none;
}
.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.stat-card:active {
    transform: translateY(-2px) scale(1.0);
}

/* Purple Accent Color for In Production */
:root {
    --purple: #0055ff;
    --purple-light: rgba(0, 85, 255, 0.1);
}
.stat-production {
    border-top-color: var(--purple);
}
.status-pill.in-production {
    background-color: var(--purple-light);
    color: var(--purple);
}
.status-pill.accepted {
    background-color: rgba(0, 85, 255, 0.1);
    color: #0055ff;
}

/* Monospace Teal Manuscript ID links */
.manuscript-id-col {
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--teal) !important;
    cursor: pointer;
    transition: color 0.15s ease;
}
.manuscript-id-col:hover {
    color: var(--teal-hover) !important;
    text-decoration: underline;
}

/* Manuscript Title Truncation with Tooltip */
.manuscript-title-col {
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: var(--navy);
    cursor: help;
    display: inline-block;
    vertical-align: middle;
}

/* Small Gray Label for Article Type */
.article-type-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-500);
    background-color: var(--gray-100);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* SCREEN AP-02 Detail Tabbed panel styles */
.details-tabs-bar {
    display: flex;
    gap: var(--space-1);
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: var(--space-4);
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean tab-bar look */
    -ms-overflow-style: none;
}
.details-tabs-bar::-webkit-scrollbar {
    display: none;
}

.details-tab-link {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
    white-space: nowrap;
}
.details-tab-link:hover {
    color: var(--teal);
}
.details-tab-link.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.details-tab-panel {
    display: none;
    animation: tabFadeIn 0.3s ease;
}
.details-tab-panel.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Upload dropzone inside tabs adjustments */
.details-tab-panel .upload-dropzone {
    padding: var(--space-6) var(--space-4);
    border-width: 1px;
}

/* Decisions timeline in Tab */
.timeline-letter-card {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-5);
    margin-top: var(--space-2);
}
.timeline-letter-card h6 {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: var(--navy);
    margin-bottom: var(--space-1);
}
.timeline-letter-text {
    font-size: var(--text-xs);
    color: var(--gray-600);
    line-height: 1.6;
    margin-top: var(--space-2);
    white-space: pre-line;
}

/* ============================================================
   NAVBAR DROPDOWN
   ============================================================ */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 160px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: var(--radius-md);
    padding: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    opacity: 1;
}

.nav-dropdown-content .nav-link {
    display: block;
    padding: 10px 16px;
    border-radius: 0;
    width: 100%;
    text-align: center;
}



.nav-dropdown-content .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Dropdown Group */
.mobile-dropdown-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.mobile-group-title {
    color: rgba(255, 255, 255, 0.6) !important;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 1px;
    margin-bottom: 5px;
    padding-bottom: 0;
}
.mobile-dropdown-items {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.mobile-dropdown-items.open {
    display: flex;
}
.mobile-dropdown-items .nav-link {
    font-size: 1.1em;
    padding: 8px 0;
}

/* Navbar Login Button Size Adjustment */
.nav-actions .nav-login-btn,
.mobile-menu .nav-login-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
}

/* ============================================================
   MOBILE OPTIMIZATIONS
   ============================================================ */
@media (max-width: 768px) {
    /* Hero Section Flow */
    .hero {
        padding: calc(var(--nav-height) + var(--space-6)) var(--space-4) var(--space-10);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto;
        min-height: 100vh;
    }

    /* Adjust IEEE Card to fit screen */
    .hero-ieee-card {
        margin: 120px auto var(--space-16) auto !important;
        width: 85%;
        max-width: 380px;
        transform: none !important;
    }

    /* Hide login button in navbar on mobile (only show hamburger) */
    .nav-actions {
        display: none !important;
    }

    .hero-card-header,
    .hero-card-body {
        padding: var(--space-4);
    }
    
    .hero-card-title {
        font-size: 1.8rem !important;
    }

    .hero-card-description {
        margin-bottom: var(--space-4);
        min-height: auto;
    }

    .hero-card-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }
    
    .hero-card-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hide Vertical Stats on Mobile */
    .hero-stats-vertical {
        display: none !important;
    }
    
    .hero-video-controls {
        position: absolute !important;
        bottom: var(--space-4) !important;
        right: var(--space-4) !important;
        margin-top: 0;
        align-self: auto;
    }

    .hero-video-controls .control-btn {
        width: 36px;
        height: 36px;
    }

    /* Prevent Mobile Bleed Out */
    html, body {
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100%;
    }
    
    * {
        box-sizing: border-box !important;
    }

    img, video, .container {
        max-width: 100% !important;
        height: auto;
    }

    p, h1, h2, h3, h4, h5, h6, a, span {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    /* Editorial Board Mobile Fixes */
    .board-grid-new {
        grid-template-columns: 1fr !important;
    }

    .board-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
}
