/* news.css */

.page-news {
    background-color: #08162B; /* Using Deep Navy as main background */
    color: #F3F8FF;
    font-family: 'Roboto', sans-serif; /* Assuming Roboto for sans-serif */
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section */
}

/* Hero Section */
.page-news__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile first, will change for desktop */
    align-items: center;
    padding: 20px 15px 40px;
    text-align: center;
    background-color: #08162B;
    gap: 20px;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
}

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

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

.page-news__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #F2C14E; /* Using Gold for main title */
}

.page-news__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #AFC4E8;
}

.page-news__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Using defined button gradient */
    color: #F3F8FF;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 50px 15px;
    background-color: #08162B;
}

.page-news__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem); /* Responsive font size for H2 */
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #4FA8FF; /* Using Glow for section titles */
}

.page-news__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-news__news-card {
    background-color: #10233F; /* Using Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-news__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card image appearance */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    /* No filter properties */
}

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

.page-news__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F3F8FF;
}

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

.page-news__card-excerpt {
    font-size: 1rem;
    color: #AFC4E8;
    margin-bottom: 20px;
}

.page-news__read-more {
    display: inline-block;
    color: #4FA8FF;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #F2C14E;
}

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

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #F3F8FF;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* CTA Section */
.page-news__cta-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 15px;
    background-color: #10233F; /* Using Card BG for CTA section */
    margin-top: 30px;
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    gap: 30px;
}

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

.page-news__cta-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #F2C14E;
}

.page-news__cta-description {
    font-size: 1.1rem;
    color: #AFC4E8;
    margin-bottom: 30px;
}

.page-news__cta-button--large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.page-news__cta-image-wrapper {
    width: 100%;
    max-width: 400px;
}

.page-news__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* Media Queries for responsiveness */
@media (min-width: 768px) {
    .page-news__hero-section {
        flex-direction: column; /* Keep column for hero, image then text */
        padding: 40px 30px 60px;
    }

    .page-news__news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-news__cta-section {
        flex-direction: row;
        text-align: left;
        padding: 60px;
        gap: 50px;
    }

    .page-news__cta-content {
        flex: 1;
    }

    .page-news__cta-image-wrapper {
        flex-shrink: 0;
    }
}

@media (min-width: 1024px) {
    .page-news__hero-section {
        padding: 60px 40px 80px;
    }

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

/* Mobile specific rules for images to prevent overflow */
@media (max-width: 768px) {
    .page-news__hero-image,
    .page-news__card-image,
    .page-news__cta-image {
        max-width: 100%;
        height: auto;
    }
    .page-news__news-card .page-news__card-image {
        height: auto; /* Allow height to adjust for responsiveness */
        max-height: 250px; /* Cap max height to avoid overly tall images on small screens */
    }
    .page-news__cta-section {
        border-radius: 0; /* No border radius on full width mobile */
    }
    .page-news__cta-image {
        width: 80%; /* Smaller on mobile to give text more space */
        margin: 0 auto;
    }
}

/* Ensure content area images are not too small by CSS rules */
/* This applies to all img elements within .page-news */
.page-news img {
    min-width: 200px;
    min-height: 200px;
}

/* Override the min-width/height for card images for better mobile flow, but still above 200px visually */
@media (max-width: 768px) {
    .page-news__card-image {
        width: 100%; /* Ensure card image fills its container */
        height: 200px; /* Maintain a consistent height, but still min 200px */
        object-fit: cover;
    }
}