/*
Theme Name: Flastsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* Áp dụng cho toàn bộ khối sản phẩm trong .noibat */
.resources .btn {
	width: 20%;
}
#tutor-checkout-form .button, button, fieldset, input, select, textarea {
	margin-bottom: 0;
} 
.noibat .product-small {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noibat .product-small:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Ảnh sản phẩm */
.noibat .product-small .box-image img {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Tiêu đề sản phẩm */
.noibat .product-small .product-title {
  font-size: 16px;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 4px;
  color: #222;
  text-align: left;
}

/* Giá sản phẩm */
.noibat .product-small .price {
  font-size: 15px;
  font-weight: bold;
  color: #d60000;
  margin-bottom: 10px;
  text-align: right;
}

/* Bố cục text */
.noibat .product-small .box-text-products {
  padding: 12px 16px;
  text-align: left;
}

/* Label "CHƯA VÀO HỌC" nếu có */
.noibat .product-small .status-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #007bff;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 10;
}

/* Style cho sao Font Awesome */
.noibat .product-small .fa-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}

.noibat .product-small .fa-stars i {
  color: #f5a623;
  font-size: 14px;
}

.noibat .product-small .fa-stars .rating-text {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Style nút thêm vào giỏ hàng đen trắng hiện đại */
.add-to-cart-button .add_to_cart_button.is-outline {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.add-to-cart-button .add_to_cart_button.is-outline:hover {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

.add-to-cart-button .add_to_cart_button.is-outline i {
  margin-right: 8px; /* Khoảng cách giữa icon và văn bản */
  font-size: 16px; /* Kích thước icon */
}

.add-to-cart-button .add_to_cart_button.is-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Thêm icon vào nút "Thêm vào giỏ hàng" */
.add-to-cart-button .add_to_cart_button.is-outline::before {
  content: "\f07a"; /* Mã Unicode của icon FontAwesome (giỏ hàng) */
  font-family: "Font Awesome 5 Free"; /* Font cần dùng để hiển thị icon */
  font-weight: 900; /* Font-weight cho FontAwesome icon */
  margin-right: 8px; /* Khoảng cách giữa icon và chữ */
  font-size: 16px; /* Kích thước của icon */
  display: inline-block; /* Đảm bảo icon và chữ nằm trên một dòng */
}

.custom-cards-wrapper {
      display: flex;
      gap: 20px;
      padding: 20px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
    }

    .custom-card {
      flex: 0 0 280px;
      background-color: #fff;
      color: #000;
      padding: 20px;
      border-radius: 12px;
      text-align: center;
      scroll-snap-align: start;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      border: 1px solid #ddd;
      transition: transform 0.3s ease;
    }

    .custom-card:hover {
      transform: scale(1.03);
    }

    .custom-icon {
      width: 50px;
      height: 50px;
      object-fit: contain;
      margin-bottom: 10px;
      filter: brightness(0); /* icon sẽ chuyển thành đen nếu ảnh là dạng đơn sắc */
    }

    .custom-title {
      font-size: 18px;
      margin-bottom: 10px;
      color: #000;
      font-weight: bold;
    }

    .custom-text {
      font-size: 14px;
      line-height: 1.6;
      color: #333;
    }

    @media (min-width: 768px) {
      .custom-cards-wrapper {
        flex-wrap: wrap;
        overflow-x: hidden;
        justify-content: center;
      }

      .custom-card {
        flex: 1 1 calc(25% - 40px);
        max-width: 300px;
      }
    }

    /* Ẩn thanh cuộn ngang */
    .custom-cards-wrapper::-webkit-scrollbar {
      display: none;
    }

    .custom-cards-wrapper {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

/* Tăng chiều rộng khối */
.col.baiviet {
  margin: auto;
}

/* Card bài viết */
.col.baiviet .box {
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover: nổi nhẹ lên */
.col.baiviet .box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Hình ảnh */
.col.baiviet .box-image {
  border-bottom: 1px solid #eee;
}

.col.baiviet .box-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Nội dung */
.col.baiviet .box-text {
  padding: 16px 18px 18px;
}

/* Tiêu đề */
.col.baiviet .post-title {
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin: 0 0 8px;
  line-height: 1.5;
	height: 50px;
}

/* Mô tả */
.col.baiviet .from_the_blog_excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Ngày tháng */
.col.baiviet .post-date {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.col.baiviet .post-date span {
  display: block;
  line-height: 1.2;
}

/* Form liên hệ */
.form-ve-tuot {
    background-color: #f3b84e;
    padding: 20px;
    border: 2px dashed #333;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
}

.form-ve-tuot label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 18px;
    font-family: 'Arial', sans-serif;
}

.form-ve-tuot input[type="text"],
.form-ve-tuot input[type="email"],
.form-ve-tuot input[type="tel"],
.form-ve-tuot textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

.form-ve-tuot textarea {
    height: 150px;
    resize: vertical;
}

.form-ve-tuot-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-ve-tuot-col {
    flex: 1;
    min-width: 200px;
}

.form-ve-tuot input[type="submit"] {
    background-color: #f15b38;
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-ve-tuot input[type="submit"]:hover {
    background-color: #d44929;
}

/* Responsive cho màn nhỏ */
@media (max-width: 600px) {
    .form-ve-tuot-row {
        flex-direction: column;
    }
}
@media (min-width: 768px) {
  .custom-cards-wrapper {
    flex-wrap: nowrap !important;
    overflow-x: auto;
  }
}


