/* style/news.css */

/* Custom Colors */
:root {
    --biendo88-primary: #11A84E; /* Main Color */
    --biendo88-secondary: #22C768; /* Auxiliary Color */
    --biendo88-button-gradient-start: #2AD16F;
    --biendo88-button-gradient-end: #13994A;
    --biendo88-card-bg: #11271B;
    --biendo88-background: #08160F;
    --biendo88-text-main: #F2FFF6;
    --biendo88-text-secondary: #A7D9B8;
    --biendo88-border: #2E7A4E;
    --biendo88-glow: #57E38D;
    --biendo88-gold: #F2C14E;
    --biendo88-divider: #1E3A2A;
    --biendo88-deep-green: #0A4B2C;
}

/* Base styles for the news page, ensure text contrast with body background */
.page-news {
    background-color: var(--biendo88-background); /* #08160F - Dark background */
    color: var(--biendo88-text-main); /* #F2FFF6 - Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Container for consistent content width */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-news__section-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Adjusted H1 to clamp, other H2, H3 will be relative */
    color: var(--biendo88-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Section Descriptions */
.page-news__section-description {
    font-size: 1.1em;
    color: var(--biendo88-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--biendo88-deep-green); /* Dark background for hero */
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 10px;
    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 {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 title */
    color: var(--biendo88-text-main);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

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

/* Call to Action Buttons */
.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container takes full width for responsiveness */
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.page-news__btn-primary {
    background: var(--biendo88-button-gradient-start); /* fallback */
    background: linear-gradient(180deg, var(--biendo88-button-gradient-start) 0%, var(--biendo88-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

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

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

.page-news__btn-secondary:hover {
    background: rgba(var(--biendo88-secondary-rgb), 0.1);
    transform: translateY(-3px);
    color: var(--biendo88-text-main);
    border-color: var(--biendo88-text-main);
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 80px 0;
    background-color: var(--biendo88-background); /* Dark background */
    color: var(--biendo88-text-main);
}

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

/* Card Styles */
.page-news__news-card,
.page-news__category-card,
.page-news__faq-item {
    background-color: var(--biendo88-card-bg); /* #11271B - Darker green card background */
    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__news-card:hover,
.page-news__category-card:hover,
.page-news__faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

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

.page-news__card-title a:hover {
    color: var(--biendo88-secondary);
}

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

.page-news__card-excerpt {
    font-size: 1em;
    color: var(--biendo88-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    color: var(--biendo88-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}

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

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

/* Categories Section */
.page-news__categories-section {
    padding: 80px 0;
    background-color: var(--biendo88-deep-green); /* Deep Green background */
    color: var(--biendo88-text-main);
}

.page-news__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.page-news__category-card {
    background-color: var(--biendo88-card-bg); /* Darker green card background */
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: var(--biendo88-text-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-news__category-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--biendo88-text-main);
}

.page-news__category-count {
    font-size: 0.9em;
    color: var(--biendo88-text-secondary);
}

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

.page-news__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-news__faq-item {
    background-color: var(--biendo88-card-bg); /* Darker green card background */
    border: 1px solid var(--biendo88-border);
    border-radius: 10px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--biendo88-text-main);
    background-color: var(--biendo88-deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--biendo88-border);
    transition: background-color 0.3s ease;
}

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

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--biendo88-secondary);
}

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

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--biendo88-text-secondary);
}

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

/* Bottom CTA Section */
.page-news__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--biendo88-deep-green); /* Deep Green background */
    color: var(--biendo88-text-main);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-content {
        padding: 0 15px;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__section-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-news__main-title {
        font-size: clamp(2em, 8vw, 3em);
    }
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Body handles header offset, small top padding for hero */
    }
    .page-news__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-news__description {
        font-size: 1.1em;
    }
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__latest-news-section,
    .page-news__categories-section,
    .page-news__faq-section,
    .page-news__cta-bottom-section {
        padding: 50px 0;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__news-grid,
    .page-news__categories-grid {
        gap: 20px;
    }
    .page-news__card-image {
        height: 180px;
    }
    .page-news__card-content {
        padding: 20px;
    }
    .page-news__card-title {
        font-size: 1.2em;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-image-wrapper,
    .page-news__cta-buttons,
    .page-news__news-grid,
    .page-news__categories-grid,
    .page-news__faq-list,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-news__container */
        overflow: hidden !important; /* Prevent content overflow */
    }
}

/* Ensure no filter on images */
.page-news img {
    filter: none !important;
}

/* Placeholder for video CSS if any, ensuring responsiveness */
.page-news video,
.page-news__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-news__video-section,
.page-news__video-container,
.page-news__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .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 {
        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; /* Small top padding, body handles header offset */
    }
}