/* 1. Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    padding: 80px 20px;
    color: #333;
}

/* 2. FAQ Wrapper (Mobile Responsive Container) */
.faq-wrapper {
    background-color: #ffffff;
    width: 100%;
    max-width: 600px; /* Keeps it readable on large screens */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.faq-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #1a1a1a;
}

/* 3. Individual FAQ Items */
.faq-item {
    border-bottom: 1px solid #eee;
}

/* Removes the border from the very last item for a cleaner look */
.faq-item:last-child {
    border-bottom: none;
}

/* 4. The Question Button */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #007bff;
}

/* The Plus Icon */
.icon {
    font-size: 24px;
    font-weight: 400;
    transition: transform 0.3s ease; /* Required for smooth animation */
}

/* 5. The Answer Section (Hidden by default) */
.faq-answer {
    max-height: 0; /* Shrinks the box to 0 height */
    overflow: hidden; /* Hides the text that spills out of the 0-height box */
    transition: max-height 0.4s ease; /* Required CSS transition for smooth animation */
}

.faq-answer p {
    padding-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

/* 6. Active States (Toggled by JavaScript later) */
.faq-item.active .faq-question {
    color: #007bff;
}

/* Rotates the "+" 45 degrees to make it look like an "x" */
.faq-item.active .icon {
    transform: rotate(45deg); 
}