/* style/faq.css */

/* --- General Styles & Reset --- */
.page-faq {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #F2FFF6); /* Default text color from palette */
    background-color: var(--background-color, #08160F); /* Background color from palette */
    min-height: 100vh;
}

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

/* --- Body background color check for text contrast --- */
/* Assuming --background-color is dark, use light text. If it were light, use dark text. */
/* #08160F is a very dark green, so light text is appropriate. */
.page-faq {
    color: var(--text-main-color);
}

/* --- Hero Section --- */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    background-color: var(--deep-green-color); /* Use deep green for hero background */
    overflow: hidden; /* Ensure no overflow */
    box-sizing: border-box;
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly transparent to allow text to stand out */
}

.page-faq__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-title {
    font-size: 2.5rem;
    color: var(--text-main-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

.page-faq__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: var(--text-main-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-faq__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
    transform: translateY(-2px);
}

.page-faq__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

/* --- Content Area --- */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-faq__section-title {
    font-size: 2rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.5);
}

.page-faq__section-intro {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* --- FAQ Section --- */
.page-faq__faq-section {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-faq__faq-category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 2px solid var(--divider-color);
    padding-bottom: 15px;
}

.page-faq__faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 15px;
}

.page-faq__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-faq__faq-item summary {
    list-style: none; /* Hide default marker for details tag */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main-color);
    transition: color 0.3s ease;
}

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

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

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

.page-faq__faq-toggle {
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.page-faq__faq-answer {
    padding: 10px 0 10px 20px;
    color: var(--text-secondary-color);
    font-size: 1rem;
}

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

.page-faq__faq-answer ul,
.page-faq__faq-answer ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

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

.page-faq__text-link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

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

/* --- Image Content --- */
.page-faq__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    object-fit: cover;
}

/* --- Divider --- */
.page-faq__divider {
    height: 1px;
    background-color: var(--divider-color);
    margin: 50px auto;
    max-width: 80%;
}

/* --- Conclusion Section --- */
.page-faq__conclusion-section {
    text-align: center;
    background-color: var(--deep-green-color);
    padding: 50px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.page-faq__conclusion-title {
    font-size: 2rem;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.5);
}

.page-faq__conclusion-text {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    max-width: 800px;
    margin: 0 auto 25px;
}

.page-faq__brand-promo {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--background-color);
    margin-top: 20px;
}

.page-faq__brand-promo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-color);
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.5);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-faq__hero-title {
        font-size: 2.2rem;
    }
    .page-faq__hero-description {
        font-size: 1rem;
    }
    .page-faq__section-title {
        font-size: 1.8rem;
    }
    .page-faq__faq-category-title {
        font-size: 1.6rem;
    }
    .page-faq__faq-item summary {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 10px 15px 40px;
    }
    .page-faq__hero-content {
        padding: 15px;
    }
    .page-faq__hero-title {
        font-size: 1.8rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__hero-description {
        font-size: 0.95rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-faq__cta-button,
    .page-faq__cta-button--large {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 1rem;
    }

    .page-faq__content-area {
        padding: 30px 15px;
    }

    .page-faq__section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .page-faq__section-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .page-faq__faq-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .page-faq__faq-category-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .page-faq__faq-item summary {
        font-size: 1rem;
        padding: 12px 0;
    }

    .page-faq__faq-answer {
        font-size: 0.95rem;
        padding-left: 10px;
    }

    /* Image responsiveness */
    .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,
    .page-faq__faq-section,
    .page-faq__conclusion-section,
    .page-faq__brand-promo {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure no video in this page, but if there was, apply these */
    .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;
    }

    /* Button responsiveness */
    .page-faq__cta-button,
    .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;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .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-wrap: wrap !important;
      gap: 10px;
    }
    .page-faq__cta-buttons {
      display: flex;
      flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-faq__hero-title {
        font-size: 1.5rem;
    }
    .page-faq__hero-description {
        font-size: 0.9rem;
    }
    .page-faq__cta-button {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .page-faq__section-title {
        font-size: 1.4rem;
    }
    .page-faq__faq-category-title {
        font-size: 1.2rem;
    }
    .page-faq__faq-item summary {
        font-size: 0.95rem;
    }
    .page-faq__faq-answer {
        font-size: 0.9rem;
    }
}