/* style/resources-faq.css */

/* Base styles for the FAQ page content */
.page-resources-faq {
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Inherit from shared, but explicitly set for clarity */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Fixed header offset */
.page-resources-faq {
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

/* General container for content sections */
.page-resources-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-resources-faq__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Text blocks */
.page-resources-faq__text-block {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for readability */
}

/* CTA Buttons container */
.page-resources-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Primary Button */
.page-resources-faq__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FFD700; /* Gold background */
    color: #1A2B42; /* Midnight blue text */
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-faq__btn-primary:hover {
    background-color: #e6c200; /* Darker gold on hover */
    transform: translateY(-2px);
}

/* Secondary Button */
.page-resources-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700; /* Gold border */
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-faq__btn-secondary:hover {
    background-color: #FFD700; /* Gold background on hover */
    color: #1A2B42; /* Midnight blue text on hover */
    transform: translateY(-2px);
}

/* Hero Section */
.page-resources-faq__hero-section {
    position: relative;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
    /* padding-top already on .page-resources-faq, no need to repeat here */
}

.page-resources-faq__hero-container {
    position: relative;
    margin: 0 auto;
}

.page-resources-faq__hero-image {
    width: 100%;
    margin: 0;
}

.page-resources-faq__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Minimum height for hero image */
}

/* Intro Section */
.page-resources-faq__intro-section {
    padding: 60px 0;
    background-color: #1A2B42; /* Midnight blue background */
    text-align: center;
}

.page-resources-faq__main-title {
    font-size: 42px;
    color: #FFD700; /* Gold for the main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.page-resources-faq__intro-text {
    font-size: 19px;
    color: #e0e0e0;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* FAQ Section */
.page-resources-faq__faq-section {
    padding: 80px 0;
    background-color: #121212; /* Dark background */
}

.page-resources-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-resources-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #1A2B42; /* Midnight blue for question background */
    border: 1px solid #3A4B62; /* Slightly lighter border */
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-faq__faq-question:hover {
    background: #2A3B52; /* Darker blue on hover */
    border-color: #4A5B72;
}

.page-resources-faq__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #ffffff; /* White text for questions */
    pointer-events: none;
}

.page-resources-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-toggle {
    color: #ffffff; /* White when active */
    transform: rotate(45deg); /* Rotate to form 'X' or '−' */
}

.page-resources-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #2A3B52; /* Slightly lighter dark blue for answer background */
    border-radius: 0 0 8px 8px;
    color: #f0f0f0; /* Light text for answers */
    font-size: 16px;
}

.page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-resources-faq__faq-answer p {
    margin-bottom: 15px;
    color: #f0f0f0; /* Ensure paragraph text is light */
}
.page-resources-faq__faq-answer img {
    margin-top: 15px;
    border-radius: 8px;
    width: 100%; /* Ensure images are responsive within answer */
    height: auto;
    max-width: 100%;
    display: block;
    min-height: 200px; /* Minimum size for content images */
    object-fit: cover;
}

/* Responsible Gaming Section */
.page-resources-faq__responsible-gaming-section {
    padding: 80px 0;
    background-color: #1A2B42; /* Midnight blue background */
    text-align: center;
}

/* Contact Us Section */
.page-resources-faq__contact-us-section {
    padding: 80px 0;
    background-color: #121212; /* Dark background */
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-resources-faq__main-title {
        font-size: 36px;
    }
    .page-resources-faq__section-title {
        font-size: 30px;
    }
    .page-resources-faq__intro-text,
    .page-resources-faq__text-block {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-resources-faq {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources-faq__container {
        padding: 0 15px;
    }
    .page-resources-faq__main-title {
        font-size: 28px;
    }
    .page-resources-faq__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-resources-faq__intro-text,
    .page-resources-faq__text-block {
        font-size: 16px;
    }

    .page-resources-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        margin-bottom: 40px;
        padding: 0 15px; /* Add padding to container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-resources-faq__btn-primary,
    .page-resources-faq__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }

    .page-resources-faq__hero-image img {
        min-height: 250px;
    }

    .page-resources-faq__intro-section,
    .page-resources-faq__faq-section,
    .page-resources-faq__responsible-gaming-section,
    .page-resources-faq__contact-us-section {
        padding: 40px 0;
    }

    .page-resources-faq__faq-question {
        padding: 15px 20px;
    }
    .page-resources-faq__faq-question h3 {
        font-size: 16px;
    }
    .page-resources-faq__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-resources-faq__faq-answer {
        padding: 0 20px;
        font-size: 15px;
    }
    .page-resources-faq__faq-item.active .page-resources-faq__faq-answer {
        padding: 15px 20px !important;
    }
    .page-resources-faq__faq-answer img {
        min-
    }

    /* General image responsiveness for mobile */
    .page-resources-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All containers with images */
    .page-resources-faq__hero-container,
    .page-resources-faq__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    /* Logo item exception (not present on FAQ page, but for completeness as per rules) */
    .page-resources-faq__logo-item {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        box-sizing: border-box;
    }
}