/* style/faq.css */

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

.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--elibet-text-main); /* Default text color for main content */
    background-color: var(--elibet-bg-main); /* Main background color */
}

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column; /* Default for mobile, will change to row for desktop */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--elibet-deep-green); /* A darker green for hero */
    text-align: center;
    gap: 30px;
}

.page-faq__hero-content {
    max-width: 800px;
    width: 100%;
    z-index: 1;
}

.page-faq__main-title {
    /* clamp(min-font-size, preferred-font-size-relative-to-viewport, max-font-size) */
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--elibet-gold); /* Use gold for main title */
    max-width: 100%; /* Ensure H1 doesn't overflow */
}

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

.page-faq__hero-image-container {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    order: -1; /* Image appears above content on mobile */
}

.page-faq__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 10px;
    max-width: 100%; /* Ensure button is responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-faq__btn-primary {
    background: var(--elibet-btn-gradient);
    color: var(--elibet-text-main);
    border: none;
}

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

.page-faq__btn-secondary {
    background: transparent;
    color: var(--elibet-primary);
    border: 2px solid var(--elibet-primary);
}

.page-faq__btn-secondary:hover {
    background: var(--elibet-primary);
    color: var(--elibet-text-main);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 80px 20px;
    background-color: var(--elibet-bg-main); /* Dark background */
    color: var(--elibet-text-main); /* Light text */
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%; /* Ensure container takes full width on smaller screens */
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--elibet-gold);
}

.page-faq__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--elibet-text-secondary);
}

.page-faq__highlight {
    color: var(--elibet-gold);
    font-weight: 600;
}

.page-faq__faq-list {
    margin-top: 30px;
}

.page-faq__faq-item {
    background-color: var(--elibet-bg-card); /* Card background */
    border: 1px solid var(--elibet-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    background-color: var(--elibet-deep-green); /* Slightly darker when open */
    border-color: var(--elibet-primary);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--elibet-text-main);
    cursor: pointer;
    list-style: none; /* For details/summary */
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: var(--elibet-deep-green);
    color: var(--elibet-gold);
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    font-weight: 300;
    color: var(--elibet-primary);
    transition: transform 0.3s ease;
}

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

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--elibet-text-secondary);
    border-top: 1px solid var(--elibet-divider); /* Separator for answer */
    padding-top: 20px;
    margin-top: -1px; /* Overlap border */
}

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

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__inline-link {
    color: var(--elibet-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-faq__inline-link:hover {
    color: var(--elibet-gold);
    text-decoration: underline;
}

/* CTA Section */
.page-faq__cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background-color: var(--elibet-deep-green); /* Darker background for CTA */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__cta-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--elibet-gold);
    font-weight: 600;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-faq__hero-section {
        flex-direction: row;
        text-align: left;
        padding: 80px 40px;
        padding-top: 10px; /* Still small top padding */
        gap: 50px;
    }

    .page-faq__hero-content {
        order: 1; /* Content after image on desktop */
    }

    .page-faq__hero-image-container {
        order: 0; /* Image before content on desktop */
        margin-top: 0;
    }

    .page-faq__cta-button {
        margin: 0 15px;
    }
}

/* Mobile Specific (max-width: 768px) - IMPORTANT RULES */
@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

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

    .page-faq__hero-image-container,
    .page-faq__container,
    .page-faq__faq-item,
    .page-faq__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Buttons responsiveness */
    .page-faq__cta-button,
    .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;
        margin: 10px 0 !important; /* Stack buttons vertically */
    }

    .page-faq__cta-section {
        display: flex;
        flex-direction: column; /* Stack CTA buttons */
        align-items: center;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    .page-faq__description,
    .page-faq__section-intro,
    .page-faq__cta-text {
        font-size: 1em !important;
    }
}