/* style/faq.css */

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

.page-faq {
    background-color: var(--shbet1-bg-main);
    color: var(--shbet1-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-faq__hero-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--shbet1-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.1em;
    color: var(--shbet1-text-secondary);
    margin-bottom: 30px;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: var(--shbet1-btn-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--shbet1-glow-rgb, 87, 227, 141), 0.4);
}

.page-faq__btn-secondary {
    background: #ffffff;
    color: var(--shbet1-primary);
    border: 2px solid var(--shbet1-primary);
}

.page-faq__btn-secondary:hover {
    background: var(--shbet1-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--shbet1-primary-rgb, 17, 168, 78), 0.4);
}

/* Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--shbet1-bg-main);
    color: var(--shbet1-text-main);
}

.page-faq__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--shbet1-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__section-intro {
    font-size: 1.1em;
    color: var(--shbet1-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-faq__faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.page-faq__faq-category-title {
    font-size: clamp(1.5em, 2.5vw, 2em);
    color: var(--shbet1-gold);
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 2px solid var(--shbet1-divider);
    padding-bottom: 10px;
}

.page-faq__faq-category-image-wrapper {
    margin-bottom: 20px;
}

.page-faq__faq-category-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-faq__faq-item {
    background-color: var(--shbet1-card-bg);
    border-radius: 8px;
    border: 1px solid var(--shbet1-border);
    overflow: hidden;
    margin-bottom: 15px;
    color: var(--shbet1-text-main);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--shbet1-text-main);
    list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    color: var(--shbet1-secondary);
    transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: var(--shbet1-text-secondary);
}

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

.page-faq__read-more-link {
    color: var(--shbet1-secondary);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.page-faq__read-more-link:hover {
    text-decoration: underline;
}

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

/* CTA Section */
.page-faq__cta-section {
    background-color: var(--shbet1-deep-green);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-faq__cta-content {
    max-width: 800px;
}

.page-faq__cta-section .page-faq__section-title {
    color: var(--shbet1-text-main);
    margin-bottom: 20px;
}

.page-faq__cta-section .page-faq__description {
    color: var(--shbet1-text-secondary);
    margin-bottom: 30px;
}

.page-faq__cta-image-wrapper {
    width: 100%;
    max-width: 600px;
}

.page-faq__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-section {
        padding: 40px 15px;
    }
    .page-faq__content-area {
        padding: 40px 15px;
    }
    .page-faq__cta-section {
        padding: 60px 15px;
    }
}

@media (max-width: 768px) {
    .page-faq__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-faq__description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain button group width */
        margin: 0 auto;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
    }

    /* General image responsiveness for content area */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all content containers are responsive */
    .page-faq__section,
    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__cta-section,
    .page-faq__hero-image-wrapper,
    .page-faq__faq-category-image-wrapper,
    .page-faq__cta-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-faq__hero-section { /* Adjust padding for top section */
        padding-top: 10px !important;
        padding-bottom: 30px !important;
    }

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

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

    .page-faq__faq-answer {
        padding: 0 15px 15px 15px;
    }

    .page-faq__games-links {
        flex-direction: column;
        gap: 10px;
    }

    .page-faq__cta-section {
        flex-direction: column;
        gap: 20px;
        padding: 40px 15px;
    }

    .page-faq__cta-image-wrapper {
        order: -1; /* Image above text on mobile */
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: clamp(1.6em, 8vw, 2em);
    }
    .page-faq__section-title {
        font-size: clamp(1.4em, 7vw, 1.8em);
    }
    .page-faq__faq-category-title {
        font-size: clamp(1.3em, 6vw, 1.7em);
    }
    .page-faq__description {
        font-size: 0.9em;
    }
}