:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-login: #EA7C07; /* Custom color for login */
    --background-color-default: #FFFFFF; /* Default background, assuming body is light */
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-color-default); /* Ensure consistency */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--primary-color); /* Fallback for content below image */
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for larger screens */
    overflow: hidden;
}

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

.page-news__hero-content {
    padding: 40px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-light);
    background-color: var(--primary-color);
    width: 100%; /* Ensure content takes full width of its container */
}

.page-news__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-news__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--secondary-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* General Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: var(--button-login); /* Custom color for login/primary action */
    color: var(--text-light);
    border: 2px solid var(--button-login);
}

.page-news__btn-primary:hover {
    background-color: #D36A06; /* Hardcoded darker shade of #EA7C07 */
    border-color: #D36A06;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Container for main content sections */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-news__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-news__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
    background-color: var(--background-color-default);
}

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

.page-news__news-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have consistent height */
    display: flex;
    flex-direction: column;
}

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__news-link {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__news-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__news-content {
    padding: 20px;
    flex-grow: 1; /* Allows content to expand and push footer down */
    display: flex;
    flex-direction: column;
}

.page-news__news-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    flex-grow: 1;
}

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

.page-news__news-excerpt {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
}

.page-news__read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto; /* Pushes to the bottom */
}

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

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

/* CTA Section */
.page-news__cta-section {
    padding: 80px 20px;
    background-color: var(--primary-color);
    text-align: center;
}

.page-news__cta-title {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for FAQ */
}

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

.page-news__faq-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* For smooth animation if using JS */
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* For details/summary */
    position: relative;
}

.page-news__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-news__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    color: var(--primary-color);
    margin-left: 15px;
    line-height: 1;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: "−"; /* Change to minus when open */
}

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

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

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

@media (max-width: 768px) {
    /* HERO Chủ đồ khu vực */
    .page-news__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }

    .page-news__hero-content {
        padding: 30px 15px 40px;
    }

    .page-news__hero-title {
        font-size: clamp(1.8em, 8vw, 2.5em) !important;
        margin-bottom: 15px;
    }

    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

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

    /* Hình ảnh và container chung */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    /* Nút và container nút */
    .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;
        text-align: center; /* Center button text on mobile */
    }

    .page-news__hero-buttons,
    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Các module nội dung khác */
    .page-news__section-title {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .page-news__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__news-grid {
        grid-template-columns: 1fr; /* Single column for news cards */
        gap: 20px;
    }

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

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

    .page-news__cta-section {
        padding: 50px 15px;
    }

    .page-news__cta-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-news__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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