:root {
    --color-primary: #C61F1F; /* Main Red */
    --color-secondary: #E53030; /* Auxiliary Red */
    --color-background: #140C0C; /* Page Background */
    --color-card-bg: #2A1212; /* Card Background */
    --color-text-main: #FFF1E8; /* Main Text Color */
    --color-border: #6A1E1E; /* Border Color */
    --color-gold: #F3C54D; /* Gold Accent */
    --color-deep-red: #7E0D0D; /* Deep Red Accent */
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --button-text-color: #FFF1E8; /* Button Text Color */
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Ensure consistency with shared body bg */
    line-height: 1.6;
    padding-top: 0; /* body already handles padding-top */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
    background-color: var(--color-deep-red); /* Placeholder bg if image loads late */
}

.page-faq__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit hero image height */
    border-radius: 8px;
}

.page-faq__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
    padding-top: 20px; /* Space above content */
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
    font-size: 1.1em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal;
    word-wrap: break-word;
}

.page-faq__btn-primary {
    background: var(--button-gradient);
    color: var(--button-text-color);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

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

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 2px 10px rgba(243, 197, 77, 0.3);
}

.page-faq__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 197, 77, 0.5);
}

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

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

.page-faq__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__section-description {
    font-size: 1.05em;
    color: var(--color-text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-faq__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-item[open] {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    border-color: var(--color-gold);
}

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

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

.page-faq__faq-question:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
}

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

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

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


.page-faq__faq-answer {
    padding: 25px;
    font-size: 1.0em;
    color: var(--color-text-main);
    background-color: var(--color-card-bg);
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: var(--color-text-main); /* Ensure contrast */
}

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-faq__faq-answer li {
    margin-bottom: 8px;
    color: var(--color-text-main); /* Ensure contrast */
}

.page-faq__faq-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

/* Call to Action Section (bottom) */
.page-faq__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--color-deep-red);
    color: var(--color-text-main);
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-faq__cta-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-faq__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--color-text-main);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        max-width: 700px;
    }
}

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

    .page-faq__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

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

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__faq-section,
    .page-faq__cta-section {
        padding: 50px 15px;
    }

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: clamp(1.6em, 5vw, 2.2em);
    }

    .page-faq__section-description,
    .page-faq__cta-description {
        font-size: 0.95em;
    }

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

    .page-faq__faq-answer {
        padding: 20px;
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__hero-image-wrapper,
    .page-faq__container,
    .page-faq__card,
    .page-faq__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow for containers */
    }
    
    .page-faq__hero-image {
        max-height: 300px; /* Adjust hero image height for mobile */
    }
}

@media (max-width: 480px) {
    .page-faq__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }

    .page-faq__main-title {
        font-size: clamp(1.6em, 7vw, 2em);
    }

    .page-faq__faq-section,
    .page-faq__cta-section {
        padding: 40px 10px;
    }

    .page-faq__section-title,
    .page-faq__cta-title {
        font-size: clamp(1.4em, 6vw, 1.8em);
    }
}

/* Ensure no image filters */
.page-faq img {
    filter: none;
}