/**
 * The Journal & Project Portal 2026 - Public Stylesheet
 * Responsive, Glassmorphic, Magazine-grade Editorial Design
 */

:root {
    --j-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --j-font-serif: 'Playfair Display', Georgia, serif;
    --j-font-reading: 'Lora', Georgia, serif;

    --j-bg: #f8fafc;
    --j-card-bg: #ffffff;
    --j-ink: #0f172a;
    --j-ink-light: #334155;
    --j-muted: #64748b;
    --j-border: rgba(226, 232, 240, 0.9);
    --j-border-hover: rgba(234, 88, 12, 0.35);

    --j-accent: #ea580c;
    --j-accent-hover: #c2410c;
    --j-accent-soft: rgba(234, 88, 12, 0.08);
    --j-gold: #f59e0b;

    --j-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --j-shadow-md: 0 10px 28px -6px rgba(15, 23, 42, 0.07);
    --j-shadow-lg: 0 20px 48px -10px rgba(15, 23, 42, 0.12);
    --j-shadow-glow: 0 0 35px rgba(234, 88, 12, 0.15);

    --j-radius-sm: 10px;
    --j-radius-md: 16px;
    --j-radius-lg: 24px;
    --j-radius-pill: 9999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.journal-portal,
body.journal-reader-mode {
    margin: 0;
    padding: 0;
    background-color: var(--j-bg);
    color: var(--j-ink);
    font-family: var(--j-font-sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* Container helper */
.journal-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Reading Progress Indicator */
.reading-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5px;
    background: transparent;
    z-index: 9999;
}
.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ea580c 0%, #f59e0b 50%, #e11d48 100%);
    box-shadow: 0 0 10px rgba(234, 88, 12, 0.7);
    transition: width 0.08s ease-out;
}

/* Floating Navbar */
.journal-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--j-border);
    padding: 0.85rem 0;
    transition: all 0.25s ease;
}
.journal-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.journal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--j-ink);
}
.journal-brand-badge {
    width: 42px;
    height: 42px;
    border-radius: var(--j-radius-sm);
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.25);
}
.journal-brand-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.journal-brand-text small {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--j-muted);
}

.journal-nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.journal-nav-menu .nav-item {
    text-decoration: none;
    color: var(--j-muted);
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}
.journal-nav-menu .nav-item:hover,
.journal-nav-menu .nav-item.active {
    color: var(--j-accent);
}

.journal-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.journal-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--j-border);
    background: #fff;
    color: var(--j-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.journal-icon-btn:hover {
    border-color: var(--j-accent);
    color: var(--j-accent);
    background: var(--j-accent-soft);
}

.journal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--j-radius-pill);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.journal-btn-primary {
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}
.journal-btn-primary:hover {
    background: linear-gradient(135deg, #c2410c, #9a3412);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}
.journal-btn-outline {
    background: #fff;
    border-color: var(--j-border);
    color: var(--j-ink);
}
.journal-btn-outline:hover {
    border-color: var(--j-accent);
    color: var(--j-accent);
    background: var(--j-accent-soft);
}

/* Hero Section */
.journal-hero {
    position: relative;
    padding: 5rem 0 3.5rem;
    background: radial-gradient(circle at top right, rgba(234, 88, 12, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.06), transparent 35%),
                linear-gradient(180deg, #ffffff 0%, var(--j-bg) 100%);
    border-bottom: 1px solid var(--j-border);
    text-align: center;
}
.journal-hero-content {
    max-width: 860px;
    margin: 0 auto;
}
.journal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: var(--j-radius-pill);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(234, 88, 12, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--j-accent);
    margin-bottom: 1.5rem;
}
.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--j-accent);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.2);
}
.journal-hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    color: var(--j-ink);
}
.journal-hero-title em {
    font-family: var(--j-font-serif);
    font-style: italic;
    font-weight: 600;
    color: var(--j-accent);
}
.journal-hero-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--j-muted);
    max-width: 720px;
    margin: 0 auto 1.5rem;
}
.journal-location-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1rem;
    border-radius: var(--j-radius-pill);
    background: #ffffff;
    border: 1px solid var(--j-border);
    font-size: 0.82rem;
    color: var(--j-ink-light);
    box-shadow: var(--j-shadow-sm);
}

