:root {
    --page-news-primary-color: #2F6BFF;
    --page-news-secondary-color: #6FA3FF;
    --page-news-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-news-card-bg: #FFFFFF;
    --page-news-background: #F4F7FB;
    --page-news-text-main: #1F2D3D;
    --page-news-text-black: #000000;
    --page-news-border-color: #D6E2FF;
    --page-news-glow-color: #A5C4FF;
}

.page-news {
    background-color: var(--page-news-background);
    color: var(--page-news-text-main);
    padding-top: 10px; /* Small top padding for main content as body handles header offset */
}

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

/* Hero Section */
.page-news__hero-section {
    background-color: var(--page-news-primary-color);
    padding-bottom: 40px; /* Adjust padding as image is above text */
    text-align: center;
    color: var(--page-news-card-bg); /* White text on blue background */
    overflow: hidden; /* To contain potential image overflow on mobile if not handled by img styles */
}

.page-news__hero-image-wrapper {
    margin-bottom: 20px;
    line-height: 0; /* Remove extra space below image */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-news__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem); /* Flexible font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--page-news-card-bg); /* White text */
}

.page-news__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--page-news-card-bg); /* White text */
}

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

.page-news__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-news-text-main);
}

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

.page-news__news-card {
    background-color: var(--page-news-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-news__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency in grid */
    object-fit: cover;
    display: block;
}

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

.page-news__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-news-text-main);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.page-news__news-card:hover .page-news__card-title {
    color: var(--page-news-primary-color);
}

.page-news__card-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.page-news__card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-news-text-main);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-news__read-more {
    display: inline-block;
    color: var(--page-news-primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: var(--page-news-secondary-color);
}

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

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--page-news-button-gradient);
    color: var(--page-news-card-bg);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-news__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* CTA Section */
.page-news__cta-section {
    background-color: var(--page-news-primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--page-news-card-bg);
}

.page-news__cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--page-news-card-bg);
}

.page-news__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--page-news-card-bg);
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--page-news-button-gradient);
    color: var(--page-news-card-bg);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-height: 44px; /* Touch target size */
    display: flex; /* For centering text vertically */
    align-items: center;
    justify-content: center;
    max-width: 300px; /* Constrain width on larger screens */
    margin: 0 auto; /* Center the button */
}

.page-news__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-news__news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-bottom: 20px;
    }

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

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

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

    .page-news__news-list-section {
        padding: 40px 0;
    }

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

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

    .page-news__card-image {
        height: 200px; /* Adjust height for smaller screens */
    }

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

    .page-news__cta-section {
        padding: 60px 0;
    }

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

    .page-news__cta-button {
        width: 100%;
        max-width: 320px; /* Max width for mobile buttons */
        padding: 12px 25px;
        font-size: 1.1rem;
    }
}

@media (max-width: 549px) {
    .page-news__hero-content {
        padding: 0 15px;
    }
    .page-news__main-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }
    .page-news__hero-description {
        font-size: 0.95rem;
    }
    .page-news__news-list-section {
        padding: 30px 0;
    }
    .page-news__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-news__card-image {
        height: 180px;
    }
    .page-news__card-title {
        font-size: 1.1rem;
    }
    .page-news__card-date {
        font-size: 0.85rem;
    }
    .page-news__card-excerpt {
        font-size: 0.95rem;
    }
    .page-news__view-all-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    .page-news__cta-section {
        padding: 40px 0;
    }
    .page-news__cta-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-news__cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}