/* style/faq.css */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Oswald:wght@500;700&display=swap');

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

.page-faq {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--background-color-page); /* Consistent with body background */
}

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

.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0;
    text-align: center;
    overflow: hidden;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
    z-index: 0;
    margin-bottom: 20px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7);
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-faq__main-title {
    font-family: 'Oswald', sans-serif;
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    /* No fixed large font-size, rely on clamp for responsiveness if needed */
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

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

.page-faq__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-faq__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-faq__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
}

.page-faq__btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.page-faq__section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-faq__section-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}

.page-faq__faq-section {
    padding: 80px 0;
    background-color: var(--background-color-page);
}

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

.page-faq__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    background-color: var(--deep-green-color);
    box-shadow: 0 0 20px rgba(var(--glow-color-rgb), 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-main);
    list-style: none;
    position: relative;
}

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

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
    color: var(--gold-color);
}

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

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

.page-faq__cta-section {
    text-align: center;
    margin-top: 50px;
}

.page-faq__cta-text {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 25px;
    font-weight: 500;
}

.page-faq__promotions-section {
    padding: 80px 0;
    background-color: var(--deep-green-color);
}

.page-faq__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-faq__promo-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-faq__promo-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-faq__promo-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__promo-title a:hover {
    color: var(--primary-color);
}

.page-faq__promo-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0 20px;
    margin-bottom: 20px;
}

.page-faq__explore-games {
    padding: 80px 0;
    background-color: var(--background-color-page);
}

.page-faq__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-faq__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-faq__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

.page-faq__game-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold-color);
    padding: 15px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-faq__about-us-cta {
    padding: 80px 0;
    background-color: var(--deep-green-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-faq__about-us-cta .page-faq__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-faq__about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-faq__about-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-faq__about-content .page-faq__section-title {
    text-align: left;
    margin-bottom: 15px;
}

.page-faq__about-content .page-faq__description {
    text-align: left;
    margin-bottom: 30px;
    max-width: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-faq__hero-content {
        padding: 0 15px;
    }

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

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

    .page-faq__faq-question {
        font-size: 1.05rem;
        padding: 18px 20px;
    }

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

    .page-faq__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-faq__game-categories {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .page-faq__about-us-cta .page-faq__container {
        flex-direction: column;
        text-align: center;
    }

    .page-faq__about-content {
        text-align: center;
    }

    .page-faq__about-content .page-faq__section-title,
    .page-faq__about-content .page-faq__description {
        text-align: center;
    }
}

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

    .page-faq__hero-section {
        padding-bottom: 40px;
    }

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

    .page-faq__section-intro {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-faq__faq-section,
    .page-faq__promotions-section,
    .page-faq__explore-games,
    .page-faq__about-us-cta {
        padding: 50px 0;
    }

    .page-faq__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }

    /* Buttons responsive */
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 15px; /* Add spacing for stacked buttons */
    }

    .page-faq__cta-section {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .page-faq__cta-section .page-faq__btn-primary,
    .page-faq__cta-section .page-faq__btn-secondary {
        margin-bottom: 0;
    }

    .page-faq__promo-card,
    .page-faq__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__promo-grid,
    .page-faq__game-categories {
        gap: 20px;
    }

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

    .page-faq__hero-content {
        margin-top: -80px; /* Pull content up over image */
    }

    .page-faq__about-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

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

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

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

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-faq__promo-image {
        height: 180px;
    }

    .page-faq__game-image {
        height: 150px;
    }

    .page-faq__about-image {
        height: auto;
    }
}