:root {
    --color-primary: #FF8C1A;
    --color-secondary: #FFA53A;
    --color-card-bg: #17191F;
    --color-background: #0D0E12;
    --color-text-main: #FFF3E6;
    --color-border: #A84F0C;
    --color-glow: #FFB04D;
    --color-deep-orange: #D96800;
    --header-offset: 122px; /* Default value, should be defined in shared.css */
}

/* Base styles for the page-faq */
.page-faq {
    background-color: var(--color-background);
    color: var(--color-text-main);
    line-height: 1.6;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Hero Section */
.page-faq__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for mobile-first, will be row on desktop */
    align-items: center;
    padding: 10px 20px 40px; /* Small padding-top, body handles header offset */
    text-align: center;
    background: linear-gradient(180deg, var(--color-background) 0%, #170700 100%);
    position: relative;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for hero image */
    margin-bottom: 20px;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
}

.page-faq__hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.page-faq__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text-main);
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    line-height: 1.2;
}

.page-faq__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-text-main);
    opacity: 0.9;
}

/* Buttons */
.page-faq__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-deep-orange) 100%);
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 150px; /* Ensure buttons are not too small */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-faq__button--hero {
    margin-top: 20px;
}

.page-faq__button--inline {
    margin-top: 15px;
    margin-right: 10px;
    min-width: unset; /* Allow inline buttons to be smaller if needed */
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* FAQ List Section */
.page-faq__faq-list-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--color-background);
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text-main);
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

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

.page-faq__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-faq__faq-question {
    display: block; /* Make summary fill width */
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent; /* For visual separation on open */
}

.page-faq__faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.page-faq__faq-item[open] .page-faq__faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: #1f222a; /* Slightly darker on open */
    border-bottom-color: var(--color-border);
}

.page-faq__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1rem;
    color: var(--color-text-main);
    opacity: 0.8;
}

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

.page-faq__faq-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 15px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Contact CTA Section */
.page-faq__contact-cta-section {
    padding: 60px 20px;
    background-color: var(--color-card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

.page-faq__contact-content {
    max-width: 700px;
}

.page-faq__button--contact {
    margin-top: 30px;
}

.page-faq__contact-image-wrapper {
    width: 100%;
    max-width: 600px;
}

.page-faq__contact-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}


/* Media Queries for responsiveness */
@media (min-width: 768px) {
    .page-faq__hero-section {
        flex-direction: row; /* Desktop layout for hero */
        text-align: left;
        padding: 40px 40px 60px;
        justify-content: center;
    }

    .page-faq__hero-image-wrapper {
        flex: 1;
        margin-bottom: 0;
        margin-right: 40px;
        order: 2; /* Image on right for desktop */
    }

    .page-faq__hero-content {
        flex: 1;
        margin: 0;
        order: 1; /* Content on left for desktop */
        text-align: left;
    }

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

    .page-faq__contact-cta-section {
        flex-direction: row;
        text-align: left;
        padding: 80px 40px;
        justify-content: center;
    }

    .page-faq__contact-content {
        flex: 1;
        margin-right: 40px;
    }

    .page-faq__contact-image-wrapper {
        flex: 1;
        margin-left: 0;
    }
}

/* Mobile specific rules for images to prevent overflow */
@media (max-width: 768px) {
    .page-faq img {
        max-width: 100%;
        height: auto;
    }
    .page-faq__faq-image,
    .page-faq__contact-image,
    .page-faq__hero-image {
        min-width: unset; /* Allow images to scale down */
        min-height: unset;
    }
    .page-faq__button {
        width: 100%;
        max-width: 300px; /* Constrain width for full-width buttons on mobile */
        margin-left: auto;
        margin-right: auto;
    }
    .page-faq__button--inline {
        width: auto;
        max-width: unset;
        display: inline-block;
    }
}

/* Ensure content area images are not too small */
.page-faq img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}