/* style/news.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000080; /* Dark Blue */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f8f8f8;
    --bg-dark: var(--dark-bg-1, #0d0d0d); /* Assuming dark-bg-1 from shared.css is dark */
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --border-color: #e0e0e0;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default to light text for dark body background */
    background-color: var(--bg-dark);
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-news__section {
    padding: 60px 20px;
    text-align: center;
}

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

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

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
}

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

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

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

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-news__hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

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

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

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

/* Latest Articles */
.page-news__latest-articles {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.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-bg-dark);
    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;
}

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

.page-news__article-image {
    width: 100%;
    height: 200px;
    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.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

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

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

.page-news__article-excerpt {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.page-news__arrow {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.page-news__read-more-link:hover .page-news__arrow {
    margin-left: 12px;
}

/* Promotions Section */
.page-news__promotions-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

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

.page-news__promotion-item {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news__promotion-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-news__promotion-text {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Security Section */
.page-news__security-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

.page-news__feature-item {
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news__feature-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.page-news__feature-title a:hover {
    color: #e6c200;
}

.page-news__feature-text {
    font-size: 1em;
    color: var(--text-light);
}

/* FAQ Section */
.page-news__faq-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

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

.page-news__faq-item {
    background-color: var(--card-bg-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px 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;
    color: var(--primary-color);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.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: var(--text-light);
}

.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-bottom: 0;
    color: var(--text-light);
}

.page-news__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-news__faq-answer a:hover {
    color: #e6c200;
}

/* CTA Section */
.page-news__cta-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-news__cta-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    padding: 40px 20px;
}

.page-news__cta-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.2;
    z-index: 1;
}

.page-news__cta-text-wrapper {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

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

.page-news__cta-description {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-news__cta-button {
    display: inline-block;
    padding: 18px 35px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        height: 450px;
    }
    .page-news__hero-title {
        font-size: 2.5em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-news__section {
        padding: 40px 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__article-card {
        margin-bottom: 20px;
    }
    .page-news__article-image {
        height: 180px;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
    .page-news__promotion-title, .page-news__feature-title {
        font-size: 1.5em;
    }
    .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: 15px 20px;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Mobile responsive for images, videos, buttons */
    .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,
    .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;
    }
    .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;
        margin-bottom: 10px; /* Add some space between stacked buttons */
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Ensure no filter on images */
.page-news img {
    filter: none !important;
}

/* Content area text color for readability on dark background */
.page-news p, .page-news li, .page-news__article-excerpt, .page-news__promotion-text, .page-news__feature-text {
    color: var(--text-light);
}

.page-news__dark-section .page-news__section-title, .page-news__dark-section .page-news__section-description, .page-news__dark-section .page-news__promotion-title, .page-news__dark-section .page-news__faq-question {
    color: var(--primary-color);
}

.page-news__dark-section p, .page-news__dark-section li {
    color: var(--text-light);
}