/* style/faq.css */

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Subtle background */
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(17, 17, 17, 0.7); /* Card BG with transparency */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-top: 60px; /* Space from hero image above, if any */
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: bold;
    color: #F2C14E; /* Primary color for title */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-faq__hero-description {
    font-size: 1.2rem;
    color: #FFF6D6;
    max-width: 700px;
    margin: 0 auto;
}

/* Section General Styles */
.page-faq__section {
    padding: 60px 20px;
    background-color: #0A0A0A; /* Page Background */
}

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

.page-faq__section-title {
    font-size: clamp(2rem, 3vw, 2.8rem); /* Responsive font size */
    color: #FFD36B; /* Auxiliary color for section titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #F2C14E; /* Primary color accent */
    border-radius: 2px;
}

/* FAQ List Styles */
.page-faq__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.page-faq__faq-item.active {
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5); /* Glow effect */
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1a1a1a; /* Slightly lighter background for question */
    color: #FFF6D6;
    font-size: 1.15rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-faq__faq-question h3 {
    margin: 0;
    flex-grow: 1;
    color: #FFF6D6; /* Ensure heading text color is light */
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: #F2C14E; /* Primary color for toggle icon */
    margin-left: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text */
    color: #FFD36B;
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #111111; /* Card BG */
    color: #FFF6D6; /* Text Main */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: #FFF6D6; /* Ensure paragraph text color is light */
}

.page-faq__faq-answer ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    color: #FFF6D6; /* Ensure list item text color is light */
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
    color: #FFF6D6; /* Ensure list item text color is light */
}

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

.page-faq__cta-container {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 15px;
    padding: 50px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.3); /* Subtle glow */
}

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

.page-faq__cta-description {
    font-size: 1.1rem;
    color: #FFF6D6;
    margin-bottom: 40px;
}

.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
}

/* Button Styles */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
    text-align: center;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
    color: #111111; /* Dark text for light gradient */
    border: 2px solid transparent;
}

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

.page-faq__btn-secondary {
    background: #111111; /* Card BG */
    color: #F2C14E; /* Primary color text */
    border: 2px solid #F2C14E; /* Primary color border */
}

.page-faq__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-faq a {
    color: #FFD36B; /* Auxiliary color for general links */
    text-decoration: underline;
}

.page-faq a:hover {
    color: #F2C14E; /* Primary color on hover */
}

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

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

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

    .page-faq__hero-content {
        margin-top: 30px;
        padding: 15px;
    }

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

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

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

    .page-faq__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

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

    .page-faq__faq-toggle {
        font-size: 1.5rem;
    }

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

    .page-faq__cta-section {
        padding: 60px 15px;
    }

    .page-faq__cta-container {
        padding: 30px;
    }

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

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

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .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__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.8rem;
    }
    .page-faq__section-title {
        font-size: 1.6rem;
    }
    .page-faq__cta-title {
        font-size: 1.8rem;
    }
}