/* ========================================
   FAQ PAGE STYLES
   Heritage Life Solutions
   ======================================== */

/* ========================================
   HERO SECTION
   ======================================== */
.faq-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.faq-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 58, 95, 0.85) 0%, rgba(30, 58, 95, 0.6) 50%, rgba(30, 58, 95, 0.4) 100%);
    z-index: 1;
}

.faq-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.faq-hero-content {
    max-width: 600px;
    text-align: left;
}

.faq-hero-title {
    font-family: var(--font-family);
    font-size: var(--h1-size);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.faq-hero-subtitle {
    font-family: var(--font-family);
    font-size: var(--h3-size);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    padding: 4rem 0;
    background: var(--color-white);
}

/* Category Blocks */
.faq-category {
    margin-bottom: 3rem;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-family: var(--font-family);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-primary);
}

/* Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: var(--button-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--color-light-grey);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-navy);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e8e8e8;
}

.faq-question[aria-expanded="true"] {
    background: var(--color-navy);
    color: var(--color-white);
}

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: var(--color-white);
}

.faq-answer.open {
    max-height: 500px;
    padding: 1.5rem;
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

/* ========================================
   CTA SECTION
   ======================================== */
.faq-cta-section {
    padding: 4rem 0;
    background: var(--color-primary);
    text-align: center;
}

.faq-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-cta-title {
    font-family: var(--font-family);
    font-size: var(--h2-size);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.faq-cta-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }

    .faq-category-title {
        font-size: 1.5rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .faq-answer.open {
        padding: 1.25rem;
    }

    .faq-cta-section {
        padding: 3rem 0;
    }
}
