* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  padding: 50px 20px;
}

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  padding: 50px 40px;
  min-height: 320px;
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-content .icon {
  margin-bottom: 25px;
}

.card-content .icon i {
  font-size: 45px;
  color: #a67c52;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.card-content p {
  color: #666;
  font-size: 1rem;
}

.card-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}
.hover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}
.hover-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(166, 124, 82, 0.9);
}

.hover-text {
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s ease;
}

.card-hover h3,
.card-hover p {
  color: #fff;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  margin-top: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.arrow {
  width: 35px;
  height: 35px;
  background-color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  transition: all 0.3s ease;
}

.arrow i {
  color: #a67c52;
  font-size: 14px;
  transition: all 0.3s ease;
}
.card:hover .hover-text {
  transform: translateY(0);
  opacity: 1;
}

.card:hover .card-hover {
  opacity: 1;
  visibility: visible;
}

.card:hover .hover-inner {
  transform: translateY(0);
  opacity: 1;
}

.learn-more:hover .arrow {
  background-color: transparent;
  border: 2px solid #ffffff;
}

.learn-more:hover .arrow i {
  color: #ffffff;
}
