/* style/news.css */

.page-news {
    background-color: #0D0E12;
    color: #FFF3E6;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    margin-bottom: 40px;
}

.page-news__hero-banner {
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.page-news__hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 5; /* 1920x600 */
    object-fit: cover;
    object-position: center;
}

.page-news__hero-content {
    text-align: center;
    padding: 30px 15px;
    background-color: #17191F; /* Card BG */
    margin-top: -5px; /* Slightly overlap with banner for visual flow */
    border-radius: 0 0 8px 8px;
}

.page-news__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Responsive H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FF8C1A; /* Main color */
}

.page-news__description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 25px auto;
    color: #FFF3E6; /* Text Main */
}

.page-news__cta-button {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #FFF3E6;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 175, 58, 0.4);
}

/* Articles Section */
.page-news__articles-section {
    padding: 40px 0;
}

.page-news__section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #FF8C1A; /* Main color */
    position: relative;
}

.page-news__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #FFA53A; /* Auxiliary color */
    margin: 10px auto 0;
}

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

.page-news__article-card {
    background-color: #17191F; /* Card BG */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #A84F0C; /* Border color */
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-news__article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.page-news__article-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no color filters */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-news__card-content {
    padding: 20px;
}

.page-news__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FF8C1A; /* Main color */
    line-height: 1.3;
}

.page-news__card-meta {
    font-size: 0.9rem;
    color: #FFA53A; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1rem;
    color: #FFF3E6;
    margin-bottom: 20px;
}

.page-news__read-more {
    display: inline-block;
    color: #FFA53A; /* Auxiliary color */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-news__read-more:hover {
    color: #FFB04D; /* Glow color */
}

.page-news__view-all {
    text-align: center;
    margin-top: 40px;
}

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
    color: #FFF3E6;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 175, 58, 0.4);
}

/* CTA Section at the bottom */
.page-news__cta-section {
    background-color: #17191F; /* Card BG */
    padding: 60px 15px;
    text-align: center;
    margin-top: 60px;
    border-radius: 8px;
    border: 1px solid #A84F0C;
}

.page-news__cta-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    color: #FF8C1A;
    margin-bottom: 15px;
}

.page-news__cta-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #FFF3E6;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-news__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__hero-banner img {
        aspect-ratio: 16/9; /* More height on mobile */
    }
}

@media (max-width: 768px) {
    .page-news__articles-section, .page-news__cta-section {
        padding: 30px 0;
    }
    .page-news__hero-content {
        padding: 20px 10px;
    }
    .page-news__article-card img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-news__main-title {
        font-size: clamp(1.2rem, 7vw, 2rem);
    }
    .page-news__description {
        font-size: 1rem;
    }
    .page-news__cta-button, .page-news__view-all-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .page-news__card-title {
        font-size: 1.2rem;
    }
    .page-news__card-excerpt {
        font-size: 0.9rem;
    }
    .page-news__section-title {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }
}