:root {
    --main-color: #C91F17;
    --accent-color: #E53935;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg-color: #D32F2F;
    --background-color: #B71C1C;
    --text-main-color: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
}

/* Base styles for the FAQ page */
.page-faq {
    background-color: var(--background-color); /* From shared.css, which is #B71C1C */
    color: var(--text-main-color); /* #FFF5E1 for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
    background-color: var(--deep-red-color); /* #7A0E0E */
}

.page-faq__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop: cover to fill space */
    width: 100%; /* Ensure it takes full width of container */
    max-height: 600px; /* Limit height on desktop */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-faq__hero-content {
    padding: 20px;
    max-width: 800px;
    margin-top: 20px;
    position: relative; /* Ensure text is not absolutely positioned over image */
    z-index: 1;
}

.page-faq__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 */
    font-weight: 700;
    color: var(--text-main-color); /* #FFF5E1 */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-faq__intro-text {
    font-size: 1.1em;
    color: var(--text-main-color); /* #FFF5E1 */
    margin-bottom: 30px;
}

/* General Section Styling */
.page-faq__section {
    padding: 40px 20px;
    background-color: var(--background-color); /* #B71C1C */
    color: var(--text-main-color); /* #FFF5E1 */
}

.page-faq__section--introduction {
    background-color: var(--deep-red-color); /* #7A0E0E */
    color: var(--text-main-color); /* #FFF5E1 */
}

.page-faq__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--gold-color); /* #F4D34D */
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-color); /* #F4D34D */
    border-radius: 2px;
}

.page-faq__paragraph {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: var(--text-main-color); /* #FFF5E1 */
    text-align: justify;
}

/* FAQ Group Styling */
.page-faq__faq-group {
    margin-bottom: 40px;
    background-color: var(--card-bg-color); /* #D32F2F */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color); /* #FFF5E1 */
}

.page-faq__faq-group-title {
    font-size: 2em;
    color: var(--gold-color); /* #F4D34D */
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.page-faq__faq-group-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-color); /* #F4D34D */
    border-radius: 1.5px;
}

.page-faq__faq-group-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px auto 30px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* FAQ Item Styling (Details/Summary) */
.page-faq__faq-item {
    background-color: var(--deep-red-color); /* #7A0E0E */
    border: 1px solid var(--border-color); /* #F2B544 */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color); /* #FFF5E1 */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--deep-red-color); /* #7A0E0E */
    color: var(--text-main-color); /* #FFF5E1 */
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker */
}

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

.page-faq__faq-question:hover {
    background-color: #8B1212; /* Slightly darker red on hover */
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color); /* #F4D34D */
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.0em;
    color: var(--text-main-color); /* #FFF5E1 */
    line-height: 1.7;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: var(--text-main-color); /* #FFF5E1 */
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    padding-top: 10px;
}

/* Buttons */
.page-faq__cta-button {
    display: inline-block;
    background: var(--button-gradient); /* linear-gradient(180deg, #FFD86A 0%, #E6B800 100%) */
    color: #333333; /* Dark text for gold button */
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-faq__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-faq__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2em;
    margin-top: 30px;
}

.page-faq__btn-small {
    display: inline-block;
    background: var(--button-gradient); /* linear-gradient(180deg, #FFD86A 0%, #E6B800 100%) */
    color: #333333; /* Dark text for gold button */
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px;
    margin-right: 10px;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-faq__btn-small:hover {
    opacity: 0.9;
}

.page-faq__game-links,
.page-faq__guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center; /* Center game links */
}

/* Conclusion Section */
.page-faq__section--conclusion {
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: var(--deep-red-color); /* #7A0E0E */
    color: var(--text-main-color); /* #FFF5E1 */
}

.page-faq__conclusion-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 0 auto 30px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-faq__container {
        padding: 15px;
    }

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

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

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

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

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

    .page-faq__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-faq__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .page-faq__btn-small {
        padding: 7px 12px;
        font-size: 0.85em;
    }
}

@media (max-width: 768px) {
    /* General content area padding */
    .page-faq__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}