/* =============================================
   contact.css - 교육과정 안내 (일정 페이지)
   ============================================= */

.schedule-page {
    max-width: 75rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}


/* ----- 타이틀 ----- */

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-title-row h1 {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.page-title-row h1 i {
    color: var(--primary);
}

.page-title-row p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.35rem;
}


/* ----- 필터 바 ----- */

.filter-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

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

.filter-group-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

.filter-pills {
    display: flex;
    gap: 0.35rem;
}

.filter-pill {
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-pill:hover {
    border-color: var(--primary);
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.filter-search-label {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.filter-search input {
    padding: 0.45rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    outline: none;
    width: 14rem;
}

.filter-search input:focus {
    border-color: var(--primary);
}


/* ----- 결과 바 ----- */

.result-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 2.5rem;
    height: 1.4rem;
    background: #d1d5db;
    border-radius: 0.7rem;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-switch.on {
    background: var(--primary);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.1rem;
    height: 1.1rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch.on::after {
    transform: translateX(1.1rem);
}

.result-count {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.result-count strong {
    color: var(--text-main);
}


/* ----- 카드 그리드 ----- */

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.course-card {
    background: white;
    border: 1px solid #e8ecf1;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}


/* ----- 썸네일 ----- */

.card-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #4A44A4 0%, #6366f1 100%);
    position: relative;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 1rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.3s;
}

.course-card.closed-card .card-thumb-overlay {
    opacity: 1;
}


/* ----- 카드 바디 ----- */

.card-body {
    padding: 1rem 1.15rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-type-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
}

.card-type-pill {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid;
    width: fit-content;
}

.pill-round {
    color: #475569;
    border-color: #e2e8f0;
    background: #f8fafc;
}

.pill-industry {
    color: #645FF9;
    border-color: #645FF9;
    background: white;
}

.pill-region {
    color: #645FF9;
    border-color: #645FF9;
    background: white;
}

.pill-ai {
    color: #645FF9;
    border-color: #645FF9;
    background: white;
}

.pill-general {
    color: #645FF9;
    border-color: #645FF9;
    background: white;
}

.card-body h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #372368;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    padding-bottom: 0.5rem;
    min-height: calc(1.35em * 2);
}

.card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info-list {
    border-top: 1px solid #f1f5f9;
    padding-top : 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.card-info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.card-info-item i {
    color: #555;
    width: 0.85rem;
    text-align: center;
    margin-top: 0.15rem;
    font-size: 0.8rem;
   
}


/* ----- 카드 푸터 ----- */

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.card-fee-label {
    font-size: 0.8rem;
    color: #999999;
    margin-bottom: 0.1rem;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212121;
}

.btn-apply {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 2rem;
    background: #372368;
    color: white;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-apply:hover {
    opacity: 0.9;
}

.btn-closed {
    background: #94a3b8;
    cursor: default;
}

.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}


/* ----- 반응형 ----- */

@media (max-width: 1024px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .filter-box {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-search {
        margin-left: 0;
        width: 100%;
    }

    .filter-search input {
        flex: 1;
    }
}
