

.training .course-card {
  background: var(--surface-color);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 25px color-mix(in srgb, var(--default-color), transparent 90%);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.training .course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px color-mix(in srgb, var(--default-color), transparent 85%);
}

.training .course-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.training .course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.training .course-image:hover img {
  transform: scale(1.05);
}


.training .course-price {
font-size: 18px;
margin-bottom: 10px;
font-weight: 700;
line-height: 1.2;
color:#000;
}


.training .course-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.training .course-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.training .course-meta span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 15px;
  font-weight: 500;
}

.training .course-meta span.badge-training {
  background:#1e3a8a;
  color: var(--contrast-color);
  
}

.training .course-meta span.badge-seminar {
  background:#eab308; 
  color: var(--contrast-color);
  
}
.training .course-meta span.level {
  background:#1e3a8a;
  color: var(--contrast-color);
  
}

.training .course-meta span.duration {
  background: color-mix(in srgb, var(--heading-color), transparent 85%);
  color: var(--heading-color);
}

.training h3 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;

}

.training h3 a {
  color:#1f2937;
  text-decoration: none;
  transition: color 0.3s ease;
}

.training h3 a:hover {
  color: var(--accent-color);
}

.training p {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.training .course-price .text-success{

 font-size: 18px !important;
margin-bottom: 10px !important;
font-weight: 700 !important;
line-height: 1.2 !important;
color:#000 !important;
  
}


.training .btn-course {
  display: inline-block;
  background:#1e3a8a;
  color: var(--contrast-color);
  padding: 0 25px;              /* horizontal padding only */
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: auto;
  line-height: 46px;            /* match cart button height */
  height: 46px;                 /* fixed height */
    flex: 1;              /* 🔑 take all remaining space */
  height: 46px;         /* match cart height */
}

.training .btn-course:hover {
  transform: scale(1.05);           /* zoom effect */
  background: color-mix(in srgb, var(--accent-color), black 15%);
  /* darker mix of accent */
  color: var(--contrast-color);
}

/* Cart button beside Enroll Now */
.training .btn-cart {
  flex: 0 0 46px;               /* fixed square size */
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius:8px;
  background: #facc15;          /* yellow */
  border: 1px solid rgba(0,0,0,.1);
  color: #000;                  /* black icon */
  transition: all 0.3s ease;
}

.training .btn-cart i {
  font-size: 1.2rem;
  line-height: 1;
}

/* Zoom + shade shift */
.training .btn-cart:hover {
  transform: scale(1.1);            /* zoom a little more */
  background: #eab308;              /* darker yellow */
  color: #000;
}

/* Ensure both buttons align properly */
.training .d-flex.gap-2 {
  align-items: stretch;
}

.training .more-courses {
  margin-top: 50px;
}

.training .more-courses .btn-more {
  display: inline-block;
  background: transparent;
  color: #1e3a8a;
  padding: 15px 40px;
  border: 2px solid #1e3a8a;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.training .more-courses .btn-more:hover {
  background: #1e3a8a;
  color: var(--contrast-color);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .training .course-image {
    height: 200px;
  }
  .training .course-content {
    padding: 20px;
  }
  .training h3 {
    font-size: 18px;
  }
  .training .course-stats {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Position the nav to top-right of the section title */
.training .section-title { position: relative; }
.training .swiper-controls{
  position:static; 
  justify-content: center;
  top: 6px; 
  right: 0; 
  display:flex; 
  gap:8px; 
  z-index: 5;
  margin-top: 8px; /* space from title */
}

/* Make Swiper buttons compact & neutral */
.training .swiper-button-prev, 
.training .swiper-button-next{
  position: static; /* we’re controlling with .swiper-controls */
  width:36px; height:36px;
  border-radius:999px;
  background: color-mix(in srgb, var(--heading-color), transparent 85%);
}
.training .swiper-button-prev:after, 
.training .swiper-button-next:after{ font-size:16px; color: var(--heading-color); }

/* Spacing between slides */
.training .training-swiper { padding: 8px 2px 32px; }
.training .swiper-slide { height: auto; } /* let cards define height */

/* (Optional) small screens: a little more breathing room */
@media (min-width: 576px) {
  .training .swiper-controls {
    position: absolute;
    top: 6px;
    right: 0;
    margin-top: 0;
    justify-content: flex-end; /* align to right */
  }
}



/* Swiper pagination bullets */
.training .swiper-pagination-bullet {
  background: color-mix(in srgb, var(--heading-color), transparent 70%);
  opacity: 1; /* always visible, not faded */
}

.training .swiper-pagination-bullet-active {
  background: #1e3a8a; /* your blue color */
}


.waitlist-note {
  color: #b91c1c; /* red tone */
  background: #fee2e2; /* light red background */
  border: 1px solid #fecaca;
  border-radius: .6rem;
  padding: .8rem .9rem;
  font-weight: 600;
  margin-top: .75rem;
}

.waitlist-note .small {
  font-weight: 400;
  color: #7f1d1d;
  line-height: 1.4;
}

/* When empty, make the slide span full container width */
.training .training-swiper.is-empty .swiper-wrapper {
  display: block;              /* break out of Swiper's flex row sizing */
  transform: none !important;  /* no translateX */
}

.training .training-swiper.is-empty .swiper-slide {
  width: 100% !important;      /* override Swiper's inline width (e.g., 294px) */
  margin-right: 0 !important;
}

/* Centering & sizing (keep or adjust as you like) */
.training .training-swiper.is-empty {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.training .training-swiper.is-empty .swiper-slide.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.training .training-swiper.is-empty .empty-box {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

.training .training-swiper.is-empty .empty-title {
  font-size: 1rem;
  font-weight: 600; 
  color: #223a58;
  margin-bottom: 1rem;
}

.training .training-swiper.is-empty .empty-text {
  color: #555;
  font-size: 1rem;
  /* line-height: 1.6; */
}