/* style/news.css */

/* Custom Colors */
:root {
    --page-news-bg-color: #08160F; /* Background */
    --page-news-card-bg: #11271B; /* Card B G */
    --page-news-text-main: #F2FFF6; /* Text Main */
    --page-news-text-secondary: #A7D9B8; /* Text Secondary */
    --page-news-border-color: #2E7A4E; /* Border */
    --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --page-news-glow: #57E38D; /* Glow */
    --page-news-gold: #F2C14E; /* Gold */
    --page-news-divider: #1E3A2A; /* Divider */
    --page-news-deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page-news scope */
.page-news {
    background-color: var(--page-news-bg-color);
    color: var(--page-news-text-main); /* Dark background, so light text */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

.page-news__section-title,
.page-news__cta-title {
    font-size: clamp(28px, 4vw, 48px); /* H1/H2 font-size clamp */
    font-weight: 700;
    color: var(--page-news-text-main);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

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

.page-news__video-wrapper {
    position: relative;
    width: 100%; /* Important for desktop as well */
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100) */
    height: 0;
    margin-bottom: 40px;
}

.page-news__hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure text is above video if any overlap */
}

.page-news__main-title {
    font-size: clamp(36px, 5vw, 64px); /* H1 font-size clamp */
    font-weight: 800;
    color: var(--page-news-gold);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow */
}

.page-news__description {
    font-size: 18px;
    color: var(--page-news-text-secondary);
    margin-bottom: 30px;
}

/* Buttons */
.page-news__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--page-news-btn-gradient);
    color: var(--page-news-text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-news__article-card {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-news-border-color);
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__article-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

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

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

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

.page-news__article-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take up space */
}

.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: 14px;
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 16px;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take up space */
}

.page-news__read-more {
    color: var(--page-news-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: auto; /* Push to bottom */
    transition: color 0.3s ease;
}

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

/* Article List */
.page-news__article-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-news__list-item {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px;
    border: 1px solid var(--page-news-divider);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__list-image {
    width: 250px; /* Fixed width for list image */
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

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

.page-news__list-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

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

.page-news__list-meta {
    font-size: 14px;
    color: var(--page-news-text-secondary);
    margin-bottom: 10px;
}

.page-news__list-excerpt {
    font-size: 16px;
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
}

/* Call to Action Section */
.page-news__cta-section {
    background-color: var(--page-news-deep-green); /* Use Deep Green for dark section */
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-content {
    max-width: 800px;
}

.page-news__cta-title {
    color: var(--page-news-text-main);
    margin-bottom: 20px;
}

.page-news__cta-description {
    font-size: 18px;
    color: var(--page-news-text-secondary);
    margin-bottom: 40px;
}

.page-news__cta-button {
    font-size: 18px;
    padding: 18px 40px;
}

/* FAQ Section */
.page-news__faq-section {
    padding-bottom: 80px;
}

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--page-news-border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--page-news-text-main);
    cursor: pointer;
    background-color: var(--page-news-deep-green);
    border-bottom: 1px solid var(--page-news-divider);
    list-style: none; /* For <details> summary */
    transition: background-color 0.3s ease;
}

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

.page-news__faq-item[open] .page-news__faq-question {
    border-bottom: 1px solid var(--page-news-border-color);
}

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

.page-news__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-news-gold);
}

/* Hide default marker for details summary */
.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-news__faq-item summary::marker {
    display: none;
}

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

/* Image & Video Responsiveness */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-news video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-news__section {
        padding: 40px 0;
    }

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body handles --header-offset, small top padding */
    }

    .page-news__video-wrapper {
        margin-bottom: 30px;
    }

    .page-news__main-title {
        font-size: clamp(28px, 8vw, 40px); /* Adjust H1 for mobile */
    }

    .page-news__description {
        font-size: 16px;
    }

    .page-news__btn-primary,
    .page-news__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important; /* Ensure padding on buttons */
        padding-right: 15px !important;
    }

    .page-news__article-grid {
        grid-template-columns: 1fr;
    }

    .page-news__article-card,
    .page-news__list-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .page-news__article-image-wrapper {
        height: auto; /* Allow image to scale */
        margin-bottom: 15px;
    }

    .page-news__article-image {
        width: 100%;
        height: auto;
    }

    .page-news__list-image {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 15px;
    }

    .page-news__list-content {
        text-align: center;
    }

    .page-news__cta-section {
        padding: 60px 0;
    }

    .page-news__cta-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .page-news__cta-description {
        font-size: 16px;
    }

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

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

    /* Mobile specific image/video/container overrides */
    .page-news img,
    .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; /* Ensure no overflow */
    }

    /* Special handling for CTA buttons if they were flex-row */
    .page-news__cta-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}