@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/Figtree-VariableFont_wght.ttf") format("truetype");
  /* สามารถเพิ่มรูปแบบไฟล์อื่น ๆ ตามต้องการ */
}

body {
  background-color: #f5d04e;
  display: flex;
  justify-content: center;
  align-items: end;
  position: relative;
  font-family: "Figtree";
}

.main {
  display: grid;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 580px;
  border-radius: 20px;
  background-color: white;
  padding: 20px;
  border: 2px solid black;
  bottom: -100px;
  position: relative;
  z-index: 10;
}

.another-main {
  display: grid;
  justify-content: center;
  align-items: center;
  width: 380px;
  height: 565px;
  border-radius: 20px;
  padding: 20px;
  border-right: 18px solid black;
  border-bottom: 18px solid black;
  position: absolute;
  right: -20px;
  bottom: -20px;
  outline-offset: -2px;
}

.another-main::after {
  content: "";
  position: absolute;
  right: -8.2px;
  bottom: -8.2px;
  width: 20px;
  height: 20px;
  border-bottom-right-radius: 20px;
  border-right: 10px solid black;
  border-bottom: 10px solid black;
  background-color: white;
}

.topImageModify {
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-image {
  width: 400px;
  display: flex;
  justify-content: center;
  border-radius: 20px;
}

.date {
    margin-bottom: -20px;
    font-weight: 500;
}

.second {
  margin-top: 20px;
  display: grid;
  justify-content: start;
  align-items: center;
}

.btn-learn {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 15px;
  background-color: #f5d04e;
  border: 1px solid gainsboro;
  height: 20px;
  font-weight: bolder;
}

.title {
    color: black;
    margin-bottom: -3px;
    transition: color ease-in 1s; /* เปลี่ยน transition เพื่อให้มีการเปลี่ยนสี */
  }
  
  .title:hover {
    color: #f5d04e;
  }
  

.content {
  color: rgba(146, 146, 146, 0.847);
  font-size: 18px;
  font-weight: 600;
  /* border: 1px solid red; */
  margin-top: -3px;
}

.profile {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.profile-image {
  width: 50px;
  height: 50px;
  background-size: contain;
}

.profile-name {
  font-size: 16px;
}
