/* style/resources-latest-news.css */
.page-resources-latest-news {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Body background from shared.css */
    line-height: 1.6;
}

.page-resources-latest-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-resources-latest-news__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-resources-latest-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources-latest-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-latest-news__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-resources-latest-news__btn-primary,
.page-resources-latest-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-resources-latest-news__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-resources-latest-news__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-resources-latest-news__btn-primary--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-resources-latest-news__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

.page-resources-latest-news__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-resources-latest-news__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Section Titles and Descriptions */
.page-resources-latest-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #26A9E0; /* Brand color for titles */
}

.page-resources-latest-news__section-title--light {
    color: #ffffff;
}

.page-resources-latest-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #666666; /* Darker text for light background */
}

.page-resources-latest-news__section-description--light {
    color: #f0f0f0; /* Lighter text for dark background */
}

/* Latest News Section */
.page-resources-latest-news__latest-news-section,
.page-resources-latest-news__categories-section,
.page-resources-latest-news__faq-section {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 80px 0;
}

.page-resources-latest-news__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-resources-latest-news__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources-latest-news__news-grid,
.page-resources-latest-news__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-latest-news__news-card,
.page-resources-latest-news__category-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-resources-latest-news__news-card-content,
.page-resources-latest-news__category-card {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources-latest-news__news-card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources-latest-news__news-card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources-latest-news__news-card-title a:hover {
    text-decoration: underline;
}

.page-resources-latest-news__news-card-excerpt,
.page-resources-latest-news__category-card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources-latest-news__read-more-link {
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.page-resources-latest-news__read-more-link:hover {
    text-decoration: underline;
}

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

/* Video Section */
.page-resources-latest-news__video-section {
    padding: 80px 0;
    text-align: center;
}

.page-resources-latest-news__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for video container */
    margin: 40px auto 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-latest-news__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    cursor: pointer;
}

.page-resources-latest-news__video-caption {
    font-size: 0.9em;
    margin-top: 15px;
    color: #cccccc;
}

/* Categories Section */
.page-resources-latest-news__category-card {
    text-align: center;
    background-color: #f0f0f0;
    color: #333333;
}

.page-resources-latest-news__category-card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-resources-latest-news__category-card .page-resources-latest-news__btn-primary {
    margin-top: auto; /* Push button to bottom */
    align-self: center;
}

/* Featured Article Section */
.page-resources-latest-news__featured-article-section {
    padding: 80px 0;
}

.page-resources-latest-news__featured-article-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.page-resources-latest-news__featured-article-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-news__featured-article-text {
    width: 50%;
    text-align: left;
}

.page-resources-latest-news__featured-article-title {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources-latest-news__featured-article-title a {
    color: #ffffff;
    text-decoration: none;
}

.page-resources-latest-news__featured-article-title a:hover {
    text-decoration: underline;
}

.page-resources-latest-news__featured-article-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* FAQ Section */
.page-resources-latest-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-latest-news__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-resources-latest-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf6fc;
    transition: background-color 0.3s ease;
}

.page-resources-latest-news__faq-question:hover {
    background-color: #d8eef9;
}

.page-resources-latest-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-latest-news__faq-item.active .page-resources-latest-news__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-latest-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
    font-size: 1.1em;
}

.page-resources-latest-news__faq-item.active .page-resources-latest-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-resources-latest-news__faq-answer p {
    margin-bottom: 0;
}

/* Call to Action Section */
.page-resources-latest-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-latest-news__hero-title {
        font-size: 2.8em;
    }
    .page-resources-latest-news__section-title {
        font-size: 2.2em;
    }
    .page-resources-latest-news__featured-article-content {
        flex-direction: column;
    }
    .page-resources-latest-news__featured-article-image,
    .page-resources-latest-news__featured-article-text {
        width: 100%;
    }
    .page-resources-latest-news__featured-article-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-resources-latest-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-latest-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding: 60px 0;
    }
    .page-resources-latest-news__hero-title {
        font-size: 2.2em;
    }
    .page-resources-latest-news__hero-description {
        font-size: 1em;
    }
    .page-resources-latest-news__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-latest-news__btn-primary,
    .page-resources-latest-news__btn-secondary,
    .page-resources-latest-news a[class*="button"],
    .page-resources-latest-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-latest-news__hero-cta-buttons,
    .page-resources-latest-news__view-all-button-container,
    .page-resources-latest-news__video-wrapper,
    .page-resources-latest-news__category-card,
    .page-resources-latest-news__news-card-content,
    .page-resources-latest-news__featured-article-text {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources-latest-news__news-grid,
    .page-resources-latest-news__category-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-latest-news__news-card-image,
    .page-resources-latest-news__category-card-image,
    .page-resources-latest-news__featured-article-image,
    .page-resources-latest-news img,
    .page-resources-latest-news video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-latest-news__section-title {
        font-size: 1.8em;
    }
    .page-resources-latest-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-resources-latest-news__featured-article-title {
        font-size: 1.5em;
    }
    .page-resources-latest-news__featured-article-description {
        font-size: 0.9em;
    }
    .page-resources-latest-news__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-resources-latest-news__faq-answer {
        padding: 0 20px;
    }
    .page-resources-latest-news__faq-item.active .page-resources-latest-news__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-latest-news__hero-title {
        font-size: 1.8em;
    }
    .page-resources-latest-news__section-title {
        font-size: 1.6em;
    }
    .page-resources-latest-news__news-card-title {
        font-size: 1.3em;
    }
    .page-resources-latest-news__category-card-title {
        font-size: 1.2em;
    }
}