.page-news {
    background-color: var(--background-color, #F4F7FB);
    color: var(--text-main-color, #1F2D3D);
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: var(--main-color, #2F6BFF);
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill out */
}

.page-news__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and text */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-news__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    color: #FFFFFF; /* White text on blue background */
}

.page-news__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 15px;
    /* Using clamp for responsive font-size, avoiding fixed large values */
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    max-width: 100%; /* Ensure it doesn't overflow */
}

.page-news__description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.5;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 30px;
}

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

.page-news__latest-updates-section {
    padding: 60px 0;
    background-color: var(--background-color, #F4F7FB);
}

.page-news__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color, #1F2D3D);
    line-height: 1.3;
}

.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(--card-bg-color, #FFFFFF);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px 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(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-news__card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency, will be object-fit: cover */
    object-fit: cover;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    min-height: 200px; /* Ensure images are not too small */
}

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

.page-news__card-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--custom-color-1776249996415, #000000);
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

.page-news__card-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: block; /* Ensure it takes its own line */
}

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

.page-news__read-more {
    display: inline-block;
    color: var(--main-color, #2F6BFF);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to the bottom */
}

.page-news__read-more:hover {
    color: var(--auxiliary-color, #6FA3FF);
}

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

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-news__view-all-button:hover {
    background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--main-color, #2F6BFF); /* Using main color for CTA background */
    color: #FFFFFF;
    border-radius: 12px;
    margin: 40px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.page-news__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #FFFFFF;
}

.page-news__cta-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.page-news__cta-button {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Use the specified button gradient */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 5px 20px rgba(47, 107, 255, 0.5);
    border: 2px solid #FFFFFF; /* Add a white border for emphasis */
}

.page-news__cta-button:hover {
    background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 107, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-bottom: 30px;
    }
    .page-news__hero-content {
        padding: 0 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    .page-news__description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    .page-news__latest-updates-section {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px;
    }
    .page-news__card-image {
        height: 200px; /* Adjust height for smaller screens */
        min-height: 200px;
    }
    .page-news__cta-section {
        padding: 50px 20px;
        margin: 30px 15px;
    }
    .page-news__cta-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .page-news__cta-description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

    /* Ensure content area images do not overflow */
    .page-news img {
        max-width: 100%;
        height: auto;
    }
    .page-news__card-image {
        max-width: 100%;
        height: auto;
        min-height: 200px; /* Maintain minimum size */
    }
}

@media (max-width: 480px) {
    .page-news__hero-section {
        padding-bottom: 20px;
    }
    .page-news__hero-content {
        padding: 0 10px;
    }
    .page-news__latest-updates-section {
        padding: 30px 0;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__cta-section {
        padding: 40px 15px;
        margin: 20px 10px;
    }
    .page-news__view-all-button,
    .page-news__cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
}