* {
  transition: all 0.3s ease-out;
}
h4{
  color: #ba55d3;
}
h3 {
  color: #262626;
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}
p {
  font-size: 17px;
  font-weight: 400;
  line-height: 20px;
  color: #666666;
}
p.small {
  font-size: 14px;
}
.go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 32px;
  height: 32px;
  overflow: hidden;
  top: 0;
  right: 0;
  background-color: #ba55d3;
  border-radius: 0 4px 0 32px;
}
.go-arrow {
  margin-top: -4px;
  margin-right: -4px;
  color: white;
  font-family: courier, sans;
}
 /* card1 สำหรับปกที่มีภาพเป็นพื้นหลัง */
.card1 {
  display: block;
  position: relative;
  max-width: 262px;
  background-color: #f9f6fc;
  border-radius: 4px;
  padding: 32px 24px;
  margin: 12px;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;
}
.card1:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: #ba55d3;
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.25s ease-out;
}
.card1:hover:before {
  transform: scale(21);
}

.card1:hover p {
  transition: all 0.3s ease-out;
  color: #ffffff;
}
.card1:hover h3 {
  transition: all 0.3s ease-out;
  color: #ffffff;
}
.card1:hover h4 {
  transition: all 0.3s ease-out;
  color: #ffffff;
}
.card1:hover img {
  transition: all 0.3s ease-out;
  -webkit-filter: invert(100%); /* Safari/Chrome */
    filter: invert(100%);
}
 /* card2*/
/* card3*/
.card3 {
 display: block;
 position: relative;
 max-width: 262px;
 background-color: #F9F6FC;
 border-radius: 4px;
 padding: 32px 24px;
 margin: 12px;
 text-decoration: none;
 z-index: 0;
 overflow: hidden;
}
.card3:before {
 content: "";
 position: absolute;
 z-index: -1;
 top: -16px;
 right: -16px;
 background: #ba55d3;
 height: 32px;
 width: 32px;
 border-radius: 32px;
 transform: scale(1);
 transform-origin: 50% 50%;
 transition: transform 0.25s ease-out;
}
.card3:hover:before {
 transform: scale(21);
}

.card3:hover p {
 transition: all 0.3s ease-out;
 color: #ffffff;
}
.card3:hover h3 {
 transition: all 0.3s ease-out;
 color: #ffffff;
}
.card3:hover h4 {
  transition: all 0.3s ease-out;
  color: #ffffff !important;
}

.card3:hover img {
 transition: all 0.3s ease-out;
 -webkit-filter: invert(100%); /* Safari/Chrome */
   filter: invert(100%);
}
@media screen and (max-width: 1400px) {
  .card1 {
    max-width: 254px;
  }
  .card3 {
    max-width: 254px;
  }
}
@media screen and (max-width: 991px) {
  .card1 {
    max-width: 262px;
  }
  .card3 {
    max-width: 262px;
  }
}
@media screen and (max-width: 737px) {
  .card1 {
    max-width: 230px;
  }
  .card3 {
    max-width: 230px;
  }
}