/* Spotlight Card (Featured Article) */
.journal-spotlight-section {
    padding: 3rem 0 1rem;
}
.spotlight-card {
    background: var(--j-card-bg);
    border: 1px solid var(--j-border);
    border-radius: var(--j-radius-lg);
    box-shadow: var(--j-shadow-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}
.spotlight-card:hover {
    border-color: var(--j-border-hover);
    box-shadow: var(--j-shadow-glow), var(--j-shadow-lg);
}
.spotlight-media-wrap {
    position: relative;
    height: 100%;
    min-height: 380px;
    overflow: hidden;
    background: #e2e8f0;
}
.spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}
.spotlight-card:hover .spotlight-img {
    transform: scale(1.035);
}
.spotlight-img-fallback {
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #94a3b8;
    gap: 0.5rem;
}
.spotlight-tag-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: var(--j-radius-pill);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.spotlight-content {
    padding: 2.75rem 2.5rem;
}
.spotlight-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
}
.spotlight-cat-pill {
    background: var(--j-accent-soft);
    color: var(--j-accent);
    padding: 0.3rem 0.75rem;
    border-radius: var(--j-radius-pill);
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.spotlight-read-time,
.spotlight-views {
    color: var(--j-muted);
    font-weight: 600;
}
.spotlight-title {
    font-size: clamp(1.6rem, 2.5vw, 2.3rem);
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}
.spotlight-title a {
    color: var(--j-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}
.spotlight-title a:hover {
    color: var(--j-accent);
}
.spotlight-excerpt {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--j-muted);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.spotlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--j-border);
    padding-top: 1.5rem;
}
.spotlight-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.author-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--j-ink);
}
.author-info small {
    display: block;
    font-size: 0.75rem;
    color: var(--j-muted);
}

/* Filter Suite */
.journal-stream-section {
    padding: 2.25rem 0 5rem;
}
.journal-filter-suite {
    background: var(--j-card-bg);
    border: 1px solid var(--j-border);
    border-radius: var(--j-radius-lg);
    box-shadow: var(--j-shadow-sm);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}
.filter-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.journal-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 280px;
}
.journal-search-input-wrap .search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--j-muted);
    font-size: 1rem;
}
.journal-search-field {
    width: 100%;
    padding: 0.7rem 2.8rem 0.7rem 2.6rem;
    border-radius: var(--j-radius-pill);
    border: 1px solid var(--j-border);
    background: var(--j-bg);
    font-size: 0.92rem;
    transition: all 0.2s ease;
}
.journal-search-field:focus {
    background: #fff;
    border-color: var(--j-accent);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}
.btn-clear-search {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
}
.btn-clear-search:hover {
    color: var(--j-accent);
}

