/* style/news.css */

/* Base styles for the news page content */
.page-news {
    font-family: Arial, sans-serif;
    color: #FFF3E6; /* Text Main */
    background: #0D0E12; /* Background */
    line-height: 1.6;
    padding-bottom: 50px; /* General padding to avoid content sticking to footer */
}

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

.page-news__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFF3E6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFA53A 0%, #D96800 100%); /* Glow / Deep Orange */
    border-radius: 2px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button custom color */
    color: #ffffff; /* White text for contrast */
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 58, 0.4);
}

.page-news__btn-secondary {
    background: transparent;
    color: #FFA53A; /* Auxiliary color for text */
    border-color: #A84F0C; /* Border custom color */
}

.page-news__btn-secondary:hover {
    background: rgba(255, 165, 58, 0.1);
    border-color: #FFA53A;
    transform: translateY(-2px);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-news__hero-content {
    position: relative; /* Ensure content is above the darkened image */
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px; /* Space from top of section */
}

.page-news__main-title {
    font-size: 52px;
    font-weight: 900;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 20px;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-news__article-card {
    background: #17191F; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #A84F0C; /* Border custom color */
}

.page-news__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 176, 77, 0.4); /* Glow */
}

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

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

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

.page-news__article-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__article-excerpt {
    font-size: 16px;
    color: #FFF3E6; /* Text Main */
    line-height: 1.5;
}

.page-news__button-group {
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background: #17191F; /* Card BG */
    border-top: 1px solid #A84F0C; /* Border custom color */
    border-bottom: 1px solid #A84F0C; /* Border custom color */
}

.page-news__cta-title {
    font-size: 38px;
    font-weight: bold;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-news__cta-description {
    font-size: 20px;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

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

details.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #A84F0C; /* Border custom color */
    overflow: hidden;
    background: #17191F; /* Card BG */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-news__faq-item summary.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #FFF3E6; /* Text Main */
}

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(255, 165, 58, 0.1);
}

.page-news__faq-qtext {
    flex: 1;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF3E6; /* Text Main */
}

.page-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #FFA53A; /* Auxiliary color */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
    padding: 0 25px 20px;
    background: #17191F; /* Card BG */
    border-radius: 0 0 12px 12px;
    color: #FFF3E6; /* Text Main */
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #FFF3E6; /* Text Main */
}

/* Global image settings to prevent small icons */
.page-news img {
    filter: none !important; /* Ensure no CSS filter changes original image color */
}

/* Responsive styles for max-width: 768px */
@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

    /* Hero Section */
    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-news__hero-content {
        padding-top: 60px;
    }
    .page-news__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .page-news__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Buttons - Mobile adaptation */
    .page-news__btn-primary,
    .page-news__btn-secondary {
        font-size: 16px;
        padding: 10px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px;
    }
    .page-news__cta-buttons .page-news__btn-primary,
    .page-news__cta-buttons .page-news__btn-secondary {
        margin: 0;
    }

    /* Latest Articles Section */
    .page-news__latest-articles {
        padding: 60px 0;
    }
    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }
    .page-news__article-image {
        height: 180px; /* Adjust height for mobile cards */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__article-title {
        font-size: 18px;
    }
    .page-news__article-excerpt {
        font-size: 14px;
    }
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__article-card,
    .page-news__cta-section,
    .page-news__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* CTA Section */
    .page-news__cta-section {
        padding: 60px 0;
    }
    .page-news__cta-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-news__cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* FAQ Section */
    .page-news__faq-section {
        padding: 60px 0;
    }
    details.page-news__faq-item summary.page-news__faq-question {
        padding: 15px 20px;
    }
    .page-news__faq-qtext {
        font-size: 16px;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        width: 25px;
        margin-left: 10px;
    }
    details.page-news__faq-item .page-news__faq-answer {
        padding: 0 20px 15px;
    }
    .page-news__faq-answer p {
        font-size: 14px;
    }
}