/* ==========================================================================
   JUDICIA SUPREMA - OFFICIAL OJS THEME STYLESHEET
   Harmonized with JDIH Mahkamah Agung RI Aesthetics & Custom Mockup Design
   ========================================================================== */

:root {
    --jd-navy-dark: #0a111e;
    --jd-navy-primary: #0f1a2e;
    --jd-navy-secondary: #17243b;
    --jd-navy-card: #1c2c46;
    
    --jd-gold-primary: #c5a059;
    --jd-gold-light: #e6cb8b;
    --jd-gold-dark: #a27b38;
    --jd-gold-glow: rgba(197, 160, 89, 0.25);

    --jd-bg-light: #f8fafc;
    --jd-bg-alt: #f1f5f9;
    --jd-card-bg: #ffffff;
    
    --jd-text-dark: #0f172a;
    --jd-text-main: #334155;
    --jd-text-muted: #64748b;
    --jd-text-light: #94a3b8;
    
    --jd-border-light: #e2e8f0;
    --jd-border-gold: rgba(197, 160, 89, 0.4);
    
    --jd-radius-sm: 6px;
    --jd-radius-md: 10px;
    --jd-radius-lg: 16px;
    
    --jd-shadow-sm: 0 2px 4px rgba(15, 26, 46, 0.05);
    --jd-shadow-md: 0 6px 16px rgba(15, 26, 46, 0.08);
    --jd-shadow-lg: 0 12px 32px rgba(15, 26, 46, 0.12);
    
    --jd-font-heading: 'Cinzel', 'Playfair Display', 'Georgia', serif;
    --jd-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Global Base Settings */
body {
    font-family: var(--jd-font-body);
    color: var(--jd-text-main);
    background-color: var(--jd-bg-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .jd-heading {
    font-family: var(--jd-font-heading);
    color: var(--jd-navy-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 0;
}

a {
    color: var(--jd-navy-primary);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--jd-gold-primary);
}

.jd-brand-logo,
.jd-brand img,
.jd-brand a img,
.is_img img,
.pkp_site_name img {
    max-height: 135px !important;
    max-width: 520px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

.jd-footer .jd-brand-logo,
.jd-footer .jd-brand img,
.jd-footer .jd-brand a img,
.jd-footer .is_img img,
.jd-footer .pkp_site_name img {
    max-height: 135px !important;
    max-width: 480px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
}

.jd-container,
.pkp_structure_content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding-left: 100px !important;
    padding-right: 100px !important;
    box-sizing: border-box;
}

/* Structural Layout & 70% Content / 30% Floating Sidebar Split */
.pkp_structure_content {
    padding-top: 40px;
    padding-bottom: 64px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.pkp_structure_main {
    width: calc(70% - 15px);
    flex: 0 0 calc(70% - 15px);
    min-width: 0;
}

.pkp_structure_main::before,
.pkp_structure_main::after,
div.pkp_structure_main::before,
div.pkp_structure_main::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: none !important;
}

.pkp_structure_main .jd-container {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.pkp_structure_sidebar {
    width: calc(30% - 15px);
    flex: 0 0 calc(30% - 15px);
    min-width: 0;
    background: #f8fafc !important;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    padding: 24px 20px;
    box-shadow: 0 4px 16px rgba(15, 26, 46, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pkp_structure_sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--jd-gold-primary) 0%, var(--jd-navy-primary) 100%);
    border-radius: 4px 0 0 4px;
}

.pkp_structure_sidebar:hover {
    box-shadow: 0 8px 24px rgba(15, 26, 46, 0.06) !important;
    border-color: var(--jd-border-gold) !important;
}

/* Sidebar Block Plugins Styling */
.pkp_structure_sidebar .pkp_block,
.pkp_structure_sidebar .block {
    margin-bottom: 24px;
}

.pkp_structure_sidebar .pkp_block:last-child,
.pkp_structure_sidebar .block:last-child {
    margin-bottom: 0;
}

.pkp_structure_sidebar .title,
.pkp_structure_sidebar h2,
.pkp_structure_sidebar h3,
.pkp_structure_sidebar h4,
.block .title {
    font-family: var(--jd-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--jd-navy-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--jd-gold-primary) !important;
}

.pkp_structure_sidebar ul,
.block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pkp_structure_sidebar li,
.block li {
    margin: 0;
    padding: 0;
}

.pkp_structure_sidebar li a,
.block li a {
    font-size: 13px;
    font-weight: 600;
    color: var(--jd-navy-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background-color: #ffffff;
    border-radius: var(--jd-radius-sm);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid var(--jd-border-light);
}

.pkp_structure_sidebar li a:hover,
.block li a:hover {
    background-color: var(--jd-navy-primary);
    color: var(--jd-gold-light);
    border-color: var(--jd-navy-primary);
    transform: translateX(4px);
}

/* ==========================================================================
   1. TOPBAR & NAVIGATION
   ========================================================================== */

.jd-topbar {
    background-color: var(--jd-navy-dark);
    color: #cbd5e1;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
}

.jd-topbar .jd-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jd-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.jd-topbar-left span.jd-issn {
    color: var(--jd-gold-light);
    font-weight: 600;
}

.jd-topbar-left .jd-divider {
    color: rgba(255, 255, 255, 0.2);
}

.jd-topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.jd-topbar-right a {
    color: #e2e8f0;
    font-weight: 500;
}

.jd-topbar-right a:hover {
    color: var(--jd-gold-light);
}

.jd-user-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}

/* Main Navbar */
.jd-navbar {
    background-color: #ffffff;
    box-shadow: var(--jd-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--jd-gold-primary);
}

.jd-navbar .jd-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 145px;
    height: auto;
    padding: 10px 0;
}

.jd-brand {
    display: flex;
    align-items: center;
}

.jd-brand a {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.jd-brand-emblem {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--jd-navy-primary), var(--jd-navy-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jd-gold-primary);
    font-size: 24px;
    border: 2px solid var(--jd-gold-primary);
    box-shadow: 0 4px 10px rgba(15, 26, 46, 0.15);
}

.jd-brand-text {
    display: flex;
    flex-direction: column;
}

.jd-brand-title {
    font-family: var(--jd-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--jd-navy-primary);
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.jd-brand-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jd-gold-dark);
    font-weight: 700;
    margin-top: 2px;
}

.jd-brand-institution {
    font-size: 10px;
    color: var(--jd-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jd-navigation {
    display: flex;
    align-items: center;
}

.jd-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.jd-primary-menu > li {
    position: relative;
}

.jd-primary-menu > li > a {
    font-family: var(--jd-font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--jd-navy-primary);
    padding: 10px 0;
    display: block;
    position: relative;
}

.jd-primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--jd-gold-primary);
    transition: width 0.25s ease;
}

.jd-primary-menu > li:hover > a::after,
.jd-primary-menu > li.active > a::after {
    width: 100%;
}

.jd-primary-menu > li:hover > a {
    color: var(--jd-gold-dark);
}

/* Navbar Search & Mobile Toggle */
.jd-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.jd-search-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--jd-bg-alt);
    color: var(--jd-navy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.jd-search-btn:hover {
    background-color: var(--jd-gold-primary);
    color: #ffffff;
}

.jd-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--jd-navy-primary);
    cursor: pointer;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */

