* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #334155;
}

/* 메인 컨테이너 */
.support-main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.support-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 헤더 섹션 */
.support-header {
    background: linear-gradient(to bottom right, #005792, #001A2C);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.welcome-section {
    margin-bottom: 30px;
}

.welcome-message h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.welcome-message p {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 300;
}

/* 검색 섹션 */
.search-section {
    margin-bottom: 30px;
}

.search-wrapper {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 8px;
    outline: none;
    color: #334155;
}

.search-input::placeholder {
    color: #94a3b8;
}

.search-button {
    background: linear-gradient(to bottom right, #005792, #001A2C);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 87, 146, 0.3);
}

.search-error-message {
    display: none;
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
}

/* 헤더 이미지 */
.header-image {
    margin-top: 20px;
}

.support-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    opacity: 0.9;
}

/* 컨텐츠 섹션 */
.support-content {
    padding: 40px 30px;
}

/* 네비게이션 탭 */
.content-navigation {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 40px;
}

.nav-tab {
    flex: 1;
    text-decoration: none;
    color: #64748b;
    padding: 16px 24px;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-tab:hover {
    color: #005792;
    background: #f8fafc;
}

.nav-tab.active {
    color: #005792;
    border-bottom-color: #005792;
    background: #f8fafc;
}

.nav-tab-title {
    font-size: 18px;
}

/* FAQ 컨텐츠 */
.faq-content, .notice-content {
    display: none;
}

.faq-content.active, .notice-content.active {
    display: block;
}

.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

/* 사용자 유형 탭 */
.user-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    max-width: 300px;
}

.user-type-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type-tab.active {
    background: white;
    color: #005792;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ 카테고리 */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.category-button {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-button:hover {
    border-color: #005792;
    color: #005792;
    background: #f0f8ff;
}

.category-button.active {
    background: linear-gradient(to bottom right, #005792, #001A2C);
    color: white;
    border-color: #005792;
}

/* FAQ 목록 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.faq-item {
    display: block;
    text-decoration: none;
    color: #334155;
    padding: 20px 24px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.faq-item:hover {
    background: #f0f8ff;
    border-left-color: #005792;
    color: #005792;
    transform: translateX(8px);
}

/* 더보기 버튼 */
.view-more-button {
    display: inline-block;
    text-decoration: none;
    color: #005792;
    padding: 16px 32px;
    border: 2px solid #005792;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.view-more-button:hover {
    background: #005792;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 87, 146, 0.2);
}

/* 공지사항 섹션 */
.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.view-all-link {
    color: #005792;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #001A2C;
}

/* 공지사항 목록 */
.notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: #f0f8ff;
    border-left-color: #005792;
}

.notice-label {
    background: linear-gradient(to bottom right, #005792, #001A2C);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.notice-title {
    flex: 1;
}

.notice-link {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.notice-link:hover {
    color: #005792;
}

.notice-date {
    color: #64748b;
    font-size: 14px;
    white-space: nowrap;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .support-main {
        padding: 10px;
    }
    
    .support-header {
        padding: 30px 20px;
    }
    
    .welcome-message h1 {
        font-size: 24px;
    }
    
    .welcome-message p {
        font-size: 16px;
    }
    
    .search-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .support-content {
        padding: 30px 20px;
    }
    
    .content-navigation {
        flex-direction: column;
    }
    
    .nav-tab {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .nav-tab.active {
        border-left-color: #005792;
        border-bottom: none;
    }
    
    .faq-categories {
        justify-content: center;
    }
    
    .category-button {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .notice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .notice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .user-type-tabs {
        max-width: 100%;
    }
    
    .faq-categories {
        gap: 8px;
    }
    
    .category-button {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* ===== 공지 카드 ===== */
.notice-list { display: flex; flex-direction: column; gap: 16px; }

.notice-item-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all .25s ease;
    outline: none;
}

.notice-item-card:hover {
    border-color: transparent;
    background: #f0f8ff;
    border-image: linear-gradient(to bottom right, #005792, #001A2C) 1;
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0,87,146,.08);
}

.notice-item-card:focus-visible {
    box-shadow: 0 0 0 4px rgba(0,87,146,.15);
    border-color: transparent;
}

/* 왼쪽 배지 */
.notice-badge {
    background: linear-gradient(to bottom right, #005792, #001A2C);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .02em;
    padding: 8px 12px;
    border-radius: 10px;
    flex: 0 0 auto;
}

/* 제목/메타 */
.notice-main { flex: 1 1 auto; min-width: 0; }
.notice-title {
    color: #1e293b;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    display: -webkit-box;               /* 한 줄 말줄임 */
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-title:hover {
    background: linear-gradient(to bottom right, #005792, #001A2C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 오른쪽 날짜 */
.notice-date {
    color: #64748b;
    font-size: 14px;
    margin-left: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ===== 탭/섹션 헤더(있다면) ===== */
.cc-tabs { display:flex; gap: 8px; }
.cc-tab { padding: 12px 16px; border-radius: 10px; }
.cc-tab.active {
    border-bottom: 3px solid #0a6aa6;
    color: #0a6aa6;
}

/* ===== 반응형 ===== */

/* 태블릿 */
@media (max-width: 768px) {
    .notice-item-card {
        padding: 16px 18px;
        gap: 12px;
        flex-wrap: wrap;                /* 두 줄 배치 */
    }

    .notice-badge { padding: 6px 10px; font-size: 11px; }

    .notice-title {
        font-size: 15px;
        -webkit-line-clamp: 2;          /* 제목 2줄까지 허용 */
    }

    .notice-date {
        order: 3;                        /* 아래로 */
        width: 100%;
        text-align: right;
        font-size: 13px;
        margin-left: 0;
        margin-top: 4px;
    }
}

/* 모바일 */
@media (max-width: 480px) {
    .notice-item-card {
        padding: 14px 14px;
        border-radius: 10px;
    }
    .notice-title { font-size: 14px; }
    .notice-date { font-size: 12.5px; }
}

/* 초소형(선택) */
@media (max-width: 360px) {
    .notice-title { -webkit-line-clamp: 3; } /* 아주 작은 화면에선 3줄 */
}
