/* style/faq.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-faq {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page content */
    background-color: var(--color-background); /* Ensure consistency with body background if not set by shared */
    line-height: 1.6;
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--color-background);
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height to prevent image from being too tall */
    overflow: hidden;
    position: relative;
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 300px; /* Minimum height for visual impact */
}

.page-faq__hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    box-sizing: border-box;
    z-index: 1;
    margin-top: -100px; /* Overlap slightly with image for design, but text is below */
    position: relative;
}

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

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

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

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

.page-faq__btn-primary {
    background: var(--color-button-gradient-start);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid var(--color-button-gradient-start);
}

.page-faq__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--color-button-gradient-start), 0.4);
}

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

.page-faq__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--color-gold), 0.2);
}

.page-faq__section {
    padding: 60px 0;
    background-color: var(--color-background);
}

.page-faq__overview-section {
    background-color: var(--color-deep-green);
}

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

.page-faq__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-faq__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.page-faq__text-block {
    flex: 1;
    min-width: 300px;
}

.page-faq__image-block {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-faq__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

.page-faq__sub-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: var(--color-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-faq p {
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-faq__faq-list-section {
    background-color: var(--color-background);
}

.page-faq__faq-accordion {
    margin-top: 30px;
}

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

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

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

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

.page-faq__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

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

.page-faq__faq-item[open] .page-faq__faq-toggle {
    content: '−';
}

.page-faq__faq-answer {
    padding: 20px 25px;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-faq__faq-answer img {
    margin-top: 20px;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce min-size */
    min-height: 200px; /* Enforce min-size */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        margin-top: -80px;
    }
    .page-faq__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }
    .page-faq__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
    .page-faq__sub-title {
        font-size: clamp(1.2em, 3vw, 1.8em);
    }
    .page-faq__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-faq__text-block, .page-faq__image-block {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-content {
        margin-top: -60px;
        padding: 20px 15px;
    }
    .page-faq__description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 300px !important; /* Limit max width for buttons on mobile */
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__section {
        padding: 40px 0;
    }
    .page-faq__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
    .page-faq__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
    }
    .page-faq__sub-title {
        font-size: clamp(1.1em, 4vw, 1.6em);
    }
    .page-faq p, .page-faq__faq-item summary {
        font-size: 0.95em;
    }

    /* Mobile image and video responsiveness */
    .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__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;
        overflow: hidden !important;
    }
    .page-faq__video-section {
        padding-top: 10px !important; /* body has --header-offset, this is for internal spacing */
    }
    .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-section {
        padding-top: 10px !important;
    }
    .page-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__faq-item summary {
        padding: 15px 20px;
    }
    .page-faq__faq-answer {
        padding: 15px 20px;
    }
}