/* style/news.css */
/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the page, assuming dark body background */
    background-color: transparent; /* Inherit from body */
}

/* Section padding */
.page-news__section-padding {
    padding: 60px 0;
}

/* Container for content width */
.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;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background-color: var(--dark-bg-1, #0d0d0d); /* Fallback to dark grey */
    color: #ffffff;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-news__hero-content {
    max-width: 800px;
}

.page-news__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for main title */
}

.page-news__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Section Titles */
.page-news__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #26A9E0; /* Brand color for section titles */
}

.page-news__section-description {
    font-size: 1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Default for dark sections */
}

/* Latest Articles Section */
.page-news__latest-articles {
    background-color: #ffffff; /* Light background for article section */
    color: #333333; /* Dark text for light background */
}

.page-news__latest-articles .page-news__section-title,
.page-news__latest-articles .page-news__section-description {
    color: #333333;
}

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

.page-news__article-card,
.page-news__insight-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover,
.page-news__insight-card:hover {
    transform: translateY(-5px);
}

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

.page-news__article-content,
.page-news__insight-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__article-title,
.page-news__insight-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__article-title a,
.page-news__insight-title a {
    color: #26A9E0; /* Brand color for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__insight-title a:hover {
    color: #1a7bb0;
}

.page-news__article-meta,
.page-news__insight-meta {
    font-size: 0.9em;
    color: #777777;
    margin-bottom: 15px;
}

.page-news__article-summary,
.page-news__insight-summary {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #1a7bb0;
    text-decoration: underline;
}

.page-news__view-all-button-wrapper {
    text-align: center;
}

/* Promotions & Events Section */
.page-news__promotions-events.page-news__dark-section {
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff;
}

.page-news__promotions-events .page-news__section-title,
.page-news__promotions-events .page-news__section-description {
    color: #ffffff;
}

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

.page-news__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on brand color */
    border-radius: 8px;
    overflow: hidden;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__promo-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    display: block;
}

.page-news__promo-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-news__promo-summary {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Industry Insights Section */
.page-news__industry-insights {
    background-color: #ffffff;
    color: #333333;
}

.page-news__industry-insights .page-news__section-title,
.page-news__industry-insights .page-news__section-description {
    color: #333333;
}

/* FAQ Section */
.page-news__faq-section.page-news__dark-bg {
    background-color: var(--dark-bg-1, #0d0d0d); /* Dark background */
    color: #ffffff;
}

.page-news__faq-section .page-news__section-title {
    color: #26A9E0;
}

.page-news__faq-section .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    position: relative;
    list-style: none; /* For details/summary */
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    margin-left: 15px;
}

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-news__faq-answer p {
    margin-bottom: 0;
}

/* Call to Action Section */
.page-news__cta-section {
    background-color: var(--dark-bg-1, #0d0d0d); /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-news__cta-content {
    max-width: 900px;
}

.page-news__cta-section .page-news__section-title {
    color: #26A9E0;
}

.page-news__cta-section .page-news__section-description {
    color: #f0f0f0;
}

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

/* Buttons */
.page-news__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding and border are included in width */
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-news__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Ensure no filter on images */
.page-news img {
    filter: none !important;
}

/* Content area images must be >= 200px */
.page-news__article-image,
.page-news__insight-image,
.page-news__promo-image {
    min-width: 200px; /* Enforce minimum display size */
    min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-news__section-padding {
        padding: 40px 0;
    }

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }

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

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

    .page-news__articles-grid,
    .page-news__insights-grid,
    .page-news__promos-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__article-image,
    .page-news__insight-image {
        height: 180px;
    }

    .page-news__promo-image {
        max-width: 250px;
        height: 160px;
    }

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

    .page-news__cta-button {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        white-space: normal !important; /* Allow text to wrap */
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

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

    /* All containers with images/videos/buttons */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-image-wrapper,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .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;
        overflow: hidden !important; /* Ensure no overflow */
    }

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

    .page-news__faq-answer {
        padding: 0 20px 15px 20px;
    }
    
    .page-news__article-image,
    .page-news__insight-image,
    .page-news__promo-image {
        min-width: unset; /* Allow flexibility on mobile */
        min-height: unset;
    }
}