/* news.css */

/* --- News Modal Styles --- */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.news-modal-overlay.active {
    display: flex;
}

.news-modal-content {
    background-color: #ffffff;
    color: #0f172a;
    padding: 40px 50px;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInModal 0.5s ease-out;
    max-height: 90vh; /* Added for scrolling */
    overflow-y: auto;  /* Added for scrolling */
}

body.dark-theme .news-modal-content {
    background-color: #0f172a;
    color: #e2e8f0;
    border: 1px solid #1e293b;
}

/* --- Custom Scrollbar Styles --- */
.news-modal-content::-webkit-scrollbar { width: 12px; }
.news-modal-content::-webkit-scrollbar-track { background: #e9ecef; border-radius: 10px; }
.news-modal-content::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 10px; border: 3px solid #e9ecef; }
.news-modal-content::-webkit-scrollbar-thumb:hover { background: #6c757d; }
body.dark-theme .news-modal-content::-webkit-scrollbar-track { background: #0f172a; }
body.dark-theme .news-modal-content::-webkit-scrollbar-thumb { background: #334155; border-color: #0f172a; }
body.dark-theme .news-modal-content::-webkit-scrollbar-thumb:hover { background: #475569; }


@keyframes fadeInModal {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-news-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
    z-index: 2;
}
.close-news-btn:hover {
    color: #1e293b;
    transform: rotate(90deg);
}
body.dark-theme .close-news-btn { color: #94a3b8; }
body.dark-theme .close-news-btn:hover { color: #ffffff; }

.news-body h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    line-height: 1.2;
}
.news-body .news-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 25px;
}
body.dark-theme .news-body .news-meta { color: #94a3b8; }
.news-body img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
}
.news-body p, .news-body li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