.jd-hero,
.jd-hero-minimal {
    background: transparent !important;
    padding: 10px 0 28px 0;
    color: var(--jd-text-dark);
}

.jd-hero-minimal-content {
    max-width: 100%;
}

.jd-hero-minimal-title {
    font-family: var(--jd-font-heading);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--jd-navy-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.jd-hero-subtitle-primary {
    display: block;
    font-family: var(--jd-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--jd-gold-dark);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

.jd-hero-subtitle-secondary {
    display: block;
    font-family: var(--jd-font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jd-text-muted);
    margin-top: 4px;
}

.jd-hero-minimal-desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--jd-text-main);
    max-width: 100%;
    margin-bottom: 12px;
    text-align: justify;
}

.jd-hero-minimal-desc-id {
    font-size: 14px;
    line-height: 1.7;
    font-style: italic;
    color: var(--jd-text-muted);
    max-width: 100%;
    margin-bottom: 20px;
    text-align: justify;
}

/* Modern "Make a Submission" Sidebar Button - Aligned with li a width */
.block_make_submission,
.pkp_block.block_make_submission {
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.block_make_submission a,
.pkp_block.block_make_submission a,
a.make_submission,
a.block_make_submission_link,
.block_make_submission_link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #c5a059 0%, #9e7b39 100%) !important;
    color: #0a111e !important;
    font-family: var(--jd-font-heading) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    border-radius: var(--jd-radius-sm) !important;
    box-shadow: 0 2px 6px rgba(197, 160, 89, 0.25) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: 1px solid var(--jd-gold-primary) !important;
}

