/* style/faq.css */

.page-faq {
    color: #ffffff; /* Text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-faq__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #26A9E0, #1a7fb2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.page-faq__hero-content {
    max-width: 600px;
    padding: 0 20px;
    text-align: left;
}

.page-faq__hero-title {
    font-size: 2.8em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-faq__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

.page-faq__hero-image-wrapper {
    flex-shrink: 0;
    width: 500px;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-faq__accordion-section {
    padding: 60px 20px;
    background-color: #1a1a1a;
}

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

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

.page-faq__section-description {
    font-size: 1.1em;
    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);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.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.15);
    transition: background-color 0.3s ease;
}

.page-faq__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.3);
}

.page-faq__faq-question h3 {
    font-size: 1.25em;
    color: #FFFFFF;
    margin: 0;
}

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

.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;
    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 to contain content */
    padding: 15px 25px 20px;
}

.page-faq__faq-answer p {
    color: #e0e0e0;
    font-size: 1em;
    margin: 0;
}

.page-faq__cta-bottom-section {
    padding: 80px 20px;
    background-color: #26A9E0;
    text-align: center;
}

.page-faq__cta-bottom-section .page-faq__container {
    max-width: 800px;
}

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

.page-faq__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-faq__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-faq__btn-primary {
    background-color: #EA7C07; /* Orange for 'Login' */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

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

.page-faq__btn-secondary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-faq__hero-section {
        flex-direction: column;
        text-align: center;
    }

    .page-faq__hero-content {
        text-align: center;
        max-width: 100%;
    }

    .page-faq__hero-cta-buttons {
        justify-content: center;
    }

    .page-faq__hero-image-wrapper {
        width: 80%;
        height: auto;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-faq__hero-title {
        font-size: 2em;
    }

    .page-faq__hero-description,
    .page-faq__section-description,
    .page-faq__cta-description {
        font-size: 1em;
    }

    .page-faq__section-title {
        font-size: 2em;
    }

    .page-faq__faq-question h3 {
        font-size: 1.1em;
    }

    .page-faq__hero-cta-buttons,
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
    }

    /* Images responsive */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-faq__hero-image-wrapper {
        width: 90%;
        height: auto;
    }
    
    .page-faq__container,
    .page-faq__hero-content,
    .page-faq__accordion-section,
    .page-faq__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

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