/* style/news.css */

:root {
    --sodo79-primary: #11A84E;
    --sodo79-secondary: #22C768;
    --sodo79-bg-card: #11271B;
    --sodo79-bg-main: #08160F;
    --sodo79-text-main: #F2FFF6;
    --sodo79-text-secondary: #A7D9B8;
    --sodo79-border: #2E7A4E;
    --sodo79-glow: #57E38D;
    --sodo79-gold: #F2C14E;
    --sodo79-divider: #1E3A2A;
    --sodo79-deep-green: #0A4B2C;
}

.page-news {
    font-family: Arial, sans-serif;
    color: var(--sodo79-text-main); /* Default text color for dark body background */
    background-color: var(--sodo79-bg-main);
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    overflow: hidden;
    background-color: var(--sodo79-bg-main);
}

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

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: var(--sodo79-text-main);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-news__description {
    font-size: 1.1em;
    color: var(--sodo79-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--sodo79-text-main);
    border: none;
    margin-right: 15px;
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

.page-news__btn-link {
    background: none;
    border: none;
    color: var(--sodo79-gold);
    padding: 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-news__btn-link:hover {
    color: var(--sodo79-glow);
}

/* Section Titles & Descriptions */
.page-news__section-title {
    font-size: 2.5em;
    color: var(--sodo79-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: var(--sodo79-bg-main);
}

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

.page-news__article-card {
    display: flex;
    flex-direction: column;
    background-color: var(--sodo79-bg-card);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--sodo79-text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-news__article-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--sodo79-text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.page-news__article-excerpt {
    font-size: 1em;
    color: var(--sodo79-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    color: var(--sodo79-gold);
    font-weight: bold;
    align-self: flex-start;
}

.page-news__read-more:hover {
    text-decoration: underline;
}

.page-news__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Section */
.page-news__promotions-section {
    padding: 80px 0;
    background-color: var(--sodo79-deep-green);
}

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

.page-news__promo-card {
    background-color: var(--sodo79-bg-card);
    border-radius: 12px;
    overflow: hidden;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__promo-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-news__promo-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--sodo79-text-main);
    margin-bottom: 10px;
}

.page-news__promo-date {
    font-size: 0.9em;
    color: var(--sodo79-text-secondary);
    margin-bottom: 20px;
}

/* Download CTA Section */
.page-news__download-cta {
    padding: 80px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    background-color: var(--sodo79-bg-card);
    border-top: 1px solid var(--sodo79-divider);
    border-bottom: 1px solid var(--sodo79-divider);
}

.page-news__download-content {
    text-align: left;
    max-width: 500px;
}

.page-news__download-title {
    font-size: 2.2em;
    color: var(--sodo79-text-main);
    margin-bottom: 15px;
}

.page-news__download-description {
    font-size: 1.1em;
    color: var(--sodo79-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-news__download-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--sodo79-text-main);
    cursor: pointer;
    background-color: var(--sodo79-bg-card);
    border-bottom: 1px solid var(--sodo79-divider);
    list-style: none; /* For details/summary */
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    color: var(--sodo79-gold);
    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 25px;
    font-size: 1em;
    color: var(--sodo79-text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news__faq-item[open] .page-news__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-image-wrapper {
        max-height: 400px;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }
    .page-news__download-cta {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .page-news__download-content {
        text-align: center;
        max-width: 100%;
    }
    .page-news__download-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 0;
        padding-top: 10px !important;
    }
    .page-news__hero-image-wrapper {
        max-height: 300px;
    }
    .page-news__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
    }
    .page-news__description {
        font-size: 1em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        margin-right: 0;
        margin-bottom: 15px;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-content .page-news__btn-primary {
        margin-right: 0;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-news__articles-grid,
    .page-news__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__latest-articles,
    .page-news__promotions-section,
    .page-news__faq-section {
        padding: 40px 0;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
    .page-news__promo-title {
        font-size: 1.1em;
    }
    .page-news__download-title {
        font-size: 1.8em;
    }
    .page-news__download-description {
        font-size: 1em;
    }
    .page-news__download-image {
        max-width: 90%;
    }
    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    /* Image & Video Responsive Fixes */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.2em, 8vw, 1.8em);
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__download-title {
        font-size: 1.6em;
    }
    .page-news__faq-question {
        font-size: 1em;
    }
}