.block_make_submission a:hover,
.pkp_block.block_make_submission a:hover,
a.make_submission:hover,
a.block_make_submission_link:hover,
.block_make_submission_link:hover {
    background: linear-gradient(135deg, #e6cb8b 0%, #c5a059 100%) !important;
    color: #0a111e !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4) !important;
}

.jd-hero-desc {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 580px;
    text-align: justify;
}

.jd-hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.jd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--jd-radius-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
}

.jd-btn-gold {
    background-color: var(--jd-gold-primary);
    color: var(--jd-navy-dark);
    box-shadow: 0 4px 14px rgba(197, 160, 89, 0.35);
}

.jd-btn-gold:hover {
    background-color: var(--jd-gold-light);
    color: var(--jd-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.45);
}

.jd-btn-outline-gold {
    background-color: transparent;
    border-color: var(--jd-gold-primary);
    color: var(--jd-gold-light);
}

.jd-btn-outline-gold:hover {
    background-color: var(--jd-gold-primary);
    color: var(--jd-navy-dark);
    transform: translateY(-2px);
}

/* 3D Book Cover Visual */
.jd-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.jd-book-cover {
    width: 240px;
    height: 330px;
    background: linear-gradient(135deg, #0d182b, #192a47);
    border-radius: 6px 14px 14px 6px;
    border: 2px solid var(--jd-gold-primary);
    box-shadow: -12px 16px 28px rgba(0, 0, 0, 0.5), inset 4px 0 8px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px;
    position: relative;
    transform: perspective(1000px) rotateY(-12deg) rotateX(4deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.jd-book-cover:hover {
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg) scale(1.02);
    box-shadow: -16px 22px 36px rgba(0, 0, 0, 0.6);
}

.jd-book-header {
    text-align: center;
    border-bottom: 1px solid var(--jd-border-gold);
    padding-bottom: 12px;
}

.jd-book-title {
    font-family: var(--jd-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--jd-gold-light);
    letter-spacing: 0.05em;
}

.jd-book-subtitle {
    font-size: 9px;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.jd-book-feather {
    font-size: 48px;
    color: var(--jd-gold-primary);
    text-align: center;
    margin: 20px 0;
}

.jd-book-footer {
    text-align: center;
    border-top: 1px solid var(--jd-border-gold);
    padding-top: 10px;
    font-size: 9px;
    color: var(--jd-gold-light);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   3. STATS BAR SECTION
   ========================================================================== */

.jd-stats-bar {
    margin-top: -36px;
    position: relative;
    z-index: 10;
    margin-bottom: 48px;
}

.jd-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #ffffff;
    border-radius: var(--jd-radius-md);
    padding: 24px;
    box-shadow: var(--jd-shadow-md);
    border: 1px solid var(--jd-border-light);
}

.jd-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-right: 1px solid var(--jd-border-light);
}

.jd-stat-card:last-child {
    border-right: none;
}

.jd-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(197, 160, 89, 0.12);
    color: var(--jd-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.jd-stat-info {
    display: flex;
    flex-direction: column;
}

.jd-stat-number {
    font-family: var(--jd-font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--jd-navy-primary);
    line-height: 1.1;
}

.jd-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jd-text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   4. CURRENT ISSUE & LATEST ARTICLES
   ========================================================================== */

.jd-section-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--jd-border-light);
    padding-bottom: 12px;
}

.jd-section-title {
    font-family: var(--jd-font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--jd-navy-primary);
    letter-spacing: 0.03em;
    margin: 0;
    position: relative;
}

.jd-section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--jd-gold-primary);
}

.jd-view-all-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--jd-gold-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.jd-view-all-link:hover {
    color: var(--jd-navy-primary);
}

.jd-homepage-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    margin-bottom: 56px;
}

