/* ========================================
   멀티캠퍼스 스타일 교육과정 페이지 CSS
   ======================================== */

:root {
    --edu-primary: #1e88e5;
    --edu-secondary: #5e35b1;
    --edu-accent: #ff6b6b;
    --edu-success: #00c853;
    --edu-warning: #ffd600;
    --gradient-blue: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    --gradient-purple: linear-gradient(135deg, #5e35b1 0%, #4527a0 100%);
    --gradient-card: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ==========================================
   교육과정 섹션
   ========================================== */
.education-section {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.education-section .container {
    max-width: 80%;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   헤더 영역
   ========================================== */
.education-header {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.education-title-area {
    margin-bottom: 2rem;
    text-align: center;
}

.education-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.education-title i {
    color: #667eea;
    font-size: 2.5rem;
}

.education-description {
    font-size: 1.1rem;
    color: #718096;
    margin: 0;
}

/* ==========================================
   필터 & 검색
   ========================================== */
.filter-search-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 250px;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    background: white;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
}

.search-container {
    flex: 2;
    min-width: 300px;
}

.search-form {
    display: flex;
    gap: 0.75rem;
}

.search-select {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.875rem 3.5rem 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: #2d3748;
    transition: all 0.3s ease;
}

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

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
}

/* ==========================================
   통계 영역
   ========================================== */
.education-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.stat-item i {
    color: #667eea;
    font-size: 1.25rem;
}

.stat-item strong {
    color: #2d3748;
    font-weight: 700;
}

/* ==========================================
   교육 과정 카드 그리드
   ========================================== */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.education-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* 카드 썸네일 */
.card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.education-card:hover .card-thumbnail img {
    transform: scale(1.1);
}

/* 카테고리 뱃지 */
.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 난이도 뱃지 */
.card-level {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.level-beginner {
    background: #4caf50;
    color: white;
}

.level-intermediate {
    background: #ff9800;
    color: white;
}

.level-advanced {
    background: #f44336;
    color: white;
}

/* 카드 내용 */
.card-content {
    padding: 1.75rem;
}

.card-header {
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.card-tag {
    padding: 0.25rem 0.75rem;
    background: #f7fafc;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: #667eea;
    font-weight: 600;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-description {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 카드 정보 */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #4a5568;
}

.info-item i {
    width: 20px;
    color: #667eea;
    font-size: 1rem;
}

/* 카드 푸터 */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.card-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: #667eea;
}

.price-amount .won {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

.card-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 신청 상태 뱃지 */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-recruiting {
    background: #4caf50;
    color: white;
}

.status-closing-soon {
    background: #ff9800;
    color: white;
}

.status-closed {
    background: #9e9e9e;
    color: white;
}

/* ==========================================
   페이지네이션
   ========================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-link:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

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

/* ==========================================
   빈 상태
   ========================================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1.5rem;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.empty-state p {
    font-size: 1rem;
    color: #718096;
}

/* ==========================================
   반응형 디자인
   ========================================== */
@media (max-width: 1024px) {
    .education-section .container {
        max-width: 90%;
    }

    .education-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .education-section {
        padding: 6rem 0 3rem;
    }

    .education-section .container {
        max-width: 95%;
        padding: 0 1rem;
    }

    .education-header {
        padding: 1.5rem;
    }

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

    .filter-search-container {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
        overflow-x: auto;
    }

    .search-container {
        width: 100%;
    }

    .education-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

@media (max-width: 480px) {
    .card-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .card-button {
        width: 100%;
    }
}
