/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or shared, ensuring contrast */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 120px 0 80px; 
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

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

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

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Button primary style */
.page-news__btn-primary {
    background-color: #FFD700; /* Accent color for primary action */
    color: #1A202C; /* Dark text for accent background */
    border: 2px solid #FFD700;
}

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

/* Button secondary style */
.page-news__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Accent color for text */
    border: 2px solid #FFD700;
}

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

/* Section Titles */
.page-news__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 50px;
    padding-top: 60px;
}

/* Featured Articles Section */
.page-news__featured-articles {
    padding: 80px 0;
    background-color: #1A202C; /* Main dark theme color */
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark for card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

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

.page-news__article-content {
    padding: 25px;
}

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

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

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

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

.page-news__article-date {
    display: block;
    font-size: 0.9em;
    color: #888;
    margin-bottom: 20px;
}

.page-news__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1A202C; /* Dark background for read more */
    color: #FFD700;
    border: 1px solid #FFD700;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__read-more-btn:hover {
    background-color: #FFD700;
    color: #1A202C;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
    background-color: #121212; /* Body background color */
}

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

.page-news__list-item {
    display: flex;
    flex-direction: row; /* Desktop: image on left, content on right */
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-news__list-item:hover {
    transform: translateY(-3px);
}

.page-news__list-image {
    width: 300px; /* Fixed width for list image on desktop */
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

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

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

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

.page-news__list-title a:hover {
    color: #ffffff;
}

.page-news__list-excerpt {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.page-news__list-date {
    display: block;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

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

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

.page-news__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #e0e0e0;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__cta-btn {
    flex-shrink: 0;
    flex-grow: 0;
    min-width: 180px;
}

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

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.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); /* Change + to X or - */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.03);
    color: #e0e0e0;
}

.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;
    padding-bottom: 10px;
}

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

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

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

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

    .page-news__list-image {
        width: 250px;
        height: 180px;
    }

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

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

    .page-news__hero-section {
        padding: 80px 0 60px;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }

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

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

    .page-news__hero-btn {
        padding: 12px 25px;
        font-size: 0.9em;
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0;
    }

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

    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Stack articles on mobile */
    }

    .page-news__article-image {
        height: 220px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__article-card,
    .page-news__list-item,
    .page-news__cta-section,
    .page-news__faq-section,
    .page-news__featured-articles,
    .page-news__latest-articles {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-news__list-item {
        flex-direction: column; /* Stack image and content on mobile */
    }

    .page-news__list-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    .page-news__list-content {
        padding: 15px;
    }

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

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

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

    .page-news__cta-buttons {
        flex-direction: column; /* Stack CTA buttons on mobile */
        gap: 10px;
        padding: 0;
    }

    .page-news__cta-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__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 20px;
    }

    /* Ensure all images inside content areas are responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all video elements inside content areas are responsive */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}