:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light backgrounds */
    background-color: var(--card-bg); /* Default light background for content areas */
}

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

/* --- Sections --- */
.page-news__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--text-color-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Dark Background Sections */
.page-news__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 60px 0;
}

.page-news__dark-section .page-news__section-title,
.page-news__dark-section .page-news__section-description,
.page-news__dark-section .page-news__card-title a {
    color: var(--text-color-light);
}

/* Light Background Sections */
.page-news__light-bg {
    background-color: var(--card-bg);
    color: var(--text-color-dark);
    padding: 60px 0;
}

/* --- Hero Section --- */
.page-news__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: var(--header-offset, 120px); /* Apply header offset here */
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    background-color: var(--primary-color);
}

.page-news__hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.page-news__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    z-index: 1;
}

.page-news__hero-title {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-news__hero-description {
    font-size: 1.3em;
    color: var(--text-color-light);
    margin-bottom: 30px;
}

.page-news__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-news__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.page-news__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* --- Buttons --- */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

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

.page-news__btn-primary:hover {
    background-color: #E6C200; /* Slightly darker secondary color */
    border-color: #E6C200;
}

.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);
}

.page-news__btn-text {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

.page-news__arrow {
    transition: transform 0.3s ease;
}

.page-news__btn-text:hover .page-news__arrow {
    transform: translateX(5px);
}

/* --- Featured News Grid --- */
.page-news__featured-news {
    background-color: var(--card-bg);
}

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

.page-news__news-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-news__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-news__card-title a:hover {
    color: var(--secondary-color);
}

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

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

/* --- Categories --- */
.page-news__categories {
    background-color: var(--primary-color);
}

.page-news__category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-news__category-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: var(--text-color-light);
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__category-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.page-news__category-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-news__category-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color-light);
}

.page-news__category-excerpt {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Latest Updates --- */
.page-news__latest-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.page-news__latest-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__latest-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__latest-thumb {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    min-width: 200px; /* Enforce min size */
    min-height: 150px; /* Enforce min size */
}

.page-news__latest-content {
    flex-grow: 1;
}

.page-news__latest-title {
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: bold;
}

.page-news__latest-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__latest-title a:hover {
    color: var(--secondary-color);
}

.page-news__latest-meta {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.page-news__latest-excerpt {
    font-size: 0.95em;
    color: var(--text-color-dark);
}

/* --- Video Section --- */
.page-news__video-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    background-color: var(--primary-color);
    padding-bottom: 60px;
}

.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: 8px;
    margin: 40px auto 20px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-news__video-caption {
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

.page-news__video-caption a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-news__video-caption a:hover {
    text-decoration: underline;
}

/* --- FAQ Section --- */
.page-news__faq-section {
    background-color: var(--card-bg);
}

.page-news__faq-list {
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.page-news__faq-item {
    border-bottom: 1px solid var(--border-color);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.page-news__faq-question:hover {
    color: var(--secondary-color);
}

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-color-dark);
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px;
}

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

/* --- CTA Section --- */
.page-news__cta-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: var(--text-color-light);
    background-color: var(--primary-color); /* Fallback if image fails */
    background-size: cover;
    background-position: center;
}

.page-news__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Overlay for readability */
    z-index: 0;
}

.page-news__cta-content {
    position: relative;
    z-index: 1;
}

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
    color: var(--text-color-light);
}

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

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

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

    .page-news__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
        padding-bottom: 40px; /* Adjust padding for mobile */
    }

    .page-news__hero-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-news__hero-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .page-news__hero-title {
        font-size: 2.5em;
        text-align: center;
    }

    .page-news__hero-description {
        font-size: 1.1em;
        text-align: center;
    }

    .page-news__hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

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

    .page-news__latest-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-news__latest-thumb {
        width: 100%;
        height: auto;
        max-width: 100% !important;
        min-width: 200px !important;
        min-height: 150px !important;
    }

    .page-news__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
        padding-bottom: 40px;
    }
}}