/* =========================================
   Front-KSPS Custom Styles
   ========================================= */

.btn-link {
    color: #212529;
    text-decoration: none;
}

/* Tab Navigation */
.program-tabs {
    display: inline-flex;
    background: #ffffff;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    gap: 4px;
}

.program-tab-btn {
    padding: 12px 28px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.program-tab-btn:hover {
    color: #2563eb;
    background: #eff6ff;
}

.program-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.program-tab-btn.active:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* Tab Pane Animation */
.tab-pane-custom {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.tab-pane-custom.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Flow */
.step-flow {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 160px;
    max-width: 240px;
    text-align: center;
    position: relative;
    padding: 0 12px;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -8px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #93c5fd);
    z-index: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.step-number.sn-blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.step-number.sn-light {
    background: #eff6ff;
    color: #2563eb;
    border: 2px solid #bfdbfe;
}

.step-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Program Cards */
.program-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
    border-color: #bfdbfe;
}

.program-card:hover::before {
    opacity: 1;
}

.program-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.program-icon i {
    font-size: 24px;
    color: #2563eb;
}

.program-card h5 {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.program-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.btn-link-card {
    color: #2563eb;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}

.btn-link-card:hover {
    gap: 8px;
    color: #1d4ed8;
}

/* SLW Hero Card */
.slw-hero-card {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 20px;
    padding: 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.slw-hero-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -80px;
}

.slw-hero-card::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    bottom: -60px;
    left: -40px;
}

.slw-feature {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

.slw-feature:hover {
    background: rgba(255, 255, 255, 0.15);
}

.slw-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.slw-feature-icon i {
    font-size: 20px;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .step-item:not(:last-child)::after {
        display: none;
    }

    .program-tabs {
        flex-direction: column;
        width: 100%;
    }

    .program-tab-btn {
        justify-content: center;
    }

    .slw-hero-card {
        padding: 32px 20px;
    }
}
