body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

.hr-training-programs {
    padding: 40px 20px;
}

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

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

.course-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Card */
.course-card {
    background: #fffaf7;
    border-radius: 10px;
    overflow: hidden;
    width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-info {
    padding: 15px;
    text-align: center;
}

.card-info h5 {
    font-size: 16px;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.course-card:hover {
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 800px) {
    .course-card {
        width: 45%;
    }
}

@media (max-width: 500px) {
    .course-card {
        width: 100%;
    }
}
.course-cards {
    display: flex;
    flex-wrap: nowrap;        /* force single row */
    gap: 20px;
    overflow-x: auto;         /* allow horizontal scroll */
    padding-bottom: 10px;
}

.course-card {
    background: #fffaf7;
    border-radius: 10px;
    overflow: hidden;
    min-width: 250px;         /* fixed card width */
    max-width: 250px;
    flex: 0 0 auto;           /* prevent shrinking */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.hr-training-programs {
    padding: 40px 20px;
    background: #f5f5f5;
}

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

.section-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 30px;
}

/* Carousel */
.card-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

/* Hide scrollbar */
.card-carousel::-webkit-scrollbar {
    display: none;
}

/* Card */
.course-card {
    min-width: 240px;
    background: #fffaf7;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.course-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.card-info {
    padding: 12px;
    text-align: center;
}

.card-info h5 {
    font-size: 15px;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.course-card:hover {
    transform: translateY(-5px);
}
.hr-training-programs {
    padding: 40px 20px;
    background: #f5f5f5;
}

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

.section-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 15px;
    color: #555;
    margin-bottom: 30px;
}

/* Wrapper */
.card-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Carousel */
.card-carousel {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    width: 100%;
}

/* Card */
.course-card {
    min-width: 250px;
    background: #fffaf7;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.card-info {
    padding: 12px;
    text-align: center;
}

.card-info h5 {
    font-size: 15px;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Buttons */
.carousel-btn {
    background: #ffffff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 10px 12px;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-radius: 50%;
    z-index: 2;
}

.carousel-btn.left {
    left: -10px;
}

.carousel-btn.right {
    right: -10px;
}

/* Responsive */
@media (max-width: 768px) {
    .course-card {
        min-width: 200px;
    }
}
