/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: HiroshiLord
Template: flatsome
Version: 3.0
*/

/* DEFAULT NO BORDER AND LINE-THROUGH */
.section-title-center b {
  opacity: 0;
}
.section-title-normal .section-title-main{
  text-align: left;
}
.section-title-normal {
  border-bottom: none;
}

.section-title-normal span {
  border-bottom: none;
}
.text-capitalize span {
  text-transform: capitalize;
}
.post-item .is-divider {
  opacity: 0;
}
.wpcf7-spinner {
  display: none;
}
.custom-title-text span {
  --bg: #efc2b6; /* màu nền ribbon */
  --angle: 8%; /* độ xiên 2 đầu (tăng/giảm %) */

  display: inline-block;
  position: relative;
  padding: 10px 55px;
  background: var(--bg);
  text-transform: uppercase;
  font-weight: 800;
  color: var(--fs-color-alert);
  letter-spacing: 0.5px;
  /* Cắt xiên hai đầu (giống hình) */
  clip-path: polygon(
    var(--angle) 0,
    100% 0,
    calc(100% - var(--angle)) 100%,
    0 100%
  );
}

.custom-sub-title-text span,
.custom-sub-title-text {
  text-transform: capitalize;
  color: var(--fs-color-success);
}
.custom-text-ctc span {
  color: var(--fs-color-alert);
  text-decoration: underline;
}
/* END */

.custom-menu-ft .ux-menu-link .ux-menu-link__link span,
.custom-menu-ft .ux-menu-link .ux-menu-link__link {
  color: #fff;
  text-align: left;
}
.copyright-footer {
  color: #fff;
}
.wpcf7-form-control-wrap .country-select.inside {
  display: none;
}
/* .hidden_contry {
    display: none;
} */
.wpcf7-form-control-wrap .intl-tel-input {
  margin-bottom: 10px;
}
.custom-contact-form input[type="text"],
.custom-contact-form input[type="email"],
.custom-contact-form input[type="tel"],
.wb_cptb_content input[type="text"],
.wb_cptb_content input[type="email"],
.wb_cptb_content input[type="tel"] {
  border: 1px solid #8fb43e !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
  height: 64px;
}
.custom-contact-form textarea,
.wb_cptb_content textarea {
  border: 1px solid #8fb43e !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}
.custom-tab-history h4 {
  font-size: 25.6px;
  font-weight: 700;
  color: var(--fs-color-alert);
  margin-bottom: 10px;
}
.custom-tab-history li.active a {
  line-height: 2.4em;
  padding: 0 0.75em;
  position: relative;
  z-index: 10;
  border: 2px solid var(--fs-color-alert);
  border-radius: 32px;
  color: var(--fs-color-alert);
  font-size: 16px;
}
.custom-tab-history li a {
  line-height: 2.4em;
  padding: 0 0.75em;
  position: relative;
  z-index: 10;
  border: 2px solid #fff0;
  border-radius: 32px;
  font-size: 16px;
}
.custom-icon-box {
  background-color: var(--fs-color-alert);
  border-radius: 8px;
  padding: 20px;
}
.custom-icon-box .icon-box-img svg {
  fill: #fff;
}
.custom-icon-box.ms {
  background-color: var(--fs-color-primary);
}
.custom-icon-box.lb {
  background-color: var(--fs-color-success);
}
.custom-icon-box-core {
  background-color: #fff;
  padding: 20px 30px 30px;
  border-radius: 8px;
}

/* Wrapper */
.xh-benefits .benefit-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  counter-reset: item;
}

/* Mục danh sách */
.xh-benefits .benefit-list li {
  counter-increment: item;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  line-height: 1.6;
  font-size: 18px;
}

/* SỐ THỨ TỰ – ép hiện lại, không bị theme đè */
.xh-benefits .benefit-list li::before {
  content: counter(item, decimal-leading-zero) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 6px;
  border: 2px solid var(--c, #3b82f6);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}

/* Màu theo thứ tự */
.xh-benefits .benefit-list li:nth-child(1) {
  --c: #6b8bd6;
}
.xh-benefits .benefit-list li:nth-child(2) {
  --c: #e3514e;
}
.xh-benefits .benefit-list li:nth-child(3) {
  --c: #f2a54a;
}
.xh-benefits .benefit-list li:nth-child(4) {
  --c: #57c38c;
}
.xh-benefits .benefit-list li:nth-child(5) {
  --c: #6b8bd6;
}
.xh-benefits .benefit-list li:nth-child(6) {
  --c: #6b8bd6;
}
.xh-benefits .benefit-list li:nth-child(7) {
  --c: #9aa36b;
}
.xh-benefits .benefit-list li:nth-child(8) {
  --c: #57c38c;
}
.xh-benefits .benefit-list li:nth-child(9) {
  --c: #e3518a;
}
.custom-gallery-video .video-fit {
  padding-top: 0 !important;
}
.custom-gallery-video .flickity-viewport {
  height: 220px !important;
}
.custom-gallery-video .flickity-page-dots {
  bottom: -25px;
}
/* CSS FANCYBOX */
.bdh-grid {
  display: grid;
  gap: 30px;
}
.bdh-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}
.bdh-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.bdh-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.bdh-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.bdh-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
.bdh-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1024px) {
  .bdh-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .bdh-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.bdh-card {
  text-align: center;
}
.bdh-avt-wrap {
  width: 175px;
  height: 175px;
  margin: 0 auto 14px;
  border: 3px solid #c91b1b;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}
.bdh-avt-wrap:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}
.bdh-avt {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: #fff;
}
.bdh-name {
  margin: 8px 0 16px;
  font-size: 18px;
  line-height: 1.35;
  color: #c91b1b;
  font-weight: 700;
}
.bdh-excerpt {
  color: #555;
  line-height: 1.6;
  min-height: 42px;
}
.bdh-excerpt p {
  margin-bottom: 0;
}
.bdh-btn {
  display: inline-block;
  margin-top: 14px;
  background: #c91b1b;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.bdh-btn:hover {
  filter: brightness(0.92);
  color: #fff;
}

.bdh-modal {
  width: 750px;
  padding: 0;
}
.bdh-modal .bdh-head {
  background: #c91b1b;
  color: #fff;
  padding: 16px 20px;
  font-weight: 800;
  font-size: 22px;
  text-align: center;
}
.fancybox__content > .carousel__button.is-close {
  position: absolute;
  top: -21px;
  right: -30px;
  color: var(--fancybox-color, #fff);
}
.bdh-modal .bdh-body {
  background: #fff;
  padding: 18px 22px;
}
/* END CSS FANCYBOX */
.wpcf7-form-control.wpcf7-submit {
  padding: 0px 60px;
  border-radius: 30px;
}
@media screen and (max-width: 767px) {
  .order-1 {
    order: 1;
  }
  .custom-row-80 {
    max-width: 100% !important;
  }
  .custom-gallery-video .flickity-viewport {
    height: 1170px !important;
  }
  .bdh-modal {
    width: 100%;
    padding: 0;
  }
}
