/* style/news.css */

/* Base styles for the page content */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-news__dark-bg {
    background-color: #000000; /* Use black background for sections */
    color: #ffffff; /* Light text on dark background */
}

.page-news__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text on light background */
}

.page-news__text-center {
    text-align: center;
}

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

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

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 1;
}

.page-news__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.page-news__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.page-news__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-news__btn-tertiary {
    background-color: #EA7C07;
    color: #ffffff;
    border: 2px solid #EA7C07;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-news__btn-tertiary:hover {
    background-color: #c76706;
    border-color: #c76706;
}

.page-news__btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* Section titles */
.page-news__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: inherit;
}

/* Content Area */
.page-news__content-area {
    padding: 60px 0;
}

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

.page-news__article-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    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: 220px;
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #333333;
}

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

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

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

.page-news__article-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-top: auto;
}

.page-news__read-more:hover {
    text-decoration: underline;
}

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

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

/* Games Section */
.page-news__games-section {
    padding: 60px 0;
}

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

.page-news__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-news__game-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    padding: 0 15px;
}

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

.page-news__game-title a:hover {
    color: #26A9E0;
}

.page-news__game-description {
    font-size: 0.9em;
    color: #f0f0f0;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1;
}

/* Policy Section */
.page-news__policy-section {
    padding: 60px 0;
}

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

.page-news__policy-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 30px;
    color: #333333;
}

.page-news__policy-title {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.page-news__policy-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__policy-title a:hover {
    color: #1a8cc7;
}

.page-news__policy-text {
    font-size: 0.95em;
}

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

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

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

.page-news__faq-question:hover {
    background-color: #1a8cc7;
}

.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;
    background-color: rgba(0, 0, 0, 0.7);
    color: #f0f0f0;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important;
    padding: 20px 25px;
}

.page-news__faq-answer p {
    margin: 0;
    padding: 0;
    color: #f0f0f0;
}

/* Bottom CTA Section */
.page-news__cta-bottom-section {
    padding: 80px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 60px 0;
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-news__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-news__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__btn-tertiary,
    .page-news__btn-large {
        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__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-news__article-grid,
    .page-news__game-grid,
    .page-news__policy-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__article-card,
    .page-news__game-card,
    .page-news__policy-card {
        margin: 0 15px;
    }

    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__content-area,
    .page-news__games-section,
    .page-news__policy-section,
    .page-news__faq-section,
    .page-news__cta-bottom-section {
        padding: 40px 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__faq-item {
        margin: 0 15px 15px 15px;
    }

    .page-news__faq-question,
    .page-news__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__btn-tertiary,
    .page-news__btn-large {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}