/* style/news.css */
/* Reset & Base Styles */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
    text-align: center;
}

.page-news__hero-image-container {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__hero-content {
    max-width: 900px;
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-news__subtitle {
    font-size: clamp(1em, 1.5vw, 1.3em);
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    border: 2px solid transparent;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-news__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border-color: #EA7C07;
    margin-right: 15px;
}

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

.page-news__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7bbd;
    border-color: #1a7bbd;
}

/* General Section Styles */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Articles Section */
.page-news__articles-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

.page-news__article-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    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 20px rgba(0, 0, 0, 0.15);
}

.page-news__article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

.page-news__article-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1;
}

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

.page-news__article-title a:hover {
    color: #1a7bbd;
}

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

.page-news__article-summary {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-news__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more-btn:hover {
    background-color: #1a7bbd;
}

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

/* CTA Section */
.page-news__cta-section {
    padding: 80px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-align: center;
}

.page-news__cta-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-news__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    opacity: 0.9;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.page-news__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    user-select: none;
    background-color: #eaf6fc;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-item[open] .page-news__faq-question {
    background-color: #e0f0f8;
    border-bottom-color: #d0e0e8;
}

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    text-align: center;
    color: #26A9E0;
}

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

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

/* Hide default details marker */
.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-news__faq-item summary::marker {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-news__hero-image-container {
        margin-bottom: 20px;
    }

    .page-news__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }

    .page-news__subtitle {
        font-size: clamp(1em, 1.8vw, 1.2em);
    }

    .page-news__articles-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 40px 0;
    }

    .page-news__section-title {
        font-size: clamp(1.6em, 3.8vw, 2.5em);
    }

    .page-news__section-description {
        margin-bottom: 30px;
    }

    .page-news__article-image {
        height: 180px;
    }

    .page-news__article-title {
        font-size: 1.3em;
    }

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

    .page-news__cta-title {
        font-size: clamp(1.6em, 3.8vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news video,
    .page-news__video {
        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-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-news__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important;
    }

    .page-news__hero-image-container {
        margin-bottom: 15px;
    }

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

    .page-news__subtitle {
        font-size: clamp(0.9em, 3.5vw, 1.1em);
        margin-bottom: 20px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        font-size: 1em;
        padding: 12px 25px;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 15px; /* Add spacing between stacked buttons */
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-image {
        height: 160px;
    }

    .page-news__article-title {
        font-size: 1.2em;
    }

    .page-news__article-content {
        padding: 15px;
    }

    .page-news__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
    }

    .page-news__section-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-news__cta-title {
        font-size: clamp(1.5em, 5vw, 2em);
    }

    .page-news__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-news__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.6em, 7vw, 2.2em);
    }

    .page-news__subtitle {
        font-size: clamp(0.85em, 4vw, 1em);
    }

    .page-news__article-image {
        height: 140px;
    }

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

    .page-news__read-more-btn {
        padding: 8px 18px;
        font-size: 0.9em;
    }
}