/* style/news.css */

/* Custom properties for colors */
:root {
    --page-news-bg: #08160F;
    --page-news-card-bg: #11271B;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-border: #2E7A4E;
    --page-news-glow: #57E38D;
    --page-news-gold: #F2C14E;
    --page-news-divider: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
}

.page-news {
    background-color: var(--page-news-bg);
    color: var(--page-news-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* General container for content sections */
.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;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

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

.page-news__hero-content {
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--page-news-glow); /* Using glow color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Subtle glow effect */
}

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

/* Section Titles */
.page-news__section-title {
    font-size: 2.5rem;
    color: var(--page-news-glow);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-news__section-description {
    font-size: 1rem;
    color: var(--page-news-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%;
}

.page-news__btn-primary {
    background: var(--page-news-button-gradient);
    color: var(--page-news-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-news__btn-secondary {
    background: transparent;
    color: var(--page-news-glow);
    border: 2px solid var(--page-news-glow);
    margin-left: 20px;
}

.page-news__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
    background-color: var(--page-news-bg);
}

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

.page-news__news-card {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px 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 12px 25px rgba(0, 0, 0, 0.4);
}

.page-news__news-image-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for consistent card images */
    overflow: hidden;
}

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

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

.page-news__news-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

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

.page-news__news-title a:hover {
    color: var(--page-news-glow);
}

.page-news__news-meta {
    font-size: 0.9rem;
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
}

.page-news__news-excerpt {
    font-size: 1rem;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
}

.page-news__read-more {
    font-size: 0.95rem;
    padding: 10px 20px;
    align-self: flex-start;
}

/* Featured Articles Section */
.page-news__featured-articles-section {
    padding: 60px 0;
    background-color: var(--page-news-deep-green); /* Slightly different background */
    border-top: 1px solid var(--page-news-divider);
}

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

.page-news__article-item {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__article-meta {
    font-size: 0.85rem;
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 0.95rem;
    color: var(--page-news-text-secondary);
}

/* CTA Section */
.page-news__cta-section {
    background-color: var(--page-news-deep-green);
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--page-news-divider);
    border-bottom: 1px solid var(--page-news-divider);
}

.page-news__cta-title {
    font-size: 2.8rem;
    color: var(--page-news-gold); /* Using gold for a strong CTA */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 12px rgba(242, 193, 78, 0.6);
}

.page-news__cta-description {
    font-size: 1.2rem;
    color: var(--page-news-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0 80px 0;
    background-color: var(--page-news-bg);
}

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

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    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: 1.15rem;
    font-weight: bold;
    color: var(--page-news-text-main);
    cursor: pointer;
    background-color: var(--page-news-deep-green); /* Darker background for question */
    border-bottom: 1px solid var(--page-news-divider);
}

.page-news__faq-question:hover {
    background-color: rgba(10, 75, 44, 0.8); /* Slightly lighter on hover */
}

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

.page-news__faq-toggle {
    font-size: 1.5rem;
    margin-left: 20px;
    color: var(--page-news-glow);
    transition: transform 0.3s ease;
}

/* For details tag, hide default 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: 1rem;
    color: var(--page-news-text-secondary);
    background-color: var(--page-news-card-bg); /* Lighter background for answer */
    border-top: 1px solid var(--page-news-divider);
}

/* Style for expanded state (for JS fallback if not using <details>) */
.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-news__section-title {
        font-size: 2rem;
    }
    .page-news__cta-title {
        font-size: 2.2rem;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__container,
    .page-news__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* General text adjustments for mobile */
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-news__description {
        font-size: 1rem;
    }
    .page-news__section-title {
        font-size: 1.8rem;
    }
    .page-news__section-description {
        font-size: 0.9rem;
    }
    .page-news__cta-title {
        font-size: 2rem;
    }
    .page-news__cta-description {
        font-size: 1rem;
    }

    /* Images responsive */
    .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-articles-section,
    .page-news__cta-section,
    .page-news__faq-section,
    .page-news__news-grid,
    .page-news__articles-list,
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific padding for hero/video section top */
    .page-news__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px !important;
    }

    /* Buttons responsive */
    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Ensure buttons take full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Remove margin for single column layout */
        margin-bottom: 15px; /* Add spacing between stacked buttons */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 0; /* Adjust gap as needed for stacked buttons */
    }

    /* Card adjustments */
    .page-news__news-card,
    .page-news__article-item,
    .page-news__faq-item {
        margin-bottom: 20px;
    }
    .page-news__news-image-wrapper {
        height: 180px; /* Adjust image height for smaller screens */
    }
    .page-news__news-content,
    .page-news__article-item,
    .page-news__faq-question,
    .page-news__faq-answer {
        padding: 20px;
    }
    .page-news__faq-question {
        font-size: 1rem;
    }
    .page-news__faq-toggle {
        font-size: 1.3rem;
    }
}