/* Journal Desktop Styles */
.journal-hero-banner {
    width: 100%;
    height: 400px;
    background-image: url('../../assets/images/journal_hero_ai.png');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;
}

.j-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

.journal-wrapper {
    --j-bg-card: #ffffff;
    --j-bg-thumb: #f1f5f9;
    --j-primary: #0f172a;
    --j-accent: #2980b9;
    --j-text-main: #1f2937;
    --j-text-sub: #64748b;
    --j-border: #e2e8f0;
    --j-hover-bg: #f8fafc;
    font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    max-width: 1280px;
    margin: 40px auto 0;
    /* Positive spacing */
    position: relative;
    z-index: 10;
    padding-top: 0;
}

.journal-wrapper * {
    box-sizing: border-box;
}

.j-hero-section {
    display: flex;
    gap: 60px;
    padding: calc(50px * var(--hero-ratio, 1));
    background: var(--j-bg-card);
    border: 1px solid var(--j-border);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
    align-items: center;
}

.j-3d-stage {
    perspective: 1200px;
    width: 260px;
    height: 360px;
    flex-shrink: 0;
}

.j-cover-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 4px 10px 10px 4px;
    color: #fff;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform-style: preserve-3d;
    transform-origin: left center;
    transform: rotateY(-25deg);
    transition: transform 0.5s;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.25);
    position: relative;
}

.j-3d-stage:hover .j-cover-card {
    transform: rotateY(0deg) scale(1.02);
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.j-cover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12px;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.j-cover-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 0.95;
    margin-top: 10px;
}

.j-info-col {
    flex: 1;
    text-align: left;
}

.j-tag {
    color: var(--j-accent);
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.j-headline {
    color: var(--j-primary);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 2.2rem;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.j-text {
    color: var(--j-text-sub);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.j-meta-row {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid var(--j-border);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.j-meta h4 {
    margin: 0;
    color: var(--j-primary);
    font-size: 1.1rem;
}

.j-meta p {
    margin: 0;
    color: var(--j-text-sub);
    font-size: 0.85rem;
}

.j-btn-row {
    display: flex;
    gap: 15px;
}

.j-btn {
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
    cursor: pointer;
}

.j-btn-fill {
    background: var(--j-primary);
    color: #fff;
    border: 1px solid var(--j-primary);
}

.j-btn-fill:hover {
    background: #1a252f;
}

.j-btn-outline {
    border: 1px solid var(--j-primary);
    color: var(--j-primary);
    background: transparent;
}

.j-btn-outline:hover {
    background: #f8fafc;
}

.j-preview-section {
    margin-top: 40px;
    margin-bottom: 60px;
}

.j-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--j-primary);
    padding-bottom: 10px;
}

.j-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.j-card-preview {
    background: #fff;
    border: 1px solid var(--j-border);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.j-card-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.j-thumb-box {
    height: 180px;
    background: var(--j-bg-thumb);
    overflow: hidden;
}

.j-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.j-card-preview:hover .j-thumb-img {
    transform: scale(1.08);
}

.j-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.j-card-tag {
    font-size: 0.7rem;
    color: var(--j-accent);
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.j-card-title {
    margin: 0;
    color: var(--j-primary);
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
}

.j-toc-container {
    background: #fff;
    border: 1px solid var(--j-border);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 60px;
}

/* TOC - Premium Redesign */
.j-toc-container {
    background: #fff;
    border: none;
    border-top: 4px solid var(--j-accent);
    border-radius: 4px;
    padding: 50px;
    margin-bottom: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    /* Premium shadow */
}

.j-toc-header {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--j-primary);
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    letter-spacing: -0.5px;
}


.j-toc-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--j-accent);
}

/* Cover Person Section */
.j-cover-person-box {
    background: white;
    border: 1px solid var(--j-border);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.j-cover-person-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #cbd5e1;
}

.j-cp-visual {
    width: 100px;
    height: 100px;
    background: var(--j-bg-thumb);
    border: 1px solid var(--j-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2.5rem;
    color: #94a3b8;
}

.j-cp-content h4 {
    margin: 0 0 8px 0;
    color: var(--j-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.j-cp-content p {
    margin: 0;
    color: var(--j-text-sub);
    line-height: 1.6;
    font-size: 1rem;
}

.j-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 380px;
}

.j-toc-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin-bottom: 5px;
    animation: fadeIn 0.4s ease backwards;
}

.j-toc-item:hover {
    background: linear-gradient(to right, #ffffff, #fdfaf5);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-bottom-color: transparent;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.j-toc-item:last-child {
    border-bottom: none;
}

.j-toc-page-num {
    font-family: 'Playfair Display', serif;
    color: #cbd5e1;
    /* Subtle numbering */
    font-size: 1.25rem;
    font-style: italic;
    width: 80px;
    flex-shrink: 0;
    text-align: center;
    padding-top: 0;
    transition: color 0.3s;
}

.j-toc-item:hover .j-toc-page-num {
    color: var(--j-accent);
}

.j-toc-info {
    flex: 1;
}

.j-article-title {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--j-primary);
    margin-bottom: 6px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.4;
    transition: color 0.2s;
}

.j-article-title:hover {
    color: var(--j-accent);
}

.j-article-authors {
    font-size: 0.9rem;
    color: #64748b;
    font-style: normal;
    /* Modern clean look */
    font-weight: 500;
    letter-spacing: 0.2px;
}

.j-toc-actions {
    display: flex;
    align-items: center;
}

.j-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1px solid var(--j-border);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--j-text-sub);
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.j-pdf-btn:hover {
    border-color: var(--j-accent);
    background: var(--j-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.2);
    transform: translateY(-1px);
}

.j-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--j-border);
}

