/* style/faq.css */

.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Use shared body background */
}

.page-faq__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    background: linear-gradient(135deg, #017439, #005a2e);
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 500px;
}

.page-faq__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.page-faq__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-faq__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-faq__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.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: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-faq__btn-primary {
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Register/Login font yellow */
    border: 2px solid #C30808;
}

.page-faq__btn-primary:hover {
    background-color: #e01a1a;
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-faq__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.page-faq__faq-list-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Dark background for FAQ section */
    color: #ffffff;
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-faq__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-faq__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #cccccc;
}

.page-faq__faq-group {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.page-faq__faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #2a2a2a;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-faq__faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: #ffffff;
    font-weight: normal;
}

.page-faq__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-question {
    background-color: #017439;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
    color: #ffffff;
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #1f1f1f;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 20px 25px;
}

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

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

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

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

.page-faq__link-inline {
    color: #017439;
    text-decoration: underline;
}

.page-faq__link-inline:hover {
    color: #00a050;
    text-decoration: none;
}

.page-faq__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-faq__contact-promo {
    background-color: #017439;
    padding: 50px;
    text-align: center;
    border-radius: 10px;
    margin-top: 60px;
}

.page-faq__contact-promo-title {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-faq__contact-promo-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.5em;
    }
    .page-faq__hero-description {
        font-size: 1.1em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__faq-question h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-faq__main-title {
        font-size: 2em;
    }
    .page-faq__hero-description {
        font-size: 1em;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-faq__faq-list-section {
        padding: 40px 0;
    }
    .page-faq__container {
        padding: 0 15px;
    }
    .page-faq__section-title {
        font-size: 1.8em;
    }
    .page-faq__section-description {
        font-size: 0.95em;
    }
    .page-faq__faq-question {
        padding: 15px 20px;
    }
    .page-faq__faq-question h3 {
        font-size: 1.1em;
    }
    .page-faq__faq-toggle {
        font-size: 1.5em;
    }
    .page-faq__faq-answer {
        padding: 0 20px;
    }
    .page-faq__faq-item.active .page-faq__faq-answer {
        padding: 15px 20px;
    }
    .page-faq__faq-answer p,
    .page-faq__faq-answer li {
        font-size: 0.95em;
    }
    .page-faq__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-faq__contact-promo {
        padding: 30px 20px;
    }
    .page-faq__contact-promo-title {
        font-size: 1.5em;
    }
    .page-faq__contact-promo-description {
        font-size: 0.95em;
    }

    /* Ensure content containers don't overflow */
    .page-faq__section, .page-faq__card, .page-faq__container, .page-faq__contact-promo {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-faq__hero-content {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-faq__main-title {
        font-size: 1.8em;
    }
    .page-faq__section-title {
        font-size: 1.6em;
    }
    .page-faq__faq-question h3 {
        font-size: 1em;
    }
    .page-faq__contact-promo-title {
        font-size: 1.3em;
    }
}