/* style/news.css */

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

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

/* 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;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.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); /* Dark overlay for text readability */
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
    color: #ffffff;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-news__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General 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;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.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: #e02020;
    border-color: #e02020;
}

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

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

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

.page-news__btn-text--light { /* For dark backgrounds */
    color: #ffffff;
}

.page-news__btn-text:hover {
    color: #004d2e;
}

.page-news__btn-text--light:hover {
    color: #f0f0f0;
}

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

.page-news__btn-text:hover .page-news__arrow {
    transform: translateX(5px);
}

/* Section common styles */
.page-news__latest-articles-section,
.page-news__featured-section,
.page-news__sports-updates-section,
.page-news__casino-updates-section,
.page-news__promotions-updates-section,
.page-news__industry-insights-section,
.page-news__faq-section,
.page-news__cta-section {
    padding: 60px 0;
}

.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Default for light backgrounds */
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555; /* Default for light backgrounds */
}

/* Backgrounds and text colors for contrast */
.page-news__dark-bg {
    background-color: var(--dark-bg-1, #0d0d0d); /* Assuming shared.css defines --dark-bg-1 */
    color: #ffffff;
}

.page-news__dark-bg .page-news__section-title {
    color: #ffffff;
}

.page-news__dark-bg .page-news__section-description {
    color: #cccccc;
}

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

.page-news__light-bg .page-news__section-title {
    color: #017439;
}

.page-news__light-bg .page-news__section-description {
    color: #555555;
}

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

.page-news__article-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    background-color: #ffffff; /* For light-bg section */
    color: #333333;
}

.page-news__dark-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

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

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

.page-news__article-title a {
    color: #017439; /* For light-bg card */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__dark-card .page-news__article-title a {
    color: #ffffff; /* For dark-bg card */
}

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

.page-news__dark-card .page-news__article-title a:hover {
    color: #f0f0f0;
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #777777; /* For light-bg card */
    margin-bottom: 15px;
}

.page-news__dark-card .page-news__article-meta {
    color: #b0b0b0; /* For dark-bg card */
}

.page-news__article-excerpt {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Featured Article */
.page-news__featured-article {
    display: flex;
    gap: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.page-news__featured-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-news__featured-content {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

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

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

.page-news__featured-title a:hover {
    color: #f0f0f0;
}

.page-news__featured-meta {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-bottom: 20px;
}

.page-news__featured-excerpt {
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* Articles List (Sports Updates) */
.page-news__articles-list {
    display: grid;
    gap: 20px;
}

.page-news__list-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-news__list-image {
    width: 250px;
    height: 140px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-news__list-content {
    flex-grow: 1;
}

.page-news__list-title {
    font-size: 1.3em;
    margin-bottom: 8px;
    line-height: 1.3;
}

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

.page-news__list-title a:hover {
    color: #004d2e;
}

.page-news__list-meta {
    font-size: 0.85em;
    color: #777777;
    margin-bottom: 10px;
}

.page-news__list-excerpt {
    font-size: 0.95em;
    color: #555555;
}

/* Promotions List */
.page-news__promotions-list {
    display: grid;
    gap: 20px;
}

.page-news__promotion-item {
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__promotion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

.page-news__promotion-title a:hover {
    color: #004d2e;
}

.page-news__promotion-meta {
    font-size: 0.9em;
    color: #777777;
    margin-bottom: 15px;
}

.page-news__promotion-excerpt {
    font-size: 1em;
    margin-bottom: 15px;
}

/* Industry Insights */
.page-news__insight-card {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.1); /* Dark card for dark section */
    color: #ffffff;
}

.page-news__insight-card:last-child {
    margin-bottom: 0;
}

.page-news__insight-image {
    width: 40%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-news__insight-content {
    width: 60%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

.page-news__insight-title a:hover {
    color: #f0f0f0;
}

.page-news__insight-meta {
    font-size: 0.9em;
    color: #b0b0b0;
    margin-bottom: 15px;
}

.page-news__insight-excerpt {
    font-size: 1em;
    margin-bottom: 20px;
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-heading {
    margin: 0;
    font-size: 1.1em;
    color: #017439;
}

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

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* For '-' symbol */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px;
}

.page-news__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some padding if multiple paragraphs */
}

/* Call to Action Section */
.page-news__cta-section {
    text-align: center;
    padding: 80px 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__featured-article,
    .page-news__insight-card {
        flex-direction: column;
    }
    .page-news__featured-image,
    .page-news__featured-content,
    .page-news__insight-image,
    .page-news__insight-content {
        width: 100%;
    }
    .page-news__featured-image {
        height: 350px;
    }
    .page-news__insight-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
            height: 500px;
        }
    }
}