/* News Page Styles */
.news-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-header h2 {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 10px;
    color: var(--common-text-color);
}

.news-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

.news-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--link-text-color);
    background: transparent;
    color: var(--link-text-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-weight: var(--font-weight-normal);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--link-text-color);
    color: var(--common-bg-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: 40px;
}

.news-card {
    background-color: var(--common-third-color-bg);
    border-radius: var(--border-radius-small);
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
    border-left: 4px solid var(--link-text-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.news-card.Announcements {
    border-left-color: #22c55e;
}

.news-card.Updates {
    border-left-color: #f59e0b;
}

.news-card.Features {
    border-left-color: #06b6d4;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.news-date {
    color: #a0a0a0;
}

.news-category {
    background-color: var(--common-second-bg-color);
    padding: 4px 12px;
    border-radius: 15px;
    color: var(--common-text-color);
    text-transform: capitalize;
    font-weight: var(--font-weight-normal);
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--common-text-color);
    line-height: 1.3;
    font-weight: var(--font-weight-bold);
}

.news-excerpt {
    color: #c7c7c7;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.read-more-btn {
    background: var(--link-text-color);
    color: var(--common-bg-color);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
}

.read-more-btn:hover {
    background: var(--link-hover-text-color);
}

/* Modal Styles */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.news-modal-content {
    background: var(--common-second-bg-color);
    border-radius: var(--border-radius-main);
    padding: 30px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #a0a0a0;
    transition: color 0.2s ease-in-out;
}

.close-btn:hover {
    color: var(--common-text-color);
}

.news-modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--common-text-color);
    font-weight: var(--font-weight-bold);
}

.news-modal-content .news-meta {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--common-third-color-bg);
}

.news-content {
    line-height: 1.8;
    color: var(--common-text-color);
}

.news-content p {
    margin-bottom: 15px;
}

.news-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.news-content li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-header h2 {
        font-size: 1.6rem;
    }

    .news-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        padding: 20px;
    }

    .news-modal {
        padding: 15px;
    }

    .news-modal-content {
        padding: 25px;
    }

    .news-modal-content h2 {
        font-size: 1.4rem;
    }
}