/* style/news.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

.page-news {
    font-family: Arial, sans-serif;
    background-color: #08160F; /* Nền tối theo yêu cầu */
    color: #F2FFF6; /* Văn bản chính màu sáng */
}

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

.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 60px;
    padding-top: 10px; /* Nhỏ gọn để tránh trùng với body padding-top */
    background-color: #08160F;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Giới hạn chiều cao cho ảnh hero */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-news__hero-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: -80px; /* Kéo lên một chút để tạo hiệu ứng lớp */
    position: relative;
    z-index: 2;
    background: rgba(17, 39, 27, 0.8); /* Nền tối bán trong suốt */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    color: #F2FFF6;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-news__intro-text {
    font-size: 1.1em;
    color: #A7D9B8;
    line-height: 1.6;
    margin-bottom: 30px;
}

.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: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

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

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-news__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-news__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    color: #F2FFF6;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-news__section-title--light {
    color: #F2FFF6;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #A7D9B8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.page-news__section-description--light {
    color: #F2FFF6;
}

/* Latest Updates Section */
.page-news__latest-updates {
    background-color: #08160F;
    padding: 80px 0;
    color: #F2FFF6;
}

.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: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-news__card-content {
    padding: 25px;
}

.page-news__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

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

.page-news__card-excerpt {
    font-size: 1em;
    color: #F2FFF6;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-news__read-more {
    color: #57E38D; /* Glow color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #2AD16F;
    text-decoration: underline;
}

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

/* Featured Video Section */
.page-news__featured-video {
    background-color: #11271B; /* Card BG */
    padding: 80px 0;
    color: #F2FFF6;
}

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

.page-news__video-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Promo Section */
.page-news__promo-section {
    background-color: #08160F;
    padding: 80px 0;
    color: #F2FFF6;
}

.page-news__promo-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.page-news__promo-card {
    background-color: #11271B;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 280px;
    max-width: 45%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__promo-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-news__promo-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #F2FFF6;
    margin-bottom: 15px;
}

.page-news__promo-text {
    font-size: 1em;
    color: #A7D9B8;
    line-height: 1.6;
    margin-bottom: 25px;
}

.page-news__cta-buttons--bottom {
    margin-top: 50px;
}

/* FAQ Section */
.page-news__faq-section {
    background-color: #11271B;
    padding: 80px 0;
    color: #F2FFF6;
}

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

.page-news__faq-item {
    background-color: #08160F;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: #F2FFF6;
    list-style: none; /* Hide default marker */
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    margin-left: 15px;
    color: #57E38D;
    transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #A7D9B8;
    line-height: 1.6;
}

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

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

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

/* Contact CTA Section */
.page-news__contact-cta {
    background-color: #0A4B2C; /* Deep Green */
    padding: 80px 0;
    text-align: center;
    color: #F2FFF6;
}

.page-news__btn-secondary--light {
    background: #F2FFF6;
    color: #0A4B2C;
    border: 2px solid #F2FFF6;
}

.page-news__btn-secondary--light:hover {
    background: #e0e0e0;
    color: #08160F;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-content {
        margin-top: -50px;
        padding: 30px;
    }

    .page-news__promo-card {
        max-width: 48%;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-bottom: 40px;
    }

    .page-news__hero-content {
        margin-top: -30px;
        padding: 25px;
    }

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

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

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-news__promo-cards {
        flex-direction: column;
        gap: 20px;
    }

    .page-news__promo-card {
        max-width: 100%;
        padding: 25px;
    }

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

    .page-news__faq-item summary {
        font-size: 1.1em;
        padding: 18px 20px;
    }

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

    /* Mobile image and video responsiveness */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    .page-news__video-section {
      padding-top: 10px !important;
    }
    .page-news__hero-section {
      padding-left: 0;
      padding-right: 0;
    }
    .page-news__hero-image-wrapper {
      padding-left: 0;
      padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }

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

    .page-news__hero-content {
        padding: 20px;
    }

    .page-news__cta-buttons {
        gap: 10px;
    }
}