/* style/news.css */
/* body đã có padding-top: var(--header-offset); nên các section đầu tiên không cần thêm */
.page-news {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Nhỏ hơn var(--header-offset) */
    text-align: center;
    overflow: hidden;
}

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

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

.page-news__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news__hero-title {
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
    font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for responsive H1 */
    line-height: 1.2;
    margin-bottom: 20px;
}

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

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

.page-news__hero-cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

.page-news__section-subtitle {
    color: #A7D9B8; /* Text Secondary */
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 0;
}

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

.page-news__article-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__article-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.page-news__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image {
    transform: scale(1.05);
}

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

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

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

.page-news__article-title a:hover {
    color: #2AD16F;
}

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

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

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more-button:hover {
    background-color: #13994A;
}

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

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

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

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

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

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

.page-news__video-cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* CTA Banner Section */
.page-news__cta-banner-section {
    padding: 60px 0;
    text-align: center;
}

.page-news__cta-banner-content {
    background-color: #11271B; /* Card BG */
    border-radius: 15px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #2E7A4E; /* Border */
}

.page-news__cta-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-news__cta-banner-text {
    max-width: 700px;
}

.page-news__cta-banner-title {
    color: #F2FFF6; /* Text Main */
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
}

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

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

.page-news__cta-banner-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    background-color: #0A4B2C; /* Deep Green for question background */
    transition: background-color 0.3s ease;
    list-style: none;
}

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

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

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

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

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

.page-news__faq-link {
    color: #2AD16F;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__faq-link:hover {
    color: #57E38D;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__cta-banner-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-news__hero-title {
        font-size: 2em !important;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__hero-cta-button,
    .page-news__view-all-button,
    .page-news__video-cta-button,
    .page-news__cta-banner-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 10px;
    }

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

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

    .page-news__cta-banner-content {
        flex-direction: column;
        padding: 30px 15px;
    }
    .page-news__cta-banner-title {
        font-size: 1.5em;
    }
    .page-news__cta-banner-description {
        font-size: 0.95em;
    }

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

    /* Mobile image responsive optimization */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__video-section,
    .page-news__cta-banner-section,
    .page-news__faq-section,
    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__video-section {
      padding-top: 10px !important;
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
    .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-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile button responsive optimization */
    .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-wrap: wrap !important;
        gap: 10px;
    }
    .page-news__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

/* Ensure no CSS filters on images */
.page-news img {
    filter: none;
}