.article-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.sub-article-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-top: 50px;
    gap: 40px;
}

.article-cover-flex {
    width: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a365d 0%, #2a6496 40%, #3a7fb5 70%, #1a365d 100%);
}

.article-cover-flex::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        /* Dot grid pattern */
        radial-gradient(1.5px 1.5px at 20px 20px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1.5px 1.5px at 60px 80px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1.5px 1.5px at 100px 40px, rgba(255,255,255,0.18), transparent),
        radial-gradient(1.5px 1.5px at 140px 100px, rgba(255,255,255,0.12), transparent),
        radial-gradient(1.5px 1.5px at 180px 60px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1.5px 1.5px at 220px 120px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1.5px 1.5px at 260px 30px, rgba(255,255,255,0.18), transparent),
        radial-gradient(1.5px 1.5px at 300px 90px, rgba(255,255,255,0.12), transparent),
        /* Diagonal line pattern */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.03) 40px,
            rgba(255,255,255,0.03) 41px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.02) 40px,
            rgba(255,255,255,0.02) 41px
        );
    background-size:
        200px 200px,
        200px 200px,
        200px 200px,
        200px 200px,
        200px 200px,
        200px 200px,
        200px 200px,
        200px 200px,
        auto, auto;
}

.article-cover-flex::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        /* Top accent line */
        linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.08) 80%, transparent 95%) no-repeat,
        /* Bottom accent line */
        linear-gradient(90deg, transparent 5%, rgba(255,255,255,0.06) 20%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.06) 80%, transparent 95%) no-repeat;
    background-size: 100% 1px, 100% 1px;
    background-position: top 30px center, bottom 30px center;
}

.article-cover {
    width: 20%;
    height: 400px;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.article-cover img {
    margin-top: 80px;
    margin-bottom: 20px;
    height: 250px;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: inset 0px 0px 10px #0000004d, 0px 5px 5px #00000082;
}

.article-info {
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 20px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.article-info .paper-type {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    padding: 5px 10px;
    border:#ffffff 1px solid;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
}

.article-info .issue-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    line-height: 1.3;
}

.article-info .issue-meta {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 12px 0;
}

/* --- Description with Read More --- */
.issue-description-wrap {
    margin: 8px 0 16px 0;
    max-width: 90%;
}

.issue-description-short,
.issue-description-full {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.read-more-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.read-more-btn:hover {
    color: #ffffff;
}

/* --- Issue Actions (Download Button) --- */
.issue-actions {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    bottom: 10px;
    padding-top: 16px;
    gap: 10px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px);
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.download-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.download-icon {
    width: 18px;
    height: 18px;
}

.download-btn svg {
    fill: #ffffff;
    stroke: #ffffff;
    width: 10px;
    height: 10px;
}

/* --- View Count (bottom-right) --- */
.view-count {
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}
.page-no {
    position: absolute;
    bottom: 10px;
    right: 140px;
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.35);
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}


.article-content {
    width: 65vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 50px;
}

.article-sidebar {
    width: 30vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-right: 50px;
}

.article-sidebar img {
    margin-top: 20px;
    height: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.article-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    width: 100%;
}

.article-title {
    font-size: 24px;
    font-weight: bold;
    color: #303360;
    margin-bottom: 10px;
}

.article-authors {
    font-size: 16px;
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.corresponding-author-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.article-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.article-meta a {
    color: #303360;
    text-decoration: none;
}

.article-abstract {
    margin-bottom: 30px;
    text-align: justify;
}

.article-abstract h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #ce6738;
    display: inline-block;
}

.article-keywords {
    margin-bottom: 20px;
    font-size: 14px;
}

.article-keywords strong {
    color: #333;
}

.article-references {
    /* margin-top: 40px; */
    width: 100%;
}

.article-references h3 {
    font-size: 18px;
    color: #333;
    /* margin-bottom: 15px; */
    border-bottom: 2px solid #ce6738;
    display: inline-block;
}

.article-references ol {
    padding-left: 20px;
}

.article-references li {
    /* margin-bottom: 10px; */
    font-size: 14px;
    color: #444;
}

.read-more-but {
    font-size: 12px;
    color: #303360;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.read-more {
    font-size: 12px;
    display: none;
    flex-direction: column;
}

.read-more p {
    margin-bottom: 5px;
    /* font-size: 14px; */
}

.timeline {
    display: flex;
    flex-direction: row;
    gap: 5px;
    margin-top: 10px;
}

.article-stats-section {
    width: 100%;
    max-width: 560px;
    margin: 20px 0 24px;
}

.article-stats-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
    border-bottom: 2px solid #ce6738;
    display: inline-block;
}

.article-stats-panel {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(48, 51, 96, 0.06);
    overflow: hidden;
}

.article-stats-panel .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-top: 1px solid #e5e7f0;
}

.article-stats-panel .stat-item:first-child {
    border-top: none;
}

.stat-label {
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-subtext {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 6px;
}

.stat-value {
    color: #303360;
    font-size: 24px;
    font-weight: 800;
    min-width: 70px;
    text-align: right;
}

.sidebar-widget {
    width: 100%;
    display: flex;
    gap: 30px;
    flex-direction: column;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #303360;
    text-transform: uppercase;
    padding-bottom: 10px;
    display: inline-block;
    text-decoration: underline #303360 2px;
    text-underline-offset: 5px;
}

.share-card {
    background: #ffffff;
    border: 1px solid #d1d1d1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.08);
    padding: 20px;
}

.share-btn-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #d1d1d1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.share-btn i {
    font-size: 1.2rem;
    color: #555;
    transition: color 0.2s ease;
}

