/* style/news.css */

:root {
    /* Custom Colors */
    --page-news-bg: #08160F;
    --page-news-card-bg: #11271B;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-border: #2E7A4E;
    --page-news-glow: #57E38D;
    --page-news-gold: #F2C14E;
    --page-news-divider: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
    --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-primary-color: #11A84E;
    --page-news-secondary-color: #22C768;
}

.page-news {
    background-color: var(--page-news-bg);
    color: var(--page-news-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-news__section {
    padding: 60px 0;
    position: relative;
}

.page-news__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--page-news-gold);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Slightly transparent to allow text to stand out */
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure content has enough space */
}

.page-news__hero-title {
    font-size: clamp(2em, 4.5vw, 3.5em); /* Responsive font size */
    font-weight: 900;
    color: var(--page-news-gold);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 1.2em;
    color: var(--page-news-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

/* CTA Buttons */
.page-news__cta-button {
    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;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: var(--page-news-btn-gradient);
    color: var(--page-news-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
    background-color: var(--page-news-text-main);
    color: var(--page-news-primary-color);
    border: 2px solid var(--page-news-primary-color);
    margin-left: 20px;
}

.page-news__btn-secondary:hover {
    background-color: var(--page-news-primary-color);
    color: var(--page-news-text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 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(--page-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    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 12px 30px rgba(0, 0, 0, 0.4);
}

.page-news__article-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.page-news__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image {
    transform: scale(1.05);
}

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

.page-news__article-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__article-title a:hover {
    color: var(--page-news-gold);
}

.page-news__article-meta {
    font-size: 0.9em;
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
}

.page-news__article-summary {
    font-size: 1em;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: var(--page-news-gold);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: var(--page-news-text-main);
}

/* General News List */
.page-news__articles-grid--full {
    grid-template-columns: 1fr;
    gap: 20px;
}

.page-news__article-item {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__article-thumb {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    flex-shrink: 0;
}

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

.page-news__item-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.4;
}

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

.page-news__item-title a:hover {
    color: var(--page-news-gold);
}

.page-news__item-date {
    font-size: 0.85em;
    color: var(--page-news-text-secondary);
    margin-bottom: 10px;
    display: block;
}

.page-news__item-summary {
    font-size: 0.95em;
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
}

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

/* Promotional CTA Section */
.page-news__promo-cta {
    background-color: var(--page-news-deep-green);
    color: var(--page-news-text-main);
    padding: 80px 0;
    text-align: center;
}

.page-news__dark-section .page-news__section-title {
    color: var(--page-news-gold);
}

.page-news__dark-section .page-news__section-description {
    color: var(--page-news-text-main);
}

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

/* FAQ Section */
.page-news__faq-section {
    background-color: var(--page-news-bg);
    padding-bottom: 80px;
}

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

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--page-news-text-main);
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> tag */
}

.page-news__faq-question::-webkit-details-marker { /* For <summary> tag */
    display: none;
}

.page-news__faq-item[open] .page-news__faq-question {
    background-color: var(--page-news-deep-green);
}

.page-news__faq-question:hover {
    background-color: var(--page-news-deep-green);
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--page-news-gold);
    transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--page-news-text-secondary);
    line-height: 1.6;
}

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

    .page-news__section-title {
        font-size: 2em;
    }

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

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

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

    .page-news__hero-content {
        padding: 30px 15px;
        min-height: 300px;
    }

    .page-news__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__section-title {
        font-size: 1.8em;
    }

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

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-secondary {
        margin-left: 0;
    }

    /* Mobile image adaptation */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__article-image-wrapper,
    .page-news__article-item,
    .page-news__promo-cta,
    .page-news__faq-section,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__hero-section {
        padding-left: 0;
        padding-right: 0;
        padding-top: 10px !important;
    }

    .page-news__hero-image {
        left: 0;
        right: 0;
        width: 100%;
    }

    .page-news__article-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .page-news__article-thumb {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }

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

    /* Mobile button adaptation */
    .page-news__cta-button,
    .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;
    }
    
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

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

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

}

@media (max-width: 480px) {
    .page-news__section-title {
        font-size: 1.5em;
    }

    .page-news__hero-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }

    .page-news__article-card {
        padding-left: 0;
        padding-right: 0;
    }

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