/* CSS Variables for easy theme customization */
:root {
    --primary-blue: #5a67d8;
    --light-gray-bg: #f7f8fc;
    --border-color: #e5e7eb;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --white: #ffffff;
    --shadow-color: rgba(90, 103, 216, 0.2);
}

/* Main FAQ Section Container */
.faq-section {
    width: 100%;
    max-width: 70vw;
    margin: 4rem auto;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

/* FAQ Title */
.faq-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-dark);
}

.faq-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 5px;
    background-color: var(--primary-blue);
    border-radius: 3px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
}

/* Container for all FAQ items */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual FAQ Item */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px var(--shadow-color);
}

/* FAQ Question Button */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    gap: 1rem;
}

.faq-item.active .faq-question {
    color: var(--primary-blue);
}

/* NEW: Icon Container and Icons */
.icon-container {
    flex-shrink: 0;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.faq-item.active .icon-container {
    color: var(--primary-blue);
}

.icon-checked {
    display: none;
}

.faq-item.active .icon-checked {
    display: block;
}

.faq-item.active .icon-unchecked {
    display: none;
}

/* FAQ Answer Wrapper for Smooth Animation */
.faq-answer-content {
    display: grid;
    grid-template-rows: 0fr; /* Initially collapsed */
    transition: grid-template-rows 0.4s ease-in-out;
}

.faq-item.active .faq-answer-content {
    grid-template-rows: 1fr; /* Expanded state */
}

.faq-answer {
    overflow: hidden;
}

.faq-answer p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* "See all FAQs" Button */
.see-all-btn {
    display: block;
    margin: 3rem auto 0;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-blue);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}