/* style/resources-hl8-faq.css */

/* Base Styles */
.page-resources-hl8-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default body background is white */
}

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

.page-resources-hl8-faq__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-resources-hl8-faq__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-resources-hl8-faq__inline-link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: bold;
}

.page-resources-hl8-faq__inline-link:hover {
    color: #EA7C07; /* Login color for hover */
    text-decoration: none;
}

.page-resources-hl8-faq__highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* Buttons */
.page-resources-hl8-faq__btn-primary,
.page-resources-hl8-faq__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-resources-hl8-faq__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid transparent;
}

.page-resources-hl8-faq__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
}

.page-resources-hl8-faq__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources-hl8-faq__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a8cc7;
    border-color: #1a8cc7;
}

/* Hero Section */
.page-resources-hl8-faq__hero-section {
    position: relative;
    background-color: #26A9E0; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources-hl8-faq__hero-section .page-resources-hl8-faq__container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.page-resources-hl8-faq__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-resources-hl8-faq__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #f0f0f0;
}

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

.page-resources-hl8-faq__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

/* Video Section */
.page-resources-hl8-faq__video-section {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.page-resources-hl8-faq__video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-hl8-faq__video {
    display: block;
    width: 100%;
    height: auto;
}

.page-resources-hl8-faq__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ensure link is clickable over video */
    cursor: pointer;
}

/* Intro Section, Guide Section, Advice Section, CTA Section */
.page-resources-hl8-faq__intro-section,
.page-resources-hl8-faq__guide-section,
.page-resources-hl8-faq__advice-section,
.page-resources-hl8-faq__cta-section {
    padding: 60px 0;
}

.page-resources-hl8-faq__intro-section,
.page-resources-hl8-faq__guide-section,
.page-resources-hl8-faq__advice-section {
    background-color: #f9f9f9; /* Light background for content */
    color: #333333;
}

.page-resources-hl8-faq__cta-section {
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff; /* Light text */
    text-align: center;
}

.page-resources-hl8-faq__cta-section .page-resources-hl8-faq__section-title,
.page-resources-hl8-faq__cta-section .page-resources-hl8-faq__section-description {
    color: #ffffff;
}

.page-resources-hl8-faq__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Guide Section Grid */
.page-resources-hl8-faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-hl8-faq__guide-step {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.page-resources-hl8-faq__step-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-hl8-faq__guide-step p {
    flex-grow: 1; /* Ensure paragraphs take available space */
    margin-bottom: 15px;
}

.page-resources-hl8-faq__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    display: block; /* Ensure no extra space below image */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-resources-hl8-faq__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-resources-hl8-faq__faq-section {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 60px 0;
}

.page-resources-hl8-faq__faq-section .page-resources-hl8-faq__section-title,
.page-resources-hl8-faq__faq-section .page-resources-hl8-faq__section-description {
    color: #ffffff;
}

.page-resources-hl8-faq__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-resources-hl8-faq__faq-item {
    background-color: #ffffff;
    color: #333333;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.page-resources-hl8-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* For details/summary */
}

/* Remove default marker for details/summary */
.page-resources-hl8-faq__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-resources-hl8-faq__faq-item summary::marker {
    display: none;
}

.page-resources-hl8-faq__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-resources-hl8-faq__faq-item[open] .page-resources-hl8-faq__faq-toggle {
    content: "−";
}

.page-resources-hl8-faq__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}

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

.page-resources-hl8-faq__faq-answer .page-resources-hl8-faq__btn-secondary {
    margin-top: 15px;
}

.page-resources-hl8-faq__faq-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* Advice Section List */
.page-resources-hl8-faq__advice-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-resources-hl8-faq__advice-list li {
    background-color: #ffffff;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    line-height: 1.7;
}

.page-resources-hl8-faq__list-highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-hl8-faq__hero-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .page-resources-hl8-faq__hero-section {
        padding: 60px 0;
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile */
    }

    .page-resources-hl8-faq__hero-title {
        font-size: 2.2em;
    }

    .page-resources-hl8-faq__hero-description {
        font-size: 1.1em;
    }

    .page-resources-hl8-faq__section-title {
        font-size: 1.8em;
    }

    .page-resources-hl8-faq__section-description {
        font-size: 1em;
    }

    .page-resources-hl8-faq__container {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-resources-hl8-faq img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure width is 100% for all images */
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness */
    .page-resources-hl8-faq video,
    .page-resources-hl8-faq__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-hl8-faq__video-section,
    .page-resources-hl8-faq__video-container,
    .page-resources-hl8-faq__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Button responsiveness */
    .page-resources-hl8-faq__btn-primary,
    .page-resources-hl8-faq__btn-secondary,
    .page-resources-hl8-faq a[class*="button"],
    .page-resources-hl8-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Ensure buttons take full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding to prevent text touching edges */
        padding-right: 15px;
    }

    .page-resources-hl8-faq__hero-cta,
    .page-resources-hl8-faq__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-hl8-faq__guide-step {
        padding: 20px;
    }

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

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

    .page-resources-hl8-faq__advice-list li {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-hl8-faq__hero-title {
        font-size: 1.8em;
    }

    .page-resources-hl8-faq__hero-description {
        font-size: 0.95em;
    }

    .page-resources-hl8-faq__section-title {
        font-size: 1.5em;
    }

    .page-resources-hl8-faq__faq-question {
        font-size: 1em;
    }
}