/* style/news.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --background-color-light: #FFFFFF;
    --background-color-dark: #0a0a0a;
    --register-login-font-color: #FFFF00;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark-bg); /* Default text color for dark body background */
    background-color: var(--background-color-dark); /* Inherited from body */
}

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

/* Hero Section */
.page-news__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--background-color-dark);
    color: var(--text-color-dark-bg);
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px;
    margin-top: 20px;
}

.page-news__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-news__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* General Section Styling */
.page-news__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.8);
}

/* Featured News Section */
.page-news__featured-news-section {
    background-color: var(--background-color-dark);
    padding: 60px 0;
}

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

.page-news__news-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    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 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

.page-news__news-card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__news-card-title a:hover {
    color: var(--primary-color);
}

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

.page-news__news-card-excerpt {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__news-card-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-news__news-card-link:hover {
    background-color: #005a2e;
}

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

/* Promotions Section */
.page-news__promotions-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: var(--text-color-dark-bg);
}

.page-news__promotions-section .page-news__section-title,
.page-news__promotions-section .page-news__section-description {
    color: var(--secondary-color);
}

.page-news__promo-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 900px;
}

.page-news__promo-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__promo-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-news__promo-text {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

/* Strategy Guide Section */
.page-news__strategy-guide-section {
    background-color: var(--background-color-dark);
    padding: 60px 0;
}

.page-news__guide-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 900px;
}

.page-news__guide-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
    transition: background 0.3s ease;
}

.page-news__guide-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page-news__guide-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    transition: color 0.3s ease;
}

.page-news__guide-item a:hover {
    color: var(--primary-color);
}

/* FAQ Section */
.page-news__faq-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    color: var(--text-color-dark-bg);
}

.page-news__faq-section .page-news__section-title {
    color: var(--secondary-color);
}

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

.page-news__faq-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-item summary {
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    list-style: none;
    position: relative;
}

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--register-login-font-color); /* Yellow for contrast */
    transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

/* CTA Section */
.page-news__cta-section {
    background-color: var(--background-color-dark);
    padding: 60px 0;
    text-align: center;
}

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
    color: var(--secondary-color);
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background-color: var(--register-button-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-button-color);
}

.page-news__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Image defaults for content area */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px;
    }

    .page-news__hero-content {
        margin-top: 10px;
        padding: 15px;
    }

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

    .page-news__description {
        font-size: 1em;
    }

    /* General Section Styling */
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    /* Featured News Section */
    .page-news__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__news-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-news__news-card-excerpt {
        font-size: 0.9em;
    }

    .page-news__view-all-button-wrapper {
        margin-top: 20px;
    }

    /* Promotions Section */
    .page-news__promo-item {
        padding: 15px;
    }

    .page-news__promo-title {
        font-size: 1.3em;
    }

    .page-news__promo-text {
        font-size: 0.95em;
    }

    /* Strategy Guide Section */
    .page-news__guide-item a {
        font-size: 1em;
    }

    /* FAQ Section */
    .page-news__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }

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

    /* CTA Section */
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* General Image and Container */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__news-card,
    .page-news__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}