/* style/news.css */

/* Base Styles */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* Light background for the page content */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #0A1931;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #555555;
    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%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #0A1931; /* Fallback for image loading */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* No filter allowed */
}

.page-news__hero-container {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFC947; /* Accent color for title */
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-news__hero-cta-button,
.page-news__cta-button {
    display: inline-block;
    background-color: #FFC947;
    color: #0A1931;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news__hero-cta-button:hover,
.page-news__cta-button:hover {
    background-color: #e0b038;
    transform: translateY(-2px);
}

/* Category Section */
.page-news__categories-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-news__category-card {
    background-color: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-news__category-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    /* No filter allowed */
}

.page-news__category-title {
    font-size: 1.6em;
    color: #0A1931;
    margin-bottom: 10px;
    padding: 0 15px;
    font-weight: bold;
}

.page-news__category-title a {
    color: #0A1931;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__category-title a:hover {
    color: #FFC947;
}

.page-news__category-text {
    font-size: 1em;
    color: #555555;
    padding: 0 15px;
    flex-grow: 1; /* Make sure text takes available space */
}

/* Benefits Section */
.page-news__dark-section {
    background-color: #0A1931;
    color: #ffffff;
    padding: 80px 0;
}

.page-news__dark-section .page-news__section-title {
    color: #FFC947;
}

.page-news__dark-section .page-news__section-description {
    color: #cccccc;
}

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

.page-news__benefit-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: background 0.3s ease;
}

.page-news__benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-news__benefit-title {
    font-size: 1.4em;
    color: #FFC947;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__benefit-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* How-To Section */
.page-news__how-to-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-news__how-to-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__how-to-step {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__how-to-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__how-to-icon {
    font-size: 2.5em;
    color: #FFC947;
    background-color: #0A1931;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.page-news__how-to-title {
    font-size: 1.5em;
    color: #0A1931;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__how-to-text {
    font-size: 1em;
    color: #555555;
}

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

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for items in dark section */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #0A1931; /* Dark background for question */
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #1a2c4e; /* Slightly lighter on hover */
}

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFC947;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0; /* Light text for answer in dark section */
    background-color: #1a2c4e; /* Slightly lighter background for answer */
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-news__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some padding if multiple paragraphs */
    color: #f0f0f0;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #ffffff;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary {
    background-color: #0A1931;
    color: #ffffff;
    border: 2px solid #0A1931;
}

.page-news__btn-primary:hover {
    background-color: #1a2c4e;
    border-color: #1a2c4e;
}

.page-news__btn-secondary {
    background-color: #ffffff;
    color: #0A1931;
    border: 2px solid #0A1931;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a2c4e;
    border-color: #1a2c4e;
}

/* Global Image/Video/Button Responsive Rules (applied to .page-news scope) */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Ensure content area images are not smaller than 200px */
    min-width: 200px;
    min-height: 200px;
}

.page-news video,
.page-news__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .page-news__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile hero */
    }

    .page-news__hero-title {
        font-size: 2.2em;
    }

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

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

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

    .page-news__category-grid,
    .page-news__benefits-list,
    .page-news__how-to-grid {
        grid-template-columns: 1fr;
    }

    .page-news__category-image {
        height: 200px; /* Adjust height for mobile */
    }

    /* Force responsive for all images within .page-news */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset; /* Allow images to shrink on mobile */
        min-height: unset;
    }

    /* Force responsive for all videos within .page-news */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Force responsive for all buttons within .page-news */
    .page-news__hero-cta-button,
    .page-news__cta-button,
    .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;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }

    /* Button containers for mobile */
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        gap: 10px; /* Reduced gap for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* All containers that might hold images/videos/buttons */
    .page-news__container,
    .page-news__hero-container,
    .page-news__categories-section,
    .page-news__benefits-section,
    .page-news__how-to-section,
    .page-news__faq-section,
    .page-news__cta-section,
    .page-news__category-grid,
    .page-news__how-to-grid,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

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