/* style/resources.css */

/* General styling for the page-resources scope */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Matches body background */
}

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

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

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #017439; /* Brand color for titles */
}

.page-resources__section-title--white {
    color: #FFFFFF;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__text-block--white {
    color: #f0f0f0;
}

/* Color contrast enforcement */
.page-resources__dark-bg {
    background-color: #017439;
    color: #ffffff; /* White text on brand green */
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text on white */
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    margin: 10px;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* For responsiveness */
    word-wrap: break-word; /* For responsiveness */
}

.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: #9f0606;
    border-color: #9f0606;
}

.page-resources__btn-primary--large {
    padding: 15px 30px;
    font-size: 1.2em;
}

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

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.4); /* Slightly darker background for text readability */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

.page-resources__hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Grid Cards for promotion types */
.page-resources__grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    color: #333333; /* Dark text on white card */
}

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

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Guide Steps */
.page-resources__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__guide-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 25px;
    text-align: left;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__guide-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-resources__guide-description {
    font-size: 1em;
    margin-bottom: 15px;
}

/* VIP Program */
.page-resources__vip-details {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
}

.page-resources__vip-image {
    width: 500px; /* Fixed width for desktop */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__vip-list {
    list-style: none;
    padding: 0;
    text-align: left;
    flex: 1;
    min-width: 300px; /* Ensure list doesn't get too narrow */
}

.page-resources__vip-list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: #FFFFFF;
}

.page-resources__vip-list-item::before {
    content: '⭐';
    position: absolute;
    left: 0;
    color: #FFD700; /* Gold star */
}

/* Responsible Gaming */
.page-resources__responsible-gaming-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: left;
}

.page-resources__responsible-gaming-image {
    width: 500px; /* Fixed width for desktop */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__responsible-gaming-text {
    flex: 1;
    min-width: 300px;
}

.page-resources__responsible-gaming-subtitle {
    font-size: 1.5em;
    color: #017439;
    margin-top: 20px;
    margin-bottom: 10px;
}

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

.page-resources__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-title {
    font-size: 1.2em;
    color: #017439;
    margin: 0;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
}

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

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

/* Call to Action */
.page-resources__cta {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #f0f8ff; /* Light blueish background */
}

.page-resources__cta-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-resources__cta-image {
    width: 500px; /* Fixed width for desktop */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__cta-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-resources__cta-text .page-resources__section-title {
    text-align: left;
    font-size: 2.2em;
    color: #017439;
}

.page-resources__cta-text .page-resources__text-block {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Responsive Styles */
@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__vip-image,
    .page-resources__responsible-gaming-image,
    .page-resources__cta-image {
        width: 400px;
    }
}

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

    .page-resources__container {
        padding: 15px;
    }

    .page-resources__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-resources__hero-content {
        padding: 20px;
    }

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

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

    .page-resources__section {
        padding: 40px 0;
    }

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

    .page-resources__grid-cards,
    .page-resources__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card {
        padding: 20px;
        align-items: center; /* Center items in card on mobile */
        text-align: center;
    }

    .page-resources__card-title,
    .page-resources__guide-title {
        font-size: 1.3em;
    }

    .page-resources__vip-details,
    .page-resources__responsible-gaming-content,
    .page-resources__cta-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-resources__vip-image,
    .page-resources__responsible-gaming-image,
    .page-resources__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-resources__vip-list,
    .page-resources__responsible-gaming-text,
    .page-resources__cta-text {
        width: 100% !important;
        text-align: center; /* Center text for mobile */
    }

    .page-resources__vip-list-item {
        padding-left: 0; /* Remove padding for centered text */
        text-align: center;
    }
    .page-resources__vip-list-item::before {
        position: static;
        margin-right: 5px;
    }

    .page-resources__responsible-gaming-subtitle,
    .page-resources__cta-text .page-resources__section-title {
        text-align: center;
        font-size: 1.6em;
    }

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

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

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

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

    /* Mobile image and video responsive rules */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__vip-details,
    .page-resources__responsible-gaming-content,
    .page-resources__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources__cta-button,
    .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;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
}

/* Ensure no filter is used on images */
.page-resources img {
    filter: none;
}