/* style/faq.css */

/* --- General Styles --- */
.page-faq {
    color: #FFF6D6; /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css var(--background-color) */
}

.page-faq__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 40px 16px;
    box-sizing: border-box;
}

.page-faq__section-title,
.page-faq__cta-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: #F2C14E; /* Highlight color for titles */
}

.page-faq__description,
.page-faq__cta-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1em;
}

/* --- Buttons --- */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure buttons adapt to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for light gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

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

.page-faq__btn-secondary:hover {
    background-color: #F2C14E;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.3);
}

.page-faq__btn-link {
    background-color: transparent;
    color: #FFD36B; /* Glow color for links */
    border: 1px solid #3A2A12; /* Border color */
    padding: 8px 15px;
    margin-top: 15px;
    display: block;
    width: fit-content;
    font-size: 0.9em;
}

.page-faq__btn-link:hover {
    color: #FFF6D6;
    border-color: #FFD36B;
}

/* --- Hero Section --- */
.page-faq__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: #0A0A0A; /* Background color for the section */
}

.page-faq__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 20px 16px;
    box-sizing: border-box;
}

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

.page-faq__main-title {
    font-size: clamp(2em, 5vw, 3em); /* Responsive font size */
    font-weight: bold;
    color: #FFF6D6; /* Main text color */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-faq__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-faq__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it's a block element for proper sizing */
    margin: 0 auto;
}

/* --- FAQ List Section --- */
.page-faq__faq-list-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color for the section */
}

.page-faq__faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-faq__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #FFF6D6; /* Text Main */
}

.page-faq__faq-item[open] {
    background-color: #1A1A1A; /* Slightly darker when open */
    border-color: #F2C14E;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    color: #FFF6D6; /* Text Main */
    list-style: none; /* Hide default marker for <summary> */
    -webkit-touch-callout: none; /* Disable callout on iOS */
    -webkit-user-select: none; /* Disable text selection on iOS */
    -khtml-user-select: none; /* Disable text selection on old Safari */
    -moz-user-select: none; /* Disable text selection on Firefox */
    -ms-user-select: none; /* Disable text selection on IE/Edge */
    user-select: none; /* Disable text selection */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for <summary> */
}

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

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

.page-faq__faq-answer {
    padding-top: 15px;
    font-size: 1em;
    color: #FFF6D6; /* Text Main */
    border-top: 1px solid #3A2A12; /* Border color */
    margin-top: 15px;
}

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

.page-faq__faq-answer img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    display: block;
}

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

.page-faq__cta-section .page-faq__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-faq__cta-image {
    max-width: 800px;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: block;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(2em, 5vw, 2.5em);
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-faq__hero-content {
        text-align: center;
    }
    .page-faq__hero-image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 30px;
    }
    .page-faq__hero-container {
        padding: 15px;
        gap: 20px;
    }
    .page-faq__main-title {
        font-size: 2em !important;
        margin-bottom: 15px;
    }
    .page-faq__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-faq__hero-content,
    .page-faq__hero-image {
        flex: 1 1 100%;
    }
    .page-faq__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons */
    .page-faq__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        width: 100% !important; /* Ensure container takes full width */
        max-width: 100% !important; /* Ensure container takes full width */
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 15px;
    }
    .page-faq__btn-link {
        margin: 10px auto 0;
    }

    /* FAQ List Section */
    .page-faq__faq-list-section {
        padding: 40px 0;
    }
    .page-faq__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-faq__faq-item {
        padding: 15px 20px;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
    }
    .page-faq__faq-answer {
        font-size: 0.95em;
    }
    .page-faq__faq-answer img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* CTA Section */
    .page-faq__cta-section {
        padding: 40px 0;
    }
    .page-faq__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 30px;
    }

    /* General image responsiveness for content area */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}