/* FAQ 목록 페이지 스타일 */

body {
    background: #ffffff;
}

#support-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

#content {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 탭 네비게이션 */
.tab-navigation {
    background: white;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    height: 50px;
    padding: 0 2rem;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: #6B4FBB;
    color: #6B4FBB;
}

.tab-btn.on {
    background: linear-gradient(135deg, #6B4FBB 0%, #E63946 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(107, 79, 187, 0.3);
}

/* 메인 컨테이너 */
.cmm-table-wrap {
    background: white;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cmm-top-box {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(107, 79, 187, 0.05) 0%, rgba(230, 57, 70, 0.05) 100%);
    border-bottom: 2px solid #f0f0f0;
}

.cmm-tit-h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1.5rem 0;
}

.cmm-tit-h1:before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background: url('/idearo/images/moduidea/faq.png') no-repeat center center;
    background-size: contain;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* CS센터 정보 박스 */
.cs-info-box {
    background: linear-gradient(135deg, #6B4FBB 0%, #E63946 100%);
    border-radius: 0.75rem;
    padding: 1.25rem 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(107, 79, 187, 0.3);
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cs-info-box .cs-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.cs-info-box .cs-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.cs-info-box .cs-phone {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 0.5rem;
}

.cs-info-box .cs-time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .cs-info-box {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .cs-info-box .cs-phone {
        font-size: 1.1rem;
    }
}

/* 검색 영역 */
.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cmm-select {
    min-width: 150px;
}

.cmm-select select {
    width: 100%;
    height: 45px;
    padding: 0 2.5rem 0 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.cmm-select select:focus {
    outline: none;
    border-color: #6B4FBB;
    box-shadow: 0 0 0 3px rgba(107, 79, 187, 0.1);
}

.cmm-input {
    flex: 1;
    min-width: 250px;
}

.cmm-input input {
    width: 100%;
    height: 45px;
    padding: 0 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.cmm-input input:focus {
    outline: none;
    border-color: #6B4FBB;
    box-shadow: 0 0 0 3px rgba(107, 79, 187, 0.1);
}

.search-box button.search {
    height: 45px;
    padding: 0 1.5rem;
    background: #6B4FBB;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button.search:hover {
    background: #5a3fa0;
    transform: translateY(-1px);
}

/* 카테고리 버튼 */
.cmm-btn-wrap {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.faqSe {
    height: 45px;
    padding: 0 1.5rem;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.faqSe:hover {
    border-color: #6B4FBB;
    color: #6B4FBB;
}

.faqSe.cmm-btn-navy {
    background: linear-gradient(135deg, #6B4FBB 0%, #E63946 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(107, 79, 187, 0.3);
}

/* FAQ 아코디언 */
.cmm-toggle-wrap {
    padding: 2rem;
}

.toggle-box {
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
}

.toggle-box:hover {
    border-color: #6B4FBB;
    box-shadow: 0 4px 12px rgba(107, 79, 187, 0.15);
}

.toggle-box .view-btn {
    width: 100%;
    padding: 1.5rem 2rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    position: relative;
}

.toggle-box .view-btn:before {
    content: 'Q';
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background: linear-gradient(135deg, #6B4FBB 0%, #E63946 100%);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.toggle-box .view-btn span {
    flex: 1;
    line-height: 1.6;
}

.toggle-box .view-btn em {
    font-style: normal;
    margin-left: 1rem;
    color: #6B4FBB;
    font-weight: 600;
    transition: all 0.3s;
}

.toggle-box .view-btn .close {
    display: none !important;
}

.toggle-box .view-btn[aria-expanded="true"] {
    background: linear-gradient(135deg, rgba(107, 79, 187, 0.05) 0%, rgba(230, 57, 70, 0.05) 100%);
}

.toggle-box .view-btn[aria-expanded="true"] .open {
    display: none !important;
}

.toggle-box .view-btn[aria-expanded="true"] .close {
    display: inline !important;
}

.toggle-box .view-box {
    display: none;
    overflow: hidden;
}

.toggle-box .textarea {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 2px solid #e0e0e0;
    line-height: 1.8;
    color: #555;
    display: block;
    position: relative;
    padding-left: 5rem;
}

.toggle-box .textarea:before {
    content: 'A';
    display: inline-block;
    width: 32px;
    height: 32px;
    min-width: 32px;
    line-height: 32px;
    text-align: center;
    background: #E63946;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    position: absolute;
    left: 2rem;
    top: 2rem;
}

/* 페이징 스타일 - NoticeList와 동일 */
.cmm-paging-box {
    margin-top: 2rem !important;
    text-align: center !important;
    padding: 20px 0 !important;
}

.cmm-paging-box .paging {
    display: inline-flex !important;
    gap: 5px !important;
    align-items: center !important;
}

.cmm-paging-box button {
    display: inline-block !important;
    padding: 0.5rem 0.8rem !important;
    min-width: 36px !important;
    height: 36px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    background: white !important;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin: 0 !important;
}

.cmm-paging-box button:hover:not(:disabled) {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.cmm-paging-box button.active,
.cmm-paging-box button.active:hover {
    background: linear-gradient(135deg, #6B4FBB 0%, #E63946 100%) !important;
    color: white !important;
    border-color: #6B4FBB !important;
    font-weight: 600 !important;
}

.cmm-paging-box button:disabled {
    color: #d1d5db !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.cmm-paging-box .btn-first,
.cmm-paging-box .btn-prev,
.cmm-paging-box .btn-next,
.cmm-paging-box .btn-last {
    font-size: 0 !important;
    width: 36px !important;
    padding: 0 !important;
    position: relative !important;
}

.cmm-paging-box .btn-first::before {
    content: '≪' !important;
    font-size: 0.875rem !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.cmm-paging-box .btn-prev::before {
    content: '‹' !important;
    font-size: 1rem !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.cmm-paging-box .btn-next::before {
    content: '›' !important;
    font-size: 1rem !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.cmm-paging-box .btn-last::before {
    content: '≫' !important;
    font-size: 0.875rem !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* 데이터 없음 */
.no-data {
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    font-size: 1rem;
}

.no-data:before {
    content: '📭';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 이메일 문의 박스 */
.email-inquiry-box {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #6B4FBB;
    border-radius: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.email-inquiry-title {
    margin: 0;
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    white-space: nowrap;
}

.email-inquiry-desc {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    flex: 1;
}

.email-inquiry-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6B4FBB 0%, #E63946 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 79, 187, 0.3);
    white-space: nowrap;
}

.email-inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 79, 187, 0.4);
}

.email-inquiry-btn span {
    color: white !important;
}

/* 반응형 */
@media (max-width: 768px) {
    #support-wrap {
        padding: 2rem 0.5rem;
    }
    
    .tab-navigation {
        padding: 1rem;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cmm-top-box {
        padding: 1.5rem;
    }
    
    .cmm-tit-h1 {
        font-size: 1.5rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .cmm-select,
    .cmm-input {
        width: 100%;
        min-width: auto;
    }
    
    .cmm-btn-wrap {
        flex-direction: column;
    }
    
    .faqSe {
        width: 100%;
    }
    
    .cmm-toggle-wrap {
        padding: 1rem;
    }
    
    .toggle-box .view-btn {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .toggle-box .textarea {
        padding: 1rem;
        padding-left: 3.5rem;
        font-size: 0.9rem;
    }
    
    .toggle-box .textarea:before {
        left: 1rem;
        top: 1rem;
    }
    
    /* 모바일에서 이메일 문의 박스 세로 배치 */
    .email-inquiry-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .email-inquiry-desc {
        margin-bottom: 10px;
    }
}
