/* style/news.css */

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

.page-news__section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #11A84E, #22C768); /* Main and Auxiliary */
    border-radius: 5px;
}

.page-news__sub-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 600;
    color: #22C768; /* Auxiliary Color */
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-news p {
    margin-bottom: 15px;
    color: #A7D9B8; /* Text Secondary */
}

.page-news a {
    color: #22C768; /* Auxiliary Color */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* --- Buttons --- */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-news__btn-secondary {
    background: transparent;
    color: #22C768;
    border: 2px solid #22C768; /* Auxiliary Color */
}

.page-news__btn-secondary:hover {
    background: #22C768;
    color: #08160F; /* Background */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom */
    background-color: #08160F; /* Background */
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    position: relative;
    z-index: 1; /* Ensure image is behind text if any accidental overlap */
    overflow: hidden;
    border-radius: 12px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
}

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Ensure text is above image */
}

.page-news__main-title {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 800;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Latest News Section --- */
.page-news__latest-news-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

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

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

.page-news__news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-news__news-card-content {
    padding: 20px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__news-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__news-card-title a {
    color: #F2FFF6; /* Text Main */
}

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

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

.page-news__news-card-excerpt {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__news-card .page-news__btn-secondary {
    align-self: flex-start;
}

.page-news__view-all {
    margin-top: 50px;
}

/* --- Content Area --- */
.page-news__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #08160F; /* Background */
    border-top: 1px solid #1E3A2A; /* Divider */
}

.page-news__cta-block {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    border: 1px solid #2E7A4E; /* Border */
}

.page-news__cta-block p {
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 25px;
}

/* --- FAQ Section --- */
.page-news__faq-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid #1E3A2A; /* Divider */
}

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    background-color: #0A4B2C; /* Deep Green */
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-question {
    background-color: #11A84E; /* Main Color */
    border-bottom-color: #2E7A4E; /* Border */
}

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

.page-news__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-left: 15px;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    color: #F2FFF6; /* Text Main */
}

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

.page-news__faq-item:not([open]) .page-news__faq-answer {
    display: none; /* Hide answer when not open */
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-news__hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    /* General responsive for images, videos, buttons and containers */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__hero-image-wrapper,
    .page-news__news-card-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-news__news-grid {
        grid-template-columns: 1fr;
    }

    .page-news__cta-button,
    .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;
        padding-right: 15px;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }

    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container,
    .page-news__cta-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__content-area,
    .page-news__faq-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 10px !important; /* Small top padding for sections */
    }
    
    .page-news__hero-section {
        padding-top: 10px !important; /* Body padding handles header offset */
    }

    .page-news__news-card-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-news__news-card-title {
        font-size: 1.15rem;
    }

    .page-news__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

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