/* style/news.css */

/* General Styles for .page-news */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    margin-bottom: 40px;
    background-color: #F4F7FB; /* Light background for the section */
}

.page-news__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure image is behind text if text were absolute */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-news__hero-content-area {
    text-align: center;
    padding: 40px 20px;
    background-color: #FFFFFF; /* Card BG */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: -80px auto 0 auto; /* Overlap slightly on the image, but text is below it in DOM */
    position: relative;
    z-index: 2; /* Ensure content is above any image overlap */
    border: 1px solid #D6E2FF; /* Border */
}

.page-news__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
    font-weight: bold;
    color: #2F6BFF; /* Main color */
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__description {
    font-size: 1.1em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button - Primary */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* For responsive buttons */
    word-wrap: break-word; /* For responsive buttons */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(47, 107, 255, 0.6);
}

/* Latest Updates Section */
.page-news__latest-updates-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

.page-news__section-title {
    font-size: 2.5em;
    color: #000000; /* Custom Color_1776249996415 */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__news-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #D6E2FF; /* Border */
}

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

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

.page-news__news-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__news-card-content {
    padding: 20px;
}

.page-news__news-card-title {
    font-size: 1.4em;
    color: #2F6BFF; /* Main color */
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-news__news-card-meta {
    font-size: 0.9em;
    color: #6FA3FF; /* Accent color */
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 1em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
}

.page-news__read-more-btn {
    display: inline-block;
    color: #2F6BFF; /* Main color */
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #2F6BFF;
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-news__read-more-btn:hover {
    color: #6FA3FF; /* Accent color */
    border-color: #6FA3FF;
}

/* Pagination */
.page-news__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-news__pagination-link {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #2F6BFF; /* Main color */
    border: 1px solid #2F6BFF;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--active) {
    background-color: #6FA3FF; /* Accent color */
    color: #ffffff;
    border-color: #6FA3FF;
}

.page-news__pagination-link--active {
    background-color: #2F6BFF; /* Main color */
    color: #ffffff;
    border-color: #2F6BFF;
    cursor: default;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%); /* Using brand colors for a gradient background */
    color: #ffffff; /* White text for dark background */
    border-radius: 8px;
    margin: 40px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-news__cta-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* For responsive buttons container */
    max-width: 100%; /* For responsive buttons container */
    box-sizing: border-box; /* For responsive buttons container */
    overflow: hidden; /* For responsive buttons container */
}

/* CTA Button - Secondary */
.page-news__btn-secondary {
    background: #ffffff;
    color: #2F6BFF; /* Main color */
    border: 2px solid #2F6BFF;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(1.8em, 4vw, 2.2em);
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
    }
    .page-news__hero-content-area {
        margin-top: -60px;
    }
    .page-news__news-card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    /* General responsive for images and buttons */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px !important; /* Keep small top padding */
        margin-bottom: 20px;
    }
    .page-news__hero-content-area {
        padding: 20px 15px;
        margin-top: -40px;
    }
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__description {
        font-size: 1em;
    }

    /* Latest Updates Section */
    .page-news__latest-updates-section {
        padding: 40px 0;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__section-description {
        font-size: 1em;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
        gap: 20px;
    }
    .page-news__news-card-image {
        height: 200px; /* Adjust height for mobile */
    }
    .page-news__news-card-title {
        font-size: 1.2em;
    }
    .page-news__news-card-excerpt {
        font-size: 0.95em;
    }

    /* CTA Section */
    .page-news__cta-section {
        padding: 50px 15px;
        margin: 20px 0;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }

    /* Pagination */
    .page-news__pagination {
        gap: 5px;
    }
    .page-news__pagination-link {
        padding: 8px 12px;
        font-size: 0.9em;
    }
}