/* style/resources.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-font: #FFFF00;
    --body-bg: #FFFFFF;
    --dark-text: #333333;
    --light-text: #FFFFFF;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text); /* Default text color for light body background */
    background-color: var(--body-bg);
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    overflow: hidden;
    padding-top: 0; /* Assuming shared.css handles body padding for header offset */
}

.page-resources__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    cursor: pointer; /* Indicate video is clickable */
}

.page-resources__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__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light-text);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--light-text);
}

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

/* General Sections */
.page-resources__intro-section,
.page-resources__registration-guide,
.page-resources__payment-guide,
.page-resources__responsible-gaming,
.page-resources__faq-section,
.page-resources__conclusion-section {
    padding: 60px 0;
    background-color: var(--body-bg);
    color: var(--dark-text);
}

.page-resources__game-types,
.page-resources__promotions-section,
.page-resources__support-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-resources__section-title--white {
    color: var(--light-text);
}

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

.page-resources__sub-title--white {
    color: var(--light-text);
}

.page-resources__text-block {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--dark-text);
}

.page-resources__text-block--white {
    color: var(--light-text);
}

.page-resources__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-resources__content-grid--reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
    direction: rtl; /* Reverse order for content and image */
}

.page-resources__content-grid--reverse > .page-resources__text-content {
    direction: ltr; /* Restore text direction */
}

.page-resources__content-grid--reverse > .page-resources__image-wrapper {
    direction: ltr; /* Restore image direction */
}

.page-resources__text-content {
    color: var(--dark-text);
}

.page-resources__text-content--white {
    color: var(--light-text);
}

.page-resources__image-wrapper {
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    object-fit: cover;
}

.page-resources__ordered-list,
.page-resources__unordered-list {
    list-style-position: inside;
    margin-bottom: 15px;
    padding-left: 20px;
    color: var(--dark-text);
}

.page-resources__unordered-list--white {
    color: var(--light-text);
}

.page-resources__ordered-list li,
.page-resources__unordered-list li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-resources__link--white {
    color: var(--light-text);
    text-decoration: underline;
}

.page-resources__link--white:hover {
    color: var(--register-login-font);
}

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

.page-resources__btn-primary {
    background-color: var(--register-btn-bg);
    color: var(--register-login-font);
    border: 2px solid var(--register-btn-bg);
}

.page-resources__btn-primary:hover {
    background-color: darken(var(--register-btn-bg), 10%); /* Placeholder for darker color */
    border-color: darken(var(--register-btn-bg), 10%);
    color: var(--light-text);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.page-resources__hero-cta-buttons .page-resources__btn-secondary {
    color: var(--light-text);
    border-color: var(--light-text);
}

.page-resources__hero-cta-buttons .page-resources__btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

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

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
}

.page-resources__faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #f9f9f9;
}

.page-resources__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--secondary-color);
    color: var(--dark-text);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px;
}

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

.page-resources__faq-more-info {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
}

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

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

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

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

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

    .page-resources__hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .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.3em;
    }

    .page-resources__intro-section,
    .page-resources__registration-guide,
    .page-resources__payment-guide,
    .page-resources__responsible-gaming,
    .page-resources__faq-section,
    .page-resources__conclusion-section,
    .page-resources__game-types,
    .page-resources__promotions-section,
    .page-resources__support-section {
        padding: 40px 0;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__image-wrapper,
    .page-resources__content-grid,
    .page-resources__content-grid--reverse {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile video responsiveness */
    .page-resources video,
    .page-resources__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__hero-section {
        /* Ensure video container itself adapts */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset on mobile if not handled by body */
    }

    /* Mobile button responsiveness */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__hero-cta-buttons,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        overflow: hidden !important;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
    }

    .page-resources__faq-answer {
        padding: 0 20px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }

    .page-resources__faq-title {
        font-size: 1.1em;
    }

    .page-resources__faq-toggle {
        font-size: 1.5em;
    }
}

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

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