:root {
    --main-color: #2F6BFF;
    --aux-color: #6FA3FF;
    --custom-card-bg-color: #FFFFFF;
    --custom-background-color: #F4F7FB;
    --custom-text-main-color: #1F2D3D;
    --custom-color-1776249996415: #000000;
    --custom-border-color: #D6E2FF;
    --custom-glow-color: #A5C4FF;
}

.page-news__hero-section {
    position: relative;
    background-color: var(--custom-background-color, #F4F7FB);
    padding-top: 10px; /* Small top padding as per rules */
    padding-bottom: 40px;
    color: var(--custom-text-main-color, #1F2D3D);
}

.page-news__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-news__hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px; /* Example style */
    min-width: 200px;
    min-height: 200px;
}

.page-news__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.page-news__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: var(--custom-color-1776249996415, #000000);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

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

.page-news__featured-news-section {
    background-color: var(--custom-background-color, #F4F7FB);
    padding: 60px 0;
    color: var(--custom-text-main-color, #1F2D3D);
}

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

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

.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(--custom-card-bg-color, #FFFFFF);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--custom-border-color, #D6E2FF);
}

.page-news__news-card:hover {
    transform: translateY(-5px);
}

.page-news__card-image-wrapper {
    width: 100%;
    height: 220px; /* Ensure a reasonable height for card images */
    overflow: hidden;
    min-height: 200px; /* Wrapper minimum height */
}

.page-news__card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 200px; /* Explicitly state min for image itself */
    min-height: 200px;
}

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

.page-news__card-date {
    font-size: 0.875rem;
    color: #6C757D;
    margin-bottom: 10px;
    display: block;
}

.page-news__card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.page-news__card-title a {
    color: var(--custom-color-1776249996415, #000000);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--main-color, #2F6BFF);
}

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

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

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

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

.page-news__view-all-btn {
    display: inline-block;
    padding: 12px 28px;
    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.3s ease;
}

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

.page-news__cta-section {
    background-color: var(--main-color, #2F6BFF);
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
}

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

.page-news__cta-description {
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: #FFFFFF;
    color: var(--main-color, #2F6BFF);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__cta-button:hover {
    background-color: var(--aux-color, #6FA3FF);
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-news__hero-content,
    .page-news__container {
        padding: 0 15px;
    }

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

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

    .page-news__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-news__news-grid {
        grid-template-columns: 1fr;
    }

    .page-news__card-image-wrapper {
        height: 200px; /* Ensure minimum height */
    }

    .page-news__card-image {
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
    }

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

    .page-news__card-excerpt {
        font-size: 0.875rem;
    }

    .page-news__cta-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

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

    /* Important: Content area images must not cause overflow */
    .page-news__hero-image,
    .page-news__card-image {
        max-width: 100%;
        height: auto;
    }
}