/* ISO Training – service cards */
.icv-training {
  --icv-train-blue: #1d6ce3;
  --icv-train-dark: #1a2332;
  --icv-train-muted: #6b7280;
  --icv-train-body: #f5f7fa;
  --icv-train-radius: 16px;

  padding: 56px 0 72px;
}

.icv-training > .container {
  max-width: 100%;
  padding-right: 16px;
  padding-left: 16px;
}

.icv-training__intro {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.icv-training__heading {
  margin: 0 0 16px;
  color: var(--icv-train-dark);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.icv-training__subtext {
  margin: 0;
  color: var(--icv-train-muted);
  font-size: 15px;
  line-height: 1.75;
  text-align: center;
}

.icv-training__filters {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 34px;
  padding: 2px 2px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #b8c7dc transparent;
  -webkit-overflow-scrolling: touch;
}

.icv-training__filters::-webkit-scrollbar {
  height: 4px;
}

.icv-training__filters::-webkit-scrollbar-track {
  background: transparent;
}

.icv-training__filters::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #b8c7dc;
}

.icv-training__filter {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 10px 18px;
  border: 1px solid #dbe3ef;
  border-radius: 5px;
  background: #ffffff;
  color: var(--icv-train-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  scroll-snap-align: start;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.icv-training__filter:hover,
.icv-training__filter:focus,
.icv-training__filter.is-active {
  border-color: var(--icv-train-blue);
  background: var(--icv-train-blue);
  color: #ffffff;
  outline: none;
}

.icv-training__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.icv-training__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--icv-train-radius);
  background: #ffffff;
  box-shadow: none;
  overflow: hidden;
}

.icv-training__card[hidden] {
  display: none;
}

.icv-training__media {
  position: relative;
  display: block;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #e8eef7;
}

.icv-training__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.icv-training__card:hover .icv-training__media img {
  transform: scale(1.04);
}

.icv-training__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 24px;
  background: var(--icv-train-body);
}

/* Blue overlay: slides bottom → top on hover */
.icv-training__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  z-index: 0;
  background: var(--icv-train-blue);
  transition: height 0.45s ease;
  pointer-events: none;
}

.icv-training__card:hover .icv-training__overlay {
  height: 100%;
}

.icv-training__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--icv-train-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
  transition: color 0.35s ease;
}

.icv-training__divider {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 1px;
  margin: 14px 0 16px;
  background: #d7dde7;
  border: 0;
  transition: background-color 0.35s ease;
}

.icv-training__text {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 0;
  color: var(--icv-train-muted);
  font-size: 14px;
  line-height: 1.7;
  transition: color 0.35s ease;
}

.icv-training__text p {
  margin: 0 0 12px;
}

.icv-training__text p:last-child {
  margin-bottom: 0;
}

.icv-training__text ul,
.icv-training__text ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.icv-training__text ul:last-child,
.icv-training__text ol:last-child {
  margin-bottom: 0;
}

.icv-training__text li {
  margin-bottom: 6px;
}

.icv-training__text li:last-child {
  margin-bottom: 0;
}

.icv-training__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: auto;
  max-width: 100%;
  margin-top: 22px;
  min-height: 46px;
  padding: 6px 6px 6px 20px;
  border: none;
  border-radius: 999px;
  background: var(--icv-train-blue);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(29, 108, 227, 0.28);
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.icv-training__btn-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.icv-training__btn-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--icv-train-blue);
  transition: transform 0.3s ease, background-color 0.35s ease, color 0.35s ease;
}

.icv-training__btn-icon i {
  font-size: 12px;
  line-height: 1;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.icv-training__btn:hover,
.icv-training__btn:focus {
  background: #1558c0;
  color: #ffffff !important;
  outline: none;
  box-shadow: 0 12px 26px rgba(29, 108, 227, 0.38);
  transform: translateY(-1px);
}

.icv-training__btn:hover .icv-training__btn-icon,
.icv-training__btn:focus .icv-training__btn-icon {
  color: #1558c0;
  transform: scale(1.05);
}

.icv-training__btn:hover .icv-training__btn-icon i,
.icv-training__btn:focus .icv-training__btn-icon i {
  transform: rotate(-45deg) translateX(1px) translateY(-1px);
}

.icv-training__card:hover .icv-training__title,
.icv-training__card:hover .icv-training__text,
.icv-training__card:hover .icv-training__text p,
.icv-training__card:hover .icv-training__text li {
  color: #ffffff;
}

.icv-training__card:hover .icv-training__divider {
  background: rgba(255, 255, 255, 0.35);
}

.icv-training__card:hover .icv-training__btn {
  background: #ffffff;
  color: var(--icv-train-blue) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.icv-training__card:hover .icv-training__btn-icon {
  background: var(--icv-train-blue);
  color: #ffffff;
}

.icv-training__card:hover .icv-training__btn:hover,
.icv-training__card:hover .icv-training__btn:focus {
  background: #f0f5ff;
  color: #1558c0 !important;
}

.icv-training__empty {
  margin: 30px 0 0;
  color: var(--icv-train-muted);
  text-align: center;
}

@media (max-width: 991px) {
  .icv-training__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 767px) {
  .icv-training {
    padding: 40px 0 56px;
  }

  .icv-training__intro {
    margin-bottom: 36px;
  }

  .icv-training__cards {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 420px;
    margin: 0 auto;
  }

  .icv-training__body {
    padding: 24px 20px;
  }

  .icv-training__media {
    height: 220px;
  }

  .icv-training__filters {
    margin-bottom: 26px;
  }

  .icv-training__filter {
    width: auto;
    padding: 9px 16px;
  }
}
