/* style/resources.css */
.page-resources {
    color: #ffffff; /* Default text color for dark body background */
    line-height: 1.6;
}

.page-resources__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources__section-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: 0; /* Assumed shared.css handles body padding */
    color: #ffffff;
    text-align: center;
}

.page-resources__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-resources__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
}

.page-resources__video-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.page-resources__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

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

.page-resources__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-resources__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* General Content */
.page-resources__about-cpc1 .page-resources__section-title,
.page-resources__live-guide .page-resources__section-title {
    color: #ffffff;
}

.page-resources__rules .page-resources__section-title,
.page-resources__faq .page-resources__section-title {
    color: #017439;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-resources__numbered-list {
    list-style: decimal;
    padding-left: 20px;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-resources__list-item {
    margin-bottom: 15px;
    padding-left: 10px;
    position: relative;
}

.page-resources__list-item::before {
    content: '•';
    color: #C30808;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.page-resources__numbered-list .page-resources__list-item::before {
    content: none; /* Remove custom bullet for numbered list */
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 40px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__image--center {
    margin-left: auto;
    margin-right: auto;
}

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

.page-resources__light-bg .page-resources__keyword {
    color: #017439;
}

/* Card Grid */
.page-resources__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources__card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-height: 250px; /* Ensure cards have minimum height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

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

/* FAQ Section */
.page-resources__faq-list {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-resources__faq-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-resources__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #017439;
    list-style: none; /* Hide default marker */
}

.page-resources__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
    line-height: 1.7;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #333333;
}

.page-resources__faq-answer p {
    margin-bottom: 0;
}

.page-resources__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Responsible Gaming Section */
.page-resources__responsible-gaming .page-resources__section-title {
    color: #ffffff;
}

.page-resources__responsible-gaming .page-resources__list-item::before {
    color: #FFFF00;
}

.page-resources__responsible-gaming a {
    color: #FFFF00;
    text-decoration: underline;
}

/* CTA Bottom Section */
.page-resources__cta-bottom {
    padding: 80px 20px;
    background-color: #017439;
    color: #ffffff;
}

.page-resources__cta-bottom .page-resources__section-title {
    font-size: 2.8em;
}

.page-resources__cta-bottom .page-resources__section-intro {
    font-size: 1.2em;
}

.page-resources__cta-bottom .page-resources__section-intro a {
    color: #FFFF00;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__section-intro {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile hero */
    }
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 15px;
    }
    .page-resources__card-grid {
        grid-template-columns: 1fr;
    }

    /* Image Responsive */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-video-wrapper,
    .page-resources__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* All containers with images/buttons */
    .page-resources__section,
    .page-resources__container,
    .page-resources__card,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__cta-buttons {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 10px 15px;
    }
}