/* Current Issue Card */
.jd-current-issue-card {
    background: #ffffff;
    border-radius: var(--jd-radius-md);
    border: 1px solid var(--jd-border-light);
    box-shadow: var(--jd-shadow-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jd-issue-cover {
    width: 100%;
    height: auto;
    border-radius: var(--jd-radius-sm);
    box-shadow: var(--jd-shadow-sm);
}

.jd-issue-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jd-issue-title {
    font-family: var(--jd-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--jd-navy-primary);
}

.jd-issue-date {
    font-size: 12px;
    color: var(--jd-text-muted);
}

.jd-issue-doi {
    font-size: 11px;
    color: var(--jd-gold-dark);
    font-weight: 600;
}

/* Articles Grid */
.jd-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.jd-article-card {
    background: #ffffff;
    border-radius: var(--jd-radius-md);
    border: 1px solid var(--jd-border-light);
    box-shadow: var(--jd-shadow-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jd-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--jd-shadow-md);
    border-color: var(--jd-border-gold);
}

.jd-badge-openaccess {
    display: inline-block;
    padding: 4px 10px;
    background-color: #fff8e6;
    color: var(--jd-gold-dark);
    border: 1px solid #fce8b3;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    margin-bottom: 12px;
}

.jd-article-card-title {
    font-family: var(--jd-font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--jd-navy-primary);
    margin-bottom: 12px;
}

.jd-article-card-authors {
    font-size: 12px;
    color: var(--jd-text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.jd-article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--jd-border-light);
    padding-top: 12px;
    margin-top: auto;
}

.jd-article-card-doi {
    font-size: 11px;
    color: var(--jd-text-light);
}

.jd-btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: var(--jd-bg-alt);
    color: var(--jd-navy-primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--jd-radius-sm);
    border: 1px solid var(--jd-border-light);
    transition: all 0.2s ease;
}

.jd-btn-pdf:hover {
    background-color: var(--jd-navy-primary);
    color: #ffffff;
}

/* ==========================================================================
   5. QUICK LINKS / FEATURE BANNER
   ========================================================================== */

.jd-feature-banner {
    background: linear-gradient(135deg, var(--jd-navy-dark) 0%, var(--jd-navy-primary) 100%);
    border-radius: var(--jd-radius-md);
    padding: 36px 30px;
    margin-bottom: 56px;
    box-shadow: var(--jd-shadow-md);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.jd-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.jd-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #ffffff;
}

.jd-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid var(--jd-border-gold);
    color: var(--jd-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.jd-feature-text h4 {
    color: #ffffff;
    font-family: var(--jd-font-heading);
    font-size: 15px;
    margin-bottom: 4px;
}

.jd-feature-text p {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   6. INDEXING & ANNOUNCEMENTS
   ========================================================================== */

.jd-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 64px;
}

.jd-indexing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.jd-indexing-item {
    background: #ffffff;
    border-radius: var(--jd-radius-sm);
    border: 1px solid var(--jd-border-light);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--jd-font-heading);
    color: var(--jd-navy-primary);
    box-shadow: var(--jd-shadow-sm);
    font-size: 14px;
    min-height: 50px;
}

.jd-announcements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.jd-announcement-card {
    background: #ffffff;
    border-radius: var(--jd-radius-sm);
    border-left: 4px solid var(--jd-gold-primary);
    padding: 16px 20px;
    box-shadow: var(--jd-shadow-sm);
}

.jd-announcement-title {
    font-family: var(--jd-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--jd-navy-primary);
    margin-bottom: 4px;
}

.jd-announcement-date {
    font-size: 11px;
    color: var(--jd-text-muted);
}

/* ==========================================================================
   7. ISSUE TOC & ARTICLE DETAIL PAGES
   ========================================================================== */

.jd-issue-header {
    background: #ffffff;
    border-radius: var(--jd-radius-md);
    border: 1px solid var(--jd-border-light);
    padding: 32px;
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    box-shadow: var(--jd-shadow-sm);
}

.jd-issue-cover-lg {
    width: 100%;
    border-radius: var(--jd-radius-sm);
    box-shadow: var(--jd-shadow-md);
    border: 1px solid var(--jd-border-light);
}

.jd-issue-details h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

.jd-issue-meta-table {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 16px;
    font-size: 13px;
    margin-bottom: 24px;
}

.jd-issue-meta-table .label {
    font-weight: 700;
    color: var(--jd-text-muted);
}

/* Tabs System */
.jd-tabs {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid var(--jd-border-light);
    margin-bottom: 28px;
}

.jd-tab-btn {
    padding: 10px 20px;
    font-family: var(--jd-font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--jd-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.jd-tab-btn.active, .jd-tab-btn:hover {
    color: var(--jd-navy-primary);
    border-bottom-color: var(--jd-gold-primary);
}

/* Article Detail Layout */
.jd-article-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 60px;
}

.jd-article-main {
    width: calc(70% - 15px);
    flex: 0 0 calc(70% - 15px);
    min-width: 0;
    background: #ffffff;
    border-radius: 16px;
    border: none !important;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(15, 26, 46, 0.05);
}

.jd-article-title {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.jd-article-authors {
    font-size: 14px;
    font-weight: 600;
    color: var(--jd-navy-primary);
    margin-bottom: 24px;
}

.jd-article-downloads {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.jd-article-section {
    margin-bottom: 32px;
}

.jd-article-section h3 {
    font-size: 15px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: none !important;
    color: var(--jd-navy-primary);
    font-weight: 700;
}

.jd-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jd-keyword-tag {
    padding: 6px 14px;
    background-color: var(--jd-bg-alt);
    border: none !important;
    border-radius: 14px;
    font-size: 12px;
    color: var(--jd-navy-primary);
    font-weight: 500;
}

.jd-article-sidebar {
    width: calc(30% - 15px);
    flex: 0 0 calc(30% - 15px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.jd-sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    border: none !important;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(15, 26, 46, 0.08), 0 2px 8px rgba(197, 160, 89, 0.06);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.jd-sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--jd-gold-primary) 0%, var(--jd-navy-primary) 100%);
    border-radius: 4px 0 0 4px;
}

.jd-sidebar-widget:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(15, 26, 46, 0.14), 0 8px 24px rgba(197, 160, 89, 0.18);
}

.jd-sidebar-widget h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: none !important;
    padding-bottom: 4px;
    margin-bottom: 16px;
    color: var(--jd-navy-primary);
}

/* ==========================================================================
   8. FOOTER SECTION
   ========================================================================== */

.jd-footer {
    background-color: var(--jd-navy-dark);
    color: #94a3b8;
    padding: 64px 0 0 0;
    border-top: 4px solid var(--jd-gold-primary);
    font-size: 13px;
}

.jd-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.jd-footer-col h4 {
    color: #ffffff;
    font-family: var(--jd-font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    position: relative;
}

.jd-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--jd-gold-primary);
}