.type-pills-group {
    display: inline-flex;
    background: var(--j-bg);
    padding: 0.35rem;
    border-radius: var(--j-radius-pill);
    border: 1px solid var(--j-border);
    gap: 0.25rem;
}
.type-pill {
    padding: 0.45rem 1.1rem;
    border-radius: var(--j-radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--j-muted);
    transition: all 0.2s ease;
}
.type-pill.active {
    background: #fff;
    color: var(--j-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.type-pill:hover:not(.active) {
    color: var(--j-ink);
}

.category-chips-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.category-chips-wrap::-webkit-scrollbar {
    display: none;
}
.category-chip {
    white-space: nowrap;
    padding: 0.4rem 1rem;
    border-radius: var(--j-radius-pill);
    background: var(--j-bg);
    border: 1px solid var(--j-border);
    color: var(--j-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.category-chip:hover {
    border-color: var(--j-accent);
    color: var(--j-accent);
    background: var(--j-accent-soft);
}
.category-chip.active {
    background: var(--j-accent);
    border-color: var(--j-accent);
    color: #fff;
}

/* Stream Header */
.stream-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.stream-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}
.stream-count-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--j-muted);
    background: #fff;
    border: 1px solid var(--j-border);
    padding: 0.4rem 0.85rem;
    border-radius: var(--j-radius-pill);
}

/* Article Cards Grid */
.journal-card {
    height: 100%;
    background: var(--j-card-bg);
    border: 1px solid var(--j-border);
    border-radius: var(--j-radius-md);
    overflow: hidden;
    box-shadow: var(--j-shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.journal-card:hover {
    transform: translateY(-6px);
    border-color: var(--j-border-hover);
    box-shadow: var(--j-shadow-md);
}
.card-media-wrap {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    background: #f1f5f9;
}
.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.journal-card:hover .card-img {
    transform: scale(1.06);
}
.card-img-fallback {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #334155, #1e293b);
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 700;
}
.card-badge-layer {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}
.card-cat-pill {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.3rem 0.65rem;
    border-radius: var(--j-radius-pill);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.card-featured-pill {
    background: var(--j-gold);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--j-muted);
    margin-bottom: 0.75rem;
}
.meta-divider {
    color: #cbd5e1;
}
.card-title {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title a {
    color: var(--j-ink);
    text-decoration: none;
    transition: color 0.2s ease;
}
.card-title a:hover {
    color: var(--j-accent);
}
.card-excerpt {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--j-muted);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border-top: 1px solid var(--j-border);
    padding-top: 1rem;
    margin-top: auto;
    font-size: 0.82rem;
}
.card-author {
    color: var(--j-muted);
    font-weight: 600;
}
.card-read-link {
    color: var(--j-accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.2s ease;
}
.card-read-link:hover {
    gap: 0.45rem;
    color: var(--j-accent-hover);
}

/* Empty State */
.journal-empty-state {
    text-align: center;
    padding: 5rem 1.5rem;
    background: #fff;
    border: 1px dashed var(--j-border);
    border-radius: var(--j-radius-lg);
    margin: 2rem 0;
}
.journal-empty-state .empty-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}
.journal-empty-state h4 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Staff Operational Feature Grid */
.journal-staff-section {
    padding: 3rem 0;
    border-top: 1px solid var(--j-border);
    background: linear-gradient(180deg, var(--j-bg) 0%, #ffffff 100%);
}
.staff-card-panel {
    background: #fff;
    border: 1px solid var(--j-border);
    border-radius: var(--j-radius-lg);
    box-shadow: var(--j-shadow-md);
    padding: 2.25rem;
}
.staff-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.staff-kicker {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--j-accent);
}
.staff-title {
    font-size: 1.5rem;
    font-weight: 850;
    margin-bottom: 0.25rem;
}
.staff-subtitle {
    color: var(--j-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}
.staff-feature-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    background: var(--j-bg);
    border: 1px solid var(--j-border);
    border-radius: var(--j-radius-md);
    text-decoration: none;
    color: var(--j-ink);
    transition: all 0.2s ease;
    height: 100%;
}
.staff-feature-box:hover {
    background: #fff;
    border-color: var(--j-accent);
    transform: translateY(-2px);
    box-shadow: var(--j-shadow-sm);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--j-radius-sm);
    background: var(--j-accent-soft);
    color: var(--j-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.feature-meta strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.25;
}
.feature-meta small {
    display: block;
    font-size: 0.75rem;
    color: var(--j-muted);
    line-height: 1.35;
    margin-top: 0.2rem;
}
.feature-arrow {
    margin-left: auto;
    color: #94a3b8;
    transition: transform 0.2s ease;
}
.staff-feature-box:hover .feature-arrow {
    transform: translateX(3px);
    color: var(--j-accent);
}

/* =========================================================================
   ARTICLE READER VIEW (/news/view)
   ========================================================================= */
.journal-reader-mode {
    background-color: #ffffff;
}
.reader-navbar {
    background: rgba(255, 255, 255, 0.94);
}
.reader-container {
    max-width: 860px;
}
.reader-back-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--j-muted);
    font-weight: 700;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}
.reader-back-link:hover {
    color: var(--j-accent);
}
.reader-nav-title {
    max-width: 400px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--j-ink);
}

.reader-main {
    padding: 2.5rem 0 5rem;
}
.reader-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--j-muted);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.reader-breadcrumb a {
    color: var(--j-muted);
    text-decoration: none;
    font-weight: 600;
}
.reader-breadcrumb a:hover {
    color: var(--j-accent);
}
.reader-breadcrumb .sep {
    font-size: 0.7rem;
    color: #cbd5e1;
}
.reader-breadcrumb .active {
    color: var(--j-ink);
    font-weight: 700;
}

