/* news.css */

.page-news {
    background-color: #F4F7FB; /* Background color */
    color: #1F2D3D; /* Text Main */
    padding-bottom: 40px; /* Add some padding at the bottom */
}

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

/* Hero Section */
.page-news__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden; /* Ensure no overflow */
    display: flex; /* Use flex for layout */
    flex-direction: column; /* Stack image and content vertically */
    align-items: center; /* Center content horizontally */
    text-align: center;
}

.page-news__hero-image {
    width: 100%;
    max-width: 1200px; /* Constrain image width to container */
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-news__hero-content {
    max-width: 800px; /* Constrain text width */
}

.page-news__hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: #000000; /* Custom Color_1776249996415 */
    margin-bottom: 15px;
}

.page-news__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
}

/* News List Section */
.page-news__news-list-section {
    padding: 40px 0;
}

.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #000000; /* Custom Color_1776249996415 */
    text-align: center;
    margin-bottom: 40px;
}

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

.page-news__news-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #D6E2FF; /* Border color */
}

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.page-news__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-news__card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow content to grow */
}

.page-news__card-date {
    font-size: 0.9rem;
    color: #6FA3FF; /* Auxiliary color */
    margin-bottom: 10px;
    display: block;
}

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

.page-news__card-title a {
    color: inherit; /* Inherit color from parent */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #2F6BFF; /* Main color on hover */
}

.page-news__card-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to grow */
}

.page-news__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
}

.page-news__read-more-btn:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%); /* Slightly darker on hover */
    transform: translateY(-2px);
}

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

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
}

.page-news__view-all-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
}

/* CTA Section */
.page-news__cta-section {
    background-color: #2F6BFF; /* Main color */
    color: #FFFFFF;
    padding: 60px 0;
    text-align: center;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.page-news__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
    min-width: 150px;
}

.page-news__cta-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
}

.page-news__cta-button--secondary {
    background: #FFFFFF;
    color: #2F6BFF;
    border-color: #FFFFFF;
}

.page-news__cta-button--secondary:hover {
    background: #F0F0F0;
    color: #2F6BFF;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-news__hero-title {
        font-size: 2rem;
    }

    .page-news__section-title {
        font-size: 2rem;
    }

    .page-news__cta-title {
        font-size: 1.8rem;
    }

    .page-news__news-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-news__card-image {
        height: 180px; /* Slightly smaller height on mobile */
    }

    /* Mobile content image constraint */
    .page-news__hero-image,
    .page-news__news-card img {
        max-width: 100%;
        height: auto;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .page-news__cta-button {
        width: 80%; /* Make buttons wider on mobile */
        max-width: 300px;
    }
}

/* Ensure all images are at least 200px wide/high */
.page-news img {
    min-width: 200px;
    min-height: 200px;
}

/* CSS for image optimization: no filter */
.page-news img {
    filter: none !important; /* Absolutely no filters */
}