.panel5 {
  position: relative;
  width: 70%;
  height: auto;
  margin: 50px 0 50px 60px;
  backdrop-filter: blur(15px);
  background: rgba(158, 153, 153, 0.3);
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transition: all 1s ease-in-out;
  margin-top: -200px;
}

.panel5:hover {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
  background: rgba(110, 108, 108, 0.3);
}

.title5 {
  font-size: 32px;
  position: absolute;
  top: 20px;
  left: 20px;
  height: 60px;
  width: 400px;
  background: linear-gradient(to right, #713600, #9d530f);
  font-weight: bold;
  color: white;
  padding-left: 20px;
  display: flex;
  align-items: center;
  border-top-left-radius: 20px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  transition: all 1s ease-in-out;
  z-index: 2;
}

.panel5:hover .title5 {
  width: calc(97% - 20% - 10px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}


.panel5:hover .image-container {
  transform: scale(1.05);
}


@media screen and (max-width: 768px) {
  .panel5 {
    flex-direction: column;
    width: 90%;
    margin-left: 5%;
  }

  .image-container {
    width: 100%;
    border-radius: 0;
  }

  .panel5:hover .title5 {
    width: 90%;
  }
}



.panel4 {
  position: relative;
  width: 70%;
  height: auto;
  margin: 50px 0 50px 60px;
  backdrop-filter: blur(15px);
  background: rgba(158, 153, 153, 0.3);
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  transition: all 1s ease-in-out;
}

.panel4:hover {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
  background: rgba(110, 108, 108, 0.3);
}

.title4 {
  font-size: 32px;
  position: absolute;
  top: 20px;
  left: 20px;
  height: 60px;
  width: 400px;
  background: linear-gradient(to right, #e19441, #FCC88F);
  font-weight: bold;
  color: white;
  padding-left: 20px;
  display: flex;
  align-items: center;
  border-top-left-radius: 20px;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  transition: all 1s ease-in-out;
  z-index: 2;
}

.panel4:hover .title4 {
  width: calc(97% - 20% - 10px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}


.panel4:hover .image-container {
  transform: scale(1.05);
}


@media screen and (max-width: 768px) {
  .panel4 {
    flex-direction: column;
    width: 90%;
    margin-left: 5%;
  }

  .image-container {
    width: 100%;
    border-radius: 0;
  }

  .panel4:hover .title4 {
    width: 90%;
  }
}