/* style/news.css */

/* Custom Colors */
:root {
    --page-news-background: #08160F;
    --page-news-card-bg: #11271B;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-border: #2E7A4E;
    --page-news-glow: #57E38D;
    --page-news-gold: #F2C14E;
    --page-news-divider: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
    --page-news-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --primary-color: #11A84E; /* Main color from prompt */
    --secondary-color: #22C768; /* Auxiliary color from prompt */
}

.page-news {
    background-color: var(--page-news-background);
    color: var(--page-news-text-main); /* Dark background, so light text */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom for overall page */
}

/* General Container */
.page-news__container {
    width: 100%; /* Ensure width 100% for desktop flex/grid items */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.5em; /* clamp() for h1, but h2 can be fixed */
    color: var(--page-news-text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--page-news-button-gradient);
    border-radius: 2px;
}

/* Sub Titles */
.page-news__sub-title {
    color: var(--page-news-gold);
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Upper image, lower text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body already handles header offset */
    overflow: hidden; /* Ensure no overflow */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Example max height for aesthetic */
    object-fit: cover;
    display: block;
    margin-bottom: 40px; /* Space between image and content */
    border-radius: 10px;
}

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
    color: var(--page-news-text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

/* CTA Buttons */
.page-news__cta-button {
    display: inline-block;
    background: var(--page-news-button-gradient);
    color: var(--page-news-text-main); /* White text on dark button */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--page-news-text-main);
}

/* Featured News Section */
.page-news__featured-news-section {
    padding: 60px 0;
}

.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: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-news__news-card:hover {
    transform: translateY(-5px);
}

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

.page-news__card-content {
    padding: 25px;
    color: var(--page-news-text-secondary);
}

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

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

.page-news__card-title a:hover {
    color: var(--page-news-gold);
}

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

.page-news__card-description {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-news__read-more-button {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more-button:hover {
    color: var(--page-news-gold);
}

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

/* Guide Section */
.page-news__guide-section {
    padding: 60px 0;
    background-color: var(--page-news-deep-green); /* A slightly different dark green */
}

.page-news__guide-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-news__guide-text {
    flex: 2;
    color: var(--page-news-text-secondary);
}

.page-news__guide-image {
    flex: 1;
    width: 100%;
    height: auto;
    min-width: 200px; /* Ensure minimum size */
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__guide-text p {
    margin-bottom: 15px;
}

.page-news__ordered-list {
    list-style-type: decimal;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-news__ordered-list li {
    margin-bottom: 8px;
}

/* Benefits Section */
.page-news__benefits-section {
    padding: 60px 0;
}

.page-news__benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
}

.page-news__benefits-item {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: var(--page-news-text-secondary);
}

.page-news__benefits-item .page-news__sub-title {
    color: var(--page-news-text-main);
    margin-top: 0;
}

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

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

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-news-text-main);
    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;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: var(--page-news-divider);
    border-bottom: 1px solid var(--page-news-border);
    color: var(--page-news-text-main);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: var(--page-news-border);
}

.page-news__faq-item[open] > .page-news__faq-question {
    background-color: var(--primary-color);
    color: #ffffff;
    border-bottom: 1px solid var(--primary-color);
}

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

.page-news__faq-item[open] > .page-news__faq-question .page-news__faq-toggle {
    color: #ffffff; /* White toggle when open */
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--page-news-text-secondary);
    line-height: 1.6;
    background-color: var(--page-news-card-bg);
}

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

/* CTA Section at the bottom */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-news-background);
}

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

/* Image styling - No filters */
.page-news img {
    filter: none; /* Ensure no filter is applied */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-news__guide-content {
        flex-direction: column;
        align-items: center;
    }
    .page-news__guide-image {
        margin-top: 30px;
        max-width: 600px; /* Constrain image width on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-news__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }
    .page-news__intro-text {
        font-size: 1em;
    }
    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0; /* Remove horizontal margins for stacking */
        margin-bottom: 15px; /* Stack buttons vertically */
    }
    .page-news__btn-secondary {
        margin-left: 0;
    }

    .page-news__container,
    .page-news__section,
    .page-news__card,
    .page-news__hero-content,
    .page-news__news-card,
    .page-news__faq-item,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__news-grid,
    .page-news__benefits-list {
        grid-template-columns: 1fr;
    }
    .page-news__guide-content {
        flex-direction: column;
        align-items: center;
    }
    .page-news__guide-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin-top: 30px;
    }

    /* All images must be responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Video responsiveness (if any, though none explicitly in this content) */
    .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;
    }

    /* Button specific overrides for mobile */
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px; /* Ensure spacing for stacked buttons */
        display: flex; /* Make sure flex properties apply */
        flex-direction: column; /* Stack buttons vertically by default */
    }
}

/* Contrast Fixes (if needed, though custom colors should handle it) */
.page-news__dark-bg {
    color: var(--page-news-text-main); /* Light text on dark background */
}

.page-news__light-bg {
    color: #333333; /* Dark text on light background */
    background: #ffffff;
}