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

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

:root {
  --cl-main: #0f2b90;
  --cl-primary: #f60500;
}
.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

html,
body {
  scroll-behavior: smooth;
  font-family: "Montserrat", sans-serif;
}
@font-face {
  font-family: "Montserrat";
  src: url("theme/frontend/fonts/Montserrat-Regular.otf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("theme/frontend/fonts/Montserrat-Medium.otf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("theme/frontend/fonts/Montserrat-SemiBold.otf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("theme/frontend/fonts/Montserrat-Bold.otf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("theme/frontend/fonts/Montserrat-ExtraBold.otf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("theme/frontend/fonts/Montserrat-Black.otf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* fix khung img */
.c-img {
  position: relative;
  display: block;
}
.c-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  -o-object-fit: cover;
  object-fit: cover;
}
/* end fix khung img */

/* css menu_sidebar */
.menu_sidebar .btn-down-menu {
  position: absolute;
  top: 5px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu_sidebar .btn-down-menu i {
  transition: all 0.3s;
}
.menu_sidebar .btn-down-menu.active i {
  transform: rotate(180deg);
}
.menu_sidebar ul li ul li a.active {
  color: var(--cl-main);
}
/* end menu_sidebar */

/* css tab module */
.module-tabs .list-tab-items .tab-content {
  display: none;
}
.module-tabs .list-tab-items .tab-content.active {
  display: block;
}
.module-tabs ul li.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 68px;
  height: 2px;
  background-color: #f60500;
  transform: translateX(-50%);
}
.module-tabs ul li.active a {
  color: var(--cl-main);
}
.tab-content-sm {
  display: none;
}

.tab-content-sm.active {
  display: block;
}

.tab-link-sm.active {
  color: var(--cl-main);
}
/* end css tab module */

/* excerpt.css */
.excerpt-content {
  transition: max-height 0.4s ease-in-out;
  overflow: hidden;
}

.excerpt-hidden {
  max-height: var(--max-height, 3.5rem);
  position: relative;
}

.excerpt-hidden::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: linear-gradient(transparent, white);
}

.excerpt-visible {
  /* max-height sẽ được set qua JS */
}

.excerpt-toggle {
  transition: all 0.3s;
}

.excerpt-toggle i {
  transition: transform 0.4s ease-in-out;
}

.excerpt-toggle .rotate {
  transform: rotate(180deg);
}

/* end excerpt.css */

/* reset css s-content  */
.s-content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h4 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h5 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}
.s-content h6 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}
.s-content p img.aligncenter {
  margin: auto;
}
.s-content p img.alignleft {
  margin-right: auto;
}
.s-content p img.alignright {
  margin-left: auto;
}
.s-content a {
  color: #2f5aae;
  cursor: pointer;
  text-decoration: none;
}
.s-content ul,
.s-content ol {
  list-style: disc;
  padding: 1.25em;
}
.s-content li {
  margin-top: 10px;
}
.s-content ul li {
  margin-left: 1.3em;
}
.s-content strong {
  font-weight: bold;
}
.s-content i {
  font-style: italic;
}
.s-content table {
  width: 100% !important;
}
.s-content blockquote{
  font-style: italic;
  background: #ebebeb;
  padding: 1rem;
  border-left: 3px solid #1f72c2;
}
.s-content img{
  max-height: 100vh;
  object-fit: contain;
}
/* end reset css s-content  */

.mbp-0 p {
  margin-bottom: 0;
}

.menu_footer .ux-menu .menu-item a {
  font-weight: 600;
  transition: all 0.3s;
}
.menu_footer .ux-menu .menu-item a:hover {
  color: var(--cl-main);
}
.text-justify {
  text-align: justify;
}
.header-wrapper:not(.stuck) .header-main ul.header-nav-main li a {
  /* color: #fff; */
}
.font-semibold {
  font-weight: 600;
}
.font-medium {
  font-weight: 500;
}

.title_page {
  color: var(--cl-main);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
  text-transform: uppercase;
}
.item_feedback_img {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 100px;
  border: 11px solid #fff;
  background: url(<path-to-image>) lightgray 50% / cover no-repeat;
  box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.item_feedback_info {
  background-size: 100% 100%;
}
.item_feedback_content {
  border-radius: 10px 30px;
  background: #e7e9f0;
  padding: 1rem 2rem;
}
.btn_submit_contact {
  margin: 0 auto !important;
  display: block !important;
  border-radius: 72px !important;
  background: linear-gradient(
    274deg,
    #0f2b90 13.66%,
    #6e8eff 120.13%
  ) !important;
  padding: 0.5rem 3rem 0.5rem 1rem !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 1.125rem !important;
  line-height: 1.5 !important;
}
.btn_submit_contact::after {
  content: "\f1d8";
  font-family: "Font Awesome 6 Free";
  rotate: 45deg;
  position: absolute;
  top: 38%;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 100%;
  z-index: 1;
  transform: translateY(-50%);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cl-main);
  transition: all 0.3s;
}
.item_pro {
  border-radius: 0 40px;
  border: 0.5px solid #d9d9d9;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.box_contact_text {
  border-radius: 0 40px 0 0;
  background: linear-gradient(90deg, #0f2b90 0%, #3757c9 100%);
}
.img_about_1 {
  border-radius: 20px;
  overflow: hidden;
}
.img_about_2 {
  position: absolute;
  top: -10px;
  left: 16px;
}
ul {
  list-style: none;
}
ul ul {
  margin: 0.5rem 0 0.5rem 0;
}
/* CSS cho AJAX filters */
.category-filter.active {
  color: #007cba;
  font-weight: bold;
}

.filter-checkbox:checked + label {
  color: #007cba;
  font-weight: 500;
}

#loading-spinner {
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 10;
}

