
* {
  transition: all 0.3s ease-out;
}

.containercard {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-decoration: overline;
}

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;
}

.space {
  width: 300px;
}
.space img{
  width: 250px;
}

.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*/
.card2 {
  display: block;
  position: relative;
  max-width: 262px;
  background-color: #f6f9f0;
  border-radius: 4px;
  padding: 32px 24px;
  margin: 12px;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;
}
.card2:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: #9abb50;
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.25s ease-out;
}
.card2:hover:before {
  transform: scale(21);
}

.card2:hover p {
  transition: all 0.3s ease-out;
  color: #ffffff;
}
.card2:hover h3 {
  transition: all 0.3s ease-out;
  color: #ffffff;
}

.card2:hover img {
  transition: all 0.3s ease-out;
  -webkit-filter: invert(100%); /* Safari/Chrome */
    filter: invert(100%);
}

.go-corner2 {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 32px;
  height: 32px;
  overflow: hidden;
  top: 0;
  right: 0;
  background-color: #9abb50;
  border-radius: 0 4px 0 32px;
}

/* 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 img {
 transition: all 0.3s ease-out;
 -webkit-filter: invert(100%); /* Safari/Chrome */
   filter: invert(100%);
}
