/* style/faq.css */

/* Variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --button-login: #EA7C07;
    --bg-color-main: #FFFFFF; /* Assuming body background is light from shared.css */
}

.page-faq {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--bg-color-main);
}

/* Hero Section */
.page-faq__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--primary-color); /* Hero background can be brand color */
    color: var(--text-light); /* White text on primary color background */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image container */
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-faq__hero-content {
    max-width: 800px;
    margin-top: 20px;
}

.page-faq__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-light); /* White text on primary color background */
}

.page-faq__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-light); /* White text on primary color background */
}

/* Video Section */
.page-faq__video-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background-color: var(--bg-color-main); /* Light background for video section */
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-faq__video-container {
    width: 100%; /* Important for desktop as well */
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    background-color: #000; /* Black background for video area */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__video-link {
    display: block; /* Ensure link covers video */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-faq__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-faq__video-caption {
    margin-top: 20px;
    font-size: 0.95em;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
}

/* Content Area */
.page-faq__content-area {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--bg-color-main);
    color: var(--text-dark);
}

.page-faq__section-title {
    font-size: 2.2em;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-faq__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-faq__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-faq__faq-question:hover {
    background-color: #f0f8ff;
}

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

.page-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    font-weight: 300;
    color: var(--primary-color);
}

.page-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-dark);
    background-color: var(--secondary-color);
}

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

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

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

.page-faq__image-content {
    width: 100%;
    height: auto;
    display: block;
    max-width: 600px; /* Example max-width for content images */
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* CTA Section */
.page-faq__cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
}

.page-faq__cta-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-faq__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%;
}

.page-faq__btn-primary {
    background-color: var(--button-login); /* Login button color */
    color: var(--text-light);
    border: 2px solid var(--button-login);
}

.page-faq__btn-primary:hover {
    background-color: #d16b06; /* Manually darkened */
    border-color: #d16b06;
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--text-light); /* White text on primary CTA section */
    border: 2px solid var(--text-light); /* White border */
}

/* Adjust secondary button color for light backgrounds */
.page-faq__faq-answer .page-faq__btn-secondary {
    color: var(--primary-color); /* Blue text on white background */
    border-color: var(--primary-color);
}

.page-faq__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-faq__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-faq__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-faq__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important;
        margin-bottom: 15px;
    }

    .page-faq__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-faq__video-section {
        padding: 20px 15px;
        padding-top: 10px !important;
    }

    .page-faq__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    .page-faq__video-link,
    .page-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-faq__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-faq__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-faq__faq-answer {
        padding: 15px 20px;
    }

    .page-faq__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-faq__cta-section {
        padding: 40px 15px;
    }

    .page-faq__cta-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-faq__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center; /* Center button text */
    }
}