/* style/news.css */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
}

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

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

.page-news__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

/* Buttons */
.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-news__btn-primary,
.page-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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-news__btn-primary:hover {
    background-color: #c96800;
    border-color: #c96800;
}

.page-news__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

/* Article Grid */
.page-news__latest-articles {
    padding: 60px 0;
    background-color: #F8F8F8; /* Light background for contrast */
}

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

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

.page-news__article-card:hover {
    transform: translateY(-5px);
}

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

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

.page-news__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-news__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #1a7bb0;
}

.page-news__card-excerpt {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__card-link {
    display: inline-block;
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
}

.page-news__card-link:hover {
    color: #c96800;
}

/* Video Section */
.page-news__video-section {
    padding: 60px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
    text-align: center;
}

.page-news__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 40px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-news__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-news__video-caption {
    font-size: 1.1em;
    max-width: 800px;
    margin: 20px auto 0;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-news__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-news__faq-item {
    background-color: #F9F9F9;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #EBF7FC;
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> */
}

.page-news__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}

.page-news__faq-question:hover {
    background-color: #E0F0F8;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: '−';
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    color: #555555;
    font-size: 1em;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__cta-bottom .page-news__section-title {
    color: #FFFFFF;
    margin-top: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.4em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__article-card {
        height: auto;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description,
    .page-news__cta-text,
    .page-news__video-caption {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__latest-articles,
    .page-news__video-section,
    .page-news__faq-section,
    .page-news__cta-bottom {
        padding: 40px 0;
    }
    .page-news__container {
        padding: 0 15px !important;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr;
    }
    .page-news__card-image {
        height: 180px;
    }
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-news__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.6em;
    }
}