/* style/news.css */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default light text for potentially dark body background */
    background-color: transparent; /* Inherit from body or shared */
}

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

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

.page-news__section-description {
    font-size: 1.1em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero */
}

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

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FFFFFF;
    padding: 20px;
    max-width: 900px;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #26A9E0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-news__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    margin: 0 10px;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin: 0 10px;
}

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

/* Article Section */
.page-news__articles-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333; /* Dark text for light background */
}

.page-news__articles-section .page-news__section-description {
    color: #555555;
}

.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, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.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;
    object-fit: cover;
    display: block;
}

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

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
    font-weight: bold;
}

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

.page-news__article-title a:hover {
    text-decoration: underline;
}

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

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

.page-news__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26A9E0;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-news__read-more-btn:hover {
    background-color: #1a7fb4;
}

/* Feature Sections (Sports, Casino, Slots, Fishing, Guides) */
.page-news__sports-casino-section,
.page-news__slots-fishing-section,
.page-news__guides-tips-section {
    padding: 60px 0;
}

.page-news__sports-casino-section {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__sports-casino-section .page-news__section-title,
.page-news__sports-casino-section .page-news__section-description {
    color: #FFFFFF;
}

.page-news__slots-fishing-section {
    background-color: #FFFFFF;
    color: #333333;
}

.page-news__slots-fishing-section .page-news__section-description {
    color: #555555;
}

.page-news__guides-tips-section {
    background-color: #000000;
    color: #FFFFFF;
}

.page-news__guides-tips-section .page-news__section-title,
.page-news__guides-tips-section .page-news__section-description {
    color: #FFFFFF;
}

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

.page-news__feature-card,
.page-news__guide-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.03s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__sports-casino-section .page-news__feature-card,
.page-news__guides-tips-section .page-news__guide-card {
    background-color: rgba(0, 0, 0, 0.2); /* Darker background for dark sections */
    color: #FFFFFF;
}

.page-news__slots-fishing-section .page-news__feature-card {
    background-color: #f8f8f8;
    color: #333333;
}

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

.page-news__feature-content {
    padding: 20px;
    flex-grow: 1;
}

.page-news__feature-title,
.page-news__guide-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__feature-title a,
.page-news__guide-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-news__feature-title a:hover,
.page-news__guide-title a:hover {
    text-decoration: underline;
}

.page-news__sports-casino-section .page-news__feature-title a,
.page-news__guides-tips-section .page-news__guide-title a {
    color: #FFFFFF;
}

.page-news__sports-casino-section .page-news__feature-title a:hover,
.page-news__guides-tips-section .page-news__guide-title a:hover {
    text-decoration: underline;
}

.page-news__feature-text,
.page-news__guide-text {
    font-size: 1em;
    margin-bottom: 20px;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

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

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

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

.page-news__faq-section .page-news__section-description {
    color: #555555;
}

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

.page-news__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
}

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

.page-news__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333333;
}

.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(45deg);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    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 to show content */
    padding: 15px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
    .page-news__article-grid,
    .page-news__feature-grid,
    .page-news__guide-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 {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important;
        margin: 10px 0;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
        padding: 0 15px;
    }
    .page-news__section-description {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-news__cta-title {
        font-size: 1.8em;
        padding: 0 15px;
    }
    .page-news__cta-description {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-news__container {
        padding-left: 15px;
        padding-right: 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__article-card,
    .page-news__feature-card,
    .page-news__guide-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__faq-question h3 {
        font-size: 1em;
    }
    .page-news__faq-answer p {
        font-size: 0.9em;
    }
    /* Content area images must not be smaller than 200px */
    .page-news__articles-section img,
    .page-news__sports-casino-section img,
    .page-news__slots-fishing-section img {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.6em;
    }
    .page-news__hero-description {
        font-size: 0.9em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__cta-title {
        font-size: 1.6em;
    }
    .page-news__article-image {
        height: 180px;
    }
    .page-news__feature-image {
        height: 200px;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
    .page-news__feature-title,
    .page-news__guide-title {
        font-size: 1.1em;
    }
}