.training-card {
  display: flex;
  /* keep for internal column layout */
  flex-direction: column;
  max-width: 320px;
  width: 100%;
  /* make card use its natural width */
  height: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  margin-right: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.training-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.card-image {
  position: relative;
  width: 100%;
  height: 181px;
  overflow: hidden;
  object-position: center;
}

.card-image img {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.card-img-title {
  position: absolute;
  top: 0px;
  left: 12px;
  font-size: 18px;
  color: white;
}

.card-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 45px !important;
  height: 45px !important;
}

.card-content {
  padding: 16px;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0 0;
  color: #333;
  text-align: center;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #333;
  background: #f5f5f5;
  border-radius: 50px;
  padding: 6px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  box-sizing: border-box;
  font-style: italic;
}

.tag .icon {
  font-style: normal;
}

.swiper-button-next,
.swiper-button-prev {
  width: 55px;
  height: 55px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: auto !important;
  /* prevent click-through */
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 22px !important;
  color: #ED0031;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #005177;
}

.swiper-pagination-bullet {
  background: #ccc;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #0073aa;
}


.my-articles-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  flex-shrink: 0;
  width: 100%;
  padding-top: 10px;
}

.my-articles-swiper .swiper-pagination {
  position: relative;
  margin-top: 20px;
}

.my-articles-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
  margin-bottom: 20px;
}


.swiper-pagination-bullet-active {
  background-color: #ED0031 !important;
}



.my-articles-swiper .swiper-wrapper,
.my-articles-swiper .swiper-slide {
  overflow: visible !important;
}

.my-articles-swiper {
  overflow: visible !important;
}

@media (min-width: 1024px) {
  .my-articles-swiper .swiper-wrapper {
    display: flex;
    justify-content: center; 
    gap: 40px;               
  }

  .my-articles-swiper .swiper-slide {
    flex: 0 0 300px; /* fixed width, prevents stretch */
    height: auto;
  }
}