.faq-title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
    background-color: var(--screen-bg);
    padding-top: 6rem;
    padding-bottom: 6.5rem;
}

.faq-title-section .section-container__copy {
    gap: 10px;
}

.input-search {
    width: 58%;
    background-position: 98% 50%;
}

.input-search:focus {
    outline: 2px solid var(--blue-500);
}

.faq-section {
    padding-block: 6rem;
    align-items: flex-start;
}

.faq-questions {
    width: 100%;
}

details[open] {
    max-height: 350vh;
}

.toc-container {
    display: flex;
    margin-top: 0;
    flex-direction: column;
    width: 25%;
    background-color: var(--screen-bg);
    border-radius: 4px;
    gap: 30px;
    padding: 20px;
}

.toc-container input {
    display: none;
}

.toc-item__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    cursor: pointer;
}

.toc-item__title label {
    cursor: pointer;
    flex: 1;
}

.toc-item__title label span {
    font-weight: 700;
    color: var(--blue-500, #2151D7);
}

.toc-item a {
    display: flex;
    flex: 1;
    color: var(--neutral-black);
}

.toc-item__title img {
    transition: all 0.4s;
}

.toc-item__subtitle {
    width: auto;
    max-height: 0;
    margin: 0px 20px;
    overflow: hidden;
    transition: max-height 0.2s;
    max-height: 0;
}

.toc-item__subtitle ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
}

input:checked~.toc-item__subtitle {
    max-height: 40vh;
    padding: 10px 0px 10px 0px;
    overflow: hidden;
}

input:checked~.toc-item__title {
    color: var(--blue-500);
    font-weight: 700;
}

input:checked~.toc-item__title img {
    transform: rotate(-180deg);
    transition: all 0.4s;
}

.tab-content {
    padding: 0;
}

.sub-tab-content {
    display: none;
}

.tab-content-active,
.sub-content-active {
    visibility: visible;
    display: flex;
    flex-direction: column;
    height: auto;
}

.subtitle-item {
    cursor: pointer;
}

.subtitle-item:hover {
    text-decoration: underline;
}

.subtitle-item.active {
    font-weight: 700;
}

@media screen and (max-width: 992px) {
    .section-container__copy {
        padding-inline: 0;
    }

    .faq-section {
        flex-direction: row;
    }
}

@media screen and (max-width: 768px) {
    .input-search {
        width: 70%;
    }
}

@media screen and (max-width: 576px) {
    .input-search {
        width: 100%;
        background-position: 95% 50%;
    }

    .faq-section {
        flex-direction: column;
    }

    .toc-container {
        width: 100%;
    }

    .panel-tabs {
        width: 100%;
    }
}