:root {
    --primary-color: #113B7A; /* Main color */
    --secondary-color: #1D5FD1; /* Auxiliary color */
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* Body background color */
}

.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page content */
    background-color: var(--deep-navy); /* Ensure consistency if body background is not fully covering */
}

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

.page-faq__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width on desktop */
}

.page-faq__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-faq__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(79, 168, 255, 0.3); /* Glow effect */
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-faq__hero-content h1 {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: bold;
    color: var(--gold-color); /* Title color for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.page-faq__hero-content p {
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none; /* Remove default button border */
}

.page-faq__cta-button:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%); /* Reverse gradient on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Sections */
.page-faq__section {
    padding: 40px 20px;
    margin-bottom: 30px;
    background-color: var(--deep-navy); /* Ensure consistent background */
    color: var(--text-main);
}

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

.page-faq__section-title {
    text-align: center;
    font-size: 2.2em;
    color: var(--gold-color);
    margin-bottom: 40px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.page-faq__section-description {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

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

details.page-faq__faq-item {
    margin-bottom: 0; /* Handled by gap */
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 2px 8px 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, border-color 0.3s ease;
    color: var(--text-main);
    font-size: 1.1em;
    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(29, 95, 209, 0.1); /* Lighter hover effect */
    border-color: var(--secondary-color);
}

.page-faq__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}

details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 25px;
    background: rgba(16, 35, 63, 0.8); /* Slightly transparent card background */
    border-top: 1px solid var(--divider-color);
    border-radius: 0 0 8px 8px;
    color: var(--text-secondary);
    font-size: 1em;
}

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

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

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

.page-faq__faq-answer img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Specific Buttons within FAQ Answers */
.page-faq__game-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.page-faq__game-button,
.page-faq__contact-button,
.page-faq__register-button,
.page-faq__promo-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-faq__game-button:hover,
.page-faq__contact-button:hover,
.page-faq__register-button:hover,
.page-faq__promo-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Contact CTA Section */
.page-faq__section--contact-cta {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    margin-bottom: 50px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__container--cta {
    max-width: 900px;
}

.page-faq__section--contact-cta .page-faq__section-title {
    color: var(--gold-color);
    margin-bottom: 20px;
    font-size: clamp(1.8em, 3.5vw, 2.5em);
}

.page-faq__section--contact-cta .page-faq__section-description {
    color: var(--text-main);
    margin-bottom: 40px;
    font-size: 1.15em;
}

.page-faq__cta-button--contact,
.page-faq__cta-button--register {
    margin: 10px;
    padding: 18px 45px;
    font-size: 19px;
    border-radius: 10px;
    border: 2px solid var(--gold-color);
    background: var(--button-gradient);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-button--contact:hover,
.page-faq__cta-button--register:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-faq__hero-content h1 {
        font-size: 2.2em;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-faq__faq-qtext {
        font-size: 1em;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 25px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 20px;
    }
    .page-faq__section--contact-cta .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__cta-button--contact,
    .page-faq__cta-button--register {
        padding: 15px 35px;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__hero-image img {
        border-radius: 4px;
    }
    .page-faq__hero-content h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-faq__hero-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-faq__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__section {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    .page-faq__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-faq__section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    .page-faq__section-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px;
    }
    .page-faq__faq-qtext {
        font-size: 0.95em;
    }
    .page-faq__faq-toggle {
        font-size: 22px;
        width: 20px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9em;
    }

    .page-faq__game-categories {
        flex-direction: column;
        align-items: center;
    }
    .page-faq__game-button,
    .page-faq__contact-button,
    .page-faq__register-button,
    .page-faq__promo-button {
        width: 100%;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: center;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 15px;
    }

    .page-faq__section--contact-cta {
        padding: 40px 15px;
        margin-bottom: 30px;
    }
    .page-faq__section--contact-cta .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section--contact-cta .page-faq__section-description {
        font-size: 1em;
    }
    .page-faq__cta-button--contact,
    .page-faq__cta-button--register {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 16px;
        padding: 15px 20px;
        margin: 5px 0;
    }
    .page-faq__container--cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Mobile image responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__hero-section {
        padding-top: 10px !important;
    }
    .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-wrap: wrap !important;
        gap: 10px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-content h1 {
        font-size: 1.6em;
    }
    .page-faq__section-title {
        font-size: 1.4em;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 12px;
    }
    .page-faq__faq-qtext {
        font-size: 0.9em;
    }
    .page-faq__faq-toggle {
        font-size: 20px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 12px 12px;
    }
    .page-faq__section--contact-cta .page-faq__section-title {
        font-size: 1.6em;
    }
    .page-faq__cta-button--contact,
    .page-faq__cta-button--register {
        font-size: 15px;
        padding: 12px 15px;
    }
}