/* Custom Code By PTS */
.pts-about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 320px));
  justify-content: center;
  align-items: stretch;
  gap: 15px;
  box-sizing: border-box;
  max-width: 1022px;
  margin: 0 auto;
  padding: 0 16px;
}

.pts-about-card {
  --pts-about-card-height: 300px;
  perspective: 1000px;
  text-align: center;
}

.pts-about-card-inner {
  display: grid;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.785, .135, .15, .86);
}

.pts-about-card[data-flipped="true"] .pts-about-card-inner {
  transform: rotateY(-180deg);
}

.pts-about-card-front,
.pts-about-card-back {
  grid-area: 1 / 1;
  box-sizing: border-box;
  min-width: 0;
  min-height: var(--pts-about-card-height);
  border: 2px solid #0442bf;
  background: #0442bf;
  color: #fff;
  backface-visibility: hidden;
}

.pts-about-card [inert] { pointer-events: none; }
.pts-about-card [hidden] { display: none; }

.pts-about-card[data-flipped] .pts-about-card-back {
  transform: rotateY(180deg);
}

.pts-about-card-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
}

.pts-about-card-front img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.pts-about-card-title {
  display: block;
  padding: 24px 16px 0;
  font-size: 1rem;
  font-weight: 700;
}

.pts-about-card-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #021e73;
  font-size: 26px;
  line-height: 30px;
  cursor: pointer;
}

.pts-about-card-back {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 22px 24px;
  background: #fff;
  color: #111;
  font-size: 1rem;
  line-height: 1.5;
}

.pts-about-card-back h3 {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.pts-about-card-back p { margin: 48px 0 0; }

.pts-about-card-back a {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 17px;
  border-radius: 4px;
  background: #0442bf;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.pts-about-card :is(button, a):focus-visible {
  outline: 3px solid #fff;
  outline-offset: -4px;
}

.pts-about-card-close:focus-visible { outline-color: #021e73; }

.pts-about-card[data-hover-flip="true"] .pts-about-card-back:not(:focus-within) :is(button, a) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 1022px) {
  .pts-about-card { --pts-about-card-height: 318px; }
  .pts-about-card:nth-child(-n+3) { --pts-about-card-height: 344px; }
}

@media (prefers-reduced-motion: reduce) {
  .pts-about-card-inner { transition: none; }
}
/* End Custom Code By PTS */