/* Article Header */
.article-header {
    margin-bottom: 2.5rem;
}
.article-tags-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.article-category-badge {
    background: var(--j-accent-soft);
    color: var(--j-accent);
    padding: 0.35rem 0.85rem;
    border-radius: var(--j-radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.article-type-badge {
    padding: 0.35rem 0.85rem;
    border-radius: var(--j-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}
.article-type-badge.announcement {
    background: #fee2e2;
    color: #b91c1c;
}
.article-type-badge.journal {
    background: #e0f2fe;
    color: #0369a1;
}
.article-type-badge.featured {
    background: #fef3c7;
    color: #b45309;
}

.article-title {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--j-ink);
    margin-bottom: 1.5rem;
}
.article-lead {
    font-size: 1.22rem;
    line-height: 1.75;
    color: #334155;
    padding: 1.25rem 1.5rem;
    background: var(--j-bg);
    border-left: 4px solid var(--j-accent);
    border-radius: 0 var(--j-radius-sm) var(--j-radius-sm) 0;
    margin-bottom: 2rem;
}

.article-author-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--j-border);
    padding-bottom: 1.5rem;
}
.author-capsule {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.author-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--j-ink);
}
.author-role {
    display: block;
    font-size: 0.75rem;
    color: var(--j-muted);
}
.article-stats-pills {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.stat-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--j-muted);
    font-weight: 600;
    background: var(--j-bg);
    padding: 0.35rem 0.75rem;
    border-radius: var(--j-radius-pill);
    border: 1px solid var(--j-border);
}

/* Article Media Figures */
.article-cover-figure {
    margin: 2.5rem 0;
}
.article-cover-img {
    width: 100%;
    max-height: 540px;
    object-fit: cover;
    border-radius: var(--j-radius-lg);
    box-shadow: var(--j-shadow-lg);
}

.article-video-wrap {
    margin: 2.5rem 0;
}

/* Rendered Rich Editorial Content Body */
.article-content-body {
    font-family: var(--j-font-reading);
    font-size: 1.15rem;
    line-height: 1.95;
    color: #1e293b;
    margin-bottom: 3.5rem;
}
.article-content-body .editorial-p {
    margin-bottom: 1.75rem;
}
.article-content-body .editorial-h2 {
    font-family: var(--j-font-sans);
    font-size: 1.85rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    color: var(--j-ink);
    margin: 3rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--j-border);
}
.article-content-body .editorial-h3 {
    font-family: var(--j-font-sans);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--j-ink);
    margin: 2.25rem 0 1rem;
}
.article-content-body .editorial-quote {
    font-family: var(--j-font-serif);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.65;
    color: #0f172a;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: var(--j-bg);
    border-left: 4px solid var(--j-accent);
    border-radius: 0 var(--j-radius-md) var(--j-radius-md) 0;
}
.article-content-body .editorial-callout {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--j-radius-md);
    margin: 2rem 0;
    font-family: var(--j-font-sans);
    font-size: 1rem;
    line-height: 1.6;
}
.editorial-callout-note {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #0369a1;
}
.editorial-callout-note i {
    font-size: 1.35rem;
    color: #0284c7;
}
.editorial-callout-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #b45309;
}
.editorial-callout-warning i {
    font-size: 1.35rem;
    color: #d97706;
}

.article-content-body .editorial-ul,
.article-content-body .editorial-ol {
    padding-left: 2rem;
    margin-bottom: 1.75rem;
}
.article-content-body li {
    margin-bottom: 0.6rem;
}
.article-content-body .editorial-code {
    background: #0f172a;
    color: #f1f5f9;
    padding: 1.25rem 1.5rem;
    border-radius: var(--j-radius-md);
    overflow-x: auto;
    font-size: 0.9rem;
    margin: 2rem 0;
    font-family: Consolas, monospace;
}
.article-content-body .editorial-inline-code {
    background: var(--j-bg);
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.88em;
    color: var(--j-accent);
    border: 1px solid var(--j-border);
}
.article-content-body .editorial-link {
    color: var(--j-accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-content-body .editorial-link:hover {
    color: var(--j-accent-hover);
}
.article-content-body .editorial-hr {
    border: none;
    height: 1px;
    background: var(--j-border);
    margin: 3rem 0;
}
.article-content-body .editorial-figure {
    margin: 2.5rem 0;
    text-align: center;
}
.article-content-body figcaption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--j-muted);
    font-family: var(--j-font-sans);
}

