/* style/faq.css */

/* Base styles for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: var(--dark-bg-1); /* Inherited from shared, assuming it's dark */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    min-height: 500px;
    background-color: #017439; /* Brand primary color for hero background */
    overflow: hidden; /* For image positioning */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    z-index: 0;
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__hero-title {
    font-size: 3.2em;
    color: #FFFF00; /* Register/Login font color for highlight */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__link-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

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

.page-faq__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    color: #ffffff;
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-faq__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
    border-color: #FFFF00;
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 20px;
    background-color: #0d0d0d; /* Darker background for contrast with hero */
    color: #ffffff;
}

.page-faq__dark-section {
    background-color: #0d0d0d;
    color: #ffffff;
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: #FFFF00;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-faq__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly visible item background */
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #017439; /* Brand color for question background */
    transition: background-color 0.3s ease;
    user-select: none;
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #FFFF00;
    transition: transform 0.3s ease;
}

/* Styling for details element */
.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or simply change to minus */
    content: "−"; /* Visually change to minus */
}

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


.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__game-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.page-faq__link-button {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-faq__link-button:hover {
    background-color: #FFFF00;
    color: #017439;
    border-color: #FFFF00;
}

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

/* CTA Section */
.page-faq__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-faq__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8));
    z-index: 0;
}

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

.page-faq__cta-section .page-faq__container {
    position: relative;
    z-index: 1;
}

.page-faq__cta-title {
    font-size: 2.8em;
    color: #FFFF00;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

/* Responsible Gambling Section */
.page-faq__responsible-gambling-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #0d0d0d; /* Dark background */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

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

.page-faq__responsible-gambling-section .page-faq__container {
    position: relative;
    z-index: 1;
}

.page-faq__responsible-title {
    font-size: 2.5em;
    color: #FFFF00;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-faq__responsible-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 2.8em;
    }
    .page-faq__section-title,
    .page-faq__cta-title,
    .page-faq__responsible-title {
        font-size: 2.2em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
    }
    .page-faq__faq-answer {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-faq__hero-title {
        font-size: 2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__link-button {
        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-faq__section-title,
    .page-faq__cta-title,
    .page-faq__responsible-title {
        font-size: 1.8em;
    }
    .page-faq__section-description,
    .page-faq__cta-description,
    .page-faq__responsible-description {
        font-size: 0.95em;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-faq__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    /* Image responsive rules */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-section,
    .page-faq__faq-section,
    .page-faq__cta-section,
    .page-faq__responsible-gambling-section {
        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-faq__cta-buttons,
    .page-faq__game-links {
        flex-direction: column;
        gap: 10px;
    }
}

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