/* sec-5  */
.sec-5 {
  display: flex;
  width: 100%;
  position: relative;
  z-index: 6;
  background-color: #fff;
  border-radius: 40px 40px 0px 0px;
  margin-top: -40px;
}

.sec-5-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.125rem 2rem;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #d7d7d7;
}

.sec-5-container .title {
  font-size: 2rem;
  text-align: center;
  color: #000000;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sec-5-container .sub-title {
  font-size: 1rem;
  text-align: center;
  margin: 0rem auto 2rem auto;
  font-weight: 300;
  max-width: 300px;
}

.sec-5-container .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.sec-5-container .card-item {
  position: relative;
  box-shadow: 0px 1px 9px -2px #ddd;
  border-radius: 12px;
  width: 300px;
  min-height: 400px;
  margin: auto;
  cursor: pointer;
  margin-bottom: 2rem;
  transform: translateY(0);
  transition: all 0.3s ease-in;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  /* animation */
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.sec-5-container .card-item:hover {
  transform: translateY(-3px);
}

/* Image background */
.sec-5-container .card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Gradient overlay replaces ::before */
.sec-5-container .card-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000000, transparent, transparent);
  z-index: 0;
}

.sec-5-container .card-item .name {
  position: absolute;
  top: 6px;
  left: 6px;
  color: #000000;
  background-color: #fff;
  padding: 8px 12px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
}

.sec-5-container .card-item .content {
  margin-top: auto;
  position: relative;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.2rem;
}

.sec-5-container .card-item .content .description {
  color: #fff;
  font-size: 0.9rem;
}

.sec-5-container .card-item .content .view {
  width: 215px;
  height: 40px;
  background-color: #ffffff;
  color: #000000;
  border: none;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  padding: 0.6rem;
  font-weight: 700;
  cursor: pointer;
}

.sec-5-container .card-item .content .view svg {
  width: 1rem;
  height: 1rem;
}

.sec-5-container .show-more-btn {
  width: fit-content;
  margin: auto;
  background-color: #000000;
  color: #fff;
  padding: 0.6rem 1rem;
  border: none;
  font-size: 1rem;
  border-radius: 60px;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transform: translateY(0);
  transition: all 0.3s ease-in-out;
}

.sec-5-container .show-more-btn:hover {
  background-color: #111;
  transform: translateY(-3px);
}

.sec-5-container .show-more-btn svg {
  width: 1rem;
  height: 1rem;
}
