/* style/news.css */

/* --- General Styles --- */
.page-news {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main for general content on dark background */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

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

.page-news__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

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

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure no overflow issues */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px; /* Ensure image is not too small vertically */
}

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 800;
    color: #F2C14E; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-news__intro-text {
    font-size: 1.2em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-news__btn-secondary {
    background-color: #F2FFF6; /* Text Main */
    color: #11A84E; /* Primary color */
    border: 2px solid #2E7A4E; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary:hover {
    background-color: #E0E0E0;
    color: #0A4B2C; /* Deep Green */
    border-color: #11A84E;
}

/* --- Latest News Section --- */
.page-news__latest-news-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__news-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-news__card-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-news__card-image {
    width: 100%;
    height: 220px; /* 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;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__card-title a {
    color: #F2C14E; /* Gold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #57E38D; /* Glow */
}

.page-news__card-meta {
    font-size: 0.9em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__card-link {
    display: inline-block;
    color: #2AD16F; /* Button gradient start color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-news__card-link:hover {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

.page-news__view-all-button {
    text-align: center;
}

/* --- About Us Section --- */
.page-news__about-us-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

.page-news__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-news__text-content {
    flex: 1;
    color: #F2FFF6; /* Text Main */
}

.page-news__text-content p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-news__text-content strong {
    color: #F2C14E; /* Gold */
}

.page-news__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* --- FAQ Section --- */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    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: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #1E3A2A; /* Divider */
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #2E7A4E; /* Border */
}

.page-news__faq-question::-webkit-details-marker {
    display: none;
}

.page-news__faq-question::marker {
    display: none;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #2AD16F;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
    color: #F2C14E; /* Gold */
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    border-top: 1px solid #1E3A2A; /* Divider */
}

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

/* --- CTA Banner Section --- */
.page-news__cta-banner-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
    text-align: center;
}

.page-news__cta-banner-content {
    background: linear-gradient(90deg, #11A84E 0%, #22C768 100%); /* Primary and Auxiliary colors */
    border-radius: 15px;
    padding: 50px 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(17, 168, 78, 0.5);
}

.page-news__cta-banner-title {
    font-size: clamp(2em, 4vw, 3em);
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-news__cta-banner-description {
    font-size: 1.1em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-banner-description strong {
    color: #F2C14E; /* Gold */
}

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__content-wrapper {
        flex-direction: column;
    }
    .page-news__image-content {
        margin-top: 30px;
    }
}

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

    .page-news__container {
        padding: 0 15px;
    }

    /* Mobile image responsive adaptation */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__hero-image-wrapper,
    .page-news__card-image-wrapper,
    .page-news__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile video responsive adaptation (if video were present) */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Mobile button responsive adaptation */
    .page-news__cta-buttons,
    .page-news__cta-banner-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-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; /* Add padding to text within button */
        padding-right: 15px; /* Add padding to text within button */
    }

    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-news__intro-text {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-news__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr;
    }
    .page-news__card-title {
        font-size: 1.2em;
    }
    .page-news__about-image {
        max-width: 100%;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 15px 20px;
    }
    .page-news__cta-banner-content {
        padding: 40px 20px;
    }
    .page-news__cta-banner-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
}