/* style/faq.css */
.page-faq {
    font-family: 'Arial', sans-serif;
    color: #F3F8FF; /* Main text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css var(--deep-navy-color) */
    line-height: 1.6;
}

.page-faq__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column; /* Image on top, then content */
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Adjust based on typical hero image width */
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
}

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

.page-faq__hero-content {
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 40px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-faq__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
    font-weight: 700;
    color: #F3F8FF;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-faq__description {
    font-size: 1.1rem;
    color: #AFC4E8; /* Secondary text color */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-faq__cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-faq__btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    width: auto; /* Default width */
}

.page-faq__btn--primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-faq__btn--primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-faq__btn--secondary {
    background-color: transparent;
    color: #F3F8FF;
    border: 2px solid #1D5FD1; /* Auxiliary color for border */
}

.page-faq__btn--secondary:hover {
    background-color: rgba(29, 95, 209, 0.1); /* Subtle hover effect */
    border-color: #2B73F6;
    transform: translateY(-2px);
}

.page-faq__btn--inline {
    display: inline-flex; /* Use inline-flex for smaller buttons within text */
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 10px;
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
}

.page-faq__btn--inline:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-1px);
}

.page-faq__faq-section {
    padding: 60px 0;
    background-color: #08162B; /* Deep Navy background from custom colors */
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-faq__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

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

.page-faq__section-description {
    font-size: 1rem;
    color: #AFC4E8;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

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

.page-faq__faq-item {
    background-color: #10233F; /* Card BG from custom colors */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #244D84; /* Border color from custom colors */
    color: #F3F8FF;
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    color: #F3F8FF;
    background-color: #10233F;
    position: relative;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

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

.page-faq__faq-item[open] > .page-faq__faq-question {
    background-color: #113B7A; /* Darker background when open */
    border-bottom: 1px solid #244D84;
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #4FA8FF; /* Glow color for toggle */
    transition: transform 0.3s ease;
}

.page-faq__faq-item:not([open]) .page-faq__faq-toggle::before {
    content: '+';
}
.page-faq__faq-item[open] .page-faq__faq-toggle::before {
    content: 'x';
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #AFC4E8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 2000px; /* Large enough to accommodate content */
    padding-top: 15px;
}

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

.page-faq__faq-answer ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #AFC4E8;
}

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

.page-faq__faq-answer strong {
    color: #F3F8FF;
}

.page-faq__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 8px;
    object-fit: cover;
}

.page-faq__contact-promo {
    padding: 60px 0;
    background-color: #08162B; /* Deep Navy background */
    text-align: center;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-faq__contact-content {
    background-color: #10233F; /* Card BG */
    border: 1px solid #244D84; /* Border color */
    border-radius: 10px;
    padding: 40px 30px;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-faq__contact-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #F3F8FF;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-faq__contact-description {
    font-size: 1rem;
    color: #AFC4E8;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        margin-bottom: 30px;
    }

    .page-faq__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-faq__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }

    .page-faq__description {
        font-size: 1rem;
    }

    .page-faq__btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .page-faq__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.3rem);
    }

    .page-faq__faq-question {
        font-size: 1.1rem;
        padding: 18px 22px;
    }

    .page-faq__faq-answer {
        font-size: 0.95rem;
        padding-left: 22px;
        padding-right: 22px;
    }

    .page-faq__contact-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }

    .page-faq__contact-content {
        padding: 30px 25px;
    }
}


@media (max-width: 768px) {
    /* 1. Top section title + CTA */
    .page-faq__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 30px;
    }

    .page-faq__hero-content {
        margin-bottom: 20px;
        padding: 0 15px; /* Add padding for small screens */
    }

    .page-faq__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem); /* Adjust H1 for smaller screens */
        margin-bottom: 15px;
    }

    .page-faq__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* 4. Buttons and button containers */
    .page-faq__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px; /* Add padding for button container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__btn,
    .page-faq__btn--primary,
    .page-faq__btn--secondary,
    .page-faq a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px; /* Adjust padding for mobile buttons */
        font-size: 0.9rem;
    }

    .page-faq__btn--inline {
        width: auto !important; /* Inline buttons can stay auto width */
        max-width: 100% !important;
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    /* 2. Single column long text container */
    .page-faq__faq-section,
    .page-faq__contact-promo {
        padding: 40px 0;
    }

    .page-faq__container {
        padding: 0 15px; /* Add padding for content container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 15px;
    }

    .page-faq__section-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    /* 5. FAQ block */
    .page-faq__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-faq__faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 15px 20px;
    }

    .page-faq__faq-answer p,
    .page-faq__faq-answer li {
        font-size: 0.9rem;
    }

    /* 3. General images and figures */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-faq__hero-image-wrapper {
        padding: 0 15px; /* Ensure hero image wrapper has padding */
        box-sizing: border-box;
    }

    .page-faq__contact-content {
        padding: 30px 20px;
    }

    .page-faq__contact-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .page-faq__contact-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}