/* style/news.css */

/* Base Styles */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #1A202C, so light text */
    background-color: var(--primary-color); /* Inherit from shared, which is #1A202C */
}

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

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

.page-news__section-title--light {
    color: #FFD700; /* Gold for titles on dark background */
}

.page-news__section-intro-text {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-color: #1A202C; /* Ensure dark background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Apply fixed header offset */
}

.page-news__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Gold for hero title */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__hero-description {
    font-size: 1.3em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    border: 2px solid transparent;
}

.page-news__btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #1A202C; /* Dark text on gold */
}

.page-news__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border-color: #FFD700; /* Gold border */
    margin-left: 20px;
}

.page-news__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
    transform: translateY(-2px);
}

/* Card Styles */
.page-news__card {
    background-color: #1A202C; /* Dark background for cards */
    color: #ffffff; /* Light text for cards */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 215, 0, 0.2); /* Subtle gold border */
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

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

.page-news__article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.page-news__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* Ensure no extra space below image */
}

.page-news__article-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take available space */
}

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

.page-news__article-meta {
    font-size: 0.9em;
    color: #aaaaaa;
    margin-bottom: 10px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-news__read-more {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start; /* Align to the start of the flex container */
}

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

/* Featured Video Section */
.page-news__featured-video {
    padding: 80px 0;
    text-align: center;
    background-color: #1A202C; /* Dark background */
    color: #ffffff;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__video-wrapper .page-news__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: block;
    text-decoration: none; /* Remove underline from link */
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Important for responsiveness */
}

.page-news__video-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Industry Insights Section */
.page-news__industry-insights {
    padding: 80px 0;
    background-color: #0d0d0d;
}

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

.page-news__insight-card {
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__insight-image {
    width: 100%;
    height: 200px; /* Fixed height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-news__insight-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1;
}

.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: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #1A202C; /* Dark background */
    color: #ffffff;
}

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

.page-news__faq-item {
    background-color: #0d0d0d; /* Slightly lighter dark background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.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, padding 0.3s ease;
    color: #f0f0f0;
    background-color: #1a202c; /* Inner answer background */
}

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

.page-news__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

.page-news__faq-answer a {
    color: #FFD700;
    text-decoration: underline;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    text-align: center;
}

.page-news__cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #1A202C; /* Dark background for CTA card */
    color: #ffffff;
}

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

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

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


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-news__section-intro-text {
        font-size: 1em;
        margin-bottom: 40px;
    }

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

    .page-news__article-image,
    .page-news__insight-image {
        height: 200px; /* Adjust height for smaller screens */
    }
}