/* style/faq.css */

/* Base styles for the page content */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000000; /* Ensure consistency with body background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-faq__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-faq__text-block {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-faq__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-faq__list li {
    margin-bottom: 8px;
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    overflow: hidden;
    padding: 80px 0;
}

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

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

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

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__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;
    text-align: center;
    box-sizing: border-box;
}

.page-faq__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-faq__btn-primary:hover {
    background-color: #1a7fb0;
    border-color: #1a7fb0;
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Intro Section */
.page-faq__intro-section {
    padding: 60px 0;
}

.page-faq__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter than body for contrast */
    color: #ffffff;
}

.page-faq__light-bg {
    background-color: #1a1a1a; /* Dark gray for subtle contrast */
    color: #ffffff;
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 0;
}

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

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-faq__faq-item details {
    border: none;
    padding: 0;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #26A9E0;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-faq__faq-item[open] .page-faq__faq-question {
    border-bottom: none;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: "−"; /* Changed by JS */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-faq__faq-answer img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    display: block;
    min-width: 200px; /* Min size for images */
    min-height: 200px;
}

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


/* Safety Section */
.page-faq__safety-section {
    padding: 60px 0;
}

.page-faq__safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-faq__safety-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-faq__safety-card:hover {
    transform: translateY(-5px);
}

.page-faq__safety-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-faq__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

/* Alternatives Section */
.page-faq__alternatives-section {
    padding: 60px 0;
}

.page-faq__alternatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-faq__alternative-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-faq__alternative-card:hover {
    transform: translateY(-5px);
}

.page-faq__alternative-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-faq__alternative-card .page-faq__card-title {
    margin-bottom: 20px;
}

.page-faq__alternative-card .page-faq__text-block {
    flex-grow: 1;
    margin-bottom: 25px;
    text-align: left;
}

/* Responsible Gambling Section */
.page-faq__responsible-gambling-section {
    padding: 60px 0;
}

.page-faq__responsible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-faq__responsible-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.page-faq__responsible-card:hover {
    transform: translateY(-5px);
}

.page-faq__responsible-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-faq__responsible-card .page-faq__card-title {
    margin-bottom: 20px;
}

.page-faq__responsible-card .page-faq__text-block {
    flex-grow: 1;
    margin-bottom: 25px;
    text-align: left;
}

.page-faq__cta-bottom {
    text-align: center;
    margin-top: 40px;
}

/* Conclusion Section */
.page-faq__conclusion-section {
    padding: 60px 0;
    text-align: center;
}

.page-faq__conclusion-section .page-faq__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

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

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

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

    .page-faq__hero-section {
        min-height: 400px;
        padding: 60px 0;
    }

    .page-faq__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-faq__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-faq__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-faq__section-title {
        font-size: 1.8em;
    }

    .page-faq__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-faq__faq-answer {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-faq__safety-grid,
    .page-faq__alternatives-grid,
    .page-faq__responsible-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-faq__safety-card,
    .page-faq__alternative-card,
    .page-faq__responsible-card {
        padding: 20px;
    }

    .page-faq__card-title {
        font-size: 1.2em;
    }

    .page-faq__cta-final {
        flex-direction: column;
        gap: 15px;
    }

    /* Images responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__hero-content,
    .page-faq__faq-item,
    .page-faq__safety-card,
    .page-faq__alternative-card,
    .page-faq__responsible-card,
    .page-faq__hero-cta,
    .page-faq__cta-bottom,
    .page-faq__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    
    .page-faq__hero-section,
    .page-faq__intro-section,
    .page-faq__faq-list-section,
    .page-faq__safety-section,
    .page-faq__alternatives-section,
    .page-faq__responsible-gambling-section,
    .page-faq__conclusion-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .page-faq__safety-grid,
    .page-faq__alternatives-grid,
    .page-faq__responsible-grid {
        padding-left: 15px;
        padding-right: 15px;
    }
}