/* style/resources.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Body background color from shared.css */
    padding-bottom: 60px; /* Space above footer */
}

/* Sections */
.page-resources__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    padding-top: var(--header-offset, 120px);
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #0a0a0a); /* Blend brand color with dark background */
}

.page-resources__intro-section,
.page-resources__game-variety-section,
.page-resources__promotions-section,
.page-resources__conclusion-section {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
    padding: 60px 20px;
}

.page-resources__safe-gaming-section,
.page-resources__app-section,
.page-resources__faq-section {
    background-color: #017439; /* Brand color background */
    color: #ffffff; /* White text for brand color background */
    padding: 60px 20px;
}

/* Containers */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

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

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.3;
}

.page-resources__intro-section .page-resources__section-title,
.page-resources__game-variety-section .page-resources__section-title,
.page-resources__promotions-section .page-resources__section-title,
.page-resources__conclusion-section .page-resources__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-resources__safe-gaming-section .page-resources__section-title,
.page-resources__app-section .page-resources__section-title,
.page-resources__faq-section .page-resources__section-title {
    color: #ffffff; /* White for titles on brand color background */
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources__list-item {
    margin-bottom: 10px;
    color: inherit;
}

.page-resources__keyword {
    font-weight: bold;
    color: inherit;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-resources__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #ffffff;
}

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

.page-resources__promotions-section .page-resources__btn-secondary {
    color: #017439;
    border-color: #017439;
}
.page-resources__promotions-section .page-resources__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

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

.page-resources__btn-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-resources__btn-link:hover {
    color: #00562e;
}

/* Images */
.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.page-resources__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Grid Layouts */
.page-resources__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-resources__grid--reverse {
    grid-template-columns: 1fr 1fr;
}

.page-resources__text-content {
    padding: 20px 0;
}

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

.page-resources__game-card {
    background-color: #f8f8f8;
    color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 10px 10px 0 0;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin: 15px 10px 10px;
    color: #017439;
}

.page-resources__card-title a {
    color: #017439;
    text-decoration: none;
}

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

.page-resources__card-text {
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-resources__faq-question::-webkit-details-marker {
    display: none;
}

.page-resources__faq-item summary {
    list-style: none;
}

.page-resources__faq-item summary::marker {
    display: none;
}

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    color: #FFFF00;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    content: "−";
}


/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }

    .page-resources__section-title {
        font-size: 2em;
    }

    .page-resources__grid {
        grid-template-columns: 1fr;
    }

    .page-resources__grid--reverse {
        grid-template-columns: 1fr;
    }

    .page-resources__image-wrapper {
        order: -1;
    }

    .page-resources__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__container {
        padding: 0 15px !important;
    }

    .page-resources__hero-section {
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }

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

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

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

    .page-resources__paragraph {
        font-size: 1em;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__image-wrapper,
    .page-resources__text-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-resources__card-image {
        height: 180px;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
}

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

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

    .page-resources__sub-title {
        font-size: 1.3em;
    }

    .page-resources__game-grid {
        grid-template-columns: 1fr;
    }
}