/* style/news.css */

/* Global page styles for news page, ensures text visibility on dark background */
.page-news {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

.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;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: #08160F; /* Ensure background matches body */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

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

.page-news__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: #F2FFF6; /* Text Main */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.page-news__lead-text {
    font-size: 1.15rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt on mobile */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff; /* White text for contrast */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-news__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Green text, matches gradient highlight */
    border: 2px solid #2AD16F; /* Border */
}

.page-news__btn-secondary:hover {
    background-color: rgba(42, 209, 111, 0.1);
    transform: translateY(-2px);
}

/* Section Titles */
.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #F2FFF6; /* Text Main */
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    position: relative;
}

.page-news__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

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

.page-news__news-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__news-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

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

.page-news__news-card-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: #2AD16F; /* Highlight on hover */
}

.page-news__news-card-meta {
    font-size: 0.9rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__news-card-link {
    display: inline-block;
    color: #57E38D; /* Glow color for links */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__news-card-link:hover {
    text-decoration: underline;
    color: #2AD16F;
}

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

/* Featured Video Section */
.page-news__featured-video-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-news__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    margin-top: 40px;
}

.page-news__video-link-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

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

.page-news__video-description {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border */
}

.page-news__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
    background-color: rgba(42, 209, 111, 0.1);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #2AD16F; /* Button highlight color */
    font-weight: 300;
    width: 24px;
    text-align: center;
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05rem;
    color: #A7D9B8; /* Text Secondary */
}

.page-news__faq-answer p {
    margin-bottom: 10px;
}

.page-news__faq-answer a {
    color: #57E38D; /* Glow color for links */
    text-decoration: none;
}

.page-news__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #11271B; /* Card BG, slightly lighter than background */
    margin-top: 60px;
    border-top: 1px solid #2E7A4E; /* Border */
}

.page-news__cta-section .page-news__section-title {
    padding-top: 0;
    margin-bottom: 20px;
}

.page-news__cta-description {
    font-size: 1.2rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-news__lead-text {
        font-size: 1rem;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

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

    .page-news__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 30px;
        padding-top: 30px;
    }

    .page-news__news-grid {
        gap: 20px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-news__news-card-image {
        height: 180px;
    }

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

    .page-news__news-card-content {
        padding: 20px;
    }

    .page-news__video-wrapper {
        margin-top: 30px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .page-news__video-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    .page-news__faq-item summary {
        font-size: 1.1rem;
        padding: 18px 20px;
    }

    .page-news__faq-answer {
        padding: 0 20px 18px;
        font-size: 1rem;
    }

    .page-news__faq-list {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

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

    .page-news__cta-description {
        font-size: 1.1rem;
    }

    /* Images responsiveness for content area */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that might hold images/videos/buttons */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__featured-video-section,
    .page-news__faq-section,
    .page-news__cta-section,
    .page-news__hero-image-wrapper,
    .page-news__video-wrapper,
    .page-news__cta-buttons,
    .page-news__news-grid,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__featured-video-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-news__hero-section .page-news__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__news-grid,
    .page-news__faq-list {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-news__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }
    .page-news__main-title {
        font-size: clamp(1.6rem, 9vw, 2.2rem);
    }
    .page-news__lead-text {
        font-size: 0.95rem;
    }
    .page-news__section-title {
        font-size: clamp(1.4rem, 8vw, 2rem);
    }
    .page-news__news-card-title {
        font-size: 1.1rem;
    }
    .page-news__faq-item summary {
        font-size: 1rem;
    }
    .page-news__faq-answer {
        font-size: 0.95rem;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__featured-video-section,
    .page-news__faq-section,
    .page-news__cta-section,
    .page-news__hero-image-wrapper,
    .page-news__video-wrapper,
    .page-news__cta-buttons,
    .page-news__news-grid,
    .page-news__faq-list {
        padding-left: 10px;
        padding-right: 10px;
    }
    .page-news__hero-section .page-news__hero-content {
        padding-left: 10px;
        padding-right: 10px;
    }
}