/* style/news.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-news {
    background-color: var(--background-color, #08160F); /* Fallback to custom deep green if var not set */
    color: var(--text-main, #F2FFF6); /* Fallback to custom main text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Đảm bảo khoảng trống phía trên footer */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Hình ảnh ở trên, nội dung ở dưới */
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Khoảng đệm nhỏ ở trên, body xử lý --header-offset */
    background-color: #0A4B2C; /* Deep Green từ custom colors cho nền hero */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Đảm bảo chiếm toàn bộ chiều rộng */
    margin-bottom: 30px; /* Khoảng cách giữa hình ảnh và văn bản */
}

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

.page-news__hero-content {
    max-width: 800px;
    color: #F2FFF6; /* Text Main */
}

.page-news__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-news__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-news__section-title {
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
    font-weight: 700;
}

.page-news__section-title--light {
    color: #F2FFF6; /* Text Main */
}

/* Latest News Section */
.page-news__latest-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-news__featured-article {
    display: flex;
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.page-news__article-image-wrapper {
    flex: 1;
    min-width: 40%;
}

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

.page-news__article-content {
    flex: 2;
    padding: 30px;
    color: #F2FFF6; /* Text Main */
}

.page-news__article-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.page-news__article-excerpt {
    margin-bottom: 20px;
    color: #A7D9B8; /* Text Secondary */
}

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1E3A2A; /* Divider for a subtle button */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-news__read-more-button:hover {
    background-color: #2E7A4E; /* Border color for hover */
}

/* News Grid Section */
.page-news__grid-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-news__news-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: #F2FFF6; /* Text Main */
}

.page-news__card-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

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

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

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

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

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

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

.page-news__card-excerpt {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

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

.page-news__view-all-button {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
}

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

.page-news__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    text-align: justify;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    background-color: #11A84E; /* Main Color */
    text-align: center;
}

.page-news__cta-container {
    max-width: 900px;
}

.page-news__cta-description {
    font-size: 1.2em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 40px;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ */
}

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

.page-news__btn-secondary {
    background: #ffffff;
    color: #11A84E; /* Main Color */
    border: 2px solid #11A84E; /* Main Color border */
}

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

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

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

.page-news__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Text Main */
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #1E3A2A; /* Divider */
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for <summary> */
}

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

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow */
}

.page-news__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
}

.page-news__faq-answer p {
    margin-bottom: 10px;
}

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

.page-news__faq-answer a {
    color: #57E38D; /* Glow */
    text-decoration: none;
}

.page-news__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news__featured-article {
        flex-direction: column;
    }
    .page-news__article-image-wrapper {
        min-width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset */
    }

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

    .page-news__intro-text {
        font-size: 1em;
    }

    .page-news__cta-button {
        padding: 12px 25px;
    }

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

    .page-news__latest-section,
    .page-news__grid-section,
    .page-news__about-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 40px 0;
    }

    .page-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__hero-image-wrapper,
    .page-news__article-image-wrapper,
    .page-news__card-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__card-image-wrapper {
        height: 180px; /* Adjust card image height for mobile */
    }

    /* Video responsiveness (if any) - Placeholder rules */
    .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;
    }

    /* Button responsiveness */
    .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;
    }

    .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;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-news__featured-article {
        flex-direction: column;
    }
    .page-news__article-content {
        padding: 20px;
    }
    .page-news__article-title {
        font-size: 1.5em;
    }
}