/* style/news.css */
/* Body padding-top is handled by shared.css, so no var(--header-offset) here. */

.page-news {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #08160F; /* Custom background color */
    color: #F2FFF6; /* Main text color for dark background */
    line-height: 1.6;
    font-size: 16px;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    text-align: center;
    overflow: hidden; /* Ensure no overflow issues */
}

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

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-news__hero-content {
    position: relative; /* Not absolute, to be below the image */
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    background: linear-gradient(180deg, rgba(8, 22, 15, 0) 0%, #08160F 50%, #08160F 100%);
    padding-top: 80px;
}

.page-news__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
    color: #F2C14E; /* Gold color for main title */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Section Titles */
.page-news__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold color for section titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-news__news-card {
    background-color: #11271B; /* Card background color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 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__card-image-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for consistent images */
    overflow: hidden;
}

.page-news__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__card-image {
    transform: scale(1.05);
}

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

.page-news__card-date {
    font-size: 0.9em;
    color: #A7D9B8;
    margin-bottom: 10px;
}

.page-news__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

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

.page-news__card-title a:hover {
    color: #22C768; /* Auxiliary color on hover */
}

.page-news__card-excerpt {
    font-size: 1em;
    color: #A7D9B8;
    margin-bottom: 20px;
}

.page-news__read-more-btn {
    display: inline-block;
    color: #22C768; /* Auxiliary color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__read-more-btn:hover {
    color: #57E38D; /* Glow color on hover */
}

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

/* Featured Articles Section */
.page-news__featured-articles-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green background */
    color: #F2FFF6;
}

.page-news__article-content {
    font-size: 1.05em;
    line-height: 1.8;
    color: #F2FFF6;
}

.page-news__article-content h3 {
    font-size: 1.8em;
    color: #F2C14E;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-news__article-content p {
    margin-bottom: 20px;
    color: #F2FFF6;
}

.page-news__article-content img {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-news__promo-card {
    background-color: #11271B; /* Card background color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-news__promo-title {
    font-size: 1.5em;
    color: #F2C14E;
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-news__promo-text {
    font-size: 1em;
    color: #A7D9B8;
    margin-bottom: 25px;
    padding: 0 20px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #1E3A2A; /* Divider color for background */
}

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

.page-news__faq-item {
    background-color: #0A4B2C; /* Deep Green background for FAQ item */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 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.2em;
    font-weight: 600;
    color: #F2FFF6;
    cursor: pointer;
    background-color: #0A4B2C;
    border-bottom: 1px solid #2E7A4E; /* Border color */
    list-style: none; /* For <summary> */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.page-news__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}

.page-news__faq-question:hover {
    background-color: #13994A; /* Darker green on hover */
}

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

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

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #A7D9B8;
    line-height: 1.7;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
}

.page-news__faq-item[open] .page-news__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0A4B2C, #08160F); /* Deep Green to Background */
    text-align: center;
}

.page-news__cta-title {
    font-size: 2.8em;
    color: #F2C14E; /* Gold color */
    margin-bottom: 20px;
    font-weight: 700;
}

.page-news__cta-description {
    font-size: 1.1em;
    color: #A7D9B8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Important for mobile responsiveness */
    max-width: 600px; /* Limit width on desktop */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-width: 180px; /* Ensure minimum button width */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
    color: #F2FFF6; /* Text Main color */
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #57E38D 0%, #2AD16F 100%); /* Lighter gradient on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Primary color for text */
    border: 2px solid #2AD16F; /* Primary color for border */
    box-shadow: none;
}

.page-news__btn-secondary:hover {
    background-color: #2AD16F;
    color: #F2FFF6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.page-news__btn-tertiary {
    background-color: #1E3A2A; /* Divider color */
    color: #A7D9B8; /* Text Secondary color */
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-news__btn-tertiary:hover {
    background-color: #2E7A4E; /* Border color on hover */
    color: #F2FFF6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__hero-content {
        margin-top: -60px;
        padding-top: 60px;
    }
    .page-news__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 15px;
    }

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

    .page-news__hero-image-wrapper {
        max-height: 300px;
    }

    .page-news__hero-content {
        margin-top: -40px;
        padding-top: 40px;
    }

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

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

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

    .page-news__section-description {
        font-size: 1em;
    }

    .page-news__latest-news-section,
    .page-news__featured-articles-section,
    .page-news__promotions-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }

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

    .page-news__card-image-wrapper {
        height: 180px;
    }

    .page-news__card-content {
        padding: 20px;
    }

    .page-news__card-title {
        font-size: 1.2em;
    }

    .page-news__promo-image {
        height: 200px;
    }

    .page-news__promo-title {
        font-size: 1.3em;
    }

    .page-news__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }

    .page-news__faq-answer {
        padding: 0 20px 18px 20px;
    }

    .page-news__cta-title {
        font-size: 2em;
    }

    .page-news__cta-description {
        font-size: 1em;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding for containers on mobile */
    }

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__btn-tertiary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Video responsiveness (if any, though not in this specific content plan) */
    .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;
    }
}