/* style/news.css */

/* Base styles for the page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1);
}

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

.page-news__dark-section {
    background-color: #1A2E47;
    color: #ffffff;
}

.page-news__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-news__section-description {
    font-size: 1.1em;
    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%;
    padding-top: var(--header-offset, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.page-news__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Buttons */
.page-news__btn-primary {
    display: inline-block;
    background-color: #FFD700;
    color: #1A2E47;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-news__btn-primary:hover {
    background-color: #e6c200;
    color: #0d1a2b;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 60px 0;
}

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

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

.page-news__article-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 20px;
    color: #333333;
}

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    min-height: 48px; /* Ensure consistent height for titles */
}

.page-news__article-title a {
    color: #1A2E47;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #FFD700;
}

.page-news__article-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 15px;
    min-height: 100px; /* Ensure consistent height for excerpts */
}

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

.page-news__read-more:hover {
    color: #1A2E47;
}

/* Featured Insights Section */
.page-news__featured-insights {
    padding: 60px 0;
}

.page-news__insights-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.page-news__insight-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
}

.page-news__insight-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.page-news__insight-content {
    flex-grow: 1;
}

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

.page-news__insight-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__insight-title a:hover {
    color: #e6c200;
}

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

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

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
    color: #1A2E47;
}

.page-news__cta-title {
    font-size: 3em;
    color: #1A2E47;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-item.active .page-news__faq-question {
    border-bottom: none;
}

.page-news__faq-q-text {
    margin: 0;
    color: #ffffff;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-news__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__insight-item {
        flex-direction: column;
        align-items: center;
    }
    .page-news__insight-image {
        width: 100%;
        max-width: 600px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

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

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

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

    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }

    .page-news__article-excerpt {
        min-height: auto;
    }

    .page-news__insight-item {
        padding: 20px;
    }

    .page-news__insight-title {
        font-size: 1.5em;
    }

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

    /* Mobile image adaptation */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-articles,
    .page-news__featured-insights,
    .page-news__cta-section,
    .page-news__faq-section,
    .page-news__articles-grid,
    .page-news__insight-item,
    .page-news__insight-content,
    .page-news__faq-list,
    .page-news__faq-item,
    .page-news__faq-question,
    .page-news__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    /* Mobile button adaptation */
    .page-news__btn-primary,
    .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__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;
    }
    
    .page-news__cta-buttons {
        display: flex;
        flex-direction: column; 
    }

    /* Ensure content text is readable on mobile */
    .page-news__light-bg .page-news__section-description,
    .page-news__light-bg .page-news__article-excerpt,
    .page-news__light-bg .page-news__cta-description {
        color: #444444;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__btn-primary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
    .page-news__faq-question {
        font-size: 1em;
    }
}