:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --glow-color-rgb: 87, 227, 141; /* RGB for glow-color for rgba usage */
}

.page-faq {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page content */
    background-color: var(--background-color);
}

.page-faq__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    background-color: var(--deep-green);
    text-align: center;
    overflow: hidden;
}

.page-faq__hero-content {
    max-width: 900px;
    z-index: 10;
    position: relative;
}

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

.page-faq__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-faq__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--deep-green);
}

.page-faq__hero-image {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.page-faq__faq-section {
    padding: 80px 20px;
    background-color: var(--background-color);
}

.page-faq__dark-section {
    background-color: var(--background-color);
    color: var(--text-main);
}

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

.page-faq__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
}

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

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

.page-faq__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.page-faq__faq-item[open] {
    box-shadow: 0 0 20px rgba(var(--glow-color-rgb), 0.2);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* For details/summary */
    color: var(--text-main);
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: rgba(var(--glow-color-rgb), 0.1);
}

.page-faq__faq-question::-webkit-details-marker {
    display: none;
}

.page-faq__faq-qtext {
    flex-grow: 1;
}

.page-faq__faq-toggle {
    font-size: 1.5em;
    font-weight: 300;
    margin-left: 20px;
    color: var(--glow-color);
}

.page-faq__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 1000px; /* Sufficiently large for content */
    padding-top: 10px;
}

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

.page-faq__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-faq__cta-section {
    padding: 80px 20px;
    background-color: var(--deep-green);
    text-align: center;
}

.page-faq__deep-green-bg {
    background-color: var(--deep-green);
}

.page-faq__cta-content {
    max-width: 800px;
}

.page-faq__text-main {
    color: var(--text-main);
}

.page-faq__text-secondary {
    color: var(--text-secondary);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-faq__hero-content {
        padding: 0 15px;
    }

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

    .page-faq__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }

    .page-faq__hero-image {
        position: relative;
        transform: translateX(-50%) translateY(20px);
        max-width: 100%;
        width: 100%;
        height: auto;
        opacity: 0.2;
        margin-top: 20px;
    }

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

    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-faq__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }

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

    /* Ensure all images are responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !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;
    }

    /* Video section top padding */
    .page-faq__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    /* Ensure video elements are responsive */
    .page-faq video,
    .page-faq__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-faq__video-section,
    .page-faq__video-container,
    .page-faq__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}