.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #FFF5E1); /* Default text color from custom palette */
    background-color: var(--background-color-faq, #B71C1C); /* Main background from custom palette */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    background-color: var(--deep-red-color, #7A0E0E);
    color: var(--text-main-color, #FFF5E1);
    text-align: center;
    overflow: hidden; /* For image overflow */
}

.page-faq__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop hero */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    display: block;
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--gold-color, #F4D34D); /* Gold color for main title */
}

.page-faq__description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-main-color, #FFF5E1);
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* General Section Styles */
.page-faq__section {
    padding: 60px 0;
    background-color: var(--background-color-faq, #B71C1C); /* Main background color */
    color: var(--text-main-color, #FFF5E1);
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold-color, #F4D34D); /* Gold color for section titles */
}

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

/* FAQ Item Styles (Details based, as preferred) */
details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #F2B544); /* Border from custom palette */
    overflow: hidden;
    background: var(--card-bg-color, #D32F2F); /* Card background from custom palette */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-faq__faq-item summary.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main-color, #FFF5E1);
    font-weight: 600;
    font-size: 1.1rem;
}
details.page-faq__faq-item summary.page-faq__faq-question::-webkit-details-marker {
    display: none;
}
details.page-faq__faq-item summary.page-faq__faq-question:hover {
    background: var(--deep-red-color, #7A0E0E); /* Hover effect using deep red */
}
details.page-faq__faq-item[open] summary.page-faq__faq-question {
    background: var(--deep-red-color, #7A0E0E);
    border-bottom: 1px solid var(--border-color, #F2B544);
}

.page-faq__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}
.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color, #F4D34D); /* Gold color for toggle icon */
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}
details.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X when open */
}

details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 25px;
    background: rgba(0, 0, 0, 0.1); /* Slightly darker background for answer */
    border-radius: 0 0 8px 8px;
    color: var(--text-main-color, #FFF5E1);
}
.page-faq__faq-answer p {
    margin-top: 15px;
    margin-bottom: 0;
}
.page-faq__faq-answer .page-faq__btn-text {
    display: inline-block;
    margin-top: 15px;
    color: var(--gold-color, #F4D34D);
    text-decoration: underline;
    font-weight: 600;
}
.page-faq__faq-answer .page-faq__btn-text:hover {
    color: var(--glow-color, #FFCC66);
}

/* CTA Section */
.page-faq__cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px;
    background-color: var(--deep-red-color, #7A0E0E); /* Deep Red background for CTA */
    border-radius: 10px;
    margin: 60px auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    gap: 40px;
    max-width: 1200px;
}

.page-faq__cta-content {
    flex: 1;
    text-align: left;
}

.page-faq__cta-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold-color, #F4D34D);
}

.page-faq__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main-color, #FFF5E1);
}

.page-faq__cta-image-wrapper {
    flex-shrink: 0;
    width: 40%; /* Adjust as needed */
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-faq__cta-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* For responsiveness */
}

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

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

.page-faq__btn-secondary {
    background: transparent;
    color: var(--gold-color, #F4D34D);
    border: 2px solid var(--gold-color, #F4D34D);
}

.page-faq__btn-secondary:hover {
    background: var(--gold-color, #F4D34D);
    color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 211, 77, 0.3);
}

.page-faq__btn-text {
    font-size: 1rem;
    text-decoration: none;
    color: var(--gold-color, #F4D34D);
    transition: color 0.3s ease;
}

.page-faq__btn-text:hover {
    color: var(--glow-color, #FFCC66);
    text-decoration: underline;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__container {
        padding: 15px;
    }
    .page-faq__hero-image-wrapper {
        height: 500px;
    }
    .page-faq__cta-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 30px;
    }
    .page-faq__cta-content {
        text-align: center;
    }
    .page-faq__cta-image-wrapper {
        width: 60%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 15px;
        line-height: 1.5;
    }

    /* HERO Section */
    .page-faq__hero-section {
        padding-top: 10px;
    }
    .page-faq__hero-image-wrapper {
        height: 300px;
        margin-bottom: 15px;
    }
    .page-faq__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    .page-faq__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .page-faq__cta-buttons {
        padding: 0 15px;
    }

    /* Section Titles */
    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    /* FAQ Items */
    details.page-faq__faq-item {
        margin-bottom: 10px;
    }
    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-faq__faq-qtext {
        font-size: 1rem;
    }
    .page-faq__faq-toggle {
        font-size: 24px;
        width: 25px;
        margin-left: 10px;
    }
    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 20px;
    }
    .page-faq__faq-answer p {
        font-size: 0.95rem;
    }

    /* CTA Section */
    .page-faq__cta-section {
        padding: 40px 20px;
        margin: 40px auto;
    }
    .page-faq__cta-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-faq__cta-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-faq__cta-image-wrapper {
        width: 80%;
        margin-top: 25px;
    }

    /* Generic image/container responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__container,
    .page-faq__hero-content,
    .page-faq__faq-list,
    .page-faq__cta-section,
    .page-faq__cta-content,
    .page-faq__cta-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure any flex containers wrap */
    .page-faq__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Force vertical stacking for mobile buttons */
    }
    .page-faq__cta-buttons .page-faq__btn-primary,
    .page-faq__cta-buttons .page-faq__btn-secondary {
        margin: 0;
    }
}