/* ===================================
   Success Stories Page Styles
   =================================== */

/* Success Header */
.success-header {
    background: linear-gradient(135deg, #1B5E3E 0%, #2E7D5E 50%, #0D3B28 100%);
}

/* Stats Banner */
.stats-banner-section {
    padding: 60px 0;
    background: var(--light-color);
}

.stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat-banner-item {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.stat-banner-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-banner-item i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.stat-banner-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-banner-item p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

/* Success Story Section */
.success-story-section {
    padding: 100px 0;
}

.medical-story {
    background: linear-gradient(to bottom, var(--white), #e8f5e9);
}

.seoul-story {
    background: linear-gradient(to bottom, #e8f5e9, #e3f2fd);
}

.korea-story {
    background: linear-gradient(to bottom, #e3f2fd, #fce4ec);
}

.story-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Story Header */
.story-header {
    text-align: center;
    margin-bottom: 60px;
}

.story-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.story-badge.medical {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: var(--white);
}

.story-badge.seoul {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: var(--white);
}

.story-badge.korea {
    background: linear-gradient(135deg, #c62828, #e53935);
    color: var(--white);
}

.story-badge i {
    font-size: 1.5rem;
}

.story-title {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.story-subtitle {
    font-size: 1.3rem;
    color: var(--gray-600);
}

/* Story Content */
.story-content {
    background: var(--white);
    border-radius: 25px;
    padding: 60px;
    box-shadow: var(--shadow-xl);
}

/* Story Profile */
.story-profile {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: var(--light-color);
    border-radius: 20px;
    margin-bottom: 50px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    box-shadow: var(--shadow-md);
}

.profile-info h3 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.profile-univ {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-year {
    font-size: 1rem;
    color: var(--gray-600);
}

/* Before & After Section */
.before-after-section {
    margin: 50px 0;
}

.before-after-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

.before-card,
.after-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 3px solid;
    min-height: 350px;
}

.before-card {
    border-color: #ef5350;
}

.after-card {
    border-color: #66bb6a;
}

.card-label {
    position: absolute;
    top: -15px;
    left: 30px;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.card-label.before {
    background: #ef5350;
    color: var(--white);
}

.card-label.after {
    background: #66bb6a;
    color: var(--white);
}

.before-card h4,
.after-card h4 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-top: 15px;
}

.challenge-list,
.result-list {
    display: grid;
    gap: 15px;
}

.challenge-list li,
.result-list li {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    line-height: 1.7;
    font-size: 1rem;
}

.challenge-list li {
    background: rgba(239, 83, 80, 0.08);
}

.result-list li {
    background: rgba(102, 187, 106, 0.08);
}

.challenge-list li i {
    color: #ef5350;
    font-size: 1.2rem;
    margin-top: 3px;
}

.result-list li i {
    color: #66bb6a;
    font-size: 1.2rem;
    margin-top: 3px;
}

.arrow-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.arrow-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-color);
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.solution-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    text-align: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Success Factors */
.success-factors {
    margin: 50px 0;
    padding: 40px;
    background: rgba(255, 214, 0, 0.08);
    border-radius: 20px;
    border: 2px solid rgba(255, 214, 0, 0.3);
}

.success-factors h4 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-factors h4 i {
    color: var(--accent-color);
    font-size: 2rem;
}

.factors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.factor-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.factor-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.factor-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
}

.factor-item h5 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.factor-item p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Progress Chart */
.progress-chart {
    margin: 50px 0;
    padding: 40px;
    background: rgba(26, 35, 126, 0.05);
    border-radius: 20px;
}

.progress-chart h4 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-chart h4 i {
    color: var(--primary-color);
    font-size: 2rem;
}

.chart-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 20px;
    height: 300px;
}

.chart-bar {
    flex: 1;
    background: var(--color, var(--primary-color));
    border-radius: 10px 10px 0 0;
    height: calc(var(--progress) * 1%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10px;
    box-shadow: var(--shadow-md);
    transition: all 0.5s ease;
    animation: growUp 1s ease;
}

@keyframes growUp {
    from { height: 0; }
    to { height: calc(var(--progress) * 1%); }
}

.bar-label {
    position: absolute;
    bottom: -35px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.bar-value {
    font-weight: 700;
    color: var(--white);
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Student Voice */
.student-voice {
    margin: 50px 0 0;
    padding: 40px;
    background: var(--light-color);
    border-radius: 20px;
    border-left: 5px solid var(--accent-color);
    position: relative;
}

.voice-icon {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-color);
    box-shadow: var(--shadow-md);
}

.student-voice blockquote {
    padding-top: 20px;
}

.student-voice p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--gray-800);
    font-style: italic;
    margin-bottom: 20px;
}

.student-voice cite {
    display: block;
    text-align: right;
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: normal;
}

/* More Stories Section */
.more-stories-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #fce4ec, var(--light-color));
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.story-mini-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.story-mini-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.mini-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--white);
}

.mini-badge.seoul {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
}

.mini-badge.sky {
    background: linear-gradient(135deg, #c62828, #e53935);
}

.story-mini-card h4 {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.mini-major {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.mini-desc {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Responsive Design for Success Page */
@media (max-width: 1024px) {
    .stats-banner {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .arrow-middle {
        flex-direction: row;
    }
    
    .arrow-circle {
        transform: rotate(90deg);
    }
    
    .solution-label {
        writing-mode: horizontal-tb;
    }
    
    .factors-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .story-content {
        padding: 35px 25px;
    }
    
    .story-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .profile-info h3 {
        font-size: 1.8rem;
    }
    
    .story-title {
        font-size: 2.2rem;
    }
    
    .before-card,
    .after-card {
        padding: 25px;
        min-height: auto;
    }
    
    .success-factors,
    .progress-chart,
    .student-voice {
        padding: 25px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .bar-value {
        font-size: 1rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .story-title {
        font-size: 1.8rem;
    }
    
    .stat-banner-item h3 {
        font-size: 2.2rem;
    }
    
    .story-content {
        padding: 25px 20px;
    }
    
    .success-factors h4,
    .progress-chart h4 {
        font-size: 1.4rem;
    }
    
    .student-voice p {
        font-size: 1rem;
    }
}
