/* style/news.css */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: transparent; /* Body background is handled by shared.css var(--dark-bg-1) */
}

/* Header offset for fixed header */
.page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

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

.page-news__hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: none !important; /* Ensure no image filters */
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(204, 0, 0, 0.5)); /* Dark overlay with brand color */
    z-index: -1;
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-news__hero-title {
    font-size: 3.5em;
    color: #FFD700; /* Auxiliary color for title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* General Section Styling */
.page-news__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Auxiliary color for section titles */
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-news__btn-primary {
    background-color: #CC0000; /* Main color */
    color: #ffffff;
    border: 2px solid #CC0000;
}

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

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

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

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

/* Latest News Grid */
.page-news__latest-news {
    background-color: var(--dark-bg-1); /* Use shared dark background */
}

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

.page-news__news-card,
.page-news__promo-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background for cards */
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-news__news-card:hover,
.page-news__promo-card:hover {
    transform: translateY(-5px);
}

.page-news__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent image size */
    object-fit: cover;
    display: block;
    filter: none !important; /* Ensure no image filters */
}

.page-news__card-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to grow and push link to bottom */
    display: flex;
    flex-direction: column;
}

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

.page-news__card-title a {
    color: #FFD700; /* Auxiliary color for card titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-news__card-excerpt {
    color: #cccccc;
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-news__card-link {
    display: inline-block;
    color: #CC0000; /* Main color */
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push link to the bottom */
    transition: color 0.3s ease;
}

.page-news__card-link:hover {
    color: #FFD700;
}

/* Promotions Section */
.page-news__promotions-section {
    background-color: #CC0000; /* Main brand color for dark section */
    color: #ffffff; /* White text for contrast */
}

.page-news__promotions-section .page-news__section-title {
    color: #FFD700;
}

.page-news__promotions-section .page-news__section-description {
    color: #f0f0f0;
}

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

/* Video Section */
.page-news__video-section {
    background-color: var(--dark-bg-1); /* Use shared dark background */
}

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

.page-news__video-wrapper .page-news__video,
.page-news__video-wrapper .page-news__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
    cursor: pointer;
}

/* FAQ Section */
.page-news__faq-section {
    background-color: var(--dark-bg-1); /* Use shared dark background */
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.12); /* Slightly darker for question area */
    transition: background-color 0.3s ease;
}

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

.page-news__faq-title {
    font-size: 1.2em;
    color: #FFD700; /* Auxiliary color for FAQ questions */
    margin: 0;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    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 20px;
    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: 20px;
}

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

/* CTA Section (final) */
.page-news__cta-section {
    background-color: #CC0000; /* Main brand color for dark section */
    color: #ffffff;
}

.page-news__cta-section .page-news__section-title {
    color: #FFD700;
}

.page-news__cta-section .page-news__section-description {
    color: #f0f0f0;
}

/* 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__hero-section {
        height: 500px;
    }
    .page-news__hero-title {
        font-size: 2.5em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section {
        padding: 40px 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 0.95em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Full width buttons on mobile */
        margin-left: 0 !important;
        margin-bottom: 10px;
    }
    .page-news__btn-secondary {
      margin-top: 10px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* Images responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__news-card,
    .page-news__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-news__card-image {
      height: 200px !important; /* Adjust card image height for mobile */
    }

    /* Video 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;
    }
    .page-news__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__video-wrapper {
        padding-bottom: 56.25% !important;
        height: auto !important;
    }

    /* Container padding for mobile */
    .page-news__section,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__faq-question {
        padding: 15px;
    }
    .page-news__faq-answer {
        padding: 0 15px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__card-title {
        font-size: 1.2em;
    }
    .page-news__faq-title {
        font-size: 1em;
    }
}

/* Ensure no image filters globally for .page-news */
.page-news img {
  filter: none !important;
}