/* Journal Mobile Styles */
.journal-hero-banner {
    width: 100%;
    height: 336px;
    /* Increased to compensate for padding (280 + 56) */
    background-image: url('../../assets/images/journal_hero_ai.png');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;
    margin-top: -56px;
    padding-top: 56px;
    box-sizing: border-box;
}

.journal-hero-banner .container {
    transform: translateY(-30px);
}

.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;
    margin: 20px auto 0;
    position: relative;
    z-index: 10;
    padding-top: 0;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

/* Mobile Hero Redesign */
.j-hero-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 20px;
    margin-bottom: 5px !important;
}

.j-3d-stage {
    perspective: 1200px;
    width: 200px;
    height: 280px;
    flex-shrink: 0;
    margin: 0 auto 20px;
    transform: scale(1);
}

.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: rotateY(0deg);
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.25);
    position: relative;
}

.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 !important;
    width: 100%;
}

.j-tag {
    display: inline-block;
    background: transparent;
    color: var(--j-accent);
    padding: 0;
    border-radius: 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.j-headline {
    color: #0f172a;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.j-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.j-meta-row {
    justify-content: flex-start;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    text-align: left;
    width: 100%;
    gap: 40px;
}

.j-meta h4 {
    margin: 0 0 4px;
    color: #0f172a;
    font-size: 1.1rem;
}

.j-meta p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.j-btn-row {
    display: flex;
    flex-direction: row !important;
    gap: 10px;
    width: 100%;
}

.j-btn {
    flex: 1;
    justify-content: center;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
    cursor: pointer;
    height: 48px;
    display: flex;
    align-items: center;
}

.j-btn-fill {
    background: var(--j-primary);
    color: #fff;
    border: 1px solid var(--j-primary);
}

.j-btn-outline {
    border: 1px solid var(--j-primary);
    color: var(--j-primary);
    background: transparent;
}

/* Sections */
.j-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 5px !important;
}

.j-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.j-service-card {
    background: #fff;
    border: 1px solid var(--j-border);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.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);
}

/* Card Preview */
.j-card-preview {
    background: #fff;
    border: 1px solid var(--j-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.j-thumb-box {
    height: 180px;
    background: var(--j-bg-thumb);
    overflow: hidden;
}

.j-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.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;
}

/* Preview Section */
.j-preview-section {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.j-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--j-primary);
    padding-bottom: 8px;
}

.j-issue-grid {
    display: flex !important;
    overflow-x: auto !important;
    gap: 15px;
    padding-bottom: 10px;
    /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin-right: -14px;
    /* Counteract padding-right slightly to allow scroll to edge */
    padding-right: 14px;
    /* Add padding end */
}

.j-issue-card {
    background: white;
    border: 1px solid var(--j-border);
    border-radius: 8px;
    padding: 15px 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    gap: 15px;
    align-items: center;
    min-width: 88% !important;
    /* Show most of card, peek next */
    box-sizing: border-box;
    scroll-snap-align: center;
}

.j-issue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--j-accent);
}

/* TOC */
.j-toc-container {
    background: #fff;
    border: 1px solid var(--j-border);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 60px;
}

.j-toc-header {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.6rem;
    color: var(--j-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--j-border);
}

/* TOC Styles */
.j-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.j-toc-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    transition: background 0.2s;
}

.j-toc-item:last-child {
    border-bottom: none;
}

.j-toc-page-num {
    font-family: 'Playfair Display', serif;
    color: var(--j-accent);
    font-size: 1rem;
    font-style: italic;
    text-align: left;
    width: auto;
    opacity: 0.9;
    padding-left: 20px;
}

.j-toc-info {
    width: 100%;
    padding-left: 20px !important;
}

.j-article-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--j-primary);
    margin-bottom: 6px;
    text-decoration: none;
    line-height: 1.4;
}

.j-article-authors {
    font-size: 0.9rem;
    color: #64748b;
    font-style: normal;
    font-weight: 500;
}

.j-toc-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 5px;
}

.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;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    /* Full width button on mobile */
    justify-content: center;
    margin-left: 20px;
}

/* General Components - Premium Redesign */
.j-editorial-section {
    background: #fff;
    border: none;
    border-top: 4px solid var(--j-accent);
    border-radius: 4px;
    border-radius: 4px;
    padding: 25px 12px 25px 32px;
    margin-bottom: 20px;
}

.j-toc-container {
    background: #fff;
    border: none;
    border-top: 4px solid var(--j-accent);
    border-radius: 4px;
    padding: 25px 5px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.j-toc-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--j-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    letter-spacing: -0.5px;
    padding-left: 10px;
}


.j-toc-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10px;
    width: 60px;
    height: 3px;
    background: var(--j-accent);
}

/* Cover Person Mobile */
.j-cover-person-box {
    flex-direction: column;
    text-align: center;
    padding: 25px;
    gap: 20px;
}

.j-cp-visual {
    margin: 0 auto;
}

.j-board-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 15px;
    /* Vertical gap 20px, Horizontal 15px */
    margin-top: 25px;
}

.j-board-member {
    text-align: left;
    padding-bottom: 0;
    border-bottom: none;
}



.j-member-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--j-accent);
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
    letter-spacing: 0.5px;
}

.j-member-name {
    font-weight: 700;
    color: var(--j-primary);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.j-member-inst {
    font-size: 0.8rem;
    color: var(--j-text-sub);
    line-height: 1.4;
}

/* Subscribe Banner */
.j-subscribe-banner {
    background-color: #f8fafc;
    border: none;
    border-radius: 8px;
    padding: 30px 12px;
    text-align: center;
    margin: 0 15px 20px 15px;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.j-sub-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--j-primary);
    margin-bottom: 10px;
}

.j-sub-text {
    color: var(--j-text-sub);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.j-sub-btn {
    padding: 8px;
    font-size: 0.75rem;
    background-color: var(--j-accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    width: 160px !important;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.2);
    display: block;
    margin: 5px auto;
}

/* 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;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.j-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.j-modal-card {
    background: #fff;
    width: 80%;
    max-width: 320px;
    /* Smaller max width */
    padding: 15px 20px;
    /* Reduced padding */
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(30px);
    transition: transform 0.3s;
    max-height: 80vh;
    overflow-y: auto;
}

.j-modal-overlay.active .j-modal-card {
    transform: translateY(0);
}

.j-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.j-modal-header {
    text-align: center;
    margin-bottom: 15px;
}

.j-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--j-primary);
    margin-bottom: 5px;
}

.j-modal-desc {
    font-size: 0.8rem;
    color: var(--j-text-sub);
}

.j-form-group {
    margin-bottom: 12px;
    text-align: left;
}

.j-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--j-primary);
    margin-bottom: 4px;
}

.j-input,
.j-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.j-submit-btn {
    width: 100%;
    padding: 10px;
    background: var(--j-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

/* Pagination */
.j-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.j-page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f5f9;
    color: var(--j-text-main);
    text-decoration: none;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.j-page-btn:active {
    background: #e2e8f0;
}

.j-page-btn.active {
    background: var(--j-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.3);
}

.j-page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f8fafc;
}