/* style/news.css */

/* --- General Page Styles --- */
.page-news {
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    padding-top: 0; /* body already handles padding-top */
}

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

.page-news__section-title {
    font-size: 2.5rem;
    color: #F2FFF6; /* Main text color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6; /* Text Main */
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Main brand color for text */
    border: 2px solid #2AD16F; /* Main brand color for border */
}

.page-news__btn-secondary:hover {
    background: #2AD16F; /* Main brand color for background */
    color: #F2FFF6; /* Text Main */
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #08160F; /* Ensure background matches main */
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-news__hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
}

.page-news__hero-title {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2FFF6;
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
}

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

/* --- Latest Articles Section --- */
.page-news__latest-articles {
    background-color: #0A4B2C; /* Deep Green for a distinct section */
    padding: 80px 0;
}

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

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

.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; /* Fixed height for consistency */
    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.4rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__article-title a:hover {
    color: #57E38D; /* Glow color */
}

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

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

.page-news__read-more {
    color: #2AD16F; /* Main brand color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more:hover {
    color: #57E38D; /* Glow color */
    text-decoration: underline;
}

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

/* --- Industry Insights Section --- */
.page-news__industry-insights {
    background-color: #08160F; /* Background color */
    padding: 80px 0;
}

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

.page-news__insight-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.page-news__insight-title {
    font-size: 1.3rem;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__insight-text {
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
}

/* --- Video Section --- */
.page-news__video-section {
    background-color: #0A4B2C; /* Deep Green */
    padding: 80px 0;
    text-align: center;
}

.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;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: 100%; /* Desktop width */
    max-width: 1200px; /* Desktop max-width */
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Ensure it's a block element */
}

.page-news__video-cta {
    margin-top: 20px;
}

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

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

.page-news__faq-item {
    background-color: #11271B; /* Card BG */
    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 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: #F2FFF6; /* Main text color */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-news__faq-item summary {
    list-style: none;
}

.page-news__faq-question:hover {
    background-color: #1e3a2a; /* Divider color for hover */
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #2AD16F; /* Main brand color */
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
    line-height: 1.5;
}

/* --- CTA Section --- */
.page-news__cta-section {
    background-color: #0A4B2C; /* Deep Green */
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }
    .page-news__section-title {
        font-size: 2rem;
    }
}

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

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

    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-news__hero-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

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

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

    .page-news__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-news__articles-grid,
    .page-news__insights-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__article-image {
        height: 180px;
    }

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

    .page-news__insight-title {
        font-size: 1.1rem;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 10px 20px;
        font-size: 0.95rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        /* No explicit margin-bottom here, rely on flex gap from parent */
    }
    
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

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

    /* Mobile image and video responsiveness */
    .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__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-news__video-section {
        padding-top: 10px !important;
    }
}