/* ==========================================================================
   Unified FAQ Section Styles - Matching About Page Design
   Based on about-page.css FAQ styling
   ========================================================================== */

/* FAQ Section Container */
.faq-section,
section#faq,
.about-faq {
    padding: 6rem 1rem;
    background-color: #f9fafb;
}

.faq-section .container,
section#faq .container,
.about-faq .container,
section#faq .container-md,
.faq-section .container-md {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Headline */
.faq-section h2,
section#faq h2,
.about-faq__headline,
.section-title-center {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

/* FAQ Subtitle */
.faq-section .section-subtitle-center,
section#faq .section-subtitle-center {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* FAQ Accordion Container */
.faq-accordion,
.about-faq__accordion {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* FAQ Item (details element) */
.faq-item,
.about-faq__item {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background-color: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover,
.about-faq__item:hover {
    border-color: #d1fe17;
}

/* FAQ Question (summary element) */
.faq-question,
.about-faq__question {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    list-style: none;
    color: #111827;
    transition: background-color 0.2s ease;
}

.faq-question:hover,
.about-faq__question:hover {
    background-color: #f9fafb;
}

/* Remove default summary marker */
.faq-question::-webkit-details-marker,
.about-faq__question::-webkit-details-marker {
    display: none;
}

/* FAQ Question Text */
.faq-question span:first-child,
.about-faq__question span:first-child {
    flex: 1;
    text-align: left;
    padding-right: 1rem;
}

/* FAQ Icon */
.faq-icon,
.about-faq__icon {
    font-size: 1.5rem;
    color: #9ca3af;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Icon rotation when open */
.faq-item[open] > .faq-question .faq-icon,
.about-faq__item[open] > .about-faq__question .about-faq__icon {
    transform: rotate(45deg);
    color: #111827;
}

/* FAQ Answer */
.faq-answer,
.about-faq__answer {
    padding: 0 1.5rem 1.5rem;
    color: #4b5563;
    line-height: 1.6;
}

.faq-answer p,
.about-faq__answer p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN - Tablet (768px - 1024px)
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .faq-section,
    section#faq,
    .about-faq {
        padding: 5rem 1rem;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN - Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .faq-section,
    section#faq,
    .about-faq {
        padding: 3rem 1rem;
    }

    .faq-section h2,
    section#faq h2,
    .about-faq__headline,
    .section-title-center {
        font-size: clamp(1.375rem, 4vw, 2.25rem);
    }

    .faq-section .section-subtitle-center,
    section#faq .section-subtitle-center {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .faq-accordion,
    .about-faq__accordion {
        margin-top: 2rem;
    }

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

    .faq-answer,
    .about-faq__answer {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9375rem;
    }

    .faq-icon,
    .about-faq__icon {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN - Extra Small Mobile (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .faq-section,
    section#faq,
    .about-faq {
        padding: 2.5rem 1rem;
    }

    .faq-section h2,
    section#faq h2,
    .about-faq__headline,
    .section-title-center {
        font-size: clamp(1.25rem, 4vw, 2rem);
    }

    .faq-section .section-subtitle-center,
    section#faq .section-subtitle-center {
        font-size: 0.9375rem;
    }

    .faq-question,
    .about-faq__question {
        font-size: 0.9375rem;
        padding: 1.125rem;
    }

    .faq-answer,
    .about-faq__answer {
        padding: 0 1.125rem 1.125rem;
        font-size: 0.875rem;
    }
}

