.faq--section {
    padding: 6rem 5vw;
    background-color: var(--bg--color);
    color: var(--white);
}

.faq--header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq--header h2 {
    font-size: clamp(5rem, 6vw, 6rem);
    color: var(--white);
    font-weight: 500;
    margin-bottom: 1rem;
}

.faq--header p {
    font-size: 1.5rem;
    color: var(--subtext--color);
    opacity: 0.8;
    max-width: 800px;
    margin: 1em auto;
    font-family: var(--secundary--font);
}

.faq--container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
}

.faq--item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--cards-color);
}

.faq--item:last-child {
    border-bottom: none;
}

.faq--question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq--question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq--question h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--white);
    margin: 0;
    flex-grow: 1;
}

.faq--toggle-icon {
    width: 24px;
    height: 24px;
    position: relative;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.faq--toggle-icon::before,
.faq--toggle-icon::after {
    content: '';
    position: absolute;
    background-color: var(--white);
    transition: transform 0.3s ease;
}

.faq--toggle-icon::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.faq--toggle-icon::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.faq--item.active .faq--toggle-icon::before {
    transform: translateX(-50%) rotate(90deg);
}

.faq--answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 6rem;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.faq--item.active .faq--answer {
    padding: 0.5rem 2rem 2rem;
}

.faq--answer p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--subtext--color);
}

.faq--header h2 .line {
    display: inline-block;
    overflow: hidden;
}

.faq--header h2 .line span {
    display: inline-block;
    transform: translateY(110%);
    color: inherit; 
    opacity: 0;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq--header h2.is-visible .line span {
    transform: translateY(0);
    opacity: 1;
}

.faq--header h2.is-visible .line:nth-of-type(2) span {
    transition-delay: 0.15s;
}