/* style/faq.css */

/* Base styles for the FAQ page content */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #FFFFFF; /* Matches body background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    text-align: center;
    color: #FFFFFF; /* White text for hero content over potentially dark image */
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure hero section has a minimum height */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden; /* Important for image sizing */
}

.page-faq__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    display: block;
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text readability */
    padding: 30px;
    border-radius: 8px;
}

.page-faq__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-faq__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-faq__button {
    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;
    white-space: nowrap;
}

.page-faq__button--register {
    background-color: #FFFFFF; /* Custom color for Register */
    color: #000000;
    border: 1px solid #FFFFFF;
}

.page-faq__button--register:hover {
    background-color: #f0f0f0;
}

.page-faq__button--login {
    background-color: #FCBC45; /* Custom color for Login */
    color: #000000; /* Dark text for light yellow background */
    border: 1px solid #FCBC45;
}

.page-faq__button--login:hover {
    background-color: #e0a53a;
}

/* Sections Navigation */
.page-faq__sections-nav {
    background-color: #000000; /* Dark background */
    padding: 30px 20px;
    color: #FFFFFF;
    text-align: center;
}

.page-faq__sections-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-faq__sections-title {
    font-size: 2em;
    margin-bottom: 25px;
    color: #FFFFFF;
}

.page-faq__sections-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-faq__sections-link {
    display: block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-faq__sections-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Category Sections */
.page-faq__category-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.page-faq__category-header {
    flex: 1 1 100%;
    margin-bottom: 20px;
    text-align: center;
}

.page-faq__category-title {
    font-size: 2.2em;
    color: #000000;
    margin-bottom: 10px;
}

.page-faq__category-description {
    font-size: 1.1em;
    color: #555555;
}

.page-faq__faq-list {
    flex: 2 1 60%; /* Take more space on larger screens */
    min-width: 300px; /* Ensure it doesn't get too small */
}

.page-faq__image-container {
    flex: 1 1 30%; /* Take less space on larger screens */
    min-width: 200px; /* Min width for image container */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-faq__image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
    object-fit: cover;
    /* No filter to change color */
}

.page-faq__faq-item {
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.page-faq__faq-question {
    display: block;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #000000;
    background-color: #f5f5f5;
    position: relative;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg); /* No rotation needed for minus */
}

.page-faq__faq-question:hover {
    background-color: #eeeeee;
}

.page-faq__faq-answer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    color: #333333;
    font-size: 1em;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
}

.page-faq__faq-answer a {
    color: #007bff; /* Standard link color */
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #0056b3;
}

.page-faq__faq-answer .page-faq__button {
    margin-top: 15px;
}

/* Inline buttons within FAQ answers */
.page-faq__button--register-inline {
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #000000;
}
.page-faq__button--register-inline:hover {
    background-color: #f0f0f0;
}

.page-faq__button--login-inline {
    background-color: #FCBC45;
    color: #000000;
    border: 1px solid #FCBC45;
}
.page-faq__button--login-inline:hover {
    background-color: #e0a53a;
}

.page-faq__button--deposit,
.page-faq__button--download {
    background-color: #FCBC45;
    color: #000000;
    border: 1px solid #FCBC45;
}
.page-faq__button--deposit:hover,
.page-faq__button--download:hover {
    background-color: #e0a53a;
}

.page-faq__button--view-promo,
.page-faq__button--contact-support {
    background-color: #000000;
    color: #FFFFFF;
    border: 1px solid #000000;
}
.page-faq__button--view-promo:hover,
.page-faq__button--contact-support:hover {
    background-color: #333333;
}


/* Call to Action Section */
.page-faq__cta-section {
    background-color: #000000; /* Dark background */
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
}

.page-faq__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-faq__cta-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

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

.page-faq__button--main-cta {
    background-color: #FCBC45; /* Yellow for main CTA */
    color: #000000;
    font-size: 1.2em;
    padding: 15px 35px;
    border: 1px solid #FCBC45;
}

.page-faq__button--main-cta:hover {
    background-color: #e0a53a;
}

/* Related Resources Section */
.page-faq__related-resources {
    max-width: 1200px;
    margin: 60px auto;
    padding: 20px;
    text-align: center;
}

.page-faq__resources-title {
    font-size: 2em;
    color: #000000;
    margin-bottom: 30px;
}

.page-faq__resources-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-faq__resources-list li {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 calc(33% - 40px); /* 3 items per row on desktop */
    min-width: 280px; /* Ensure responsiveness */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    text-align: left;
}

.page-faq__resources-link {
    font-weight: bold;
    color: #000000;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-faq__resources-link:hover {
    color: #555555;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-faq__hero-title {
        font-size: 2.2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__category-section {
        flex-direction: column;
    }
    .page-faq__faq-list,
    .page-faq__image-container {
        flex: 1 1 100%; /* Stack on smaller screens */
        max-width: 100%;
    }
    .page-faq__image-container {
        order: -1; /* Image above text on mobile for better flow */
        margin-bottom: 30px;
    }
    .page-faq__resources-list li {
        flex: 1 1 calc(50% - 20px); /* 2 items per row on tablet */
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
    }
    .page-faq__hero-title {
        font-size: 1.8em;
    }
    .page-faq__hero-description {
        font-size: 0.95em;
    }
    .page-faq__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__button {
        width: 100%;
        max-width: 250px;
    }
    .page-faq__sections-list {
        flex-direction: column;
        gap: 10px;
    }
    .page-faq__category-title {
        font-size: 1.8em;
    }
    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-faq__faq-question::after {
        right: 20px;
        font-size: 1.2em;
    }
    .page-faq__faq-answer {
        padding: 15px 20px;
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
    .page-faq__resources-list li {
        flex: 1 1 100%; /* 1 item per row on mobile */
    }

    /* Mobile image overflow prevention */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure content section itself doesn't cause overflow */
    .page-faq__category-section,
    .page-faq__sections-container,
    .page-faq__cta-section,
    .page-faq__related-resources {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.6em;
    }
    .page-faq__hero-description {
        font-size: 0.9em;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
}