.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* margin-top: 20px; */
    gap: 40px;
    /* padding: 0 20px; */
    background-color: #e9eef3;
}

.sub-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.article-cover-flex {
    width: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding-top: 30px;
    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 .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-wrap p {
    margin: 0;
    padding: 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}

.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;
    bottom: 10px;
    padding-top: 16px;
}

.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;
}

/* --- 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;
}

.articles {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 40px;
    margin-top: 0;
    /* background-color: aqua; */
}



.article {
    background-color: #ffffff;
    padding: 20px 20px;
    border: 1px solid #d1d1d1;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0px 2px 10px #cacacaa1;
    width: 100%;
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article:hover {
    border: 2px solid #303360;
    transform: translateY(-4px);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.12);
}

.paper-type {
    font-size: 15px;
    color: #303360;
    font-weight: bold;
    margin-bottom: 10px;
    text-decoration: underline #ce6738 2px;
}

.title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.title:hover {
    cursor: pointer;
    line-clamp: 1;
    color: #3d5687;
}

.authors {
    font-size: 14px;
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
}

.articles svg {
    width: 18px;
}

#articles-header {
    text-decoration: underline #303360;
    text-underline-offset: 5px;
}

.articles .docs {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.article a {
    text-decoration: none;
}

.abstract-link {
    color: #303360;
}

.pdf-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
    color: #ffffff;
    padding: 6px 12px;
    background-color: #303360;
    border-radius: 15px;
}

.pdf-link:hover {
    background-color: #505080;
}

/* --- Share Sidebar --- */
.detail {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-right: 40px;
}

.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; }

/* Tablet Responsive */
@media (max-width: 1024px) {
    .container {
        gap: 30px;
        
    }

    .sub-container {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

    .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-description-wrap {
        max-width: 100%;
    }

    .issue-actions {
        position: static;
        margin-top: 12px;
    }

    .view-count {
        position: static;
        display: inline-block;
        margin-top: 8px;
        margin-right: 8px;
    }

    .articles {
        width: 100%;
        margin-left: 0;
        padding: 0 20px;
    }

    .detail {
        width: 100%;
        margin-right: 0;
        padding: 0 20px;
    }

    .detail img {
        height: 200px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        gap: 50px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .article-cover-flex {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 16px 24px;
        padding-top: 80px;
        height: 100vh;
    }

    .article-cover-flex::after {
        display: none;
    }

    #desc-short, #desc-full {
        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;
        padding: 0;
        align-items: center;
        text-align: center;
    }

    .article-info .issue-title {
        font-size: 1.25rem;
        text-align: center;
        word-break: break-word;
    }

    .article-info .issue-meta {
        font-size: 0.85rem;
        text-align: center;
    }

    .issue-description-wrap {
        display: none;
    }

    .issue-description-short,
    .issue-description-full {
        font-size: 0.88rem;
    }

    .issue-actions {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }

    .download-btn {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .view-count {
        position: static;
        display: inline-block;
        font-size: 0.75rem;
        padding: 4px 10px;
        margin: 4px;
    }

    .sub-container {
        margin-top: 0;
        gap: 20px;
        padding: 0 20px;
    }

    .detail {
        width: 100%;
        align-items: flex-start;
        margin-bottom: 20px;
        margin-right: 0;
        padding: 0;
    }

    .share-btn-wrapper {
        justify-content: center;
    }

    .articles {
        width: 100%;
        align-items: stretch;
        margin-top: 20px;
        margin-left: 0;
        padding: 0;
    }

    #articles-header {
        margin-bottom: 25px;
    }

    .article {
        padding: 16px 18px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .authors {
        font-size: 13px;
        margin-bottom: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        gap: 40px;
        margin-bottom: 25px;
    }

    .sub-container {
        gap: 20px;
        padding: 0 16px;
    }

    .article-cover-flex {
        padding: 16px 12px 20px;
        padding-top: 80px;
    }

    #desc-short, #desc-full {
        display: none;
    }

    .issue-description-wrap {
        display: none;
    }

    .article-cover {
        width: 60%;
        max-width: 150px;
    }

    .article-info .issue-title {
        font-size: 1.1rem;
    }

    .issue-actions {
        gap: 6px;
    }

    .download-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
        gap: 4px;
    }

    .view-count {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .detail {
        width: 100%;
        margin-bottom: 15px;
    }

    .share-btn {
        width: 38px;
        height: 38px;
    }

    .share-btn i {
        font-size: 1rem;
    }

    .share-btn .x-icon {
        width: 0.95rem;
        height: 0.95rem;
    }

    .articles {
        width: 100%;
        margin-top: 15px;
    }

    #articles-header {
        margin-bottom: 20px;
        font-size: 18px;
    }

    .article {
        padding: 14px 15px;
        margin-bottom: 18px;
        border-radius: 3px;
    }

    .title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .authors {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .articles .docs {
        gap: 16px;
        margin-top: 10px;
        flex-wrap: wrap;
    }

    .pdf_icon {
        height: 16px;
    }
}