/* General styling for the FAQ page */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #FFF3E6); /* Use light text color for dark body background */
    background-color: transparent; /* Rely on body background from shared.css */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body padding for header offset */
    margin-bottom: 40px;
    overflow: hidden;
    background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
    border-bottom: 1px solid var(--border-color, #A84F0C);
}

.page-faq__hero-image {
    width: 100%;
    height: 675px; /* Fixed height for desktop */
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-faq__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop, will change to contain for mobile */
    display: block;
}

.page-faq__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px 60px;
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem); /* Using clamp for H1 */
    font-weight: 700;
    color: var(--text-main, #FFF3E6);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-faq__intro-text {
    font-size: 1.1rem;
    color: #E0E0E0;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%; /* Ensure container respects width */
    box-sizing: border-box;
    overflow: hidden;
}

.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: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button respects width */
    box-sizing: border-box;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #FFB04D 0%, #E6781A 100%);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background: transparent;
    color: #FFA53A;
    border: 2px solid #FFA53A;
    box-shadow: 0 2px 10px rgba(255, 165, 58, 0.2);
}

.page-faq__btn-secondary:hover {
    background: rgba(255, 165, 58, 0.1);
    color: #FFB04D;
    border-color: #FFB04D;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
    transform: translateY(-2px);
}

/* Section Titles */
.page-faq__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main, #FFF3E6);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    position: relative;
    line-height: 1.3;
}

.page-faq__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--deep-orange, #D96800);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* FAQ List */
.page-faq__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #A84F0C);
    overflow: hidden;
    background: var(--card-bg, #17191F);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-faq__faq-item summary.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main, #FFF3E6);
    font-weight: 600;
}

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

details.page-faq__faq-item summary.page-faq__faq-question:hover {
    background: rgba(255, 140, 26, 0.1);
}

.page-faq__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main, #FFF3E6);
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--glow, #FFB04D);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    line-height: 1;
}

details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 20px;
    background: rgba(255, 140, 26, 0.05); /* Slightly lighter background for answer */
    border-top: 1px solid rgba(255, 140, 26, 0.2);
    border-radius: 0 0 8px 8px;
    color: #E0E0E0;
    font-size: 1rem;
}

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

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

.page-faq__faq-answer ul {
    list-style: disc;
    padding-left: 25px;
    margin-top: 10px;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
}

.page-faq__faq-answer a {
    color: var(--glow, #FFB04D);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__faq-answer a:hover {
    text-decoration: underline;
    color: #FFA53A;
}

/* Image blocks within content sections */
.page-faq__image-block {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__image-block img {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* Long text SEO area (page-faq__text-block) */
.page-faq__text-block {
    padding: 40px 20px;
    background: var(--card-bg, #17191F);
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    color: #E0E0E0;
}

.page-faq__text-block p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.page-faq__text-block h2 {
    color: var(--text-main, #FFF3E6);
    margin-bottom: 25px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__hero-image {
        height: 500px;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    .page-faq__section-title {
        font-size: 2rem;
    }
    .page-faq__faq-qtext {
        font-size: 1rem;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 26px;
    }
}

@media (max-width: 768px) {
    .page-faq__container {
        padding: 15px;
    }

    /* HERO Main Image Area */
    .page-faq__hero-section {
        padding-top: 10px; /* Small top padding */
        margin-bottom: 30px;
    }
    .page-faq__hero-image {
        height: auto !important; /* Allow height to adjust */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
        margin-bottom: 20px;
    }
    .page-faq__hero-image img {
        object-fit: contain !important; /* Ensure image is fully visible, no cropping */
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-faq__hero-content {
        padding: 0 15px 40px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-faq__intro-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* CTA Buttons */
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Section Titles */
    .page-faq__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding-top: 15px;
    }

    /* FAQ List */
    details.page-faq__faq-item {
        margin-bottom: 10px;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-qtext {
        font-size: 0.95rem;
    }
    .page-faq__faq-toggle {
        font-size: 22px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9rem;
    }
    .page-faq__faq-answer ul {
        padding-left: 20px;
    }

    /* General Images and Containers */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important;
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container,
    .page-faq__image-block,
    .page-faq__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Long text SEO area */
    .page-faq__text-block {
        padding: 30px 20px;
        margin-top: 30px;
    }
    .page-faq__text-block p {
        font-size: 0.95rem;
    }
    .page-faq__text-block h2 {
        font-size: 1.8rem;
    }
    /* No product display area (gameshow forbidden on non-homepage) so no specific rules needed for it. */
}