/* Article Detail View Styles */

/* HIDE SCROLLBAR GLOBALLY FOR THIS VIEW */
/* For Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* For IE, Edge and Firefox */
html,
body {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.article-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 9999;
    /* Maintain functionality */
    overflow-y: scroll;
    overflow-x: hidden;
    display: none;
    animation: slideUp 0.4s ease-out;

    /* Extra safety for hiding scrollbar inside modal */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.article-detail-modal::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Prevent double scrolling when modal is open */
body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}

.article-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--primary-red);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s;
}

.article-close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    background: white;
    color: var(--primary-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.article-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 20px 100px 20px;
}

/* Rest of the styles remain same... */
.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.article-tag-detail {
    color: var(--primary-red);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.article-title-detail {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta-detail {
    color: #888;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.article-hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
    font-family: 'Georgia', serif;
}

.article-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.article-body p {
    margin-bottom: 30px;
}

.article-body blockquote {
    border-left: 5px solid var(--primary-red);
    padding-left: 20px;
    font-style: italic;
    font-size: 1.25rem;
    color: #555;
    margin: 40px 0;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 0 12px 12px 0;
}

.article-author-box {
    margin-top: 80px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid #eee;
}

.author-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.author-info p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.95rem;
}

.btn-contact-author {
    background: var(--primary-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

@media (max-width: 600px) {
    .article-title-detail {
        font-size: 2rem;
    }

    .article-author-box {
        flex-direction: column;
        text-align: center;
    }

    .article-container {
        padding-top: 80px;
    }
}