/* ============================================
   🌸 상담분야 섹션 스타일
   v6.4.0 - 무진장 전문상담연구소
   상담분야 87가지 (기본 12 + 확장 75)
   ============================================ */

/* ===== 상담분야 섹션 전체 ===== */
.consultation-services-section {
    background: linear-gradient(135deg, #fefaf0 0%, #fff8e1 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.consultation-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"%3E%3Cpath d="M0,300 Q300,100 600,300 T1200,300" fill="none" stroke="rgba(255,215,0,0.05)" stroke-width="2"/%3E%3C/svg%3E');
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}

.consultation-services-section .container {
    position: relative;
    z-index: 1;
}

/* ===== 카테고리 구분 ===== */
.consultation-category {
    margin-bottom: 5rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Noto Serif KR', serif;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    letter-spacing: 0.5px;
}

.category-badge.extended {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ===== 상담 카드 그리드 ===== */
.consultation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ===== 기본 상담 카드 (12가지) ===== */
.consultation-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.consultation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.consultation-card:hover::before {
    transform: scaleX(1);
}

.consultation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: 'Noto Serif KR', serif;
}

.card-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    word-break: keep-all;
}

/* ===== 확장 상담 카드 (75가지) ===== */
.consultation-card.extended {
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.consultation-card.extended::before {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.consultation-card.extended:hover {
    border-color: #667eea;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

.consultation-card.extended h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.8rem;
    font-family: 'Noto Serif KR', serif;
}

.consultation-card.extended p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    word-break: keep-all;
}

/* ===== 서브카테고리 ===== */
.consultation-subcategory {
    margin-bottom: 3rem;
}

.subcategory-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 5px solid #667eea;
    font-family: 'Noto Serif KR', serif;
}

/* ===== CTA 버튼 영역 ===== */
.consultation-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.cta-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'Noto Serif KR', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #667eea;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Noto Sans KR', sans-serif;
}

.cta-button:hover {
    background: #FFD700;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ===== 반응형 디자인 ===== */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    .consultation-services-section {
        padding: 3rem 1rem;
    }
    
    .consultation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .consultation-card {
        padding: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-description {
        font-size: 0.95rem;
    }
    
    .consultation-card.extended {
        padding: 1.2rem;
    }
    
    .consultation-card.extended h5 {
        font-size: 1.1rem;
    }
    
    .consultation-card.extended p {
        font-size: 0.9rem;
    }
    
    .subcategory-title {
        font-size: 1.3rem;
    }
    
    .consultation-cta {
        padding: 2rem 1rem;
    }
    
    .cta-text {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    .consultation-services-section {
        padding: 2rem 0.5rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .consultation-card {
        padding: 1.2rem;
    }
    
    .card-icon {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .consultation-card.extended h5 {
        font-size: 1rem;
    }
    
    .consultation-card.extended p {
        font-size: 0.85rem;
    }
    
    .subcategory-title {
        font-size: 1.2rem;
        padding-left: 0.8rem;
        border-left-width: 4px;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ===== 검색 및 필터 영역 ===== */
.consultation-search-filter {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tag {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.filter-tag:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

.filter-tag.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* ===== 상담 번호 뱃지 ===== */
.consultation-number {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.consultation-card.extended .consultation-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ===== 프린트 최적화 ===== */
@media print {
    .consultation-services-section {
        background: #fff;
        padding: 2rem 0;
    }
    
    .consultation-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .cta-button {
        display: none;
    }
    
    .consultation-search-filter {
        display: none;
    }
}

/* ===== 모바일 검색 최적화 ===== */
@media (max-width: 768px) {
    .consultation-search-filter {
        padding: 1.5rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .filter-tags {
        gap: 0.8rem;
    }
    
    .filter-tag {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}
