/* style/resources-f168-bookmaker-latest-news.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-resources-f168-bookmaker-latest-news {
    color: #f0f0f0; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Let shared.css handle body background */
}

/* Fixed Header Offset - Apply to the first main content section or hero */
.page-resources-f168-bookmaker-latest-news__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    overflow: hidden;
}

.page-resources-f168-bookmaker-latest-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* No filter allowed */
}

.page-resources-f168-bookmaker-latest-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-resources-f168-bookmaker-latest-news__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-resources-f168-bookmaker-latest-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-resources-f168-bookmaker-latest-news__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* General section styling */
.page-resources-f168-bookmaker-latest-news__section {
    padding: 60px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-f168-bookmaker-latest-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for content */
    box-sizing: border-box;
}

.page-resources-f168-bookmaker-latest-news__heading {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for headings */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-resources-f168-bookmaker-latest-news__sub-heading {
    font-size: 1.8em;
    color: #ffffff; /* White text for sub-headings on dark background */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources-f168-bookmaker-latest-news__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for paragraphs */
}

.page-resources-f168-bookmaker-latest-news__content-wrapper {
    display: flex;
    justify-content: center;
}

.page-resources-f168-bookmaker-latest-news__text-block {
    max-width: 800px;
    text-align: left;
}

/* Buttons */
.page-resources-f168-bookmaker-latest-news__btn-primary,
.page-resources-f168-bookmaker-latest-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;
    text-align: center;
    max-width: 100%; /* Ensure buttons adapt to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-resources-f168-bookmaker-latest-news__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources-f168-bookmaker-latest-news__btn-primary:hover {
    background-color: #1a7bb3;
    border-color: #1a7bb3;
    transform: translateY(-2px);
}

.page-resources-f168-bookmaker-latest-news__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources-f168-bookmaker-latest-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-resources-f168-bookmaker-latest-news__btn-text {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 15px;
}

.page-resources-f168-bookmaker-latest-news__btn-text:hover {
    color: #1a7bb3;
    text-decoration: underline;
}

/* Grid for highlights section */
.page-resources-f168-bookmaker-latest-news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-f168-bookmaker-latest-news__card {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #f0f0f0; /* Light text for card content */
}

.page-resources-f168-bookmaker-latest-news__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    /* No filter allowed */
}

.page-resources-f168-bookmaker-latest-news__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-f168-bookmaker-latest-news__card-title {
    font-size: 1.4em;
    color: #26A9E0; /* Brand color for card titles */
    margin-bottom: 10px;
}

.page-resources-f168-bookmaker-latest-news__card-description {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Steps guide */
.page-resources-f168-bookmaker-latest-news__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-f168-bookmaker-latest-news__step-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for step items */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-f168-bookmaker-latest-news__step-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-resources-f168-bookmaker-latest-news__step-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Info grid for commitment section */
.page-resources-f168-bookmaker-latest-news__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-f168-bookmaker-latest-news__info-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-f168-bookmaker-latest-news__info-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-resources-f168-bookmaker-latest-news__info-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-resources-f168-bookmaker-latest-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-f168-bookmaker-latest-news__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources-f168-bookmaker-latest-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources-f168-bookmaker-latest-news__faq-question:hover {
    background-color: #1a7bb3;
}

.page-resources-f168-bookmaker-latest-news__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffffff;
}

.page-resources-f168-bookmaker-latest-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-resources-f168-bookmaker-latest-news__faq-item.active .page-resources-f168-bookmaker-latest-news__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-f168-bookmaker-latest-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding for answer */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

.page-resources-f168-bookmaker-latest-news__faq-item.active .page-resources-f168-bookmaker-latest-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px; /* Restore padding when active */
}

.page-resources-f168-bookmaker-latest-news__faq-answer .page-resources-f168-bookmaker-latest-news__paragraph {
    margin-bottom: 0; /* Remove bottom margin for paragraphs inside FAQ answers */
}

/* CTA buttons at conclusion */
.page-resources-f168-bookmaker-latest-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources-f168-bookmaker-latest-news__hero-title {
        font-size: 2.8em;
    }
    .page-resources-f168-bookmaker-latest-news__heading {
        font-size: 2em;
    }
    .page-resources-f168-bookmaker-latest-news__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-resources-f168-bookmaker-latest-news {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed Header Offset for mobile */
    .page-resources-f168-bookmaker-latest-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 400px;
    }

    .page-resources-f168-bookmaker-latest-news__hero-title {
        font-size: 2.2em;
    }

    .page-resources-f168-bookmaker-latest-news__hero-description {
        font-size: 1em;
    }

    .page-resources-f168-bookmaker-latest-news__hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .page-resources-f168-bookmaker-latest-news__btn-primary,
    .page-resources-f168-bookmaker-latest-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-resources-f168-bookmaker-latest-news__section,
    .page-resources-f168-bookmaker-latest-news__card,
    .page-resources-f168-bookmaker-latest-news__container,
    .page-resources-f168-bookmaker-latest-news__step-item,
    .page-resources-f168-bookmaker-latest-news__info-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-f168-bookmaker-latest-news__section {
        padding: 40px 0;
    }

    .page-resources-f168-bookmaker-latest-news__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-f168-bookmaker-latest-news__sub-heading {
        font-size: 1.5em;
    }

    .page-resources-f168-bookmaker-latest-news__paragraph {
        font-size: 0.95em;
    }

    .page-resources-f168-bookmaker-latest-news__grid,
    .page-resources-f168-bookmaker-latest-news__steps,
    .page-resources-f168-bookmaker-latest-news__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-f168-bookmaker-latest-news__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-f168-bookmaker-latest-news__faq-question {
        padding: 15px 20px;
    }

    .page-resources-f168-bookmaker-latest-news__faq-title {
        font-size: 1.1em;
    }

    .page-resources-f168-bookmaker-latest-news__faq-answer {
        padding: 0 20px;
    }

    .page-resources-f168-bookmaker-latest-news__faq-item.active .page-resources-f168-bookmaker-latest-news__faq-answer {
        padding: 15px 20px;
    }

    .page-resources-f168-bookmaker-latest-news__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Ensure all images inside content area are responsive and not too small */
.page-resources-f168-bookmaker-latest-news img {
    max-width: 100%;
    height: auto;
    display: block;
    /* No filter allowed */
}

/* Enforce minimum size for content images if they are not specifically card images */
.page-resources-f168-bookmaker-latest-news__text-block img {
    min-width: 200px;
    min-height: 200px;
}