.pagination a.page-link {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 2px;
  background: #f1f1f1;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination a.page-link:hover,
.pagination a.page-link.active {
  background: #007cba;
  color: white;
}

.sub-categories {
  margin-top: 8px;
}

.sub-categories a {
  padding: 4px 8px;
  display: block;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.sub-categories a:hover {
  background: rgba(0, 124, 186, 0.1);
}
.cs_factory {
  box-shadow: 0 -4px 20px 0 rgba(0, 0, 0, 0.15) inset;
}
.shadow_cate {
  background: linear-gradient(0deg, #000 25%, transparent);
}
.h_child_full .col-inner {
  height: 100%;
}
.img_fill .section-bg img {
  object-fit: fill;
}
.box_date_news {
  border-radius: 5px 20px;
  padding: 2px 8px;
}
.form_seach_news input {
  box-shadow: none;
}
input[type="text"]:focus {
  box-shadow: none;
}
.icon-box-img img,
.icon-box-img svg {
  padding-top: 0;
}
.bg_slide_banner {
  display: none;
}
.z-10 {
  z-index: 10;
}
.box_video_about {
  min-height: 400px;
}
.bg_contain .section-bg img {
  object-fit: contain;
}
.rounded-lg {
  border-radius: 0.625rem;
  overflow: hidden;
}

.bg_blur_service {
  border-radius: 200px 200px 0 0;
  background: linear-gradient(
    180deg,
    #fff 0%,
    rgba(255, 255, 255, 0.15) 67.36%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(4px);
}
.bg_process .section-bg img {
  height: 55%;
}
.custom_shadow {
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
}
.css_icon_process {
  border-radius: 0 0 10000px 10000px;
  background: linear-gradient(180deg, #0f2b90 0%, #040d2a 100%);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
}
.css_partner .gallery-col {
  padding: 0.625rem;
}
.css_partner .gallery-col .col-inner {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
.css_partner .gallery-col .col-inner .box-image img {
  object-fit: contain;
  padding: 19px 34px 19px 33px;
}

.header.show-on-scroll:not(.stuck), .header.transparent:not(.stuck){
  background: #ffffff40;
  backdrop-filter: blur(4px);
}

/* Fix hiển thị menu 3 cấp trong Flatsome */
.nav-dropdown .menu-item-has-children {
  position: relative;
  display: block!important;
  width: 100%!important;
}

.nav-dropdown .menu-item-has-children > .sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 0;
  background: #fff;
  min-width: 220px;
  visibility: hidden;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  z-index: 9999;
  padding: 0.5rem 0;
}

.nav-dropdown .menu-item-has-children:hover > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

/* Tùy chỉnh thêm cho giao diện đẹp hơn */
.nav-dropdown .sub-menu a {
  white-space: nowrap;
  padding: 8px 15px;
  display: block;
}

.nav-dropdown .sub-menu a:hover {
  /* background: #f5f5f5; */
  color: #000;
}
.SwiperService-pagination .swiper-pagination-bullet-active,
.SwiperSlideBanner-pagination .swiper-pagination-bullet-active{
  background: #fff! important;
}
.header-top{
  background-color: transparent;
  border-bottom: 1px solid #fff;
  padding: 0.5rem 0;
}
.pagination .page-numbers{
  border: 1px solid var(--cl-main);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: all 0.3s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current{
  background: var(--cl-main);
  color: #fff;
}
@media (max-width: 767.98px) {
  .s-content h1 {
    font-size: 1.5rem;
  }
  .s-content h2 {
    font-size: 1.25rem;
  }
  .s-content h3 {
    font-size: 1.2rem;
  }
  .s-content h4 {
    font-size: 1.2rem;
  }
  .s-content h5 {
    font-size: 1rem;
  }
  .s-content h6 {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .menu_footer .ux-menu .menu-item a {
    font-size: 18px;
  }
  .title_page {
    font-size: 2rem;
  }
  .box_contact_pro {
    margin-top: -45px;
  }
  .bg_slide_banner {
    display: block;
    position: absolute;
    right: 0;
    top: 55%;
    transform: translateY(-50%);
  }
  .box_video_about {
    min-height: 600px;
  }
  .menu_footer .ux-menu {
    flex-direction: row !important;
    justify-content: space-between !important;
  }
}
@media (min-width: 1536px) {
  .title_page {
    font-size: 2.5rem;
  }
}
