/* style/faq.css */

/* Base styles for page content, ensuring color contrast for dark body background */
.page-faq {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css var(--dark-bg-1) */
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    padding: 100px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px; /* Ensure hero section has a minimum height */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Use brand primary color for hero background */
}

.page-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly dim the background image for text readability */
}

.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;
}

.page-faq__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF; /* White for main title */
    line-height: 1.2;
}

.page-faq__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for intro text */
}

/* CTA Buttons in Hero */
.page-faq__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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.05em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button does not exceed container width */
}

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

.page-faq__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #ffffff;
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* White text */
    border: 2px solid #FFFFFF;
}

.page-faq__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color for hover text */
    border-color: #FFFFFF;
}

/* FAQ Section */
.page-faq__faq-section {
    padding: 60px 20px;
    background-color: #1a1a1a; /* Dark background for FAQ section, contrasting with hero */
    color: #ffffff;
}

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

.page-faq__section-title {
    font-size: 2.2em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
}

.page-faq__section-description {
    font-size: 1.05em;
    color: #cccccc;
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Even lighter for question header */
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-faq__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFFFFF;
    line-height: 1.4;
}

.page-faq__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439; /* Brand primary color for toggle icon */
    transition: transform 0.3s ease;
}

.page-faq__faq-item.active .page-faq__faq-toggle {
    transform: rotate(45deg);
    color: #C30808; /* Red when active */
}

.page-faq__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding for collapse/expand */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-faq__faq-item.active .page-faq__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px 25px; /* Padding when expanded */
}

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

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

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

.page-faq__faq-answer a {
    color: #017439; /* Brand primary for links */
    text-decoration: underline;
}

.page-faq__faq-answer a:hover {
    color: #C30808; /* Red for link hover */
}

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contact CTA Section */
.page-faq__contact-cta {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439; /* Brand primary color for CTA background */
    color: #FFFFFF;
}

.page-faq__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* General Link styling for the page */
.page-faq a {
    color: #017439;
    text-decoration: none;
}

.page-faq a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: 2.5em;
    }
    .page-faq__section-title {
        font-size: 2em;
    }
    .page-faq__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding: 80px 15px 60px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-faq__hero-content {
        padding: 15px;
    }
    .page-faq__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-faq__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-faq__faq-section {
        padding: 40px 15px;
    }
    .page-faq__container {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-faq__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .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 20px;
    }

    /* Image responsive rules for content area */
    .page-faq img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-faq__faq-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsive rules (if any, though none currently in HTML) */
    .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__contact-cta {
        padding: 60px 15px;
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
    .page-faq__cta-description {
        font-size: 1em;
    }
}

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

/* Ensure content images are not small */
.page-faq img:not(.page-faq__hero-image) {
    min-width: 200px;
    min-height: 200px;
}
.page-faq__faq-image {
    min-width: 200px;
    min-height: 200px;
}