/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 헤더 스타일 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 13px;
}

nav ul li a.active,
nav ul li a:hover {
    background-color: #f0f0f0;
}

/* 메인 컨텐츠 */
main {
    margin-top: 80px;
    padding: 2rem 5%;
}

.course-dates {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e8f4f8;
    border-radius: 8px;
}

.date-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.date-item .label {
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 500;
}

.date-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    background-color: #3498db;
    padding: 0.5rem 1rem 0.5rem 12px;
    border-radius: 10px;
    color: white;
}

.content-list {
    list-style: none;
    padding-left: 1.5rem;
}

.content-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #444;
}

.content-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* 취업 통계 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card .label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-card .count {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

/* 훈련기관 정보 */
.institution-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.info-item .value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.info-item .value a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.info-item .value a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 관련 과정 */
.related-courses {
    margin-top: 3rem;
    padding: 0 5%;
}

.related-courses h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* 관련 교육과정 그리드 */
.related-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 관련 과정 카드 스타일 */
.course-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.course-card .course-header {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.course-card .course-header .badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.course-card .course-header .badge:nth-child(1) {
    background-color: #3498db;
    color: white;
}

.course-card .course-header .badge:nth-child(2) {
    background-color: #2ecc71;
    color: white;
}

.course-card .course-header .badge:nth-child(3) {
    background-color: #e74c3c;
    color: white;
}

.course-card .course-content {
    padding: 1.5rem;
}

.course-card .course-content h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.course-card .course-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.course-card .course-details {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.course-card .detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.course-card .detail-item .label {
    color: #666;
}

.course-card .detail-item .value {
    color: #2c3e50;
    font-weight: 500;
}

.course-card .course-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.course-card .stat {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.course-card .stat .label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.course-card .stat .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.course-card .course-dates {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    padding: 1rem;
    background: #e8f4f8;
    border-radius: 8px;
    font-size: 0.9rem;
}

.course-card .course-capacity {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.course-card .course-capacity .label {
    color: #666;
    margin-right: 0.5rem;
}

.course-card .course-capacity .value {
    color: #2c3e50;
    font-weight: 500;
}

.course-card .btn.small {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background-color: #3498db;
    color: white;
    text-align: center;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: 1.5rem;
}

.course-card .btn.small:hover {
    background-color: #2980b9;
}

/* 푸터 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* 과정 상세 헤더 */
.course-header.compact {
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.title-section {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #eee;
}

.title-section h1 {
    font-size: 1.7rem;
    color: #333;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badges-inline {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.badge {
    background-color: #3498db;
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge:nth-child(2) {
    background-color: #2ecc71;
}

.badge:nth-child(3) {
    background-color: #e74c3c;
}

.info-section {
    padding: 2rem 2.5rem;
}

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

.meta-pair {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-pair .label {
    color: #666;
    font-size: 0.9rem;
}

.meta-pair .value {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

.btn-wrap {
    padding: 0 2.5rem 2rem;
}

.btn.apply {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 0.9rem 0;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn.apply:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .meta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 0.5rem 2%;
    }
    nav ul {
        margin-top: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 0 0.3rem;
    }
    .course-header.compact {
        max-width: 100%;
        margin: 0 0 1.5rem 0;
        border-radius: 0;
        box-shadow: none;
    }
    .title-section {
        padding: 1rem;
    }
    .title-section h1 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }
    .badges-inline {
        gap: 0.3rem;
    }
    .badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.7rem;
    }
    .info-section {
        padding: 1rem;
    }
    .meta-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .meta-pair {
        padding: 0.4rem;
        background: #f8f9fa;
        border-radius: 5px;
    }
    .btn-wrap {
        padding: 0 1rem 1rem;
    }
    .btn.apply {
        font-size: 1rem;
        padding: 0.7rem 0;
        max-width: 100%;
    }
    .course-content {
        padding: 1rem;
        max-width: 100%;
    }
    .content-section {
        margin-bottom: 1.5rem;
    }
    .content-section h2 {
        font-size: 1.1rem;
        padding: 0.3rem 0.7rem 0.3rem 8px;
        border-radius: 6px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .stat-card {
        padding: 1rem;
    }
    .institution-info {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 1rem;
    }
    .info-item .label,
    .info-item .value {
        font-size: 0.9rem;
    }
    .related-courses {
        padding: 0 1rem;
    }
    .related-course-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .course-card {
        border-radius: 6px;
        padding: 1rem;
    }
    .course-card .course-content {
        padding: 1rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    footer {
        padding: 2rem 2% 1rem;
    }
}

@media (max-width: 480px) {
    .meta-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .meta-pair {
        padding: 0.5rem;
        background: #f8f9fa;
        border-radius: 6px;
    }
}

/* 과정 내용 */
.course-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 0 auto 2rem auto;
}