/* style/news.css */

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Body background from shared */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand color as background */
    color: #FFFFFF; /* White text for contrast */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-news__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

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

.page-news__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7fb3;
    border-color: #1a7fb3;
}

/* General Section Styling */
.page-news__latest-news-section,
.page-news__analysis-section,
.page-news__tips-section,
.page-news__schedule-section,
.page-news__promotions-section,
.page-news__responsible-gaming-section,
.page-news__faq-section,
.page-news__cta-bottom-section {
    padding: 80px 0;
}

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

.page-news__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
    color: inherit; /* Inherit color from section background */
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: inherit;
}

/* News Grid */
.page-news__news-grid,
.page-news__features-grid,
.page-news__promotions-grid,
.page-news__schedule-grid,
.page-news__info-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: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-news__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-news__card-content {
    padding: 25px;
}

.page-news__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    min-height: 70px; /* Ensure consistent card title height */
}

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

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

.page-news__card-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

.page-news__read-more {
    display: inline-block;
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.page-news__read-more::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #EA7C07;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.page-news__read-more:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Features Grid */
.page-news__feature-item,
.page-news__tip-item,
.page-news__schedule-item,
.page-news__info-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* Light background for dark section */
    color: #FFFFFF;
}

.page-news__feature-item .page-news__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-news__feature-title,
.page-news__tip-title,
.page-news__schedule-title,
.page-news__info-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: inherit;
}

.page-news__feature-text,
.page-news__tip-text,
.page-news__schedule-text,
.page-news__info-text {
    font-size: 1em;
    color: inherit;
}

.page-news__cta-buttons--center {
    margin-top: 50px;
}

/* FAQ Section */
.page-news__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-news__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
    color: #26A9E0;
}

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

.page-news__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(0deg); /*  to "-" is handled by JS text content */
}

.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: #555555;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__news-grid,
    .page-news__features-grid,
    .page-news__promotions-grid,
    .page-news__schedule-grid,
    .page-news__info-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 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__main-title {
        font-size: 2.2em;
    }
    .page-news__intro-text {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-news__latest-news-section,
    .page-news__analysis-section,
    .page-news__tips-section,
    .page-news__schedule-section,
    .page-news__promotions-section,
    .page-news__responsible-gaming-section,
    .page-news__faq-section,
    .page-news__cta-bottom-section {
        padding: 50px 0;
    }
    .page-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__news-card,
    .page-news__promo-card,
    .page-news__feature-item,
    .page-news__tip-item,
    .page-news__schedule-item,
    .page-news__info-item {
        padding: 15px;
    }
    .page-news__card-image {
        height: 200px;
    }
    .page-news__card-title {
        font-size: 1.3em;
        min-height: auto;
    }
    .page-news__feature-title,
    .page-news__tip-title,
    .page-news__schedule-title,
    .page-news__info-title {
        font-size: 1.5em;
    }
    .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;
    }
    /* Ensure all containing elements for images/videos/buttons are responsive */
    .page-news__news-grid,
    .page-news__features-grid,
    .page-news__promotions-grid,
    .page-news__schedule-grid,
    .page-news__info-grid {
        grid-template-columns: 1fr;
    }
}