:root {
    --primary-edu: #5E72E4;
    --primary-purple: #825EE4;
    --primary-blue: #2643E9;
    --accent-orange: #FF9F40;
    --accent-green: #2DCE89;
    --accent-red: #F5365C;
    --gradient-start: #5E72E4;
    --gradient-end: #825EE4;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --bg-light: #F7F8FC;
    --bg-lighter: #EEF1FB;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* 페이지 헤더 스타일 */
.page-header {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,154.7C672,160,768,224,864,218.7C960,213,1056,139,1152,128C1248,117,1344,171,1392,197.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat center;
    background-size: cover;
    animation: wave 25s linear infinite;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(94,114,228,0.1), transparent);
}

@keyframes wave {
    0% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-25%) translateY(-10px); }
    100% { transform: translateX(-50%) translateY(0); }
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* 도전 과제 카드 */
.challenge-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(94,114,228,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-edu), var(--primary-purple));
}

.challenge-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-edu);
    box-shadow: 0 20px 40px rgba(94,114,228,0.15);
}

.challenge-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-edu), var(--primary-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 36px;
    color: white;
    box-shadow: 0 10px 20px rgba(94,114,228,0.3);
}

/* 성공 사례 카드 */
.case-study-wrapper {
    margin-bottom: 60px;
}

.case-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.case-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-image-wrapper:hover img {
    transform: scale(1.08);
}

.subject-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, var(--primary-edu), var(--primary-purple));
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(94,114,228,0.4);
}

.badge-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* 결과 박스 스타일 */
.result-box {
    background: linear-gradient(145deg, var(--bg-lighter), var(--bg-light));
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.result-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-edu);
    box-shadow: 0 10px 25px rgba(94,114,228,0.15);
}

/* 전략 카드 */
.strategy-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    height: 100%;
}

.strategy-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* 통계 카드 */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.stat-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-edu);
    box-shadow: 0 20px 40px rgba(94,114,228,0.2);
}

.stat-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-edu), var(--primary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(94,114,228,0.3);
}

.stat-card:hover .stat-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 15px 30px rgba(94,114,228,0.4);
}

.edu-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-edu);
    margin-bottom: 10px;
}

/* 학원 종류별 전략 */
.academy-strategy {
    background: linear-gradient(135deg, #F3F4FF 0%, #EBEEFF 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-edu);
}

.academy-strategy:hover {
    transform: translateX(10px);
    box-shadow: -10px 10px 30px rgba(94,114,228,0.1);
}

/* 프로세스 타임라인 */
.process-timeline {
    position: relative;
    padding: 40px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-edu), var(--primary-purple));
    transform: translateY(-50%);
}

.process-item {
    position: relative;
    display: inline-block;
    width: 20%;
    text-align: center;
    padding: 0 20px;
}

.process-number {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid var(--primary-edu);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-edu);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.process-item:hover .process-number {
    background: var(--primary-edu);
    color: white;
    transform: scale(1.2);
}

/* CTA 섹션 */
.cta-section {
    background: linear-gradient(135deg, #2D3436 0%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><path fill="none" stroke="rgba(94,114,228,0.1)" stroke-width="2" d="M0 400 Q 300 200 600 400 T 1200 400"/></svg>');
    background-size: cover;
}

.cta-badge {
    background: linear-gradient(135deg, var(--primary-edu), var(--primary-purple));
    box-shadow: 0 20px 40px rgba(94,114,228,0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 버튼 스타일 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-edu), var(--primary-purple));
    border: none;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(94,114,228,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(94,114,228,0.4);
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-edu));
}

/* 학부모 후기 카드 */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-edu);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(94,114,228,0.15);
}

.parent-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bg-lighter), var(--bg-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

/* 특별 혜택 섹션 */
.benefit-card {
    background: linear-gradient(135deg, #FFF5F7 0%, #FFE5EA 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,159,64,0.1) 0%, transparent 70%);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255,159,64,0.2);
}

.benefit-card:hover::before {
    top: -30%;
    right: -30%;
}

.benefit-icon {
    font-size: 48px;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

/* 학원 종류별 색상 */
.english-badge { background: linear-gradient(135deg, #00C9A7, #00E5CC); }
.math-badge { background: linear-gradient(135deg, #F5365C, #FF6B8A); }
.exam-badge { background: linear-gradient(135deg, #2643E9, #5E72E4); }
.art-badge { background: linear-gradient(135deg, #FF9F40, #FFCD56); }

/* 배지 스타일 */
.badge {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
}

.bg-edu {
    background-color: rgba(94,114,228,0.1) !important;
    color: var(--primary-edu) !important;
}

/* 섹션 배경 */
.section-gradient {
    background: linear-gradient(135deg, #F7F8FC 0%, #EEF1FB 100%);
}

/* 반응형 */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .edu-stat-number {
        font-size: 2.5rem;
    }

    .cta-badge {
        width: 150px !important;
        height: 150px !important;
    }

    .process-item {
        width: 100%;
        margin-bottom: 30px;
    }

    .process-timeline::before {
        display: none;
    }
}