/* style/news.css */

/* Base styles for the page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

.page-news__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

/* 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: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

/* Section common styles */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark section background */
.page-news__dark-section {
    background-color: #017439; /* Brand primary color for contrast */
    color: #ffffff;
}

/* Light section background */
.page-news__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-news__light-bg .page-news__section-title {
    color: #017439; /* Brand color for title on light background */
}

.page-news__light-bg .page-news__section-description {
    color: #555555;
}

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

.page-news__article-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
}

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

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

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

.page-news__article-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #FFFF00; /* Custom highlight for links */
}

.page-news__article-excerpt {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #FFFF00; /* Custom highlight for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Featured Video Section */
.page-news__featured-video-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Body background color */
    color: #ffffff;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    cursor: pointer; /* Indicate video is clickable */
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.page-news__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Slightly darker overlay for text */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 1.8em;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4; /* Above video */
}

.page-news__video-wrapper:hover .page-news__video-overlay-link {
    opacity: 1;
}

/* Promotions Section */
.page-news__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__promo-card {
    background: #f8f8f8; /* Light background for promo cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light background */
    padding-bottom: 20px; /* Space for button */
    display: flex;
    flex-direction: column;
}

.page-news__promo-card:hover {
    transform: translateY(-5px);
}

.page-news__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

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

.page-news__promo-title {
    font-size: 1.5em;
    color: #017439; /* Brand color for title */
    margin-bottom: 10px;
}

.page-news__promo-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__promo-card .page-news__btn-primary,
.page-news__promo-card .page-news__btn-secondary {
    margin: 0 20px; /* Center button in card */
}

/* FAQ Section */
.page-news__faq-section {
    background-color: #0a0a0a; /* Body background color */
    color: #ffffff;
    padding: 60px 0;
}

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

.page-news__faq-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ item */
    border-radius: 8px;
    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;
    cursor: pointer;
    background-color: #017439; /* Brand primary for question background */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #005f2e;
}

.page-news__faq-title {
    margin: 0;
    font-size: 1.1em;
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px; /* Expanded padding */
    padding-top: 0; /* Remove top padding to prevent double spacing */
}

.page-news__faq-answer p {
    margin: 0;
    font-size: 0.95em;
}

/* CTA Banner */
.page-news__cta-banner {
    background: linear-gradient(90deg, #017439, #005f2e); /* Gradient background */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-news__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-news__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__section-title {
        font-size: 2.2em;
    }
    .page-news__cta-title {
        font-size: 2.5em;
    }
}

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

    .page-news__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding top */
    }

    .page-news__hero-title {
        font-size: 2.5em;
    }

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

    .page-news__hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .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;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        align-items: center;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-news__container {
        padding: 20px 15px; /* Smaller padding on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

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

    .page-news__article-card,
    .page-news__promo-card {
        margin: 0 auto; /* Center single column cards */
        max-width: 100%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-news__article-image,
    .page-news__promo-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* FAQ adjustments */
    .page-news__faq-question {
        padding: 15px;
    }

    .page-news__faq-title {
        font-size: 1em;
    }

    .page-news__faq-answer {
        padding: 0 15px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px;
        padding-top: 0;
    }

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

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

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 0.9em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}