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

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--background); /* Ensure consistent background */
}

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

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

.page-faq__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6);
}

.page-faq__hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    color: var(--text-main);
    padding: 20px;
    box-sizing: border-box;
}

.page-faq__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.page-faq__btn-primary {
    display: inline-block;
    padding: 14px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    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);
}

.page-faq__intro-section {
    padding: 60px 0;
    background-color: var(--background);
    text-align: center;
}

.page-faq__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--gold-color);
    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(--primary-color);
    border-radius: 2px;
}

.page-faq__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
}

.page-faq__faq-section {
    padding: 60px 0;
    background-color: var(--deep-green);
}

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

.page-faq__faq-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--divider-color);
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.page-faq__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-faq__faq-toggle {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-toggle {
    transform: rotate(45deg);
}

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

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 1000px; /* Arbitrarily large value for smooth transition */
    padding-top: 15px;
}

.page-faq__cta-section {
    text-align: center;
    padding: 40px;
    margin-top: 60px;
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__cta-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--gold-color);
    margin-bottom: 20px;
}

.page-faq__cta-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    margin-left: 15px;
}

.page-faq__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__related-content {
    padding: 60px 0;
    background-color: var(--background);
    text-align: center;
}

.page-faq__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq__content-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq__content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-faq__content-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-faq__content-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 20px 20px 10px 20px;
    line-height: 1.4;
}

.page-faq__content-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-faq__content-card-title a:hover {
    color: var(--primary-color);
}

.page-faq__content-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 20px 20px 20px;
    line-height: 1.6;
}

.page-faq__text-link {
    display: inline-block;
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin: 0 20px 20px 20px;
    transition: color 0.3s ease;
}

.page-faq__text-link:hover {
    color: var(--gold-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__hero-content-wrapper {
        padding: 15px;
    }
    .page-faq__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-faq__description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }
    .page-faq__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-faq__faq-question {
        font-size: 1.15rem;
        padding: 18px 22px;
    }
    .page-faq__faq-answer {
        padding: 0 22px 18px 22px;
    }
    .page-faq__cta-section {
        padding: 30px;
    }
    .page-faq__cta-title {
        font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    }
    .page-faq__btn-primary, .page-faq__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-faq__content-image {
        height: 180px;
    }
    .page-faq__content-card-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .page-faq__container {
        padding: 0 15px !important;
    }
    .page-faq__hero-section {
        padding-bottom: 40px;
    }
    .page-faq__hero-content-wrapper {
        position: relative; /* Allow content to flow normally below image */
        transform: none;
        top: auto;
        padding-top: 30px;
        background-color: rgba(8, 22, 15, 0.8); /* Darker background for text on mobile */
        margin-top: -5px; /* Slight overlap to make it look connected */
    }
    .page-faq__hero-image {
        filter: brightness(0.8); /* Less dim on mobile */
    }
    .page-faq__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-faq__description {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        margin-bottom: 25px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important;
        margin-bottom: 15px; /* Add spacing between stacked buttons */
    }
    .page-faq__btn-secondary {
        margin-bottom: 0 !important; /* Last button doesn't need bottom margin */
    }
    .page-faq__cta-section .page-faq__btn-primary,
    .page-faq__cta-section .page-faq__btn-secondary {
        margin-left: 0 !important;
        margin-bottom: 15px;
    }
    .page-faq__cta-section .page-faq__btn-secondary:last-child {
        margin-bottom: 0;
    }

    .page-faq__intro-section, .page-faq__faq-section, .page-faq__related-content {
        padding: 40px 0;
    }
    .page-faq__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }
    .page-faq__text-block {
        font-size: 1rem;
    }
    .page-faq__faq-question {
        font-size: 1.05rem;
        padding: 15px 20px;
    }
    .page-faq__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }
    .page-faq__cta-section {
        padding: 30px 20px;
    }
    .page-faq__cta-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .page-faq__cta-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-faq__content-grid {
        grid-template-columns: 1fr;
    }
    .page-faq__content-image {
        height: 160px;
    }
    .page-faq__content-card-title {
        font-size: 1.1rem;
    }
    .page-faq__content-card-text {
        font-size: 0.9rem;
    }
    .page-faq__text-link {
        font-size: 0.95rem;
    }

    /* Mobile image responsive override */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Mobile video responsive override */
    .page-faq video, .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !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 !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }
    .page-faq__video-section {
        padding-top: 10px !important;
    }

    /* Ensure button containers also adapt */
    .page-faq__cta-buttons,
    .page-faq__button-group,
    .page-faq__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px; /* Spacing between stacked buttons */
    }

    /* Ensure all content containers are responsive */
    .page-faq__section, .page-faq__card, .page-faq__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-content-wrapper {
        padding-top: 20px;
    }
    .page-faq__main-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    .page-faq__description {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .page-faq__faq-question {
        font-size: 1rem;
        padding: 12px 15px;
    }
    .page-faq__faq-answer {
        padding: 0 15px 12px 15px;
        font-size: 0.9rem;
    }
    .page-faq__cta-section {
        padding: 25px 15px;
    }
    .page-faq__cta-title {
        font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    }
    .page-faq__cta-description {
        font-size: 0.9rem;
    }
    .page-faq__content-image {
        height: 140px;
    }
    .page-faq__content-card-title {
        font-size: 1.05rem;
    }
    .page-faq__content-card-text {
        font-size: 0.85rem;
    }
    .page-faq__text-link {
        font-size: 0.9rem;
    }
}