/* style/faq.css */

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

.page-faq {
    font-family: Arial, sans-serif;
    color: var(--goo88-text-main); /* Main text color for dark background */
    background-color: var(--goo88-background); /* Ensure consistency with body background */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--goo88-deep-green);
}

.page-faq__hero-image-wrapper {
    width: 100%;
    height: 500px; /* Fixed height for desktop */
    overflow: hidden;
    position: relative;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-faq__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    padding: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
    border-radius: 10px;
}

.page-faq__main-title {
    color: var(--goo88-gold);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-faq__description {
    color: var(--goo88-text-main);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* General Section Styling */
.page-faq__section {
    padding: 60px 20px;
    background-color: var(--goo88-background);
    border-bottom: 1px solid var(--goo88-divider);
}

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

.page-faq__section-title,
.page-faq__cta-title {
    color: var(--goo88-gold);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

/* FAQ List */
.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-faq__faq-item {
    background-color: var(--goo88-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--goo88-text-main);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    user-select: none;
    background-color: var(--goo88-deep-green);
    border-bottom: 1px solid var(--goo88-border);
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit */
}

.page-faq__faq-qtext {
    flex-grow: 1;
    color: var(--goo88-text-main);
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--goo88-gold);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--goo88-text-secondary);
}

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

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

.page-faq__faq-answer a {
    color: var(--goo88-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
    color: var(--goo88-glow);
    text-decoration: underline;
}

/* CTA Section */
.page-faq__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--goo88-deep-green);
    border-top: 1px solid var(--goo88-divider);
}

.page-faq__cta-description {
    color: var(--goo88-text-main);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: var(--goo88-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 8px 25px rgba(42, 209, 111, 0.6);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background: #ffffff;
    color: var(--goo88-primary);
    border: 2px solid var(--goo88-primary);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-faq__btn-secondary:hover {
    background: var(--goo88-primary);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(17, 168, 78, 0.4);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-image-wrapper {
        height: 400px;
    }

    .page-faq__hero-content {
        max-width: 700px;
    }

    .page-faq__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-faq__description {
        font-size: 1rem;
    }

    .page-faq__section-title, .page-faq__cta-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-faq__faq-question {
        font-size: 1.1rem;
    }

    .page-faq__faq-answer {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__hero-image-wrapper {
        height: 300px;
    }

    .page-faq__hero-content {
        max-width: 90%;
        padding: 15px;
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-faq__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-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__hero-section {
        padding-bottom: 40px;
    }

    .page-faq__section-title, .page-faq__cta-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 30px;
    }

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

    .page-faq__faq-toggle {
        font-size: 1.5rem;
    }

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

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

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important; /* Ensure padding inside button */
        padding-right: 15px !important; /* Ensure padding inside button */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        min-width: unset;
    }

    /* Mobile image and video responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-faq__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    /* Content area images */
    .page-faq__section img, .page-faq__overview-section img, .page-faq__account-section img, .page-faq__transaction-section img, .page-faq__games-betting-section img, .page-faq__promotions-section img, .page-faq__security-support-section img, .page-faq__cta-section img {
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        height: auto !important;
    }
    /* Ensure all image containers also adapt */
    .page-faq__image-container, .page-faq__card-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* Ensure images within content sections are not tiny */
.page-faq img:not(.page-faq__hero-image) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Contrast fixes if needed - applied by JS or specific classes */
.page-faq__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-faq__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Ensure no image filters are used */
.page-faq img {
    filter: none; /* Explicitly ensure no filters */
}