/* style/faq.css */

/* --- Base Styles --- */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Background */
}

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

.page-faq__section {
    padding: 60px 0;
    position: relative;
}

.page-faq__dark-section {
    background-color: #0A0A0A; /* Background */
}

/* --- Hero Section --- */
.page-faq__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #F2C14E, #FFD36B); /* Main color gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #111111; /* Dark text on light gradient */
    position: relative;
    overflow: hidden;
}

.page-faq__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Default: content above image */
    align-items: center;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure text is above any potential background effects */
}

.page-faq__hero-text {
    max-width: 800px;
    margin-bottom: 40px;
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #111111;
}

.page-faq__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #333333;
}

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

.page-faq__hero-image-container {
    width: 100%;
    max-width: 900px; /* Adjust as needed */
    margin-top: 40px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

/* --- Section Titles & Descriptions --- */
.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #F2C14E; /* Main color */
}

.page-faq__section-description {
    font-size: 1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF6D6; /* Text Main */
}

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

.page-faq__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #FFF6D6; /* Text Main */
}

.page-faq__faq-item.active {
    border-color: #F2C14E; /* Active border color */
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.3);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #111111; /* Card BG */
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: #1a1a1a;
}

.page-faq__faq-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #FFF6D6; /* Text Main */
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F2C14E; /* Main color */
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(0deg); /* Revert rotation for minus sign */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Adjusted padding to match question */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main */
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px; /* Padding for expanded state */
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: #FFF6D6; /* Text Main */
}

.page-faq__faq-answer img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px 0;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

/* --- Buttons --- */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq a[class*="button"],
.page-faq a[class*="btn"] {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    border: 2px solid transparent; /* Default for primary */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #111111; /* Dark text on light button */
}

.page-faq__btn-primary:hover {
    background: linear-gradient(180deg, #FFE080 0%, #E8B42F 100%);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background: #111111; /* Card BG */
    color: #F2C14E; /* Main color */
    border-color: #F2C14E; /* Main color border */
}

.page-faq__btn-secondary:hover {
    background: #F2C14E; /* Main color */
    color: #111111; /* Dark text on light button */
    transform: translateY(-2px);
}

.page-faq__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- CTA Section --- */
.page-faq__cta-section {
    background-color: #0A0A0A; /* Background */
    padding: 80px 0;
    text-align: center;
}

.page-faq__cta-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: #FFF6D6; /* Text Main */
}

.page-faq__cta-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #F2C14E; /* Main color */
    margin-bottom: 20px;
}

.page-faq__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF6D6; /* Text Main */
}

/* --- Additional Resources Section --- */
.page-faq__additional-resources {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background */
}

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

.page-faq__resource-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF6D6; /* Text Main */
}

.page-faq__resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-faq__resource-card .page-faq__card-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
}

.page-faq__resource-card p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    color: #FFF6D6; /* Text Main */
}

.page-faq__closing-statement {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 60px;
    color: #FFF6D6; /* Text Main */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Design --- */
@media (min-width: 769px) {
    .page-faq__hero-content-wrapper {
        flex-direction: row; /* Image and text side-by-side on desktop */
        text-align: left;
        align-items: flex-start;
    }
    .page-faq__hero-text {
        margin-right: 40px;
        margin-bottom: 0;
        max-width: 50%;
    }
    .page-faq__hero-image-container {
        margin-top: 0;
        max-width: 50%;
    }
    .page-faq__hero-cta {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared */
        padding-bottom: 40px;
        min-height: auto;
    }

    .page-faq__main-title {
        font-size: 2rem;
    }

    .page-faq__hero-description {
        font-size: 1rem;
    }

    .page-faq__hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .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;
    }

    .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;
      flex-direction: column; /* Ensure vertical stacking for mobile CTA buttons */
    }

    .page-faq__section {
        padding: 40px 0;
    }

    .page-faq__section-title {
        font-size: 1.8rem;
    }

    .page-faq__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-faq__faq-question {
        padding: 15px;
    }

    .page-faq__faq-title {
        font-size: 1.1rem;
    }

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

    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 10px 15px;
    }

    /* Mobile image responsiveness */
    .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 and padding-right are handled by specific elements */
    }
    
    .page-faq__overview-section .page-faq__container,
    .page-faq__games-bonuses-section .page-faq__container,
    .page-faq__deposits-withdrawals-section .page-faq__container,
    .page-faq__support-responsible-gaming-section .page-faq__container,
    .page-faq__cta-card,
    .page-faq__additional-resources .page-faq__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-faq__cta-section {
        padding: 40px 0;
    }
    
    .page-faq__cta-card {
        padding: 30px 20px;
    }
    
    .page-faq__resource-grid {
        grid-template-columns: 1fr;
    }
}