/* News Module Styles */

.news-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 74, 198, 0.12);
    border-color: rgba(0, 74, 198, 0.25);
}

.news-card .news-thumbnail {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-thumbnail {
    transform: scale(1.06);
}

/* Category Filter Tabs Active State */
.filter-tab-btn {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-tab-btn.active {
    background-color: #004ac6;
    color: #ffffff;
    border-color: #004ac6;
    box-shadow: 0 10px 20px -5px rgba(0, 74, 198, 0.35);
}

.filter-tab-btn.active .filter-count-badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Article Modal Transition */
.article-modal-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.article-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.article-modal-content {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-modal-backdrop.open .article-modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Reader Typography Styles */
.article-reader-body {
    color: #334155;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-reader-body p {
    margin-bottom: 1.25rem;
}

.article-reader-body h3, 
.article-reader-body h4 {
    color: #0b1c30;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-reader-body strong {
    color: #0f172a;
}

.article-reader-body ul, 
.article-reader-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.article-reader-body li {
    margin-bottom: 0.5rem;
}

/* Custom Scrollbar for Modal */
.modal-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.modal-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.modal-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Item Animation on Filter */
.news-grid-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.news-grid-item.hidden-by-filter {
    display: none !important;
}

/* Toast notification */
#news-copy-toast {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
