/* ===== Page Header Override ===== */
.page-header {
    background-image: url('../images/banners/news.webp');
}

/* ===== Hero Banner ===== */
.hero-banner {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 50px;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 102, 204, 0.85), rgba(0, 102, 204, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--secondary-color);
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }
    .hero-banner {
        height: 250px;
    }
    .hero-title {
        font-size: 28px;
    }
}

/* ===== Filter Section ===== */
.filter-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.category-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* ===== News Grid Layout ===== */
.news-section {
    padding-bottom: 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Newsletter Section ===== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 60px 0;
    margin-top: 80px;
}

.newsletter-content {
    text-align: center;
    color: var(--secondary-color);
}

.newsletter-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    outline: none;
}

.newsletter-btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    background-color: var(--text-dark);
    color: var(--secondary-color);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: #000000;
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        width: 100%;
    }
}
