/* Typy szkolenia – siatka 3 kolumny, białe komórki, obramowania */

.vca-training-types {
  width: 100%;
  background-color: #ffffff;
  padding: 70px 0 40px;
  box-sizing: border-box;
}

.vca-training-types__container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.vca-training-types__title {
  margin: 0 0 1.625rem;
  font-family: type-36, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.2;
  color: #0e0620;
  text-align: center;
}

.vca-training-types__cell-title {
  margin: 0 0 1.625rem;
  display: block;
  cursor: pointer;
  font-family: type-36, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.2;
  color: rgb(0, 0, 0);
}

.vca-training-types__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 0.0625rem solid #e1e1e1;
  background: #fff;
}

.vca-training-types__cell {
  position: relative;
  z-index: 0;
  padding: 1.5625rem 0.9375rem 2.6875rem;
  background: #ffffff;
  border-right: 0.0625rem solid #e1e1e1;
  border-bottom: 0.0625rem solid #e1e1e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.vca-training-types__cell:hover {
  z-index: 10;
}

.vca-training-types__grid .vca-training-types__cell:nth-child(3n) {
  border-right: none;
}

.vca-training-types__grid .vca-training-types__cell:nth-last-child(-n+3) {
  border-bottom: none;
}

.vca-training-types__cell::before {
  content: '';
  opacity: 0;
  display: block;
  background: #fff;
  transition: 0.2s;
  z-index: 1;
  box-shadow: 0 0 15px 5px rgba(212, 213, 220, 0.8);
  position: absolute;
  top: -0.3125rem;
  left: -0.3125rem;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  pointer-events: none;
}

.vca-training-types__cell:hover::before {
  opacity: 1;
}

.vca-training-types__cell-title,
.vca-training-types__cell-icon,
.vca-training-types__cell-desc {
  position: relative;
  z-index: 2;
}

a.vca-training-types__cell {
  text-decoration: none;
  color: inherit;
}

.vca-training-types__cell-icon {
  height: 8.4375rem;
  margin: 1.5625rem 0 2rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vca-training-types__cell-icon img {
  height: 135px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.vca-training-types__cell-desc {
  margin: 0;
  padding: 0 3.125rem;
  font-family: type-36, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  color: #838c95;
  height: 5.5rem;
  overflow: hidden;
}

/* Tablet: 2 kolumny */
@media (max-width: 1024px) {
  .vca-training-types__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vca-training-types__grid .vca-training-types__cell:nth-child(3n) {
    border-right: 0.0625rem solid #e1e1e1;
  }
  .vca-training-types__grid .vca-training-types__cell:nth-child(2n) {
    border-right: none;
  }
  .vca-training-types__grid .vca-training-types__cell:nth-last-child(-n+3) {
    border-bottom: 0.0625rem solid #e1e1e1;
  }
  .vca-training-types__grid .vca-training-types__cell:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

/* Mobile: 1 kolumna */
@media (max-width: 640px) {
  .vca-training-types {
    padding: 50px 0 30px;
  }
  .vca-training-types__title {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  .vca-training-types__grid {
    grid-template-columns: 1fr;
  }
  .vca-training-types__grid .vca-training-types__cell {
    border-right: none;
    border-bottom: 0.0625rem solid #e1e1e1;
  }
  .vca-training-types__grid .vca-training-types__cell:nth-child(2n) {
    border-right: none;
  }
  .vca-training-types__grid .vca-training-types__cell:last-child {
    border-bottom: none;
  }
  .vca-training-types__grid .vca-training-types__cell:nth-last-child(-n+2) {
    border-bottom: 0.0625rem solid #e1e1e1;
  }
  .vca-training-types__cell {
    padding: 1.25rem 0.75rem;
  }
  .vca-training-types__cell-title {
    font-size: 1.1875rem;
  }
}
