/* news.css */
.page-news {
    padding-bottom: 40px;
    background-color: var(--page-news__background-color, #F4F7FB);
    color: var(--page-news__text-main-color, #1F2D3D);
}

.page-news__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
}

.page-news__hero-image-wrapper {
    width: 100%;
    position: relative;
    /* Maintain aspect ratio for the image wrapper */
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px; /* Added for softer look */
}

.page-news__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--page-news__card-bg-color, #FFFFFF);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -80px; /* Overlap slightly with the image for visual interest */
    position: relative;
    z-index: 1;
}

.page-news__main-title {
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-news__text-main-color, #1F2D3D);
    margin-bottom: 15px;
    font-size: clamp(2.2rem, 4vw, 3rem); /* Using clamp for H1 font size */
    max-width: 900px; /* Constraint for H1 */
    margin-left: auto;
    margin-right: auto;
}

.page-news__description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--page-news__text-main-color, #1F2D3D);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-news__cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-news__cta-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-news__section {
    padding: 40px 0;
}

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

.page-news__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--page-news__text-main-color, #1F2D3D);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-news__news-card {
    background-color: var(--page-news__card-bg-color, #FFFFFF);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure link covers the whole card */
}

.page-news__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency, will be object-fit: cover */
    object-fit: cover;
    display: block;
    /* Min size check: 400x225 is > 200x200 */
}

.page-news__card-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to expand and push "Read more" to bottom */
    display: flex;
    flex-direction: column;
}

.page-news__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--page-news__text-main-color, #1F2D3D);
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1; /* Allows title to take available space */
}

.page-news__card-meta {
    font-size: 0.9rem;
    color: var(--page-news__text-main-color, #1F2D3D); /* Adjusted for contrast */
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--page-news__text-main-color, #1F2D3D);
    margin-bottom: 20px;
}

.page-news__read-more {
    font-weight: 600;
    color: var(--page-news__main-color, #2F6BFF); /* Main color for read more */
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
    display: block; /* Ensures it takes full width for hover effect */
}

.page-news__card-link:hover .page-news__read-more {
    color: var(--page-news__auxiliary-color, #6FA3FF); /* Auxiliary color on hover */
}

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

.page-news__cta-button--secondary {
    background: var(--page-news__auxiliary-color, #6FA3FF); /* Auxiliary color for secondary button */
    box-shadow: 0 4px 10px rgba(111, 163, 255, 0.3);
}

.page-news__cta-button--secondary:hover {
    background: var(--page-news__main-color, #2F6BFF); /* Main color on hover */
    box-shadow: 0 6px 15px rgba(111, 163, 255, 0.4);
}

.page-news__cta-section {
    background-color: var(--page-news__main-color, #2F6BFF); /* Main color for CTA section background */
    color: #FFFFFF;
    padding: 60px 0;
    text-align: center;
    border-radius: 8px; /* Added for consistency */
    margin-top: 40px;
}

.page-news__cta-content {
    max-width: 800px;
}

.page-news__cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-news__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-news__hero-content {
        margin-top: -40px;
        padding: 20px 15px;
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-news__description {
        font-size: 1rem;
    }

    .page-news__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

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

    .page-news__card-image {
        max-width: 100%;
        height: auto; /* Ensure images are responsive */
        min-height: 200px; /* Ensure images are not too small */
    }

    .page-news__card-title {
        font-size: 1.2rem;
    }

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

    .page-news__cta-description {
        font-size: 1rem;
    }

    /* Ensure all images inside .page-news adhere to min size and responsiveness */
    .page-news img {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
        object-fit: cover;
    }
}

/* Colors from custom palette */
:root {
    --page-news__main-color: #2F6BFF;
    --page-news__auxiliary-color: #6FA3FF;
    --page-news__button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-news__card-bg-color: #FFFFFF;
    --page-news__background-color: #F4F7FB;
    --page-news__text-main-color: #1F2D3D;
    --page-news__text-custom-color-1776249996415: #000000;
    --page-news__border-color: #D6E2FF;
    --page-news__glow-color: #A5C4FF;
}

/* Ensure no filter property is used on images */
.page-news img {
    filter: none !important;
}