.page-news {
    background-color: var(--background-color, #FFFFFF); /* Default to white as per custom colors */
    color: #333333; /* Default text color, ensuring contrast */
    padding-top: 10px; /* Small top padding for first section */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content initially */
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #26A9E0, #007bff); /* Blue gradient, similar to brand color */
    color: var(--auxiliary-color, #FFFFFF);
    min-height: 400px; /* Minimum height for desktop */
    box-sizing: border-box;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%;
    margin-bottom: 20px; /* Space between image and text */
}

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--auxiliary-color, #FFFFFF);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-news__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--login-color, #EA7C07); /* Login color for CTA */
    color: var(--auxiliary-color, #FFFFFF);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    min-width: 150px; /* Ensure button is not too small */
    min-height: 44px; /* Touch target size */
    box-sizing: border-box;
}

.page-news__cta-button:hover {
    background-color: #d46f00; /* Slightly darker orange */
}

/* Articles Section */
.page-news__articles-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background-color: #f8f8f8; /* Light background for article cards */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    color: #333333;
}

.page-news__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Main brand color for section title */
}

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

.page-news__article-card {
    background-color: var(--auxiliary-color, #FFFFFF);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

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

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-news__article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333333;
    line-height: 1.4;
}

.page-news__article-title:hover {
    color: #26A9E0; /* Main brand color on hover */
}

.page-news__article-meta {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1rem;
    color: #555555;
    line-height: 1.5;
    margin-top: auto; /* Push to bottom */
}

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

.page-news__view-all-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26A9E0; /* Main brand color */
    color: var(--auxiliary-color, #FFFFFF);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    min-width: 120px;
    min-height: 44px;
    box-sizing: border-box;
}

.page-news__view-all-button:hover {
    background-color: #1e88b8; /* Slightly darker blue */
}

/* General CTA Section */
.page-news__cta-section {
    background: linear-gradient(135deg, #100224, #26A9E0); /* Darker gradient for strong CTA */
    color: var(--auxiliary-color, #FFFFFF);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.page-news__cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--auxiliary-color, #FFFFFF);
}

.page-news__cta-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-news__cta-button--large {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 10px;
    min-width: 200px;
    min-height: 50px;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-news__hero-section {
        min-height: auto; /* Allow height to be determined by content */
        padding: 30px 15px;
    }

    .page-news__hero-image {
        aspect-ratio: 16/9; /* Maintain aspect ratio on smaller screens */
        height: auto;
    }

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

    .page-news__description {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }

    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

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

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

    .page-news__cta-section {
        padding: 40px 15px;
    }

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

    .page-news__cta-description {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
}

@media (max-width: 768px) {
    .page-news__articles-section img,
    .page-news__hero-section img {
        max-width: 100%;
        height: auto;
    }

    /* Enforce minimum image display size for content area images */
    .page-news__articles-grid .page-news__article-image {
        min-width: 200px;
        min-height: 200px;
        width: 100%; /* Ensure it takes full width of its container */
        height: auto; /* Allow aspect ratio to define height */
    }
}

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

    .page-news__hero-image {
        aspect-ratio: 4/3; /* More vertical for mobile hero */
    }

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

    .page-news__description {
        font-size: clamp(0.85rem, 4.5vw, 1rem);
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-news__article-image {
        height: 200px; /* More prominent image for single column */
    }

    .page-news__article-card {
        margin-bottom: 20px;
    }

    .page-news__cta-section {
        padding: 30px 10px;
    }

    .page-news__cta-title {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
    }

    .page-news__cta-description {
        font-size: clamp(0.85rem, 4.5vw, 1rem);
    }
}