* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    background-color: #f8f9fa;
}

header {
    background-color: #005CDB;
    color: white;
    padding:  2vh;
    background-image: url("https://cdn.discordapp.com/attachments/1384539753738801253/1384769625773965412/image-Photoroom.png?ex=6853a2b6&is=68525136&hm=1bffe1d19d0ce6bc737498d5e2ba2366d4b0a647cfbc2999dbbfba84a18e5de5&");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed; /* 헤더를 고정합니다 */
    width: 100%; /* 전체 너비로 확장 */
    top: 0; /* 화면 상단에 위치 */
    z-index: 1001; /* 다른 요소 위에 표시되도록 z-index 설정 */
}

/* 헤더 높이만큼 콘텐츠를 아래로 내려줍니다 */
.header-spacer {
    height: 54px; /* 헤더 높이에 맞게 조정 필요 */
}

.container {
    width: 1200px;
    max-width: 90%;
    margin: 0 auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
}

.logo span {
    color: #ffc107;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-end; /* 네비게이션 메뉴를 오른쪽으로 정렬 */
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

nav ul li a:hover {
    color: #ffc107;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0)), url('https://i.namu.wiki/i/KsirUwuDQqKOxMP6KKASbEU-iTyMivCxTMvHONayKi_FDhtSMcl8yt5fYv-cstCefXEbfzyx498usAEBsQ-bdw.webp') no-repeat center center/cover;
    height: 500px;
    margin-top: -80px;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}


.hero-content {
    width: 100%;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.features {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    color: #777;
    font-size: 18px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 50px;
    color: #0056b3;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #777;
    line-height: 1.6;
}

.courses {
    padding: 80px 0;
    background-color: #f1f5f9;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-item {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.course-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.course-img {
    height: 200px;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.course-item:hover .course-img img {
    transform: scale(1.1);
}

.course-content {
    padding: 25px;
}

.course-content h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.course-content p {
    color: #777;
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.course-meta span {
    color: #0056b3;
    font-weight: 600;
}

.curriculum-path {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.path-title {
    margin-bottom: 15px;
    color: #0056b3;
    font-weight: 600;
    font-size: 18px;
}

.path-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.path-step {
    background-color: #e9ecef;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
    position: relative;
}

.path-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -15px;
    top: 8px;
    color: #adb5bd;
}

.certification {
    background-color: #ffc107;
    color: #333;
    font-weight: 600;
}

/* 부드러운 스크롤 효과 추가 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* 고정 헤더 높이만큼 스크롤 위치 조정 */
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1002; /* 헤더보다 위에 표시되도록 z-index 조정 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: #333;
}

.modal-content p {
    font-size: 18px;
    color: #005CDB;
    font-weight: bold;
    margin-bottom: 20px;
}

.close-btn {
    background-color: #005CDB;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #0056b3;
}

/* 만든사람들 모달 스타일 */
.creators-modal-content {
    width: 400px;
    text-align: center;
}

.creators-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.creators-list li {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.creators-image {
    width: 100%;
    max-width: 350px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .feature-grid, .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .feature-grid, .course-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .path-steps {
        flex-direction: column;
    }

    .path-step:not(:last-child)::after {
        content: "↓";
        position: absolute;
        right: 50%;
        bottom: -15px;
        top: auto;
    }

    .modal-content, .creators-modal-content {
        width: 90%;
    }
    
    /* 모바일에서 헤더 높이 조정 */
    .header-spacer {
        height: 100px; /* 모바일에서는 헤더가 더 높아질 수 있음 */
    }
}
