/* General styles for page-news */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Text Main from custom palette */
    background-color: #140C0C; /* Background from custom palette */
}

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

.page-news__flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-news__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #F3C54D; /* Gold from custom palette */
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

.page-news__section-description {
    font-size: 18px;
    color: #FFF1E8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-news__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C; /* Dark text on bright button */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 197, 77, 0.4); /* Gold shadow */
}

.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: #F3C54D; /* Gold text */
    text-decoration: none;
    border: 2px solid #F3C54D; /* Gold border */
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-secondary:hover {
    background: #F3C54D;
    color: #140C0C; /* Dark text on gold background */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop to fill space */
    display: block;
}

.page-news__hero-content {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    padding: 0 15px;
}

.page-news__main-title {
    font-size: clamp(32px, 4vw, 56px); /* Clamp for H1 */
    font-weight: 800;
    color: #F3C54D;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__intro-text {
    font-size: 20px;
    color: #FFF1E8;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 0;
    background-color: #2A1212; /* Card BG from custom palette */
}

.page-news__latest-articles-section .page-news__section-title {
    color: #F3C54D;
}

.page-news__latest-articles-section .page-news__section-description {
    color: #FFF1E8;
}

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

.page-news__article-card {
    background-color: #140C0C; /* Background color for cards */
    border: 1px solid #6A1E1E; /* Border from custom palette */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__article-thumbnail {
    width: 100%;
    height: 200px; /* Fixed height for thumbnails */
    overflow: hidden;
}

.page-news__article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-news__article-title {
    font-size: 22px;
    font-weight: 700;
    color: #F3C54D; /* Gold color for titles */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__article-meta {
    font-size: 14px;
    color: #E53030; /* Auxiliary color for meta */
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 16px;
    color: #FFF1E8;
    line-height: 1.6;
    flex-grow: 1;
}

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

/* In-depth Analysis Section */
.page-news__in-depth-analysis-section {
    padding: 60px 0;
    background-color: #140C0C; /* Background color */
}

.page-news__in-depth-analysis-section .page-news__section-title {
    color: #F3C54D;
}

.page-news__in-depth-analysis-section .page-news__section-description {
    color: #FFF1E8;
}

.page-news__article-body {
    max-width: 900px;
    margin: 40px auto 0;
    font-size: 17px;
    color: #FFF1E8;
    line-height: 1.7;
}

.page-news__article-body h3 {
    font-size: 28px;
    color: #F3C54D;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-news__article-body p {
    margin-bottom: 20px;
}

.page-news__article-body strong {
    color: #F3C54D;
}

.page-news__article-figure {
    margin: 40px 0;
    text-align: center;
}

.page-news__article-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

.page-news__article-figure figcaption {
    margin-top: 15px;
    font-size: 15px;
    color: #E53030; /* Auxiliary color */
}

/* Promotions CTA Section */
.page-news__promotions-cta-section {
    padding: 60px 0;
    background-color: #7E0D0D; /* Deep Red from custom palette */
    margin-top: 40px;
}

.page-news__promotions-cta-section .page-news__section-title {
    color: #FFF1E8;
}

.page-news__promotions-cta-section .page-news__section-description {
    color: #FFF1E8;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #140C0C; /* Background color */
}

.page-news__faq-section .page-news__section-title {
    color: #F3C54D;
}

.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #6A1E1E; /* Border from custom palette */
    overflow: hidden;
    background: #2A1212; /* Card BG from custom palette */
}
details.page-news__faq-item summary.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
    display: none;
}
details.page-news__faq-item summary.page-news__faq-question:hover {
    background: rgba(243, 197, 77, 0.1); /* Light gold hover */
}
.page-news__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF1E8; /* Text Main */
}
.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #F3C54D; /* Gold color for toggle */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
    background: rgba(20, 12, 12, 0.8); /* Slightly transparent background for answer */
    border-radius: 0 0 5px 5px;
    color: #FFF1E8;
}
details.page-news__faq-item .page-news__faq-answer p {
    margin-bottom: 0;
}

/* Global Image Responsiveness */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-news__hero-image {
        height: 500px;
    }
    .page-news__main-title {
        font-size: clamp(28px, 5vw, 48px);
    }
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__article-title {
        font-size: 20px;
    }
    .page-news__article-body {
        font-size: 16px;
    }
    .page-news__faq-qtext {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-news__hero-section {
        padding-top: 10px; /* Ensure small top padding */
        margin-bottom: 30px;
    }
    .page-news__hero-image {
        height: 300px; /* Adjust height for mobile */
    }
    .page-news__hero-image img {
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important;
    }
    .page-news__hero-content {
        margin: 20px auto;
        padding: 0 15px;
    }
    .page-news__main-title {
        font-size: clamp(24px, 7vw, 40px); /* Smaller clamp for mobile */
        margin-bottom: 15px;
    }
    .page-news__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 20px;
        padding: 0 15px; /* Add padding to container */
        width: 100%; /* Ensure container takes full width */
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Buttons Mobile */
    .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;
        font-size: 16px;
    }

    /* Sections and Containers Mobile */
    .page-news__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Latest Articles Section Mobile */
    .page-news__latest-articles-section {
        padding: 40px 0;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }
    .page-news__article-thumbnail {
        height: 180px;
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__article-meta,
    .page-news__article-excerpt {
        font-size: 14px;
    }
    .page-news__view-all-button {
        margin-top: 30px;
    }

    /* In-depth Analysis Section Mobile */
    .page-news__in-depth-analysis-section {
        padding: 40px 0;
    }
    .page-news__article-body {
        margin-top: 20px;
        font-size: 15px;
        padding: 0 15px; /* Ensure content area has padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__article-body h3 {
        font-size: 24px;
    }
    .page-news__article-figure {
        margin: 20px 0;
    }
    .page-news__article-figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Promotions CTA Section Mobile */
    .page-news__promotions-cta-section {
        padding: 40px 0;
    }

    /* FAQ Section Mobile */
    .page-news__faq-section {
        padding: 40px 0;
    }
    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px;
    }
    .page-news__faq-qtext {
        font-size: 16px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 15px 15px;
    }

    /* Global Image Responsiveness for mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    /* Ensure all content containers also have max-width and padding */
    .page-news__hero-content,
    .page-news__latest-articles-section .page-news__container,
    .page-news__in-depth-analysis-section .page-news__container,
    .page-news__promotions-cta-section .page-news__container,
    .page-news__faq-section .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}