:root {
    --main-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg-color: #111111;
    --background-color: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --header-offset: 122px; /* Default, will be overridden by shared.css */
}

.page-news {
    color: var(--text-main-color); /* #FFF6D6 */
    background-color: var(--background-color); /* #0A0A0A */
    font-family: Arial, sans-serif;
}

/* General container for content */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-news__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
    color: var(--text-main-color); /* #FFF6D6 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__subtitle {
    font-size: 1.1em;
    color: rgba(255, 246, 214, 0.8); /* Lighter version of Text Main */
    margin-bottom: 30px;
    line-height: 1.6;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For mobile adaptation */
    white-space: normal; /* For mobile button text wrapping */
    word-wrap: break-word; /* For mobile button text wrapping */
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.3);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, var(--secondary-color) 0%, #C48E1A 100%);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.5);
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--main-color); /* #F2C14E */
    border: 2px solid var(--main-color); /* #F2C14E */
}

.page-news__btn-secondary:hover {
    background: var(--main-color); /* #F2C14E */
    color: #ffffff;
    transform: translateY(-2px);
}

/* Sections */
.page-news__section {
    padding: 60px 0;
    text-align: center;
}

.page-news__section-title {
    font-size: 2.5em;
    color: var(--text-main-color); /* #FFF6D6 */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    color: rgba(255, 246, 214, 0.7);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Latest Articles Grid */
.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__article-card {
    background-color: var(--card-bg-color); /* #111111 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

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

.page-news__article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

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

.page-news__article-title {
    font-size: 1.4em;
    color: var(--text-main-color); /* #FFF6D6 */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__article-meta {
    font-size: 0.9em;
    color: rgba(255, 246, 214, 0.6);
    margin-bottom: 15px;
}

.page-news__article-summary {
    font-size: 1em;
    color: rgba(255, 246, 214, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-news__read-more {
    color: var(--main-color); /* #F2C14E */
    font-weight: bold;
    display: inline-block;
    position: relative;
}

.page-news__read-more::after {
    content: '→';
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.page-news__article-link:hover .page-news__read-more::after {
    margin-left: 10px;
}

.page-news__view-all {
    margin-top: 50px;
}

/* CTA Section */
.page-news__cta-section {
    background-color: var(--card-bg-color); /* #111111 */
    padding: 80px 0;
    border-top: 1px solid var(--border-color); /* #3A2A12 */
    border-bottom: 1px solid var(--border-color); /* #3A2A12 */
}

.page-news__cta-content {
    max-width: 900px;
}

.page-news__cta-title {
    font-size: 2.8em;
    color: var(--text-main-color); /* #FFF6D6 */
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__cta-description {
    font-size: 1.2em;
    color: rgba(255, 246, 214, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

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

.page-news__faq-item {
    background-color: var(--card-bg-color); /* #111111 */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color); /* #3A2A12 */
}

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

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

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

.page-news__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    color: var(--main-color); /* #F2C14E */
    width: 30px;
    text-align: center;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or rotate */
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: rgba(255, 246, 214, 0.7);
    line-height: 1.6;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* HERO Section */
    .page-news__hero-section {
        padding-top: 10px !important; /* Fixed top padding for hero */
        padding-bottom: 30px;
    }

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

    .page-news__main-title {
        font-size: 2em; /* Smaller on mobile */
        margin-bottom: 10px;
    }

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

    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding to container for buttons */
        box-sizing: border-box;
    }

    /* Buttons */
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Sections */
    .page-news__section {
        padding: 40px 0;
    }

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

    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* Latest Articles Grid */
    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 0 15px; /* Ensure content is within bounds */
    }

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

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

    .page-news__article-summary {
        font-size: 0.9em;
    }

    /* CTA Section */
    .page-news__cta-section {
        padding: 50px 0;
    }

    .page-news__cta-content {
        padding: 0 15px;
    }

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

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

    /* FAQ Section */
    .page-news__faq-list {
        padding: 0 15px;
    }

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

    .page-news__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Universal Image Adaptation */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden; /* Prevent content overflow */
    }
}