/* style/news.css */

/* --- Base Styles --- */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for the page, from custom palette */
    background-color: var(--bg, #08160F); /* Body background, from custom palette */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-news__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.page-news__description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* --- Button Styles --- */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--main-color, #11A84E); /* Use main color for text */
    border: 2px solid var(--border-color, #2E7A4E); /* Custom border color */
}

.page-news__btn-secondary:hover {
    background: rgba(var(--main-color-rgb, 17, 168, 78), 0.1); /* Light hover effect */
    transform: translateY(-2px);
}

/* --- Section Backgrounds & Colors --- */
.page-news__dark-section {
    background-color: var(--bg, #08160F); /* Main background */
    color: var(--text-main, #F2FFF6);
}

.page-news__dark-bg {
    background-color: var(--card-bg, #11271B); /* Card BG from custom palette */
    color: var(--text-main, #F2FFF6);
}

.page-news__light-bg {
    background-color: var(--card-bg, #11271B); /* Card BG from custom palette */
    color: var(--text-main, #F2FFF6);
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above, text below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
    background-color: var(--bg, #08160F); /* Ensure hero section has a background */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-news__hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.page-news__hero-content .page-news__btn-primary {
    margin-top: 20px;
}

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

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

.page-news__article-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
    background-color: var(--card-bg, #11271B); /* Use custom card background */
    color: var(--text-main, #F2FFF6);
}

.page-news__article-card:hover {
    transform: translateY(-5px);
}

.page-news__article-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    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-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-news__card-title a:hover {
    color: var(--glow-color, #57E38D);
}

.page-news__card-meta {
    font-size: 0.9em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    color: var(--glow-color, #57E38D);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}

.page-news__read-more:hover {
    text-decoration: underline;
}

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

/* --- About tgv88 Section --- */
.page-news__about-tgv88 {
    padding: 80px 0;
    text-align: center;
}

.page-news__about-tgv88 p {
    max-width: 900px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
}

.page-news__about-tgv88 .page-news__btn-primary {
    margin-top: 30px;
}

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

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

.page-news__faq-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--text-main, #F2FFF6);
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-main, #F2FFF6);
    user-select: none;
}

.page-news__faq-item[open] > .page-news__faq-question {
    border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

.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;
    color: var(--glow-color, #57E38D);
}

.page-news__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
}

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

.page-news__faq-answer a {
    color: var(--glow-color, #57E38D);
    text-decoration: underline;
}

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

.page-news__cta-section p {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* --- Image and Video responsiveness (Global for .page-news) --- */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no CSS filters are used on images */
}

.page-news video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__hero-content {
        padding: 0 15px;
    }
}

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

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

    .page-news__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-news__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-news__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-news__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-news__latest-articles,
    .page-news__about-tgv88,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 60px 0;
    }

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

    .page-news__article-image {
        height: 180px;
    }

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

    .page-news__card-title {
        font-size: 1.1em;
    }

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

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

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

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Video and Image responsiveness (Mandatory for mobile) */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .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;
    }
}