/* style/faq.css */

/* Base styles for the page content wrapper */
.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f8f8f8; /* A very light background for the main content area */
}

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding as body padding-top handles header offset */
    padding-bottom: 40px;
    background-color: #B71C1C; /* Dark background for the section */
    color: #FFF5E1; /* Light text for dark background */
    overflow: hidden;
}

.page-faq__hero-image-container {
    width: 100%;
    max-width: 1920px; /* Max width for large screens */
    margin-bottom: 30px;
}

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

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

.page-faq__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFF5E1; /* Light text for dark background */
    line-height: 1.2;
}

.page-faq__subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFF5E1; /* Light text for dark background */
}

/* Call to Action Buttons */
.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit width for aesthetic */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow on small screens */
}

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #333333; /* Dark text for bright gold button */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #FFF5E1; /* Light text for transparent button on dark background */
    border: 2px solid #F2B544; /* Gold border */
}

.page-faq__btn-secondary:hover {
    background-color: #F2B544;
    color: #333333;
}

.page-faq__btn-small {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #333333;
    border: none;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    margin-top: 10px;
}
.page-faq__btn-small:hover {
    filter: brightness(1.1);
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for the FAQ content */
    color: #333333; /* Dark text for light background */
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-faq__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #C91F17; /* Main brand color for titles */
}

.page-faq__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

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

.page-faq__faq-item {
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    outline: none;
    transition: background-color 0.3s ease;
    background-color: #f0f0f0;
}

.page-faq__faq-item summary:hover {
    background-color: #e5e5e5;
}

/* Hide default details marker */
.page-faq__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-faq__faq-item summary::marker {
    display: none;
}

.page-faq__faq-qtext {
    flex-grow: 1;
    color: #C91F17; /* Brand color for questions */
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    color: #C91F17;
}

.page-faq__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #eee;
}

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

.page-faq__faq-answer ul {
    margin-left: 20px;
    list-style: disc;
    margin-bottom: 10px;
}

.page-faq__faq-answer li {
    margin-bottom: 5px;
}

/* Call to Action Section (Bottom) */
.page-faq__call-to-action {
    padding: 60px 20px;
    text-align: center;
    background-color: #C91F17; /* Deep Red background */
    color: #FFF5E1; /* Light text */
}

.page-faq__cta-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFF5E1;
}

.page-faq__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #FFF5E1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        padding: 0 30px;
    }

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

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

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

@media (max-width: 768px) {
    /* HERO Section */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile, override with !important */
        padding-bottom: 30px;
    }
    .page-faq__hero-image-container {
        margin-bottom: 20px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Smaller H1 for mobile */
        padding: 0 15px;
    }
    .page-faq__subtitle {
        font-size: 1em;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    /* General Images & Containers */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-faq__container,
    .page-faq__hero-content,
    .page-faq__call-to-action {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Buttons & Button Containers */
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important; /* Adjust padding for smaller screens */
    }

    /* FAQ Section */
    .page-faq__faq-section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
        padding: 0 15px;
    }
    .page-faq__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-faq__faq-item summary {
        font-size: 1em;
        padding: 15px 15px;
    }
    .page-faq__faq-answer {
        padding: 10px 15px 15px;
        font-size: 0.95em;
    }
    .page-faq__faq-qtext {
        font-size: 1em;
    }
    .page-faq__faq-toggle {
        font-size: 1.2em;
    }

    /* Bottom CTA */
    .page-faq__call-to-action {
        padding: 40px 15px;
    }
    .page-faq__cta-title {
        font-size: 1.8em;
    }
    .page-faq__cta-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
}

/* Ensure no content area image is smaller than 200px (desktop) */
.page-faq img:not(.page-faq__hero-image) {
    min-width: 200px;
    min-height: 200px;
}