:root {
    --color-primary: #F2C14E;
    --color-secondary: #FFD36B;
    --color-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --color-card-bg: #111111;
    --color-background: #0A0A0A;
    --color-text-main: #FFF6D6;
    --color-border: #3A2A12;
    --color-glow: #FFD36B;
}

.page-faq {
    color: var(--color-text-main);
    background-color: var(--color-background);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-faq__section {
    padding: 40px 0;
}

.page-faq__section--spacing {
    padding: 60px 0;
}

.page-faq__dark-section {
    background-color: var(--color-card-bg);
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Adjusted as per instructions */
    overflow: hidden;
}

.page-faq__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.page-faq__hero-content-wrapper {
    position: relative;
    z-index: 1;
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 40px;
}

.page-faq__main-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-faq__hero-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-text-main);
    margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-faq__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.page-faq__section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-faq__text-block {
    font-size: 17px;
    color: var(--color-text-main);
    margin-bottom: 30px;
    text-align: justify;
}

.page-faq__content-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ styles */
details.page-faq__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: var(--color-card-bg);
    box-shadow: 0 2px 10px 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, border-color 0.3s ease;
}

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: rgba(var(--color-primary-rgb), 0.1);
}

.page-faq__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--color-text-main);
}

.page-faq__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-primary);
    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);
}

details.page-faq__faq-item .page-faq__faq-answer {
    padding: 0 25px 25px;
    background: rgba(17, 17, 17, 0.8);
    border-radius: 0 0 10px 10px;
    color: var(--color-text-main);
    font-size: 16px;
}

.page-faq__faq-answer p {
    margin: 0;
    padding-top: 15px;
    text-align: justify;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-faq__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section--spacing {
        padding: 30px 0 !important;
    }

    .page-faq__hero-section {
        min-height: 400px;
        padding-top: 10px; /* Ensure small top padding */
    }

    .page-faq__hero-image {
        object-fit: contain !important; /* HERO: object-fit:contain */
        aspect-ratio: unset !important; /* HERO: aspect-ratio:unset */
        height: auto !important;
    }

    .page-faq__hero-content-wrapper {
        padding: 20px;
    }

    .page-faq__main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-faq__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .page-faq__cta-buttons {
        flex-direction: column !important; /* Buttons: flex-direction: column */
        gap: 15px !important;
        margin-top: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .page-faq__text-block {
        font-size: 15px;
        margin-bottom: 20px;
        text-align: left;
    }

    .page-faq__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto !important;
        box-sizing: border-box !important;
    }

    details.page-faq__faq-item summary.page-faq__faq-question {
        padding: 15px 20px;
    }

    .page-faq__faq-qtext {
        font-size: 16px;
    }

    .page-faq__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }

    details.page-faq__faq-item .page-faq__faq-answer {
        padding: 0 20px 20px;
        font-size: 15px;
    }
}

/* Ensure general images and containers are responsive */
.page-faq img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-faq__section,
.page-faq__card,
.page-faq__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-faq__section,
    .page-faq__card,
    .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}