/* style/news.css */

/* Base Styles */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Inherited from body via shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-subtitle {
    font-size: 1.2em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
}

.page-news__text-block {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.page-news__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

/* Hero Section */
.page-news__hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_main:1920x1080:web_789,news_hero,online_gaming,updates]') no-repeat center center/cover;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: calc(100px + var(--header-offset, 120px)); /* Ensure hero is below header */
}

.page-news__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Featured News Section */
.page-news__featured-news-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
}

.page-news__featured-article {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card on dark bg */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

.page-news__featured-image {
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-news__featured-content {
    width: 50%;
}

.page-news__article-title {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

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

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

.page-news__article-meta {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-bottom: 10px;
}

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

.page-news__read-more-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

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

.page-news__arrow {
    transition: transform 0.3s ease;
}

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

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Even darker background */
}

.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.08); /* Card background on dark section */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.page-news__card-title {
    font-size: 1.4em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

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

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

.page-news__card-meta {
    font-size: 0.85em;
    color: #a0a0a0;
    margin-bottom: 15px;
}

.page-news__card-text {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Promotions CTA Section */
.page-news__promotions-cta-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.page-news__promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__promo-text {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 900px;
}

.page-news__promo-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-news__video-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    text-align: center;
}

.page-news__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

/* Security Section */
.page-news__security-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

/* Call to Action Section */
.page-news__call-to-action-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color background */
    text-align: center;
    color: #FFFFFF;
}

.page-news__call-to-action-section .page-news__section-title {
    color: #FFFFFF;
}

.page-news__call-to-action-section .page-news__text-block {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__call-to-action-section .page-news__btn-primary {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register font color */
    border-color: #C30808;
}

.page-news__call-to-action-section .page-news__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

.page-news__faq-list {
    max-width: 900px;
    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: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.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, padding 0.3s ease;
    color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px 25px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__featured-article {
        flex-direction: column;
        align-items: center;
    }
    .page-news__featured-image,
    .page-news__featured-content {
        width: 100%;
    }
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding: 80px 20px;
        padding-top: calc(80px + var(--header-offset, 120px)) !important;
    }
    .page-news__hero-title {
        font-size: 2.5em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__section-subtitle {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        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__featured-article {
        padding: 20px;
    }
    .page-news__article-card {
        padding: 0;
    }
    .page-news__article-thumbnail {
        height: 180px;
    }
    .page-news__card-content {
        padding: 15px;
    }
    .page-news__promo-content {
        gap: 20px;
    }
    .page-news__promo-image {
        border-radius: 8px;
    }
    .page-news__video-wrapper {
        padding-bottom: 60%; /* Adjust for mobile video aspect ratio */
    }
    /* Mobile image/video/container responsiveness */
    .page-news img,
    .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 {
        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__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
}