/* style/news.css */

/* Base styles for the 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); /* #1A1A1A */
}

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

.page-news__dark-bg {
    background-color: var(--secondary-color); /* #1A1A1A */
    color: #f0f0f0;
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: var(--primary-color); /* #FFD700 */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.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;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding: 60px 20px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.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; /* Darken image for text readability */
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(26, 26, 26, 0.7); /* Semi-transparent dark background for text */
    border-radius: 10px;
}

.page-news__hero-title {
    font-size: 3.5em;
    color: var(--primary-color); /* #FFD700 */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: var(--primary-color); /* #FFD700 */
    color: var(--secondary-color); /* #1A1A1A */
    border: 2px solid var(--primary-color);
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--primary-color); /* #FFD700 */
    border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color); /* #1A1A1A */
    transform: translateY(-3px);
}

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

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

.page-news__article-card {
    background-color: #ffffff;
    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;
    color: #333333; /* Dark text for light background */
}

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

.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.6em;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-news__article-title a:hover {
    color: var(--primary-color); /* #FFD700 */
}

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

.page-news__read-more {
    display: inline-block;
    color: var(--primary-color); /* #FFD700 */
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

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

.page-news__button-group {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Categories Section */
.page-news__categories {
    padding: 80px 0;
    text-align: center;
}

.page-news__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__category-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px 20px;
    text-decoration: none;
    color: #f0f0f0;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__category-card:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color); /* #1A1A1A */
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.page-news__category-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: brightness(0) invert(1); /* Default to white icon for dark background */
    transition: filter 0.3s ease;
}

.page-news__category-card:hover .page-news__category-icon {
    filter: brightness(0) invert(0); /* Change to black icon on hover (primary color background) */
}

.page-news__category-title {
    font-size: 1.4em;
    font-weight: bold;
}

/* Featured Video Section */
.page-news__featured-video {
    padding: 80px 0;
    text-align: center;
}

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

.page-news__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

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

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

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

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

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color); /* #FFD700 */
    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 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: 15px 25px 20px;
}

.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__section-title {
        font-size: 2em;
    }
}

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

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

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

    .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 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0;
    }
    
    .page-news__button-group {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-news__latest-articles,
    .page-news__categories,
    .page-news__featured-video,
    .page-news__faq-section {
        padding: 50px 0;
    }

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

    .page-news__articles-grid,
    .page-news__categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

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

    .page-news__category-card {
        padding: 20px;
    }
    
    .page-news__category-icon {
        width: 80px;
        height: 80px;
    }

    .page-news__video-wrapper {
        margin: 20px auto;
        border-radius: 5px;
        padding: 0 15px;
    }

    .page-news__faq-list {
        margin: 20px auto 0;
        padding: 0 15px;
    }

    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    
    /* Enforce image and video responsiveness */
    .page-news img {
        max-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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right are handled by specific elements where needed */
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }

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

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

    .page-news__article-title {
        font-size: 1.4em;
    }
    
    .page-news__category-title {
        font-size: 1.2em;
    }
}