/* style/faq.css */

/* Body background is #0a0a0a (dark), so text should be light */
.page-faq {
    color: #ffffff; /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Rely on shared.css for body background */
}

/* Fixed header spacing: body handles padding-top, sections use small top padding */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Adjust as needed */
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding for first section */
    padding-bottom: 40px;
    box-sizing: border-box;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

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

.page-faq__introduction-section,
.page-faq__faq-section,
.page-faq__cta-section {
    padding: 60px 20px;
    background-color: transparent; /* Rely on body background */
}

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.page-faq__highlight {
    color: #26A9E0; /* Brand primary color for highlights */
    font-weight: bold;
}

.page-faq__section-title,
.page-faq__cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for card background */
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-item[open] {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #FFFFFF;
    cursor: pointer;
    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);
}

/* For <details> tag, hide default marker */
.page-faq__faq-item summary {
    list-style: none;
}
.page-faq__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #26A9E0; /* Brand primary color for toggle icon */
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping for buttons */
    word-wrap: break-word; /* Allow text wrapping for buttons */
    box-sizing: border-box;
    max-width: 100%;
}

.page-faq__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-faq__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-faq__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1a8cc7;
    border-color: #1a8cc7;
}

.page-faq__btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.page-faq__cta-section {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for CTA */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-faq__cta-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Custom color for Login button from prompt */
.page-faq__btn-login {
    background-color: #EA7C07; /* Login color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-faq__btn-login:hover {
    background-color: #c46400;
    border-color: #c46400;
}

/* Ensure all content area images are at least 200px */
.page-faq img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        padding: 15px;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-faq__hero-description {
        font-size: 1rem;
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        min-height: 400px;
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }
    .page-faq__hero-content {
        width: calc(100% - 30px); /* Adjust width for mobile padding */
    }
    .page-faq__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* H1 font size with clamp, not fixed large value */
        margin-bottom: 10px;
    }
    .page-faq__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-faq__introduction-section,
    .page-faq__faq-section,
    .page-faq__cta-section {
        padding: 40px 15px;
    }

    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-faq__faq-answer {
        font-size: 0.95rem;
        padding: 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min-width for content images */
        min-height: 200px !important; /* Enforce min-height for content images */
    }
    .page-faq__hero-image {
        min-height: unset !important; /* Hero image height can be flexible based on aspect ratio */
    }

    /* Mobile button responsiveness */
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-small,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        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__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 10px;
        overflow: hidden !important;
    }

    .page-faq__game-links {
        flex-direction: column;
        gap: 8px;
    }
    .page-faq__game-links .page-faq__btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section {
        min-height: 350px;
    }
    .page-faq__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-faq__hero-description {
        font-size: 0.9rem;
    }
    .page-faq__faq-question {
        font-size: 0.95rem;
    }
    .page-faq__faq-answer {
        font-size: 0.9rem;
    }
}