/* style/news.css */

/* General styles for the main content area, adhering to custom color scheme */
.page-news {
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Custom main text color */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Ensure body padding-top is handled by shared.css, no double padding here */

.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;
    overflow: hidden;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background-color: #11271B; /* Card BG as hero section background */
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2; /* Make background image subtle */
    overflow: hidden;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-news__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #F2FFF6; /* Main text color */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text for dark green button */
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.6); /* Glow effect */
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow color for text */
    border: 2px solid #57E38D; /* Glow color for border */
}

.page-news__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    color: #F2FFF6;
    border-color: #F2FFF6;
}

.page-news__btn-primary--large {
    padding: 18px 36px;
    font-size: 1.15rem;
}

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

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #57E38D; /* Glow color for underline */
    border-radius: 2px;
}

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

.page-news__sub-section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #F2FFF6;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-news__content-paragraph {
    color: #F2FFF6;
    margin-bottom: 15px;
}

/* News Grid / Card Layout */
.page-news__news-grid,
.page-news__promo-grid,
.page-news__guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-news__news-card,
.page-news__promo-card,
.page-news__guide-card {
    background-color: #11271B; /* Card BG color */
    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;
    height: 100%;
}

.page-news__news-card:hover,
.page-news__promo-card:hover,
.page-news__guide-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(87, 227, 141, 0.4);
}

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

.page-news__news-card-content,
.page-news__promo-card-content,
.page-news__guide-card-content {
    padding: 25px;
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
}

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

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

.page-news__news-card-title a:hover,
.page-news__promo-card-title a:hover,
.page-news__guide-card-title a:hover {
    color: #57E38D; /* Glow color on hover */
}

.page-news__news-card-date,
.page-news__promo-card-date,
.page-news__guide-card-date {
    font-size: 0.85rem;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 15px;
}

.page-news__news-card-excerpt,
.page-news__promo-card-excerpt,
.page-news__guide-card-excerpt {
    font-size: 0.95rem;
    color: #F2FFF6;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-news__news-card-link,
.page-news__promo-card-link,
.page-news__guide-card-link {
    display: inline-block;
    color: #57E38D; /* Glow color for links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Push link to bottom of card content */
}

.page-news__news-card-link:hover,
.page-news__promo-card-link:hover,
.page-news__guide-card-link:hover {
    color: #F2FFF6;
    transform: translateX(5px);
}

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

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

.page-news__cta-download-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__section-title--light,
.page-news__section-description--light {
    color: #F2FFF6; /* Ensure light text on deep green background */
}

.page-news__section-title--light::after {
    background-color: #F2FFF6; /* White underline for light title */
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
}

.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-news__faq-item summary:hover {
    background-color: rgba(17, 168, 78, 0.1); /* Slight hover effect */
}

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

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color for toggle */
}

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

.page-news__faq-answer p {
    margin-bottom: 0;
    color: #A7D9B8; /* Ensure paragraph text color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

    .page-news__hero-section {
        padding: 10px 0 40px 0;
    }

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

    .page-news__subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-news__section-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-top: 40px;
    }

    .page-news__section-description {
        font-size: 0.9rem;
    }

    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__guide-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

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

    .page-news__news-card-title,
    .page-news__promo-card-title,
    .page-news__guide-card-title {
        font-size: 1.15rem;
    }

    .page-news__news-card-excerpt,
    .page-news__promo-card-excerpt,
    .page-news__guide-card-excerpt {
        font-size: 0.85rem;
    }

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

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

    /* Images and containers responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__latest-updates-section,
    .page-news__promotions-section,
    .page-news__guides-section,
    .page-news__faq-section,
    .page-news__cta-download-section,
    .page-news__container,
    .page-news__news-card,
    .page-news__promo-card,
    .page-news__guide-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

    /* Video responsiveness (general rule, even if no video on this page) */
    .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;
    }
}