/* style/faq.css */
:root {
    --suncity88-green-primary: #11A84E;
    --suncity88-green-secondary: #22C768;
    --suncity88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --suncity88-card-bg: #11271B;
    --suncity88-background: #08160F;
    --suncity88-text-main: #F2FFF6;
    --suncity88-text-secondary: #A7D9B8;
    --suncity88-border: #2E7A4E;
    --suncity88-glow: #57E38D;
    --suncity88-gold: #F2C14E;
    --suncity88-divider: #1E3A2A;
    --suncity88-deep-green: #0A4B2C;
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--suncity88-text-main);
    background-color: var(--suncity88-background);
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6);
}

.page-faq__hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--suncity88-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--suncity88-text-secondary);
    max-width: 800px;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: var(--suncity88-button-gradient);
    color: var(--suncity88-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--suncity88-green-secondary);
    border: 2px solid var(--suncity88-green-secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary:hover {
    background: var(--suncity88-green-secondary);
    color: var(--suncity88-text-main);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-faq__faq-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--suncity88-background);
}

.page-faq__dark-bg {
    background-color: var(--suncity88-card-bg);
}

.page-faq__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-faq__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--suncity88-green-primary);
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-list {
    width: 100%;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-faq__faq-item {
    background-color: rgba(17, 168, 78, 0.1);
    border: 1px solid var(--suncity88-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    background-color: var(--suncity88-deep-green);
    box-shadow: 0 0 20px var(--suncity88-glow);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--suncity88-text-main);
    list-style: none;
    position: relative;
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--suncity88-gold);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--suncity88-text-secondary);
    text-align: left;
}

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

.page-faq__faq-answer a {
    color: var(--suncity88-gold);
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: var(--suncity88-text-main);
}

.page-faq__section-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    margin-top: 20px;
}

.page-faq__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
    margin-top: 10px;
}

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

.page-faq__call-to-action {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--suncity88-deep-green);
}

.page-faq__cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--suncity88-text-main);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--suncity88-text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-faq__hero-content {
        padding: 15px;
    }

    .page-faq__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-faq__hero-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .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__faq-section,
    .page-faq__call-to-action {
        padding: 40px 15px;
    }

    .page-faq__container {
        gap: 30px;
    }

    .page-faq__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

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

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

    .page-faq__section-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__faq-item {
        margin-bottom: 10px;
    }
    
    .page-faq__game-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-faq__cta-title {
        font-size: 2rem;
    }

    .page-faq__cta-description {
        font-size: 1rem;
    }

    /* Ensure all image containers are responsive */
    .page-faq__hero-section,
    .page-faq__faq-section,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
    .page-faq__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-faq__faq-section:not(.page-faq__hero-section) {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure images within content areas are responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}