/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: Kaka
Template: flatsome
Version: 1.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.address p {
  margin-bottom: 8px;
}

.footer-wrapper .col-inner ul li {
  margin-left: 0;
  list-style: none;
}

.image-icon img {
  margin-bottom: 2px;
}
.image-icon {
  margin: 0 6px;
}

/* --- Cài đặt chung (tùy chọn) --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* --- How It Works Section --- */
.how-it-works-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  text-align: center;
}

.how-it-works-section h2 {
  font-size: 2.5rem;
  color: #222;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

/* --- Grid Container cho 6 bước --- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  /* text-align: left; - Không cần nữa vì .step-item đã căn giữa */
}

/* --- Kiểu dáng cho mỗi bước (card) --- */
.step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* Đây là phần quan trọng để căn giữa icon, tiêu đề, và text */
  display: flex;
  flex-direction: column; /* Xếp các phần tử theo chiều dọc */
  align-items: center; /* Căn giữa theo chiều ngang */
  text-align: center; /* Căn giữa chữ */
}

/* Hiệu ứng khi di chuột vào */
.step-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* === THAY ĐỔI CHÍNH Ở ĐÂY === */
/* Xóa bỏ .step-icon và thay bằng .step-image */

.step-image {
  width: 60px; /* Kích thước mong muốn cho icon */
  height: 60px;
  margin-bottom: 20px; /* Khoảng cách với tiêu đề bên dưới */
  object-fit: contain; /* Đảm bảo SVG/ảnh không bị méo */
}

.step-item h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}

.step-item p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

.section-title b {
  display: none;
}
.section-title span::after {
  content: "";
  position: absolute;
  height: 1px;
  min-width: 70px;
  background-color: rgba(224, 224, 224, 1);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
}
.page-breadcrumbs p {
  margin-bottom: 0;
}
.section-title span {
  position: relative;
}
.section-title-normal span,
.section-title-normal {
  border: none;
  padding-bottom: 0;
}

.section-title-center {
  justify-content: center;
}
.why-chose .col .icon-box-text h5 {
  text-transform: none;
  font-size: 18px;
}
.why-chose .col {
  border-radius: 12px;
  background: #fff;
  box-shadow: 16px 20px 40px 16px rgba(0, 0, 0, 0.08);
  padding: 24px 16px;
}
.why-chose {
  gap: 16px;
  flex-flow: row;
  padding: 0 30px;
}
.section-title-normal a {
  color: #ed152c;
}
.text-danger,
.section .section-title {
  color: #ed152c;
}

.value p {
  text-align: justify;
}
.page-df-content,
.content-area {
  margin-top: 45px;
}
.home .content-area {
  margin-top: 0;
}

.site-shadow {
  box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.2);
}
.post-img {
  width: 100%;
}
.box-text-inner,
.custom-post-col {
  padding: 0 8px;
}

.blog .box-text {
  vertical-align: top;
}

a:hover h4 {
  color: #f21616 !important;
}

.custom-img img {
  transition: transform 0.3s ease-in-out;
}
.custom-img img:hover {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}

@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE  ***************/

  .why-chose {
    flex-flow: column;
  }

  .page-df-content,
  .content-area {
    margin-top: 15px;
  }
}
