/* 프로그램 섹션 - 필터 스타일 */
.programs-section {
    padding: 80px 0;
    background: #ffffff;
}

.programs-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.programs-section .section-label {
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #999;
    font-weight: 500;
    display: block;
    margin-bottom: 16px;
}

.programs-section .section-title {
    font-size: 48px;
    font-weight: 800;
    color: #111;
    margin-bottom: 16px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.programs-section .section-subtitle {
    font-size: 24px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 300;
}

.programs-section .section-description {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.programs-section .desc-highlight {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 프로그램 필터 버튼 */
.program-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    font-family: 'Pretendard', sans-serif;
}

.filter-btn:hover {
    background: #fff;
    border-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.filter-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.filter-btn.active[data-color="white"] {
    background: #fff;
    color: #111;
    border-color: #ddd;
}

.filter-btn.active[data-color="yellow"] {
    background: #FFD700;
    color: #111;
    border-color: #FFD700;
}

.filter-btn.active[data-color="blue"] {
    background: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
}

.filter-btn.active[data-color="black"] {
    background: #111;
    color: #fff;
    border-color: #111;
}

.filter-emoji {
    font-size: 20px;
}

/* 프로그램 콘텐츠 영역 */
.programs-content {
    max-width: 900px;
    margin: 0 auto;
}

/* 프로그램 상세 정보 */
.program-detail {
    display: none;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.program-detail.active {
    display: block;
}

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

/* 프로그램 헤더 */
.detail-header {
    margin-bottom: 50px;
}

.detail-emoji {
    font-size: 80px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    margin: 0 auto 30px;
}

.detail-title-group {
    text-align: center;
}

.detail-name {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.detail-subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 400;
    margin-bottom: 20px;
}

.detail-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* 프로그램 정보 박스 */
.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.info-box {
    background: #f8f8f8;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
}

.info-box-label {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.info-box-value {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    font-family: 'Poppins', sans-serif;
}

/* 프로그램 특징 */
.detail-features {
    margin-bottom: 40px;
    display: none; /* 특징 숨기기 */
}

.features-title {
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    font-size: 15px;
    color: #555;
}

.feature-icon {
    width: 6px;
    height: 6px;
    background: #FFD700;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 해시태그 */
.detail-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.detail-hashtags span {
    font-size: 14px;
    color: #888;
    padding: 6px 16px;
    background: rgba(0,0,0,0.04);
    border-radius: 20px;
    transition: all 0.2s ease;
}

.detail-hashtags span:hover {
    background: rgba(0,0,0,0.08);
    color: #333;
}

/* 색상별 스타일링 */
.program-detail[data-color="white"] .detail-emoji {
    background: #f5f5f5;
}

.program-detail[data-color="white"] .feature-icon {
    background: #999;
}

.program-detail[data-color="yellow"] .detail-emoji {
    background: #fff9e6;
}

.program-detail[data-color="yellow"] .feature-icon {
    background: #FFD700;
}

.program-detail[data-color="blue"] .detail-emoji {
    background: #e6f2ff;
}

.program-detail[data-color="blue"] .feature-icon {
    background: #4A90E2;
}

.program-detail[data-color="black"] .detail-emoji {
    background: #f0f0f0;
}

.program-detail[data-color="black"] .feature-icon {
    background: #111;
}

/* 반응형 */
@media (max-width: 768px) {
    .program-filters {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .program-detail {
        padding: 40px 24px;
    }
    
    .detail-header {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .detail-emoji {
        margin: 0 auto;
    }
    
    .detail-name {
        font-size: 28px;
    }
    
    .detail-subtitle {
        font-size: 18px;
    }
    
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .programs-section {
        padding: 60px 0;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
        gap: 6px;
    }
    
    .filter-emoji {
        font-size: 16px;
    }
    
    .program-detail {
        padding: 32px 20px;
    }
    
    .detail-emoji {
        font-size: 60px;
        width: 80px;
        height: 80px;
    }
}

/* 더 보기 버튼 */
.detail-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: #666;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 20px auto 0;
    position: relative;
    border: 2px solid #666;
    overflow: hidden;
}

.detail-more-btn span {
    vertical-align: middle;
    position: relative;
    z-index: 1;
}

.detail-more-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    vertical-align: middle;
    position: relative;
    z-index: 1;
}

/* 호버 시 배경 채우기 효과 */
.detail-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #666;
    transition: width 0.3s ease;
    z-index: 0;
}

.detail-more-btn:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.detail-more-btn:hover::before {
    width: 100%;
}

.detail-more-btn:hover svg {
    transform: translateX(5px);
}

/* 색상별 더 보기 버튼 */
.program-detail[data-color="white"] .detail-more-btn {
    color: #666;
    border-color: #666;
}

.program-detail[data-color="white"] .detail-more-btn::before {
    background: #666;
}

.program-detail[data-color="white"] .detail-more-btn:hover {
    box-shadow: 0 8px 20px rgba(102, 102, 102, 0.3);
}

.program-detail[data-color="yellow"] .detail-more-btn {
    color: #111;
    border-color: #FFD700;
}

.program-detail[data-color="yellow"] .detail-more-btn::before {
    background: #FFD700;
}

.program-detail[data-color="yellow"] .detail-more-btn:hover {
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.program-detail[data-color="blue"] .detail-more-btn {
    color: #4A90E2;
    border-color: #4A90E2;
}

.program-detail[data-color="blue"] .detail-more-btn::before {
    background: #4A90E2;
}

.program-detail[data-color="blue"] .detail-more-btn:hover {
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.3);
}

.program-detail[data-color="black"] .detail-more-btn {
    color: #111;
    border-color: #111;
}

.program-detail[data-color="black"] .detail-more-btn::before {
    background: #111;
}

.program-detail[data-color="black"] .detail-more-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 화살표 애니메이션 */
@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

.detail-more-btn svg {
    animation: arrowMove 2s ease-in-out infinite;
}

.detail-more-btn:hover svg {
    animation-play-state: paused;
}