/* Container Layout */
.faq-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.faq-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* FAQ Item Styling */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

/* Question (Button) Styling */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #007bff; /* Blue hover color */
}

/* Icon Animation */
.faq-question .icon {
    transition: transform 0.3s ease;
}

/* This class is added by JS when open */
.faq-question.active .icon {
    transform: rotate(180deg);
}

.faq-question.active {
    color: #007bff;
}

/* Answer Styling (Hidden by default) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}

/* Content padding - kept separate to prevent animation jerkiness */
.answer-content {
    padding-bottom: 20px;
    color: #666;
    line-height: 1.6;
}