/* ========================================
   전역 스타일 및 리셋
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 모던 & 프리미엄 컬러 팔레트 */
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --accent-color: #6c5ce7;
    --text-color: #2d3436;
    --text-light: #636e72;
    --bg-color: #f5f6fa;
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-hover: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(108, 92, 231, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(9, 132, 227, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 184, 148, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(253, 121, 168, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   헤더
   ======================================== */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    height: 85px;
    display: flex;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
    margin-top: 4px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ========================================
   메인 컨텐츠
   ======================================== */
.main-content {
    margin-top: 85px;
    padding: 80px 0;
}

.section-title {
    font-size: 2.0rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

/* ========================================
   이력서 섹션
   ======================================== */
/* 이력서 섹션 (기존 스타일 제거 및 재정의) */
.resume-section {
    margin-bottom: 0;
}

.resume-container {
    max-width: 100%;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.resume-header {
    background: var(--gradient-primary);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.resume-section .category-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 10px;
}

.resume-section.expanded .category-icon {
    transform: rotate(90deg);
}

/* 이력서 컨테이너 */
.resume-container {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 이력서 헤더 */
.resume-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.resume-photo {
    flex-shrink: 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.resume-info {
    flex: 1;
}

.resume-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
}

.resume-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* 기본 정보 */
.resume-basic-info {
    padding: 30px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
}

.info-value {
    color: #495057;
}

/* 섹션 블록 */
.resume-section-block {
    padding: 40px;
    border-bottom: 1px solid #e9ecef;
}

.resume-section-block:last-child {
    border-bottom: none;
}

.section-header {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.header-icon {
    font-size: 2rem;
}

/* 타임라인 */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 15px;
    padding-left: 30px;
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 20px;
    align-items: center;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 0 4px white;
}

.timeline-item.highlight::before {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px white, 0 0 0 8px rgba(231, 76, 60, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.timeline-content {
    display: contents;
}

.timeline-content h4 {
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.tech-stack {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

/* 스킬 그리드 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.skill-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.skill-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.skill-level {
    height: 8px;
    background: #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 0.8s ease;
}

.skill-desc {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 반응형 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        /* 모바일에서 2열 배치 시도, 너무 작으면 1열 */
        gap: 15px;
    }

    .training-grid {
        grid-template-columns: 1fr;
        /* 모바일에서 1열 */
    }

    .category-title {
        font-size: 1.4rem;
        padding: 15px 20px;
    }

    .resume-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }

    .resume-name {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .resume-section-block {
        padding: 20px 0;
    }

    .section-header {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 10px;
    }

    .timeline-item {
        padding-left: 20px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-date {
        margin-bottom: 5px;
    }
}

/* ========================================
   포트폴리오 섹션
   ======================================== */
.portfolio-section {
    margin-bottom: 60px;
}

.portfolio-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding: 20px 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 16px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.category-title:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: white;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    opacity: 0.7;
    transition: var(--transition-base);
}

.category-title:hover::before {
    opacity: 1;
    width: 6px;
}

.category-icon {
    font-size: 0.9rem;
    color: var(--accent-color);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
}

.portfolio-category.expanded .category-icon {
    transform: rotate(90deg);
    background: var(--accent-color);
    color: white;
}

/* 이력서 컨텐츠 래퍼 */
.resume-content-wrapper {
    background: white;
    border-radius: 0 0 16px 16px;
    margin-top: -20px;
    /* 타이틀과 연결 */
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: var(--glass-border);
    border-top: none;
    animation: slideDown 0.4s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 갤러리 아코디언 숨김/표시 - 편집 모드 상관없이 적용 */
.portfolio-category:not(.expanded) .gallery-grid {
    display: none !important;
}

.portfolio-category.expanded .gallery-grid {
    display: grid !important;
}

/* ========================================
   고정 플로팅 컨트롤
   ======================================== */
.floating-controls {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 25px;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-controls.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.selection-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}

.selection-tip {
    font-size: 0.75rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.3;
}

.floating-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-float {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 190px;
    letter-spacing: 0.3px;
}

.btn-select-all-global,
.btn-deselect-all-global {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-select-all-global:hover,
.btn-deselect-all-global:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-delete-global {
    background: var(--accent-color);
    color: white;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-delete-global:hover {
    background: linear-gradient(135deg, #ff006e 0%, #ff4d94 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 110, 0.5);
}

.btn-float:active {
    transform: scale(0.95);
}

/* ========================================
   카테고리 접기 버튼
   ======================================== */
.collapse-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.collapse-button.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.btn-collapse {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-collapse:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-collapse:active {
    transform: translateY(0);
}

.collapse-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.collapse-text {
    line-height: 1;
}

/* 편집 모드일 때 접기 버튼 숨김 */
body.edit-mode .collapse-button {
    display: none;
}

/* ========================================
   갤러리 그리드
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    aspect-ratio: 4/3;
    border: 2px solid var(--border-color);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item.selected {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.gallery-item .item-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    accent-color: var(--secondary-color);
}

.gallery-item:hover .item-checkbox {
    opacity: 1;
}

.gallery-item.selected .item-checkbox {
    opacity: 1;
}

.gallery-item .selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(52, 152, 219, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-item.selected .selection-overlay {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover .video-icon {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-number {
    font-size: 0.9rem;
    font-weight: 600;
}

/* 이미지 설명 모달 스타일 */
.image-tooltip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 20px 24px;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 15;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover .image-tooltip {
    opacity: 1;
}

/* ========================================
   모달
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 3% auto;
    width: 92%;
    max-width: 1300px;
    animation: modalFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    max-height: 88vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 42px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    color: var(--accent-color);
    background: rgba(255, 0, 110, 0.2);
    transform: rotate(90deg);
    box-shadow: var(--shadow-md);
}

.modal-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.modal-nav {
    position: fixed;
    /* 화면 기준 고정 */
    top: 0;
    bottom: 0;
    width: 100px;
    /* 클릭 영역 확보 */
    height: 100%;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    /* 평소에도 잘 보이게 밝기 조정 */
    border: none;
    font-size: 4rem;
    /* 아이콘 크기 대폭 확대 */
    font-weight: 100;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    /* 모달(2000)보다 위에 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.4);
    /* 호버 시 더 진한 배경 */
    color: white;
    transform: none;
    /* 크기 변화 제거 */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.modal-prev {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
    /* 평소에도 잘 보이게 */
    opacity: 1;
    /* 항상 보임 */
}

.modal-next {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.4), transparent);
    /* 평소에도 잘 보이게 */
    opacity: 1;
    /* 항상 보임 */
}

/* 호버 시 opacity 변경 없음 (항상 1) */

.modal-body>img,
.modal-body>video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

#modalImage {
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    box-shadow: var(--shadow-md);
}

.modal-description {
    overflow-y: auto;
    max-height: 85vh;
    padding-right: 10px;
}

.modal-description::-webkit-scrollbar {
    width: 8px;
}

.modal-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-description::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.modal-description::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.modal-description h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#imageDescription {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

#imageDescription:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-save {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.btn-save:active {
    transform: scale(0.97);
}

.saved-description {
    margin-top: 10px;
    padding: 10px;
    background: var(--light-bg);
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
    display: none;
    font-size: 0.85rem;
    color: #555;
}

.saved-description.show {
    display: block;
}

/* ========================================
   파일 관리 UI
   ======================================== */
.file-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.file-info h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.file-name-display {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    word-break: break-all;
    padding: 8px 12px;
    background: var(--light-bg);
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
}

.file-path-display {
    font-size: 0.75rem;
    color: #888;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.file-management {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.file-management h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.rename-section {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.file-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.file-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.btn-action {
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    white-space: nowrap;
}

.btn-rename {
    background: var(--secondary-color);
    color: white;
}

.btn-rename:hover {
    background: #2980b9;
}

.btn-delete {
    background: var(--accent-color);
    color: white;
    width: 100%;
}

.btn-delete:hover {
    background: #c0392b;
}

.btn-action:active {
    transform: scale(0.98);
}

.description-section {
    margin-top: 0;
}

.description-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

/* ========================================
   푸터
   ======================================== */
.footer {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    opacity: 0.8;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========================================
   반응형 디자인
   ======================================== */
@media (max-width: 1024px) {
    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #modalImage {
        max-width: 100%;
        max-height: 60vh;
    }

    .modal-description {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.3rem;
    }

    .header-subtitle {
        font-size: 0.75rem;
    }

    .edit-mode-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        right: 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
        padding: 12px 15px;
    }

    .category-icon {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-nav {
        font-size: 1.5rem;
        padding: 15px 10px;
    }

    .floating-controls {
        bottom: 15px;
        right: 15px;
        padding: 12px 15px;
    }

    .btn-float {
        min-width: 150px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.1rem;
    }

    .header-subtitle {
        font-size: 0.7rem;
    }

    .edit-mode-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
        right: 10px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .category-title {
        font-size: 1.2rem;
        padding: 10px 12px;
        gap: 10px;
    }

    .category-icon {
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .image-tooltip {
        font-size: 0.9rem;
        padding: 16px 20px;
    }

    .modal-body {
        padding: 15px;
        gap: 20px;
    }
}

/* ========================================
   로딩 애니메이션
   ======================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   편집 모드
   ======================================== */
/* 편집 버튼 */
.edit-mode-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 25px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
}

.edit-mode-btn:hover {
    transform: translateY(calc(-50% - 3px));
    box-shadow: var(--shadow-lg);
}

.edit-mode-btn.active {
    background: var(--accent-color);
    box-shadow: var(--shadow-lg);
}

/* 편집 모드가 아닐 때 숨김 처리 */
body:not(.edit-mode) .item-checkbox {
    display: none !important;
}

body:not(.edit-mode) .selection-overlay {
    display: none !important;
}

body:not(.edit-mode) .floating-controls {
    display: none !important;
}

body:not(.edit-mode) .file-management {
    display: none !important;
}

/* 편집 모드가 아닐 때 설명 입력창과 버튼 숨김 */
body:not(.edit-mode) #imageDescription,
body:not(.edit-mode) #saveDescription,
body:not(.edit-mode) .description-section h3 {
    display: none !important;
}

/* 편집 모드가 아닐 때 저장된 설명 스타일 */
body:not(.edit-mode) .saved-description {
    display: none;
    /* 기본적으로 숨김 */
    margin-top: 0;
    padding: 5px 0;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

body:not(.edit-mode) .saved-description.show {
    display: block !important;
    /* 내용이 있을 때만 보임 */
}

body:not(.edit-mode) .description-section {
    display: block !important;
    margin-top: 0;
    border: none;
    text-align: center;
}

/* 편집 모드가 아닐 때 파일 정보를 하단에 배치 */
body:not(.edit-mode) .modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

body:not(.edit-mode) .modal-description {
    max-height: none;
    padding: 15px 20px;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

body:not(.edit-mode) .file-info {
    display: none !important;
}

body:not(.edit-mode) #modalImage {
    max-height: 70vh;
}

/* 편집 모드일 때 */
body.edit-mode .item-checkbox {
    display: block;
}

body.edit-mode .selection-overlay {
    display: block;
}

/* 편집 모드 스타일 */
body.edit-mode .portfolio-category {
    margin-bottom: 40px;
}

/* 헤더 컨테이너 상대 위치 */
.header .container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ========================================
   드래그 앤 드롭 스타일
   ======================================== */
/* 편집 모드에서만 드래그 가능 */
body.edit-mode .gallery-item {
    cursor: grab;
}

body.edit-mode .gallery-item:active {
    cursor: grabbing;
}

/* 드래그 중인 항목 (실제로 드래그되는 요소) */
.sortable-drag {
    opacity: 0.5;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* 드래그 원본 위치 (빈 공간 표시) */
.sortable-ghost {
    opacity: 0.3;
    background: #e0e0e0;
    border: 2px dashed var(--secondary-color);
}

.sortable-ghost img,
.sortable-ghost video {
    opacity: 0;
}

/* 드래그 중일 때 갤러리 스타일 */
.gallery-grid.dragging {
    user-select: none;
}

/* 드래그 중 체크박스 숨기기 */
.gallery-grid.dragging .item-checkbox {
    display: none;
}

/* 드래그 중 툴팁 숨기기 */
.gallery-grid.dragging .image-tooltip {
    display: none;
}

/* 드래그 중 갤러리 아이템 번호 강조 */
body.edit-mode .gallery-item-number {
    background: var(--secondary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

/* 드래그 앤 드롭 안내 메시지 */
body.edit-mode .portfolio-category::before {
    content: "드래그하여 순서 변경 (자동 저장됨)";
    display: block;
    padding: 8px 15px;
    margin-bottom: 10px;
    background: #e3f2fd;
    color: var(--secondary-color);
    border-left: 4px solid var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
}

/* ========================================
   순서 저장 버튼
   ======================================== */
/* 편집 모드가 아닐 때 숨김 */
body:not(.edit-mode) .save-order-controls {
    display: none !important;
}

/* 순서 저장 버튼 컨테이너 */
.save-order-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

/* 순서 저장 버튼 */
.btn-save-order {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-save-order:hover:not(:disabled) {
    background: #2980b9;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.btn-save-order:active:not(:disabled) {
    transform: translateY(0);
}

/* 비활성화 상태 */
.btn-save-order:disabled {
    background: #95a5a6;
    color: #ecf0f1;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.2);
}

/* 변경사항 있을 때 강조 */
.btn-save-order.has-changes {
    background: var(--accent-color);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.btn-save-order.has-changes:hover {
    background: #c0392b;
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

/* 펄스 애니메이션 */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(231, 76, 60, 0.6);
    }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .save-order-controls {
        bottom: 20px;
        right: 20px;
    }

    .btn-save-order {
        padding: 12px 24px;
        font-size: 0.9rem;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .save-order-controls {
        bottom: 15px;
        right: 15px;
    }

    .btn-save-order {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: 100px;
    }
}

/* ========================================
   교육 프로그램 섹션
   ======================================== */
.training-section {
    margin-bottom: 80px;
    text-align: center;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.training-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.training-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.training-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.training-card:hover .training-icon {
    transform: scale(1.1) rotate(5deg);
}

.training-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.training-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.btn-training-detail {
    margin-top: auto;
    padding: 10px 25px;
    background: #f1f3f5;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.training-card:hover .btn-training-detail {
    background: var(--primary-color);
    color: white;
}



/* ========================================
   교육 프로그램 모달
   ======================================== */
.training-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.training-modal-content {
    background: white;
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.training-close {
    position: sticky;
    top: 20px;
    right: 30px;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.training-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.training-modal-body {
    padding: 60px 40px 40px;
}

.training-modal-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.training-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.training-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.no-images {
    text-align: center;
    color: var(--text-light);
    padding: 40px;
    background: var(--light-bg);
    border-radius: 10px;
}

.training-info-section {
    margin-bottom: 35px;
    padding: 25px;
    background: var(--light-bg);
    border-radius: 15px;
}

.training-info-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.training-info-section p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.7;
}

.training-info-section ul {
    list-style: none;
    padding: 0;
}

.training-info-section ul li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
}

.training-info-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.schedule-item {
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-item p {
    margin: 5px 0;
    font-size: 0.95rem;
    color: var(--text-color);
}

.training-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.training-info-item {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
    text-align: center;
}

.training-info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.training-info-item p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.training-contact {
    padding: 30px;
    background: var(--gradient-primary);
    border-radius: 15px;
    text-align: center;
    color: white;
}

.training-contact h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.training-contact p {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-contact {
    padding: 12px 30px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-contact:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.btn-curriculum {
    background: var(--gradient-neon) !important;
    color: white !important;
    font-weight: 700;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .training-section {
        margin-top: 50px;
        padding: 40px 0;
    }

    .training-section .section-title {
        font-size: 2rem;
    }

    .training-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .training-modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .training-modal-body {
        padding: 40px 20px 20px;
    }

    .training-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .btn-contact {
        width: 100%;
    }
}

/* ========================================
   사업계획서 섹션
   ======================================== */
.business-plan-section {
    margin: 80px 0;
    text-align: center;
}

.view-business-plan-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

.view-business-plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 사업계획서 모달 */
.business-plan-modal {
    z-index: 10001;
}

.business-plan-content {
    background: #ffffff;
    /* 흰색 배경으로 변경 */
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    color: #333333;
    /* 기본 텍스트 색상 어둡게 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* 그림자 추가 */
}

.business-plan-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.business-plan-close:hover {
    color: #333;
}

.business-plan-body {
    color: var(--text-color);
}

.business-plan-body h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.business-plan-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 40px;
    text-align: center;
}

.bp-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    /* 아주 연한 회색 배경 */
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* 미세한 그림자 */
}

.bp-section h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.bp-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 20px 0 15px 0;
}

.bp-section ul {
    list-style: none;
    padding-left: 0;
}

.bp-section ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.8;
}

.bp-section ul li:before {
    content: "▪";
    position: absolute;
    left: 10px;
    color: var(--secondary-color);
    font-weight: bold;
}

.bp-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.bp-info-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    line-height: 1.8;
}

.bp-info-item strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.bp-section p {
    margin-top: 15px;
    line-height: 1.8;
}

.bp-download-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00b569 100%);
    border-radius: 12px;
}

.btn-download-bp {
    display: inline-block;
    background: white;
    color: var(--secondary-color);
    padding: 18px 45px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-download-bp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f0f0f0;
}

.bp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.bp-table thead {
    background: var(--secondary-color);
    color: white;
}

.bp-table th,
.bp-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.bp-table th {
    font-weight: 600;
    font-size: 16px;
}

.bp-table tbody tr:hover {
    background: var(--light-bg);
}

.bp-table tbody tr:last-child td {
    border-bottom: none;
}

/* 반응형 */
@media (max-width: 768px) {
    .business-plan-content {
        padding: 20px;
        max-height: 95vh;
    }

    .business-plan-body h1 {
        font-size: 24px;
    }

    .business-plan-body h2 {
        font-size: 18px;
    }

    .bp-section {
        padding: 20px;
    }

    .bp-section h3 {
        font-size: 18px;
    }

    .bp-table {
        font-size: 14px;
    }

    .bp-table th,
    .bp-table td {
        padding: 10px;
    }

    .bp-download-section {
        padding: 20px;
        margin-top: 30px;
    }

    .btn-download-bp {
        font-size: 16px;
        padding: 15px 35px;
    }
}