.jd-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jd-footer-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.jd-footer-links a:hover {
    color: var(--jd-gold-light);
}

.jd-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.jd-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--jd-navy-secondary);
    color: var(--jd-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.jd-social-icon:hover {
    background-color: var(--jd-gold-primary);
    color: var(--jd-navy-dark);
}

.jd-footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.jd-footer-bottom .jd-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
    .jd-container,
    .pkp_structure_content {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .jd-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .jd-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .jd-hero-actions {
        justify-content: center;
    }

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

    .jd-homepage-grid {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 768px) {
    .jd-container,
    .pkp_structure_content {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .pkp_structure_content,
    .jd-article-layout {
        flex-direction: column;
    }

    .pkp_structure_main,
    .pkp_structure_sidebar,
    .jd-article-main,
    .jd-article-sidebar {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    .jd-topbar .jd-container {
        flex-direction: column;
        gap: 6px;
    }

    .jd-navbar .jd-container {
        min-height: 80px;
    }

    .jd-navigation {
        display: none; /* Handled via JS toggle */
    }

    .jd-mobile-toggle {
        display: block;
    }

    .jd-stats-grid {
        grid-template-columns: 1fr;
    }

    .jd-stat-card {
        border-right: none;
    }

    .jd-articles-grid {
        grid-template-columns: 1fr;
    }

    .jd-feature-grid {
        grid-template-columns: 1fr;
    }

    .jd-bottom-grid {
        grid-template-columns: 1fr;
    }

    .jd-footer-grid {
        grid-template-columns: 1fr;
    }

    .jd-footer-bottom .jd-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
