/* ========================================
   Training Section - Enriched
   ======================================== */

.training-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 50%, #f8fbff 100%);
    position: relative;
    overflow: hidden;
}

.training-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 155, 213, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.training-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91, 155, 213, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* Stats Bar */
.training-stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 24px 40px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(91, 155, 213, 0.08);
    max-width: 750px;
    margin: 0 auto 48px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item > i {
    font-size: 1.5rem;
    color: #5b9bd5;
}

.stat-item > div {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.78rem;
    color: #8a9bb5;
    line-height: 1.2;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: #e4edf7;
}

/* Training Card */
.training-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 52px 36px 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    border: 1px solid rgba(91, 155, 213, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.training-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5b9bd5, #00d9ff);
    border-radius: 4px 4px 0 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.training-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(91, 155, 213, 0.15);
    border-color: rgba(91, 155, 213, 0.15);
}

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

/* Featured Training */
.training-card.featured-training {
    background: linear-gradient(135deg, #5b9bd5 0%, #3d7ebf 100%);
    color: #ffffff;
    border: none;
}

.training-card.featured-training::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    opacity: 1;
}

.training-card.featured-training .training-title,
.training-card.featured-training .training-meta,
.training-card.featured-training .training-description,
.training-card.featured-training .training-subtitle {
    color: #ffffff;
}

.training-card.featured-training .training-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.training-card.featured-training .training-icon {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.training-card.featured-training .feature-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.training-card.featured-training .meta-pill {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.training-card.featured-training .training-highlights li {
    color: rgba(255, 255, 255, 0.95);
}

.training-card.featured-training .training-highlights li i {
    color: rgba(255, 255, 255, 0.8);
}

.training-card.featured-training .price-label,
.training-card.featured-training .price-amount {
    color: #ffffff;
}

.training-card.featured-training .btn-training {
    background: #ffffff;
    color: #5b9bd5;
}

.training-card.featured-training .btn-training:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.training-card.featured-training .training-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* Course Badge - in training cards */
.training-card .course-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    white-space: nowrap;
}

.badge-popular {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.badge-advanced {
    background: linear-gradient(135deg, #a55eea, #8854d0);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(165, 94, 234, 0.3);
}

.badge-flexible {
    background: linear-gradient(135deg, #2ed573, #20bf6b);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 213, 115, 0.3);
}

/* Training Header */
.training-header {
    display: flex;
    gap: 18px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.training-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #5b9bd5, #00d9ff);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(91, 155, 213, 0.2);
}

.training-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.training-subtitle {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5b9bd5;
    margin-bottom: 4px;
}

.training-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.training-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.training-meta i {
    font-size: 0.875rem;
}

.separator {
    color: #dee2e6;
}

/* Meta Row */
.training-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #f0f7ff;
    color: #5b9bd5;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.meta-pill i {
    font-size: 0.75rem;
}

/* Training Description */
.training-description {
    font-size: 0.9rem;
    color: #6c7a8a;
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 0;
}

/* Training Highlights (bullet points) */
.training-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.training-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 500;
}

.training-highlights li i {
    color: #5b9bd5;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Training Features */
.training-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f7ff;
    color: #5b9bd5;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.feature-badge i {
    font-size: 0.8rem;
}

/* Training Footer */
.training-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #eef3f8;
    margin-top: auto;
}

/* Training Button */
.btn-training {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 11px 26px;
    background: linear-gradient(135deg, #5b9bd5, #4a8ac4);
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 155, 213, 0.25);
}

.btn-training i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-training:hover {
    background: linear-gradient(135deg, #4a8ac4, #3d7ebf);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(91, 155, 213, 0.35);
    color: #ffffff;
}

.btn-training:hover i {
    transform: translateX(3px);
}

/* View All Button */
.btn-view-all-training {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: transparent;
    color: #5b9bd5;
    text-decoration: none;
    border: 2px solid #5b9bd5;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-view-all-training:hover {
    background: #5b9bd5;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 155, 213, 0.3);
}

.btn-view-all-training i {
    transition: transform 0.3s ease;
}

.btn-view-all-training:hover i {
    transform: translateX(5px);
}

/* Grid Mode - equal height cards */
.training-grid {
    align-items: stretch;
}

/* Carousel Mode */
.training-owl-carousel .training-carousel-item {
    padding: 10px 0;
}

.training-owl-carousel .training-card {
    height: auto;
    margin-bottom: 10px;
}

.training-owl-carousel .owl-nav button {
    width: 44px;
    height: 44px;
    background: #5b9bd5 !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(91, 155, 213, 0.2);
}

.training-owl-carousel .owl-nav button:hover {
    background: #4a8ac4 !important;
    transform: scale(1.1);
}

.training-owl-carousel .owl-dots .owl-dot span {
    background: #d4e4f3;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.training-owl-carousel .owl-dots .owl-dot.active span {
    background: #5b9bd5;
    width: 28px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 991px) {
    .training-section {
        padding: 80px 0;
    }

    .training-stats-bar {
        gap: 20px;
        padding: 20px 24px;
    }
}

@media (max-width: 768px) {
    .training-card {
        padding: 44px 28px 28px;
    }

    .training-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .training-icon {
        margin: 0 auto 12px;
    }

    .training-subtitle {
        text-align: center;
    }

    .training-title {
        text-align: center;
    }

    .training-meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .training-meta-row {
        justify-content: center;
    }

    .training-description {
        text-align: center;
    }

    .training-highlights {
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .training-features {
        justify-content: center;
    }

    .training-footer {
        justify-content: center;
    }

    .btn-training {
        width: 100%;
        justify-content: center;
    }

    .training-stats-bar {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .stat-divider {
        width: 80%;
        height: 1px;
    }

    .stat-item {
        justify-content: center;
    }

    .training-card .course-badge {
        top: 12px;
        right: 12px;
    }
}
