/* General styling for the FAQ page */
.page-faq {
    background-color: #B71C1C; /* Background color from custom scheme */
    color: #FFF5E1; /* Main text color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Some padding at the bottom */
}

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

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: #7A0E0E; /* Deep Red for hero section background */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    margin-bottom: 20px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto; /* Responsive height */
    max-width: 1200px; /* Max width for image content */
    display: block;
    margin: 0 auto; /* Center the image */
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/5; /* Aspect ratio for hero image */
}

.page-faq__hero-content {
    max-width: 800px;
    padding: 0 15px;
}

.page-faq__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFF5E1; /* Text Main */
}

.page-faq__description {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    margin-bottom: 20px;
    color: #FFF5E1; /* Text Main */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 40px 0;
}

.page-faq__section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: #F4D34D; /* Gold */
}

.page-faq__faq-list {
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border color */
}

.page-faq__faq-item {
    border-bottom: 1px solid #E53935; /* Auxiliary color for separator */
}

.page-faq__faq-item:last-child {
    border-bottom: none;
}

.page-faq__question {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 600;
    padding: 20px 25px;
    margin: 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF5E1; /* Text Main */
    background-color: #C91F17; /* Main color */
    transition: background-color 0.3s ease;
}

.page-faq__question::after {
    content: '+';
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-faq__question.active::after {
    content: '-';
    transform: rotate(0deg); /* No rotation for minus sign */
}

.page-faq__question:hover {
    background-color: #E53935; /* Auxiliary color on hover */
}

.page-faq__answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: #FFF5E1; /* Text Main */
    background-color: #D32F2F; /* Card BG */
}

.page-faq__answer.active {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px 25px;
}

.page-faq__answer p {
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Buttons */
.page-faq__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
}

.page-faq__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #7A0E0E; /* Deep Red for button text */
    border: 1px solid #F2B544; /* Border color */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-faq__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-faq__btn--secondary {
    background-color: #C91F17; /* Main color */
    color: #FFF5E1; /* Text Main */
    border: 1px solid #E53935; /* Auxiliary color border */
    margin-right: 10px;
    margin-bottom: 10px;
}

.page-faq__btn--secondary:hover {
    background-color: #E53935; /* Auxiliary color on hover */
    transform: translateY(-2px);
}

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

/* CTA Section */
.page-faq__cta-section {
    padding: 50px 0;
    text-align: center;
    background-color: #7A0E0E; /* Deep Red for CTA background */
    border-top: 1px solid #E53935;
}

.page-faq__cta-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: #F4D34D; /* Gold */
}

.page-faq__cta-description {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #FFF5E1; /* Text Main */
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-faq__main-title {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }
    .page-faq__description {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
    .page-faq__question {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }
    .page-faq__answer p {
        font-size: 0.95rem;
    }
    .page-faq__btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* Ensure images are responsive and don't overflow */
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
    .page-faq__hero-image {
        max-width: 100%; /* Ensure hero image is fully responsive */
    }
    .page-faq__game-links {
        flex-direction: column;
        align-items: stretch;
    }
    .page-faq__btn--secondary {
        margin-right: 0;
    }
}

@media (max-width: 549px) {
    .page-faq__hero-section {
        padding-bottom: 30px;
    }
    .page-faq__main-title {
        font-size: clamp(1.4rem, 7vw, 2.2rem);
    }
    .page-faq__description {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }
    .page-faq__question {
        padding: 15px 20px;
        font-size: clamp(0.95rem, 4.5vw, 1.1rem);
    }
    .page-faq__answer.active {
        padding: 15px 20px;
    }
    .page-faq__btn {
        width: 100%; /* Full width buttons on small screens */
        margin-bottom: 10px;
    }
    .page-faq__game-links .page-faq__btn--secondary:last-child {
        margin-bottom: 0;
    }
}