/* FAQ Section Styles */

.faq-section {
    width: 100%;
    padding: 64px 0;
    background-color: #FDFCF8;
}

.faq-section__container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 143px;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

/* Header Styles */
.faq-section__header {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    text-align: left;
}

.faq-section__title {
    font-family: 'Costaline', serif;
    font-weight: 100;
    font-size: 48px;
    line-height: 1.7;
    color: #181818;
    margin: 0;
}

.faq-section__description {
    max-width: 867px;
    width: 100%;
}

.faq-section__description p {
    font-family: 'General Sans Variable', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: #181818;
    margin: 0;
}

/* FAQ Items Container */
.faq-section__items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* FAQ Item */
.faq-item {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* FAQ Item Header */
.faq-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    cursor: pointer;
    position: relative;
}

.faq-item__question {
    font-family: 'General Sans Variable', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: normal;
    color: #181818;
    margin: 0;
    flex: 1;
    transition: color 0.3s ease;
}

.faq-item--active .faq-item__question {
    color: #833C1E;
}

/* Toggle Button */
.faq-item__toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20.576px;
    height: 20.576px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.faq-item__toggle:hover {
    opacity: 0.8;
}

.faq-item__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20.576px;
    height: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-item__icon--plus-black {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__icon--minus-brown {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item--active .faq-item__icon--plus-black {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item--active .faq-item__icon--minus-brown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) rotate(180deg);
}

/* FAQ Answer */
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item--active .faq-item__answer {
    max-height: 500px;
}

.faq-item__answer p {
    font-family: 'General Sans Variable', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: normal;
    color: #833C1E;
    margin: 0;
}

/* Border Vector */
.faq-item__border {
    width: 100%;
    padding: 8px 0;
    position: relative;
}

.faq-item__border img {
    width: 100%;
    height: auto;
    display: block;
}

/* Default: show black border, hide brown */
.faq-item__border--black {
    display: block;
}

.faq-item__border--brown {
    display: none;
}

/* Active: hide black border, show brown */
.faq-item--active .faq-item__border--black {
    display: none;
}

.faq-item--active .faq-item__border--brown {
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .faq-section {
        padding: 48px 0;
    }

    .faq-item {
        gap: 8px;
    }

    .faq-section__container {
        padding: 0 32px;
        gap: 56px;
    }

    .faq-section__header {
        gap: 24px;
        align-items: center;
        text-align: center;
    }

    .faq-section__title {
        font-size: 24px;
    }

    .faq-section__description p {
        font-size: 16px;
    }

    .faq-section__items {
        gap: 32px;
    }

    .faq-item__question {
        font-size: 16px;
    }

    .faq-item__answer p {
        font-size: 16px;
    }
}