/* Social Share Bar */
.article-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--j-bg);
    border: 1px solid var(--j-border);
    border-radius: var(--j-radius-lg);
    margin-bottom: 4rem;
    flex-wrap: wrap;
}
.share-prompt {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.95rem;
}
.share-buttons-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: var(--j-radius-pill);
    border: 1px solid var(--j-border);
    background: #fff;
    color: var(--j-ink);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.share-btn:hover {
    border-color: var(--j-accent);
    color: var(--j-accent);
    background: var(--j-accent-soft);
}
.share-btn.btn-facebook:hover { color: #1877f2; border-color: #1877f2; }
.share-btn.btn-twitter:hover { color: #000; border-color: #000; }
.share-btn.btn-whatsapp:hover { color: #25d366; border-color: #25d366; }

/* Related Articles Section */
.related-articles-section {
    border-top: 2px solid var(--j-border);
    padding-top: 3.5rem;
}
.related-header {
    margin-bottom: 1.5rem;
}
.related-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--j-accent);
}
.related-title {
    font-size: 1.6rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    margin-top: 0.25rem;
}
.related-card {
    background: #fff;
    border: 1px solid var(--j-border);
    border-radius: var(--j-radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--j-shadow-sm);
    transition: all 0.25s ease;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--j-shadow-md);
    border-color: var(--j-border-hover);
}
.related-media-wrap {
    display: block;
    height: 160px;
    overflow: hidden;
    background: #f1f5f9;
}
.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.related-card:hover .related-img {
    transform: scale(1.05);
}
.related-img-fallback {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #334155;
    color: #94a3b8;
    font-size: 1.5rem;
}
.related-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.related-cat-pill {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--j-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}
.related-card-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-card-title a {
    color: var(--j-ink);
    text-decoration: none;
}
.related-card-title a:hover {
    color: var(--j-accent);
}
.related-meta {
    margin-top: auto;
}

/* Footer */
.journal-footer {
    background: #ffffff;
    border-top: 1px solid var(--j-border);
    padding: 3.5rem 0 2.5rem;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.footer-badge {
    width: 38px;
    height: 38px;
    border-radius: var(--j-radius-sm);
    background: var(--j-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 0.9rem;
}
.footer-links a {
    color: var(--j-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--j-accent);
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .journal-nav-menu {
        display: none;
    }
    .spotlight-content {
        padding: 2rem 1.75rem;
    }
    .spotlight-media-wrap {
        min-height: 280px;
    }
}
@media (max-width: 767.98px) {
    .journal-hero {
        padding: 3.5rem 0 2.5rem;
    }
    .spotlight-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .spotlight-footer .journal-btn {
        width: 100%;
        justify-content: center;
    }
    .filter-top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .type-pills-group {
        width: 100%;
        overflow-x: auto;
    }
    .type-pill {
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
    .article-title {
        font-size: 2rem;
    }
    .article-lead {
        font-size: 1.05rem;
        padding: 1rem 1.25rem;
    }
    .article-content-body {
        font-size: 1.05rem;
        line-height: 1.8;
    }
    .article-share-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .share-buttons-group {
        justify-content: space-between;
    }
    .footer-links {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   DYNAMIC TOPBAR, SIDEBAR WIDGETS & 4-COLUMN FOOTER 2026
   ========================================================================== */

/* 1. Top Announcement Bar */
.journal-topbar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #f8fafc;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.journal-topbar .topbar-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}
.journal-topbar .topbar-text {
    color: rgba(248, 250, 252, 0.9);
    font-weight: 500;
}
.journal-topbar .topbar-link {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 700;
    margin-left: 4px;
    transition: color 0.15s ease;
}
.journal-topbar .topbar-link:hover {
    color: #fef08a;
    text-decoration: underline;
}
.journal-topbar .topbar-phone {
    color: #f8fafc;
    letter-spacing: 0.02em;
}

/* 2. Custom Brand Logo Image */
.journal-brand-img {
    max-height: 40px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

/* 3. Sticky Sidebar & Layout */
.journal-sidebar {
    position: sticky;
    top: 88px;
    z-index: 10;
}
.sidebar-widget {
    background: var(--j-card-bg);
    border: 1px solid var(--j-border);
    border-radius: var(--j-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--j-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sidebar-widget:hover {
    box-shadow: var(--j-shadow-md);
    border-color: var(--j-border-hover);
}
.sidebar-widget .widget-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--j-border);
}
.sidebar-widget .widget-accent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--j-accent);
    box-shadow: 0 0 8px rgba(234, 88, 12, 0.6);
}
.sidebar-widget .widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--j-ink);
    letter-spacing: -0.01em;
}

/* Widget: About */
.widget-about .widget-author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}
.widget-about .widget-author-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--j-accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.widget-about .widget-author-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--j-ink);
}
.widget-about .widget-author-bio {
    font-size: 0.85rem;
    color: var(--j-muted);
    line-height: 1.55;
}