.share-btn .x-icon {
    width: 1.1rem;
    height: 1.1rem;
    fill: #555;
    transition: fill 0.2s ease;
}

/* Hover states */
.share-btn:hover {
    border-color: #303360;
}

.share-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}
.share-btn.facebook:hover i { color: #fff; }

.share-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}
.share-btn.whatsapp:hover i { color: #fff; }

.share-btn.twitter:hover {
    background: #000;
    border-color: #000;
}
.share-btn.twitter:hover .x-icon { fill: #fff; }

.share-btn.linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}
.share-btn.linkedin:hover i { color: #fff; }

.share-btn.email:hover {
    background: #ea4335;
    border-color: #ea4335;
}
.share-btn.email:hover i { color: #fff; }

/* ===== Mobile Responsive: 1024px and below ===== */
@media (max-width: 1024px) {
    .article-content {
        width: 100%;
        margin-left: 0;
        padding: 0 20px;
    }

    .article-sidebar {
        width: 100%;
        margin-right: 0;
        padding: 0 20px;
    }

    .sub-article-container {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }

    .article-cover {
        width: 30%;
        height: auto;
    }

    .article-cover img {
        margin-top: 50px;
        height: 200px;
    }

    .article-info {
        width: 65%;
    }

    .article-info .issue-title {
        font-size: 1.5rem;
    }

    .issue-actions {
        position: static;
        margin-top: 12px;
    }

    .view-count,
    .page-no {
        position: static;
        display: inline-block;
        margin-top: 8px;
        margin-right: 8px;
    }
}

/* ===== Mobile: 768px and below ===== */
@media (max-width: 768px) {
    .article-cover-flex {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px 16px 24px;
        height: 100vh;
    }

    .article-cover-flex::after {
        display: none;
    }

    .article-cover {
        width: 50%;
        max-width: 200px;
        height: auto;
        margin-bottom: 16px;
    }

    .article-cover img {
        margin-top: 0;
        margin-bottom: 0;
        height: auto;
        width: 100%;
        max-height: 220px;
        object-fit: contain;
    }

    .article-info {
        width: 100%;
        margin-left: 0;
        align-items: center;
        text-align: center;
    }

    .article-info .issue-title {
        font-size: 1.25rem;
        text-align: center;
        word-break: break-word;
    }

    .article-info .paper-type {
        font-size: 0.8rem;
    }

    .article-info .issue-meta {
        font-size: 0.85rem;
        text-align: center;
    }

    .issue-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .download-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .view-count,
    .page-no {
        font-size: 0.75rem;
        padding: 4px 10px;
        margin: 4px;
    }

    .sub-article-container {
        margin-top: 0;
        gap: 20px;
    }

    .article-content {
        padding: 0 16px;
        width: 100%;
    }

    .article-title {
        font-size: 1.2rem;
        margin-top: 20px;
    }

    .article-authors {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .article-meta {
        font-size: 0.85rem;
    }

    .article-abstract h3,
    .article-stats-section h3 {
        font-size: 1rem;
    }

    .article-abstract {
        text-align: left;
    }

    .article-abstract p {
        font-size: 0.95rem;
    }

    .article-keywords {
        font-size: 0.85rem;
    }

    .timeline {
        flex-direction: column;
        gap: 2px;
    }

    .article-sidebar {
        padding: 0 16px;
        margin-bottom: 30px;
    }

    .sidebar-widget {
        gap: 20px;
    }

    .share-title {
        font-size: 1rem;
    }

    .share-btn-wrapper {
        justify-content: center;
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }

    .share-btn i {
        font-size: 1rem;
    }

    .share-btn .x-icon {
        width: 1rem;
        height: 1rem;
    }

    /* Citation panel mobile adjustments */
    .citation-panel {
        padding: 12px;
    }

    .citation-item {
        padding: 8px 40px 8px 8px;
    }

    .citation-label {
        font-size: 0.8rem;
    }

    .citation-text {
        font-size: 0.78rem;
    }

    .article-stats-section {
        padding: 0;
        max-width: 100%;
    }

    .article-stats-panel .stat-item {
        flex-direction: column;
        gap: 8px;
        padding: 14px 16px;
    }

    .stat-info {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 4px;
        margin-top: 10px;
    }

    .stat-value {
        text-align: left;
        font-size: 1.2rem;
        min-width: auto;
    }
}

/* ===== Small phones: 480px and below ===== */
@media (max-width: 480px) {
    .article-cover-flex {
        padding: 10px 12px 20px;
        margin-top: 70px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .article-cover {
        width: 60%;
        max-width: 150px;
    }

    .article-info .issue-title {
        font-size: 1.1rem;
    }

    .article-title {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .issue-actions {
        gap: 6px;
    }

    .download-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
        gap: 4px;
    }

    .article-content {
        padding: 0 12px;
    }

    .article-sidebar {
        padding: 0 12px;
    }

    .citation-item {
        padding: 6px 36px 6px 6px;
    }

    .citation-copy-btn {
        width: 26px;
        height: 26px;
        top: 6px;
        right: 6px;
    }

    .citation-copy-btn svg {
        width: 12px;
        height: 12px;
    }
}