/* style/news.css */

/* Base styles for the news page content */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--secondary-color); /* Inherits from shared, which is #1A1A1A */
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

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

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

.page-news__section-title,
.page-news__cta-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-intro,
.page-news__cta-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #cccccc;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

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

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

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

.page-news__hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Article Grid Section */
.page-news__latest-articles {
    background-color: #1A1A1A; /* Dark background */
    color: #f0f0f0;
}

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

.page-news__article-card {
    background-color: #2a2a2a; /* Slightly lighter dark background for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #FFD700; /* Gold for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #ffd700cc; /* Slightly darker gold on hover */
}

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

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    align-self: flex-start;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Industry Insights Section */
.page-news__industry-insights {
    background-color: #1A1A1A; /* Dark background */
    color: #f0f0f0;
}

.page-news__dark-section {
    background: #1A1A1A; /* Ensure dark background for this section */
    color: #f0f0f0; /* Light text */
}

.page-news__sub-title {
    font-size: 2em;
    color: #FFD700;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-news__text-block p {
    margin-bottom: 15px;
    color: #cccccc;
}

.page-news__bullet-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #cccccc;
}

.page-news__bullet-list li {
    margin-bottom: 8px;
    color: #cccccc;
}

.page-news__bullet-list li strong {
    color: #FFD700;
}

/* FAQ Section */
.page-news__faq-section {
    background-color: #1A1A1A;
    color: #f0f0f0;
}

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    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;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    cursor: pointer;
    background-color: #3a3a3a;
    border-bottom: 1px solid #444;
    transition: background-color 0.3s ease;
}

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

.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); /* Plus becomes an X (or minus if text content is changed) */
}

.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: #cccccc;
}

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

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

/* CTA Section */
.page-news__cta-section {
    background-color: #1A1A1A;
    position: relative;
    text-align: center;
    padding-bottom: 100px; /* Space for image below buttons */
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__cta-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Button Styles */
.page-news__btn-primary {
    background: #FFD700;
    color: #1A1A1A; /* Dark text on gold button */
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    background: #e6c200;
    color: #1A1A1A;
}

.page-news__btn-secondary {
    background: transparent;
    color: #FFD700; /* Gold text on dark background */
    border: 2px solid #FFD700;
}

.page-news__btn-secondary:hover {
    background: #FFD700;
    color: #1A1A1A;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title,
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-news__hero-section {
        height: 450px;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .page-news__hero-content {
        padding: 15px;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section {
        padding: 40px 0;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__article-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-card {
        margin: 0 15px; /* Add some side margin for cards */
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .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;
    }

    /* Images responsiveness */
    .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__text-block,
    .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;
    }
    .page-news__sub-title {
        font-size: 1.5em;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .page-news__hero-section {
        height: 350px;
    }
    .page-news__hero-title {
        font-size: 1.6em;
    }
    .page-news__section-title,
    .page-news__cta-title {
        font-size: 1.6em;
    }
    .page-news__sub-title {
        font-size: 1.3em;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
}

/* Ensure content area images are not too small */
.page-news__article-image,
.page-news__cta-image {
    min-width: 200px;
    min-height: 200px;
}
/* All other images are also subject to the 200x200px min size */
.page-news img:not(.page-news__hero-image) { /* Exclude hero image from this min constraint as it's full width */
    min-width: 200px;
    min-height: 200px;
}