
.article-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.article-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.article-modal-close {
    color: #fff;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
}

.article-modal-close:hover,
.article-modal-close:focus {
    background-color: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

#articleModalBody {
    padding: 40px;
}

#modalArticleTitle {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

#modalArticleImage {
    margin: 20px 0;
}

.modal-article-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#modalArticleAuthor {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
}

#modalArticleContent {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin: 25px 0;
    text-align: justify;
}

#modalArticleDate {
    font-size: 0.9rem;
    color: #95a5a6;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}


@media (max-width: 768px) {
    .article-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 90vh;
    }

    #articleModalBody {
        padding: 25px 20px;
    }

    #modalArticleTitle {
        font-size: 1.5rem;
    }

    #modalArticleContent {
        font-size: 1rem;
    }

    .article-modal-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}


.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.article-link:hover {
    transform: scale(1.02);
}

.article-link .item {
    cursor: pointer;
}
