.faq-section {
    position: relative;
    min-height: 100vh;
}

/* Fix background overlap */
.faq-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Keeps it strictly behind */
    overflow: hidden;
}

.faq-inner {
    position: relative;
    z-index: 2; /* Ensures text is always on top */
}

.faq-wrapper {
    max-width: 850px;
    margin: 40px auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
}

/* Updated Icon Animation */
.faq-question i {
    display: inline-block; /* REQUIRED for transform to work */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    color: #0e171e;
    pointer-events: none; /* Prevents icon from stealing the click */
}

.faq-item.active {
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Target the icon specifically when the parent .faq-item is active */
.faq-item.active .faq-question i {
    transform: rotate(45deg); 
    color: #3498db;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.answer-inner {
    padding: 25px 0;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}