/* style/faq.css */

/* Variables and base styles for the page */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --accent-color: #EA7C07; /* For login, if used */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.page-faq {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Assuming body background is light */
}

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

.page-faq__hero-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

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

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

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Using clamp for responsive H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-faq__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

/* CTA Buttons */
.page-faq__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden;
}

.page-faq__btn-primary,
.page-faq__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons take full width if needed */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

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

.page-faq__btn-primary:hover {
    background-color: #d16b06; /* Darkened version of #EA7C07 */
    border-color: #d16b06;
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
}

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

/* Main Content Area */
.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--secondary-color); /* Light background */
    color: var(--text-color-dark); /* Dark text for light background */
}

.page-faq__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.page-faq__text-block {
    font-size: 1.05rem;
    margin-bottom: 25px;
    text-align: justify;
}

.page-faq__image-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.page-faq__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* FAQ List */
.page-faq__faq-list {
    margin-top: 40px;
}

.page-faq__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
}

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

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

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

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

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

/* For details tag, the content is shown when 'open' */
.page-faq__faq-item[open] .page-faq__faq-question {
    border-bottom: 1px solid var(--border-color);
    background-color: #f0f0f0;
}

.page-faq__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-color-dark);
    text-align: justify;
}

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

.page-faq__faq-answer ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

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

.page-faq__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

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

/* CTA Section within content area */
.page-faq__cta-section {
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
    background-color: #f0f8ff; /* Light blue background */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-color-dark);
}

.page-faq__cta-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-faq__cta-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-section .page-faq__btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-faq__cta-section .page-faq__btn-primary:hover {
    background-color: #208cb9; /* Darkened version of #26A9E0 */
    border-color: #208cb9;
}

.page-faq__cta-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Security Info Section */
.page-faq__security-info {
    padding: 80px 20px;
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-color-light); /* Light text */
    text-align: center;
}

.page-faq__security-info .page-faq__section-title {
    color: var(--text-color-light);
    margin-bottom: 50px;
}

.page-faq__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.page-faq__security-text {
    flex: 1 1 500px; /* Allows flexibility and minimum width */
    text-align: left;
    font-size: 1.05rem;
}

.page-faq__security-text p {
    margin-bottom: 20px;
}

.page-faq__security-image-wrapper {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-faq__security-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page-faq__security-info .page-faq__btn-secondary {
    background-color: var(--text-color-light);
    color: var(--primary-color);
    border-color: var(--text-color-light);
    margin-top: 20px;
}

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


/* Responsive styles */
@media (max-width: 1024px) {
    .page-faq__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-faq__content-area {
        padding: 40px 15px;
    }
    .page-faq__security-info {
        padding: 60px 15px;
    }
    .page-faq__security-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-faq__security-text,
    .page-faq__security-image-wrapper {
        flex: 1 1 auto;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-faq {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-faq__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-faq__description {
        font-size: 1rem;
    }
    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-faq__btn-primary,
    .page-faq__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-faq__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 25px;
    }
    .page-faq__text-block {
        font-size: 0.95rem;
    }
    .page-faq__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-faq__faq-answer {
        font-size: 0.95rem;
        padding: 15px;
    }
    .page-faq__cta-section {
        padding: 40px 15px;
    }
    .page-faq__cta-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-faq__cta-text {
        font-size: 1rem;
    }
    .page-faq__security-info {
        padding: 40px 15px;
    }

    /* Mobile image adaptation */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important; /* Explicitly set for mobile */
        height: auto !important;
        display: block !important;
    }
    .page-faq__hero-section,
    .page-faq__content-area,
    .page-faq__security-info,
    .page-faq__cta-section,
    .page-faq__image-wrapper,
    .page-faq__security-image-wrapper,
    .page-faq__faq-item,
    .page-faq__faq-list,
    .page-faq__security-content,
    .page-faq__hero-image-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    /* Specific adjustment for hero section padding-top on mobile if needed */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Ensure it's not overridden by larger values */
    }
}