/* style/faq.css */
/* Body padding-top is handled by shared.css var(--header-offset) */

:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B; /* This is the body background from shared.css */
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-faq {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text for dark body background */
    background-color: var(--deep-navy); /* Ensure consistency, though body handles it */
}

.page-faq__hero-section {
    width: 100%;
    display: flex;
    flex-direction: column; /* Stacks image and content vertically */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    background-color: var(--primary-color); /* Fallback/background for the section */
}

.page-faq__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-faq__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: var(--primary-color); /* Use a solid background for text */
    margin-top: -5px; /* Slightly overlap with image for design, but text is not *on* image */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top: 5px solid var(--gold-color); /* Visual separation */
}

.page-faq__main-title {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--gold-color); /* Gold color for main title */
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* For better readability on dark background */
}

.page-faq__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary); /* Secondary text color */
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-faq__btn-primary,
.page-faq__btn-secondary,
.page-faq__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping by default */
    box-sizing: border-box;
    min-width: 150px;
}

.page-faq__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text on dark button */
    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%); /* Inverted gradient for hover */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-faq__btn-secondary {
    background-color: transparent;
    color: var(--gold-color); /* Gold text on transparent button */
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--primary-color); /* Dark text on gold hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.page-faq__btn-text {
    background-color: transparent;
    color: var(--gold-color);
    border: none;
    padding: 5px 10px;
    text-decoration: underline;
    font-weight: normal;
    font-size: 0.95rem;
}

.page-faq__btn-text:hover {
    color: var(--glow-color);
}


.page-faq__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--deep-navy); /* Dark background for this section */
    color: var(--text-main); /* Light text */
}

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

.page-faq__section-description {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

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

.page-faq__faq-item {
    background-color: var(--card-bg); /* Darker card background */
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-faq__faq-item.active {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-faq__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-faq__faq-item[open] .page-faq__faq-question {
    border-bottom-color: var(--divider-color);
    background-color: var(--primary-color); /* Slightly different color when open */
}

.page-faq__faq-question:hover {
    background-color: var(--primary-color); /* Hover effect */
}

.page-faq__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-faq__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
    background-color: var(--card-bg); /* Ensure background for content */
}

.page-faq__faq-item[open] .page-faq__faq-answer {
    max-height: 500px; /* Adjust as needed for content, use a large enough value */
    padding-top: 20px;
}

.page-faq__faq-answer p {
    margin-bottom: 15px;
    color: var(--text-secondary); /* Explicitly set for paragraphs */
}

.page-faq__cta-banner {
    background: var(--primary-color); /* Use primary color for banner background */
    padding: 80px 20px;
    text-align: center;
    color: var(--text-main);
}

.page-faq__cta-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-faq__cta-banner-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.page-faq__cta-banner-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* --- Responsive styles --- */
@media (max-width: 1024px) {
    .page-faq__hero-content {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .page-faq__hero-section {
        padding-bottom: 40px;
    }

    .page-faq__hero-content {
        padding: 20px 15px;
        margin-top: -10px; /* Adjust overlap */
    }

    .page-faq__main-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .page-faq__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-faq__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to container */
    }

    .page-faq__btn-primary,
    .page-faq__btn-secondary,
    .page-faq a[class*="button"],
    .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 20px;
    }

    .page-faq__content-area {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-faq__section-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

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

    .page-faq__faq-question {
        font-size: 1rem;
        padding: 18px 20px;
    }

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

    .page-faq__cta-banner {
        padding: 60px 15px;
    }

    .page-faq__cta-banner-title {
        font-size: 2rem;
    }

    .page-faq__cta-banner-description {
        font-size: 1rem;
    }

    /* Mobile image responsiveness */
    .page-faq img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of container */
        height: auto !important;
        display: block !important;
    }
    
    .page-faq__hero-image-wrapper,
    .page-faq__content-area,
    .page-faq__cta-banner-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Specific padding for sections to prevent overflow */
    .page-faq__hero-section,
    .page-faq__cta-banner {
        padding-left: 0;
        padding-right: 0;
    }

    /* Video section top padding (if any) */
    .page-faq__video-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }
}

/* Ensure all images are responsive and not tiny */
.page-faq img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Contrast fixes based on body background --deep-navy */
.page-faq {
    color: var(--text-main); /* #F3F8FF for text main */
}

.page-faq p,
.page-faq li {
    color: var(--text-secondary); /* #AFC4E8 for secondary text */
}

.page-faq__card, /* Using this for faq-item */
.page-faq__faq-item {
    background: var(--card-bg); /* #10233F */
    color: var(--text-main); /* #F3F8FF */
}

.page-faq__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* #F3F8FF */
}

.page-faq__btn-secondary {
    background: transparent;
    color: var(--gold-color); /* #F2C14E */
    border-color: var(--gold-color);
}