/* style/news.css */

/* General styles for the news page content */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #f8f9fa; /* Light background for readability */
}

.page-news .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news h1,
.page-news h2,
.page-news h3 {
    color: #C0392B; /* Primary color for headings */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news h1 {
    font-size: 2.8em;
    text-align: center;
    line-height: 1.2;
}

.page-news h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-news h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.page-news p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-news a {
    color: #F39C12; /* Accent color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news a:hover {
    color: #e67e22; /* Slightly darker accent on hover */
}

/* Hero Banner Section */
.page-news .hero-banner {
    background: linear-gradient(135deg, #C0392B, #F39C12);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-news .hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay for text readability */
    z-index: 1;
}

.page-news .hero-banner .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news .hero-banner .hero-content h1 {
    color: #ffffff;
    font-size: 3.5em;
    margin-bottom: 20px;
}

.page-news .hero-banner .hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-news .hero-banner .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content */
}

.page-news .hero-banner .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.6; /* Make background image subtle */
}

/* CTA Button */
.page-news .cta-button {
    display: inline-block;
    background-color: #F39C12; /* Accent color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news .cta-button:hover {
    background-color: #e67e22; /* Slightly darker accent */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Latest Articles Section */
.page-news .latest-articles {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-news .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-news .article-card {
    background-color: #fefefe;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-news .article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eeeeee;
}

.page-news .article-card h3 {
    font-size: 1.4em;
    padding: 15px 20px 0;
    margin-bottom: 10px;
    min-height: 70px; /* Ensure consistent card height */
}

.page-news .article-card h3 a {
    color: #C0392B; /* Primary color for article titles */
    display: block;
}

.page-news .article-card h3 a:hover {
    color: #a93226; /* Darker primary on hover */
}

.page-news .article-card p {
    font-size: 1em;
    padding: 0 20px 15px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-news .read-more {
    display: block;
    text-align: center;
    background-color: #F39C12; /* Accent color */
    color: #ffffff;
    padding: 10px 0;
    margin-top: auto; /* Push to the bottom */
    border-radius: 0 0 10px 10px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.page-news .read-more:hover {
    background-color: #e67e22;
}

/* News Categories Section */
.page-news .news-categories {
    background-color: #f2f2f2;
    padding: 60px 0;
    text-align: center;
}

.page-news .category-list {
    list-style: none;
    padding: 0;
    margin: 30px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
}

.page-news .category-list li {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 12px 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-news .category-list li:hover {
    background-color: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-news .category-list li a {
    color: #C0392B; /* Primary color */
    font-weight: bold;
    font-size: 1.1em;
    display: block;
}

.page-news .category-list li a:hover {
    color: #a93226;
}

/* General News List Section */
.page-news .general-news {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-news .news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.page-news .news-item {
    display: flex;
    background-color: #fefefe;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-news .news-item img {
    width: 300px; /* Fixed width for image */
    height: 200px;
    object-fit: cover;
    display: block;
    border-right: 1px solid #eeeeee;
}

.page-news .news-item .news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news .news-item .news-content h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-news .news-item .news-content h3 a {
    color: #C0392B;
}

.page-news .news-item .news-content h3 a:hover {
    color: #a93226;
}

.page-news .news-item .news-content p {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Call to Action Bottom Section */
.page-news .call-to-action-bottom {
    background: linear-gradient(90deg, #C0392B, #F39C12);
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
    margin-top: 40px;
}

.page-news .call-to-action-bottom h2 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.page-news .call-to-action-bottom p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Copyright */
.page-news .copyright {
    text-align: center;
    padding: 30px 20px;
    background-color: #333333;
    color: #cccccc;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news h1 {
        font-size: 2.5em;
    }
    .page-news h2 {
        font-size: 1.8em;
    }
    .page-news .hero-banner .hero-content h1 {
        font-size: 3em;
    }
    .page-news .hero-banner .hero-content p {
        font-size: 1.1em;
    }
    .page-news .news-item {
        flex-direction: column;
    }
    .page-news .news-item img {
        width: 100%;
        height: 250px;
        border-right: none;
        border-bottom: 1px solid #eeeeee;
    }
    .page-news .news-item .news-content {
        padding: 15px;
    }
    .page-news .news-item .news-content h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-news h1 {
        font-size: 2em;
    }
    .page-news h2 {
        font-size: 1.6em;
    }
    .page-news h3 {
        font-size: 1.3em;
    }
    .page-news .hero-banner {
        padding: 60px 0;
    }
    .page-news .hero-banner .hero-content h1 {
        font-size: 2.5em;
    }
    .page-news .hero-banner .hero-content p {
        font-size: 1em;
    }
    .page-news .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-news .latest-articles,
    .page-news .news-categories,
    .page-news .general-news,
    .page-news .call-to-action-bottom {
        padding: 40px 0;
    }
    .page-news .article-grid {
        grid-template-columns: 1fr;
    }
    .page-news .category-list {
        flex-direction: column;
        align-items: center;
    }
    .page-news .category-list li {
        width: 100%;
        max-width: 300px;
    }
    .page-news .news-item img {
        height: 180px;
    }
    .page-news .call-to-action-bottom h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .page-news h1 {
        font-size: 1.8em;
    }
    .page-news .hero-banner .hero-content h1 {
        font-size: 2em;
    }
    .page-news .hero-banner .hero-content p {
        font-size: 0.9em;
    }
    .page-news .article-card h3 {
        font-size: 1.2em;
    }
    .page-news .news-item .news-content h3 {
        font-size: 1.2em;
    }
}