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

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

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

/* 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-wrapper {
    width: 100%;
    position: relative;
    line-height: 0;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px;
    max-height: 675px;
}

.page-news__hero-content-wrapper {
    width: 100%;
    text-align: center;
    padding-top: 40px;
    position: relative;
    z-index: 2;
}

.page-news__main-title {
    font-weight: bold;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-news__lead-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-news__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color) inset;
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color) inset;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    color: var(--text-main);
}

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

.page-news__news-card {
    background-color: var(--deep-green);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    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 20px rgba(0, 0, 0, 0.5);
}

.page-news__card-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

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

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

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

.page-news__card-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

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

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

.page-news__card-link:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

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

/* In-depth Analysis Section */
.page-news__in-depth-analysis-section {
    padding: 80px 0;
    background-color: var(--background-color-page);
}

.page-news__feature-article {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.page-news__feature-article--reverse {
    flex-direction: row-reverse;
}

.page-news__article-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-news__article-content {
    width: 50%;
}

.page-news__article-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-news__article-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Promotions & Events Section */
.page-news__promotions-events-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    color: var(--text-main);
}

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

.page-news__promo-card {
    background-color: var(--deep-green);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__promo-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-news__promo-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__promo-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

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

.page-news__faq-item {
    background-color: var(--deep-green);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-news__faq-item:hover {
    background-color: var(--card-bg);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.page-news__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

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

/* CTA Bottom Section */
.page-news__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--card-bg);
    text-align: center;
}

/* General Content Area Paragraphs */
.page-news p {
    color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-news__section-title {
        font-size: 2rem;
    }
    .page-news__article-title {
        font-size: 1.8rem;
    }
    .page-news__feature-article,
    .page-news__feature-article--reverse {
        flex-direction: column;
        text-align: center;
    }
    .page-news__article-image,
    .page-news__article-content {
        width: 100%;
    }
    .page-news__article-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        padding: 0 15px;
    }
    .page-news__lead-text {
        font-size: 1rem;
        padding: 0 15px;
    }
    .page-news__section-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    .page-news__section-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .page-news__latest-news-section,
    .page-news__in-depth-analysis-section,
    .page-news__promotions-events-section,
    .page-news__faq-section,
    .page-news__cta-bottom-section {
        padding: 40px 0;
    }
    .page-news__container {
        padding: 0 15px;
    }

    /* Images responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__hero-image {
        max-height: 400px;
    }
    .page-news__card-image {
        height: 180px;
    }
    .page-news__promo-image {
        height: 200px;
    }

    /* Buttons responsive */
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        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;
    }

    /* Content containers responsive */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__in-depth-analysis-section,
    .page-news__promotions-events-section,
    .page-news__faq-section,
    .page-news__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-news__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px 15px;
    }

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

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-news__section-title {
        font-size: 1.5rem;
    }
    .page-news__article-title {
        font-size: 1.5rem;
    }
    .page-news__card-title {
        font-size: 1.2rem;
    }
    .page-news__promo-title {
        font-size: 1.3rem;
    }
    .page-news__faq-question {
        font-size: 1rem;
    }
}