/* style/news.css */
.page-news {
    font-family: Arial, sans-serif;
    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: 20px;
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    box-sizing: border-box;
}

.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.7);
    z-index: 2;
}

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

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

.page-news__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

/* Buttons */
.page-news__btn-primary {
    background-color: #FFD700;
    color: #8B0000;
    border: 2px solid #FFD700;
}

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

.page-news__btn-secondary {
    background-color: #8B0000;
    color: #FFD700;
    border: 2px solid #8B0000;
}

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

.page-news__btn-lg {
    padding: 18px 35px;
    font-size: 1.3em;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

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

.page-news__news-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-news__news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__news-card-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-news__news-card-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: #fdd835;
}

.page-news__news-card-excerpt {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.page-news__read-more-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
    color: #fdd835;
    text-decoration: underline;
}

/* Sports Betting News Section */
.page-news__sports-betting-news-section {
    padding: 60px 0;
}

/* Promotions Section */
.page-news__promotions-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

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

.page-news__promo-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__promo-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-news__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__promo-card-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-news__promo-card-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__promo-card-title a:hover {
    color: #fdd835;
}

.page-news__promo-card-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Expert Analysis Section */
.page-news__expert-analysis-section {
    padding: 60px 0;
}

.page-news__analysis-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-news__analysis-image {
    flex: 1;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__analysis-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

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

.page-news__faq-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    cursor: pointer;
    background-color: #333333;
    border-bottom: 1px solid #444444;
    transition: background-color 0.3s ease;
}

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

.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;
    color: #cccccc;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.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: 0;
    line-height: 1.6;
}

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

/* Dark background sections for contrast */
.page-news__dark-section {
    background-color: #8B0000; /* Auxiliary color for dark sections */
    color: #ffffff;
}

.page-news__dark-section .page-news__section-title {
    color: #FFD700;
}

/* 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__analysis-content {
        flex-direction: column;
    }

    .page-news__analysis-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        min-height: 400px;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }

    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__hero-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .page-news__section-title {
        font-size: 1.8em;
    }

    .page-news__text-block {
        font-size: 0.95em;
    }

    .page-news__news-grid,
    .page-news__promo-grid {
        grid-template-columns: 1fr;
    }

    /* Image responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__news-card-image,
    .page-news__promo-card-image,
    .page-news__analysis-image {
        height: auto !important; /* Override fixed height for responsiveness */
    }

    /* Container responsive */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__sports-betting-news-section,
    .page-news__promotions-section,
    .page-news__expert-analysis-section,
    .page-news__faq-section,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-news__hero-section { 
        padding-top: var(--header-offset, 120px) !important; 
    }

    /* Button responsive */
    .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;
      padding-left: 15px;
      padding-right: 15px;
      margin-bottom: 10px; /* Add some space between stacked buttons */
    }
    
    .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;
      flex-wrap: wrap !important;
      gap: 10px;
      display: flex;
      flex-direction: column; /* Stack buttons vertically */
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }

    .page-news__hero-description {
        font-size: 0.9em;
    }

    .page-news__section-title {
        font-size: 1.5em;
    }

    .page-news__news-card-title,
    .page-news__promo-card-title {
        font-size: 1.2em;
    }

    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-news__faq-answer {
        padding: 10px 20px;
    }
}