:root {
    --primary-color: #11A84E; /* Main */
    --secondary-color: #22C768; /* Aux */
    --bg-color-dark: #08160F; /* Background */
    --card-bg-color: #11271B; /* Card BG */
    --text-main-color: #F2FFF6; /* Text Main */
    --text-secondary-color: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green-color: #0A4B2C; /* Deep Green */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
}

/* Base styles for the page content */
.page-faq {
    background-color: var(--bg-color-dark);
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Section styling */
.page-faq__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure content doesn't spill */
}

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

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    min-height: 500px; /* Ensure hero section has a minimum height */
    overflow: hidden;
}

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

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-faq__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
    margin-top: 60px; /* Push content down slightly from top */
}

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

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

.page-faq__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons are responsive */
    text-align: center;
}

.page-faq__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main-color);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--bg-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__link-btn {
    background: var(--deep-green-color);
    color: var(--text-main-color);
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 5px;
    margin-top: 15px;
    display: inline-block;
}
.page-faq__link-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Section titles and descriptions */
.page-faq__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-faq__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--gold-color);
    border-radius: 2px;
}

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

/* FAQ List */
.page-faq__faq-list-section {
    background-color: var(--card-bg-color); /* Darker background for FAQ section */
    padding: 80px 0;
}

.page-faq__faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: var(--deep-green-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    color: var(--text-main-color);
}

.page-faq__faq-item details {
    width: 100%;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--deep-green-color);
    color: var(--text-main-color);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker */
}

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

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-faq__faq-item[open] .page-faq__faq-question {
    background-color: var(--primary-color);
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.0em;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

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

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

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

/* Image styling within content */
.page-faq__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* Bottom CTA Section */
.page-faq__cta-bottom-section {
    background-color: var(--bg-color-dark);
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        padding: 15px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-faq__faq-answer {
        padding: 0 20px 18px 20px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        min-height: 400px;
    }
    .page-faq__hero-content {
        margin-top: 40px;
    }
    .page-faq__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-faq__description {
        font-size: 1em;
    }
    .page-faq__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq__link-btn {
        width: 100% !important;
        max-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__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-description {
        font-size: 0.95em;
    }
    .page-faq__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-faq__faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.9em;
    }
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-faq__image {
        margin: 15px auto;
    }
}