/************* Mô tả danh mục ************/
.term-description {
  border-top: 1px solid #ececec;
  padding-top: 40px;
  margin-top: 40px;
}

/*************** CSS Bài viết liên quan  ***************/
.related-posts-wrapper {
  border-top: 1px solid #ececec;
  padding-top: 20px;
}

.related-posts-wrapper .box-image {
  position: relative;
  width: 100%;
  padding-top: 70%;
  overflow: hidden;
}

.related-posts-wrapper .box-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-posts-wrapper .box {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.related-posts-wrapper .box-text {
  flex: 1;
}

/*************** CSS CONTACFORM  ***************/
.form-content-contact {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  padding: 10px;
}

/* Cột trái */
.form-content-contact .item-left {
  flex: 1;
  min-width: 280px;
  width: 320px;
  background: linear-gradient(
    135deg,
    #318c9b 0%,
    #6adaeb 50%,
    #43acbd 100%
  ) !important;
  padding: 30px 25px;
  border-radius: 10px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-content-contact .item-left .content-form-title p {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
}

.form-content-contact .item-left .note {
  margin-bottom: 20px;
}

.form-content-contact .item-left .contact p {
  margin: 0;
  line-height: 1.8;
  font-size: 16px;
}

.form-content-contact .item-left a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.form-content-contact .item-left a img {
  width: 30px;
  height: 30px;
  display: inline-block;
}

/* Cột phải */
.form-content-contact .item-right {
  flex: 1.3;
  min-width: 200px;
  background: #fff;
  padding: 30px 35px;
}

.form-content-contact .item-right label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-content-contact .item-right input,
.form-content-contact .item-right textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s;
}

.form-content-contact .item-right input:focus,
.form-content-contact .item-right textarea:focus {
  border-color: #318c9b;
  outline: none;
}

.form-content-contact .item-right textarea {
  resize: vertical;
  min-height: 100px;
}

.form-content-contact .item-right .wpcf7-submit {
  background-color: #318c9b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.form-content-contact .item-right .wpcf7-submit:hover {
  background-color: #2b7a86;
}

/* Responsive */
@media (max-width: 768px) {
  .form-content-contact {
    flex-direction: column;
  }
  .form-content-contact .item-left,
  .form-content-contact .item-right {
    width: 100%;
  }

  .form-content-contact .item-right {
    padding: 10px;
  }
}

/* ======== KHUNG SẢN PHẨM LIÊN QUAN ============ */
.product-small .box-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-small .box-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
