/* style/news.css */

/* Base styles for the news page, assuming a light body background from shared.css */
.page-news {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    background-color: var(--background-color, #FFFFFF); /* Ensure background is light */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #f8f8f8;
    text-align: center;
}

.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;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-news__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

/* Call to Action Buttons */
.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-news__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

.page-news__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1a8cc4;
    border-color: #1a8cc4;
}

/* Section General Styles */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__section-title {
    font-size: 2.2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.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;
}

/* Light Background Sections */
.page-news__light-bg {
    background-color: #ffffff;
    padding: 60px 0;
    color: #333333;
}

/* Dark Background Sections */
.page-news__dark-bg {
    background-color: #26A9E0; /* Main brand color for dark background */
    padding: 60px 0;
    color: #ffffff; /* White text for dark background */
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__section-description,
.page-news__dark-bg .page-news__insight-title,
.page-news__dark-bg .page-news__insight-text {
    color: #ffffff; /* Ensure white text on dark background */
}


/* Latest Updates Section */
.page-news__latest-updates {
    padding-top: 40px; /* Adjust padding to avoid double header offset */
}

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

.page-news__news-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.page-news__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #1a8cc4;
}

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

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

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

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

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

/* Industry Insights Section */
.page-news__industry-insights {
    padding-bottom: 40px;
}

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

.page-news__insight-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__insight-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

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

/* Company Updates Section */
.page-news__company-updates {
    padding-top: 40px;
}

.page-news__update-list {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout for updates */
    gap: 30px;
}

.page-news__update-item {
    display: flex;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-news__update-image {
    width: 30%; /* Adjust width for image */
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
}

.page-news__update-content {
    padding: 25px;
    flex-grow: 1;
}

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

.page-news__update-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__update-title a:hover {
    color: #1a8cc4;
}

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

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


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

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

.page-news__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf6ff; /* Lighter brand color */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-news__faq-item[open] .page-news__faq-question {
    background-color: #dbeeff;
}

.page-news__faq-question:hover {
    background-color: #dbeeff;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 25px;
    text-align: center;
}

.page-news__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

/* Final CTA Section */
.page-news__cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
    text-align: center;
}

/* Custom color for login button */
.page-news__cta-section .page-news__btn-secondary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border-color: #EA7C07;
}

.page-news__cta-section .page-news__btn-secondary:hover {
    background-color: #cc6c06;
    border-color: #cc6c06;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

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

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

    .page-news__update-item {
        flex-direction: column;
    }

    .page-news__update-image {
        width: 100%;
        height: 250px;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile container responsiveness */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-updates,
    .page-news__industry-insights,
    .page-news__company-updates,
    .page-news__faq-section,
    .page-news__cta-section,
    .page-news__news-card,
    .page-news__insight-item,
    .page-news__update-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video section top padding (small, not --header-offset) */
    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px !important;
    }

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

    .page-news__description {
        font-size: 1em;
    }

    .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: 15px 20px;
    }

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

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

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

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

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

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

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

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

    .page-news__faq-toggle {
        font-size: 1.2em;
    }

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