/* ===== TRAINING PROGRAMS SECTION ===== */
.training-programs {
    background-color: #f8fafc;
    padding: 80px 20px;
    position: relative;
}

.training-programs-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.training-programs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.section-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.training-programs-title {
    font-family: poppins;
    font-size: 42px;
    font-weight: 700;
    color: #1A3A52;
    margin: 0;
    text-align: left;
}

/* ===== CAROUSEL NAVIGATION CONTROLS ===== */
.carousel-controls {
    display: flex;
    gap: 12px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #E5E7EB;
    background-color: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #6B7280;
    font-size: 20px;
}

.carousel-btn:hover {
    border-color: #1A62B7;
    background-color: #F3F4F6;
    color: #1A62B7;
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #E5E7EB;
    background-color: #ffffff;
    color: #9CA3AF;
}

.carousel-btn:disabled:hover {
    background-color: #ffffff;
    border-color: #E5E7EB;
}

/* ===== CAROUSEL CONTAINER ===== */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease-in-out;
}

/* ===== TRAINING CARDS ===== */
/* ===== TRAINING CARDS ===== */
.training-card {
    flex: 0 0 calc(33.333% - 16px);
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Card Image Section */
/* Card Image Section */
.card-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Remove old gradients */
.card-image.bnsp,
.card-image.kemnaker,
.card-image.non-cert {
    background: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.training-card:hover .card-image img {
    transform: scale(1.05);
}

/* Card Content Section */
/* Card Content Section */
.card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: poppins;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.card-description {
    font-family: poppins;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 24px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer with Link */
/* Card Footer with Link */
.card-footer {
    padding-top: 0;
    border-top: none;
    margin-top: auto;
}

.card-link {
    display: block;
    width: 100%;
    background-color: #559e6d;
    color: #ffffff;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-family: poppins;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.card-link:hover {
    background-color: #438257;
    color: #ffffff;
}

/* Remove underline animation since it's a button now */
.card-link::after {
    display: none;
}

/* ===== CLIENT REVIEWS & TESTIMONIALS SECTION ===== */
#reviews-testimonials {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid #E5E7EB;
}

.section-hero {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
    padding: 20px;
}

.elfsight-widget-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 400px;
}

/* ===== RESPONSIVE DESIGN: TABLET ===== */
@media (max-width: 992px) {
    .training-programs {
        padding: 60px 20px;
    }

    .training-programs-title {
        font-size: 36px;
    }

    .training-card {
        flex: 0 0 calc(50% - 12px);
    }

    .carousel-controls {
        gap: 10px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ===== RESPONSIVE DESIGN: MOBILE ===== */
@media (max-width: 640px) {
    .training-programs {
        padding: 50px 16px;
    }

    /* HEADER: TITLE + CAROUSEL CONTROLS SEJAJAR */
    .training-programs-header {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 32px;
    }

    .training-programs-title {
        text-align: left;
        font-size: 22px;
        line-height: 1.3;
        flex: 1;
    }

    .carousel-controls {
        display: flex;
        gap: 8px;
        align-items: center;
        align-self: center;
        flex-shrink: 0;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* CARD */
    .training-card {
        flex: 0 0 100%;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 20px;
        text-align: center;
        align-items: center;
    }

    .card-title {
        font-size: 18px;
    }

    .card-description {
        font-size: 14px;
    }

    .card-footer {
        justify-content: center;
        align-self: stretch;
    }

    .carousel-track {
        gap: 16px;
    }
}


/* ===== TOUCH DEVICE SUPPORT ===== */
/* Enable native swipe scrolling on touch devices */
@media (hover: none) and (pointer: coarse) {
    .carousel-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }

    .training-card {
        scroll-snap-align: start;
    }

    .carousel-track {
        transition: none;
    }
}

/* ===== SERVICES LINK ===== */
.services-link-container {
    text-align: center;
    margin-top: 40px;
}

.services-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: poppins;
    font-size: 16px;
    font-weight: 600;
    color: #1A3A52;
    text-decoration: none;
    transition: color 0.3s ease;
}

.services-link:hover {
    color: #1A62B7;
}

.services-link span {
    transition: transform 0.3s ease;
}

.services-link:hover span {
    transform: translateX(4px);
}