/* Widget: Categories */
.widget-categories .widget-cat-list li {
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.widget-categories .widget-cat-list li:last-child {
    border-bottom: none;
}
.widget-categories .cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    color: var(--j-ink-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.widget-categories .cat-link:hover {
    background: var(--j-accent-soft);
    color: var(--j-accent);
    padding-left: 1.5rem;
}
.widget-categories .cat-link.active {
    background: var(--j-accent-soft);
    color: var(--j-accent);
    font-weight: 700;
    border-left: 3px solid var(--j-accent);
}

/* Widget: Trending */
.trending-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: background 0.15s ease;
}
.trending-item:last-child {
    border-bottom: none;
}
.trending-item:hover {
    background: rgba(248, 250, 252, 0.8);
}
.trending-rank {
    font-size: 1.2rem;
    font-weight: 800;
    color: #cbd5e1;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.trending-item:nth-child(1) .trending-rank { color: #ea580c; }
.trending-item:nth-child(2) .trending-rank { color: #f59e0b; }
.trending-item:nth-child(3) .trending-rank { color: #e11d48; }

.trending-thumb {
    width: 54px;
    height: 54px;
    border-radius: var(--j-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}
.trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trending-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}
.trending-info {
    flex: 1;
    min-width: 0;
}
.trending-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--j-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    margin-bottom: 3px;
    transition: color 0.15s ease;
}
.trending-title:hover {
    color: var(--j-accent);
}
.trending-meta {
    font-size: 0.74rem;
    color: var(--j-muted);
}

/* Widget: Promotional Banner */
.widget-banner {
    min-height: 240px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}
.widget-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.92) 100%);
    z-index: 1;
}
.widget-banner-content {
    position: relative;
    z-index: 2;
}
.widget-banner .banner-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}
.widget-banner .banner-desc {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
}

/* Widget: Contact */
.widget-contact .contact-pill {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

/* Widget: Social Media */
.social-icon-pill {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-icon-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: #ffffff;
}
.social-icon-pill.fb { background: #1877f2; }
.social-icon-pill.yt { background: #ff0000; }
.social-icon-pill.tt { background: #000000; }
.social-icon-pill.zl { background: #0068ff; }
.social-icon-pill.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* 4. Modern 4-Column Footer */
.journal-footer {
    background: #0b1120 !important;
    color: #cbd5e1;
    padding: 4.5rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo-img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}
.footer-heading {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
}
.footer-heading::after {
    content: '';
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--j-accent);
    margin-top: 6px;
    border-radius: 2px;
}
.footer-links-list li {
    margin-bottom: 0.65rem;
}
.footer-links-list a {
    color: rgba(203, 213, 225, 0.75);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s ease, padding-left 0.15s ease;
}
.footer-links-list a:hover {
    color: #ffffff;
    padding-left: 4px;
}
.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.footer-social-btn:hover {
    background: var(--j-accent);
    color: #ffffff;
    transform: translateY(-2px);
}
.reader-with-sidebar .reader-container-custom {
    max-width: 100%;
}

/* =========================================================================
   SOFTWARE USER GUIDE SHOWCASE & BADGES
   ========================================================================= */
.card-cat-pill.cat-guide {
    background: rgba(14, 165, 233, 0.9) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
}

.article-type-badge.guide {
    background: rgba(14, 165, 233, 0.15) !important;
    color: #0284c7 !important;
    border: 1px solid rgba(14, 165, 233, 0.3);
    font-weight: 700;
}

.journal-guide-banner {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.journal-guide-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22) !important;
}