.j-page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--j-border);
    background: #fff;
    color: var(--j-text-main);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

.j-page-btn:hover:not(.disabled) {
    border-color: var(--j-primary);
    color: var(--j-primary);
}

.j-page-btn.active {
    background: var(--j-primary);
    color: #fff;
    border-color: var(--j-primary);
}

.j-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8fafc;
}

/* Subscribe Banner */
.j-subscribe-banner {
    background-color: #f8fafc;
    border: 1px solid var(--j-border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

.j-sub-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.8rem;
    color: var(--j-primary);
    margin-bottom: 10px;
}

.j-sub-text {
    color: var(--j-text-sub);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.j-sub-btn {
    padding: 14px 40px;
    font-size: 1.1rem;
    background-color: var(--j-accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(41, 128, 185, 0.2);
}

.j-sub-btn:hover {
    background-color: #2471a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(41, 128, 185, 0.3);
}

/* Modals */
.j-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.j-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.j-modal-card {
    background: #fff;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.j-modal-overlay.active .j-modal-card {
    transform: translateY(0);
}

.j-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.j-close-btn:hover {
    color: var(--j-primary);
}

.j-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.j-modal-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.6rem;
    color: var(--j-primary);
    margin-bottom: 5px;
}

.j-modal-desc {
    font-size: 0.9rem;
    color: var(--j-text-sub);
}

.j-form-group {
    margin-bottom: 15px;
    text-align: left;
}

.j-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--j-primary);
    margin-bottom: 5px;
}

.j-input,
.j-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.j-input:focus,
.j-select:focus {
    outline: none;
    border-color: var(--j-accent);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

.j-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--j-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.j-submit-btn:hover {
    background: #1a252f;
}

.j-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.j-service-card {
    background: #fff;
    border: 1px solid var(--j-border);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}

.j-service-card:hover {
    transform: translateY(-5px);
    border-color: var(--j-accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.j-service-icon {
    font-size: 2rem;
    color: var(--j-accent);
    margin-bottom: 15px;
    display: block;
}

.j-service-title {
    font-weight: 700;
    color: var(--j-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.j-service-desc {
    font-size: 0.8rem;
    color: var(--j-text-sub);
}

.j-editorial-section {
    background: #fff;
    border: 1px solid var(--j-border);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 50px;
}

.j-board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.j-board-member {
    text-align: left;
}

.j-member-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--j-accent);
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.j-member-name {
    font-weight: 700;
    color: var(--j-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.j-member-inst {
    font-size: 0.85rem;
    color: var(--j-text-sub);
}