/* style/news.css */

:root {
    --primary-color: #0A192F;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #1a1a1a;
    --card-background-dark: rgba(255, 255, 255, 0.1);
}

.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Inherit light text for dark body background */
    background-color: var(--background-dark);
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px; /* Increased height for visual impact */
    overflow: hidden;
    padding-bottom: 60px; /* Ensure content is above the image */
}

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

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 1;
    padding-top: 40px; /* Additional padding within container */
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-news__btn-primary:hover {
    background-color: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    margin-left: 20px;
}

.page-news__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Section Styles */
.page-news__dark-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: var(--text-light);
}

.page-news__section-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-light);
}

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

.page-news__article-card {
    background-color: var(--card-background-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
}

.page-news__article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-news__article-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.page-news__read-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

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

.page-news__arrow {
    margin-left: 8px;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.page-news__read-more:hover .page-news__arrow {
    transform: translateX(5px);
}

/* Deep Dive Articles */
.page-news__deep-dive .page-news__container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.page-news__detail-article {
    background-color: var(--card-background-dark);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.page-news__article-subtitle {
    font-size: 2.2em;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.3;
}

.page-news__detail-article p {
    font-size: 1.1em;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-news__article-image--full {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
}

/* Call to Action Section */
.page-news__cta-section {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-news__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--primary-color);
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-news__cta-buttons .page-news__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.page-news__cta-buttons .page-news__btn-primary:hover {
    background-color: lighten(var(--primary-color), 10%);
    border-color: lighten(var(--primary-color), 10%);
}

.page-news__cta-buttons .page-news__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-news__cta-buttons .page-news__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

.page-news__faq-item {
    background-color: var(--card-background-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__faq-item:last-child {
    margin-bottom: 0;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg);
    content: '−'; /* This will be handled by JS */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
}

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

.page-news__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__section-title {
        font-size: 2.2em;
    }
    .page-news__article-subtitle {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        min-height: 450px;
        padding-bottom: 40px;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 25px;
        font-size: 0.9em;
        width: 100%;
        margin-left: 0;
        margin-bottom: 15px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-secondary {
        margin-left: 0;
    }
    .page-news__dark-section {
        padding: 50px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-subtitle {
        font-size: 1.5em;
    }
    .page-news__detail-article {
        padding: 30px 20px;
    }
    .page-news__detail-article p {
        font-size: 0.95em;
    }
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image and video responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .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__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure proper header offset on mobile */
    }
    .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;
    }
}