/* style/resources-lodi777-game-safety-guide.css */

/* Base styling for the page content, ensuring header offset and dark text on light background */
.page-resources-lodi777-game-safety-guide {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #FFFFFF; /* White background as per shared.css body background */
    color: #333333; /* Dark text for contrast on light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-resources-lodi777-game-safety-guide__hero-section {
    position: relative;
    padding: 80px 20px 40px;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-resources-lodi777-game-safety-guide__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-resources-lodi777-game-safety-guide__hero-title {
    font-size: 3em;
    color: #000000;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources-lodi777-game-safety-guide__hero-description {
    font-size: 1.2em;
    color: #333333;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-lodi777-game-safety-guide__hero-image {
    margin: 40px auto;
    max-width: 1200px; /* Max width for the image container */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-lodi777-game-safety-guide__hero-image img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    /* Ensure no filter is applied */
    filter: none;
}

.page-resources-lodi777-game-safety-guide__hero-cta {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources-lodi777-game-safety-guide__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-width: 180px; /* Ensure buttons are not too small */
    text-align: center;
    border: 2px solid transparent; /* Default border */
}

.page-resources-lodi777-game-safety-guide__button--primary {
    background-color: #000000; /* Main color */
    color: #FFFFFF; /* Auxiliary color */
    border-color: #000000;
}

.page-resources-lodi777-game-safety-guide__button--primary:hover {
    background-color: #333333;
    color: #FFFFFF;
}

.page-resources-lodi777-game-safety-guide__button--secondary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for contrast */
    border-color: #FCBC45;
}

.page-resources-lodi777-game-safety-guide__button--secondary:hover {
    background-color: #e0a53b;
    color: #000000;
}

/* Main Content Area */
.page-resources-lodi777-game-safety-guide__content-area {
    max-width: 1000px; /* Wider for article content */
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Table of Contents */
.page-resources-lodi777-game-safety-guide__table-of-contents {
    flex: 0 0 250px; /* Fixed width for TOC */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-self: flex-start; /* Stick to top */
    position: sticky; /* Sticky positioning */
    top: calc(var(--header-offset, 120px) + 20px); /* Offset by header height + some margin */
    height: fit-content; /* Adjust height to content */
    max-height: calc(100vh - var(--header-offset, 120px) - 40px); /* Max height for scrollable TOC */
    overflow-y: auto; /* Enable scrolling for long TOC */
}

.page-resources-lodi777-game-safety-guide__toc-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-lodi777-game-safety-guide__toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources-lodi777-game-safety-guide__toc-list-item {
    margin-bottom: 10px;
}

.page-resources-lodi777-game-safety-guide__toc-list-item a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.page-resources-lodi777-game-safety-guide__toc-list-item a:hover {
    color: #000000;
    text-decoration: underline;
}

/* Article Content */
.page-resources-lodi777-game-safety-guide__article {
    flex: 1; /* Take remaining space */
    min-width: 600px; /* Ensure content is readable on larger screens */
    max-width: 700px; /* Optimal reading width */
    margin: 0 auto; /* Center article if TOC wraps */
}

.page-resources-lodi777-game-safety-guide__article-heading {
    font-size: 2em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources-lodi777-game-safety-guide__article-paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
    line-height: 1.7;
}

.page-resources-lodi777-game-safety-guide__article-list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #333333;
}

.page-resources-lodi777-game-safety-guide__article-list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-resources-lodi777-game-safety-guide__article-list-item strong {
    color: #000000;
}

.page-resources-lodi777-game-safety-guide__article-link {
    color: #000000; /* Link color */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-resources-lodi777-game-safety-guide__article-link:hover {
    color: #FCBC45; /* Hover color */
}

.page-resources-lodi777-game-safety-guide__image-container {
    margin: 30px auto;
    max-width: 800px; /* Max width for content images */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-lodi777-game-safety-guide__image-container img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    /* Ensure no filter is applied */
    filter: none;
}

/* CTA buttons within the article */
.page-resources-lodi777-game-safety-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Related Resources */
.page-resources-lodi777-game-safety-guide__related-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-resources-lodi777-game-safety-guide__related-list-item {
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-resources-lodi777-game-safety-guide__content-area {
        flex-direction: column;
        gap: 20px;
    }

    .page-resources-lodi777-game-safety-guide__table-of-contents {
        position: static; /* Remove sticky on smaller screens */
        flex: auto;
        max-width: 100%;
        margin-bottom: 30px;
        max-height: none; /* Remove max height for full TOC */
    }

    .page-resources-lodi777-game-safety-guide__article {
        min-width: unset;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources-lodi777-game-safety-guide__hero-section {
        padding: 60px 15px 30px;
    }

    .page-resources-lodi777-game-safety-guide__hero-title {
        font-size: 2.2em;
    }

    .page-resources-lodi777-game-safety-guide__hero-description {
        font-size: 1em;
    }

    .page-resources-lodi777-game-safety-guide__button {
        padding: 12px 25px;
        font-size: 1em;
        min-width: 150px;
    }

    .page-resources-lodi777-game-safety-guide__content-area {
        padding: 30px 15px;
    }

    .page-resources-lodi777-game-safety-guide__article-heading {
        font-size: 1.8em;
    }

    .page-resources-lodi777-game-safety-guide__article-paragraph,
    .page-resources-lodi777-game-safety-guide__article-list-item {
        font-size: 1em;
    }

    /* Any img under .page-resources-lodi777-game-safety-guide must not be smaller than 200px */
    .page-resources-lodi777-game-safety-guide img {
        min-width: 200px; /* Global minimum for content images */
        min-height: 200px; /* Global minimum for content images */
    }
}

@media (max-width: 480px) {
    .page-resources-lodi777-game-safety-guide__hero-title {
        font-size: 1.8em;
    }
    .page-resources-lodi777-game-safety-guide__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-lodi777-game-safety-guide__button {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
}