/* style/news.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #017439;
    --btn-register: #C30808;
    --btn-login: #C30808;
    --btn-font-color: #FFFF00;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Assuming body background is light */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    text-align: center;
    background: var(--bg-dark);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

/* 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, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-news__btn-primary {
    background-color: var(--btn-register);
    color: var(--btn-font-color);
    border: 2px solid var(--btn-register);
}

.page-news__btn-primary:hover {
    background-color: darken(var(--btn-register), 10%);
    border-color: darken(var(--btn-register), 10%);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--btn-font-color);
    border: 2px solid var(--btn-font-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--btn-font-color);
    color: var(--btn-register);
}

/* Article Sections */
.page-news__article-section {
    padding: 60px 0;
}

.page-news__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.page-news__dark-section .page-news__section-title {
    color: var(--text-light);
}

.page-news__article-content {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-news__article-content--reverse {
    flex-direction: row-reverse;
}

.page-news__article-content img {
    flex: 0 0 40%;
    max-width: 40%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    width: 100%; /* Ensure image fills its flex container */
    height: auto;
}

.page-news__article-content p {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
}

.page-news__dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-news__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-news__highlight {
    font-weight: bold;
    color: var(--primary-color);
}

.page-news__dark-section .page-news__highlight {
    color: var(--secondary-color);
}

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

.page-news__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px 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;
    cursor: pointer;
}

.page-news__video-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-light);
}

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--bg-light);
    transition: background-color 0.3s ease;
}

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

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

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

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 15px 25px;
}

.page-news__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

/* Bottom CTA Section */
.page-news__cta-bottom-section {
    padding: 80px 20px;
    text-align: center;
    background: var(--bg-dark);
    color: var(--text-light);
}

.page-news__cta-bottom-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-news__cta-bottom-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }

    .page-news__hero-description {
        font-size: 1.1em;
    }

    .page-news__section-title {
        font-size: 2em;
    }

    .page-news__article-content {
        flex-direction: column;
    }

    .page-news__article-content img {
        max-width: 80%;
        margin-bottom: 20px;
    }

    .page-news__article-content--reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

    .page-news__hero-title {
        font-size: 2.2em;
    }

    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto;
    }

    .page-news__article-section {
        padding: 40px 0;
    }

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-news__article-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }

    .page-news__container,
    .page-news__article-section .page-news__container,
    .page-news__video-section .page-news__container,
    .page-news__faq-section .page-news__container,
    .page-news__cta-bottom-section .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

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

    .page-news__cta-bottom-title {
        font-size: 2em;
    }

    .page-news__cta-bottom-description {
        font-size: 1.1em;
    }
}