@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

body { margin: 0; padding: 0; background-color: #0f0f1e; color: white; font-family: 'Pretendard', sans-serif; overflow: hidden; }
#dashboard { width: 100vw; height: 100vh; position: relative; }

.slide { position: absolute; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; z-index: 10; }
.title { font-size: 4.5rem; margin-bottom: 50px; text-shadow: 0 0 25px rgba(255, 255, 255, 0.4); font-weight: 900; }

/* =========================================
   [세움학원 소개 슬라이드 전용 스타일]
========================================= */
.intro-slide {
    text-align: center;
    background: radial-gradient(circle at center, #1a237e 0%, #0f0f1e 80%);
}

.intro-title {
    font-size: 5.5rem; font-weight: 900; margin-bottom: 30px; color: #ffffff;
    line-height: 1.4; text-shadow: 0 10px 20px rgba(0,0,0,0.5); word-break: keep-all;
}

.intro-sub {
    font-size: 3.5rem; color: #ffd700; font-weight: bold; margin-top: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.intro-list { list-style: none; padding: 0; margin-top: 50px; text-align: left; display: inline-block; }
.intro-list li { font-size: 3rem; margin-bottom: 35px; color: #e3f2fd; padding-left: 55px; position: relative; font-weight: 600; }
.intro-list li::before { content: '✔️'; position: absolute; left: 0; top: 5px; font-size: 2.8rem; }

.contact-box {
    background: rgba(255, 255, 255, 0.08); padding: 60px 100px; border-radius: 40px;
    border: 3px solid #00E676; margin-top: 50px; text-align: center; box-shadow: 0 15px 35px rgba(0, 230, 118, 0.15);
}
.contact-box p { font-size: 2.8rem; margin: 0 0 25px 0; color: #e0e0e0; }
.contact-box strong { color: #00E676; font-size: 4.5rem; display: block; letter-spacing: 3px; font-weight: 900; }

/* ★신규 추가: 교육 과목 카드 디자인★ */
.subject-container { display: flex; gap: 40px; margin-top: 40px; }
.subject-card {
    background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px; padding: 50px 30px; width: 320px; text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.subject-icon { font-size: 6rem; margin-bottom: 25px; text-shadow: 0 5px 15px rgba(0,0,0,0.4); }
.subject-name { font-size: 3.5rem; font-weight: 900; color: #ffd700; margin-bottom: 20px; letter-spacing: 5px; }
.subject-desc { font-size: 1.8rem; color: #e3f2fd; line-height: 1.5; word-break: keep-all; font-weight: 600; }

/* =========================================
   [육상 트랙 및 달리기 애니메이션]
========================================= */
.track-container { 
    width: 90%; height: 65vh; background-color: #d35400; 
    border-top: 15px solid #27ae60; border-bottom: 15px solid #27ae60; 
    border-radius: 15px; padding: 20px 0; display: flex; flex-direction: column; 
    overflow-y: hidden; position: relative; box-shadow: inset 0 0 30px rgba(0,0,0,0.6), 0 10px 30px rgba(0,0,0,0.5);
}
.track-container::-webkit-scrollbar { display: none; }
.start-line { position: absolute; left: 5%; top: 0; bottom: 0; width: 8px; background-color: rgba(255, 255, 255, 0.9); z-index: 1; box-shadow: 2px 0 10px rgba(0,0,0,0.3); }
.finish-line { position: absolute; right: 10%; top: 0; bottom: 0; width: 20px; background: repeating-linear-gradient(0deg, white 0, white 20px, black 20px, black 40px); z-index: 1; box-shadow: -5px 0 15px rgba(0,0,0,0.4); }
.lane { flex: 1; display: flex; align-items: center; position: relative; border-bottom: 3px solid rgba(255,255,255,0.7); width: 100%; min-height: 100px; }
.lane:last-child { border-bottom: none; }
.runner-wrapper { position: absolute; transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; align-items: center; z-index: 2; transform: translateX(-50%); }
.runner-bubble { background: #FFEB3B; color: #333; font-size: 1.3rem; font-weight: bold; padding: 4px 12px; border-radius: 15px; margin-bottom: -5px; z-index: 3; border: 2px solid #333; }
@keyframes run-anim {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(0deg); }
    25% { transform: scaleX(-1) translateY(-8px) rotate(-5deg); }
    75% { transform: scaleX(-1) translateY(4px) rotate(5deg); }
}
.runner-char { font-size: 5.5rem; line-height: 1; filter: drop-shadow(-4px 4px 6px rgba(0,0,0,0.4)); display: inline-block; animation: run-anim 0.6s infinite; }
.runner-name { font-size: 1.4rem; background: rgba(0,0,0,0.8); padding: 4px 12px; border-radius: 10px; white-space: nowrap; margin-top: 5px; font-weight: bold; color: white; }

/* 시상대 및 기타 디자인 */
.podium-container { display: flex; align-items: flex-end; gap: 30px; height: 500px; }
.rank-box { width: 250px; display: flex; flex-direction: column; align-items: center; border-radius: 20px 20px 0 0; padding-bottom: 25px; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6); }
.rank-box .name { font-size: 2.5rem; margin-bottom: 8px; font-weight: bold; }
.rank-box .count { font-size: 1.8rem; background: rgba(0, 0, 0, 0.25); padding: 5px 20px; border-radius: 25px; }
.rank-2 { height: 320px; background: linear-gradient(135deg, #bdc3c7, #2c3e50); order: 1; }
.rank-1 { height: 480px; background: linear-gradient(135deg, #f1c40f, #f39c12); order: 2; width: 300px; }
.rank-3 { height: 240px; background: linear-gradient(135deg, #e67e22, #d35400); order: 3; }
.quote { font-size: 3rem; font-weight: 800; color: #ffd700; margin-bottom: 50px; font-style: italic; }
.info-card { background: rgba(255, 255, 255, 0.07); padding: 50px; border-radius: 40px; border: 2px solid rgba(0, 212, 255, 0.3); }
.info-card li { font-size: 2.2rem; margin-bottom: 25px; text-align: left; list-style: none; }
.history-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 50px; width: 95%; max-width: 1500px; }
.history-item { background: white; padding: 15px; border-radius: 12px; box-shadow: 0 15px 35px rgba(0,0,0,0.5); color: #222; text-align: center; width: 300px; transform: rotate(-1.5deg); transition: transform 0.4s; }
.history-item:hover { transform: rotate(0deg) scale(1.08); }
.history-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid #eee; }
.history-item p { font-size: 1.6rem; margin-top: 15px; margin-bottom: 5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ★ 추가됨: 이미지 확대 팝업(모달) 스타일 ★ */
#image-modal {
    position: fixed; top: 0; left: 0; 
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9); 
    display: flex; flex-direction: column; 
    justify-content: center; align-items: center;
    z-index: 2000; 
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
}
#image-modal.show {
    opacity: 1; visibility: visible;
}
#image-modal img {
    max-width: 90%; max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}
#image-modal .modal-title {
    color: #fff; font-size: 2.5rem; font-weight: 800; 
    margin-top: 25px; text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
#image-modal .close-btn {
    position: absolute; top: 30px; right: 40px;
    font-size: 5rem; color: #fff; cursor: pointer;
    background: none; border: none; padding: 0;
    line-height: 1; text-shadow: 0 0 10px rgba(0,0,0,0.8);
}