/* FAQ 컨테이너 */
.faq-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 110px;
}

/* 제목 영역 */
.faq-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 72px;
    margin-bottom: 105px;
}

.faq-title {
    font-size: 28px;
    font-weight: 600;
    color: #252525;
    text-align: center;
}

/* 검색 및 연락처 섹션 */
.faq-search-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 50px;
}

.faq-search-divider {
    width: 1px;
    height: 59px;
    background: #d9d9d9;
    border: 1px solid #d9d9d9;
}

.faq-search-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    background: #f2f2f2;
    padding: 35px 97px;
    border-radius: 8px;
}

@media screen and (max-width: 855px) {
    .faq-search-section {
        flex-direction: column;
        align-items: stretch;
        padding: 35px;
        gap: 20px;
    }

    .faq-search-divider {
        display: none;
    }

    .faq-contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.faq-search-box {
    width: 100%;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 0px 15px;
    height: 59px;
    border: 1px solid #f2f2f2;
}

.faq-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 400;
    color: #252525;
    padding: 0;
}

.faq-search-input::placeholder {
    color: #aeaeae;
}

.faq-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.faq-search-btn img {
    width: 20px;
    height: 20px;
}

.faq-contact-info {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 20px;
}

@media screen and (max-width: 500px) {
    .faq-contact-info {
    font-size: 15px;
    }
}

.faq-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-contact-icon {
    font-size: 16px;
}

.faq-contact-text {
    font-size: 14px;
    font-weight: 500;
    color: #252525;
}

/* 탭 메뉴 */
.faq-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

@media screen and (max-width: 692px) {
    .faq-tabs {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
}

.faq-tab {
    width: 100%;
    height: 50px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #787a7d;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-tab:hover:not(.active) {
    color: #252525;
}

.faq-tab.active[data-tab="faq"] {
    background: #4285f4 !important;
    color: #ffffff !important;
    border-color: #4285f4 !important;
    font-weight: 500;
    width: 100%;
}

.faq-tab.active[data-tab="notice"] {
    background: #4285f4 !important;
    color: #ffffff !important;
    border-color: #4285f4 !important;
    font-weight: 500;
    width: 100%;
}

/* 카테고리 네비게이션 */
.faq-categories {
    display: flex;
    width: 100%;
    margin-bottom: 67px;
    flex-wrap: wrap;
}

.faq-category {
    padding: 8px 20px;
    width: 150px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    background: #f8f8f8;
    border: 1px solid #d9d9d9;
    cursor: pointer;
    margin-left: -1px;
}

@media screen and (max-width: 500px) {
    .faq-category {
        width: 100%;
    }
}

.faq-category:first-child {
    margin-left: 0;
}

.faq-category.active {
    border-color: #252525;
    position: relative;
    z-index: 1;
}

/* FAQ 리스트 */
.faq-list {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.faq-item {
    border-top: 1px solid #d9d9d9;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-question:hover {
    background: #f8f8f8;
    padding-left: 5px;
    padding-right: 5px;
    /* margin-left: -10px;
    margin-right: -10px;
    border-radius: 5px; */
}

.faq-q-mark {
    font-size: 16px;
    font-weight: 500;
    color: #252525;
    margin-right: 5px;
    flex-shrink: 0;
}

.faq-question-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #252525;
}

.faq-arrow {
    font-size: 14px;
    color: #787a7d;
    margin-left: 10px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* 페이지네이션 */
.faq-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.faq-pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: 500;
    color: #555555;
    background: #ffffff;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-pagination-btn:hover:not(:disabled) {
    border-color: #4285f4;
    color: #4285f4;
}

.faq-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.faq-pagination-btn.page.active {
    background: #4285f4;
    border-color: #4285f4;
    color: #ffffff;
}

.faq-pagination-btn.page {
    min-width: 40px;
}

/* 공지사항 리스트 */
.notice-list {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.notice-item {
    border-top: 1px solid #d9d9d9;
}

.notice-content {
    display: flex;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.notice-content:hover {
    background: #f8f8f8;
    padding-left: 5px;
    padding-right: 5px;
    /* margin-left: -10px;
    margin-right: -10px;
    border-radius: 5px; */
}

.notice-label {
    font-size: 14px;
    font-weight: 500;
    margin-right: 15px;
    flex-shrink: 0;
    min-width: 40px;
    text-align: center;
}

.notice-label.new {
    color: #4285f4;
}

.notice-label.number {
    color: #787a7d;
}

.notice-title {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #252525;
}

.notice-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
}

.notice-date {
    font-size: 14px;
    font-weight: 400;
    color: #787a7d;
}

.notice-arrow {
    font-size: 14px;
    color: #787a7d;
    margin-left: 10px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.notice-item.active .notice-arrow {
    transform: rotate(180deg);
}

.faq-answer,
.notice-answer {
    display: none;
    background-color: #f8f8f8;
    padding: 30px 40px;
    border-top: 1px solid #eaeaea;
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
}

.faq-item.active .faq-answer,
.notice-item.active .notice-answer {
    display: block;
}

.answer-content {
    white-space: pre-wrap; /* 줄바꿈 보전 */
    word-break: break-all;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #787a7d;
}
