/*
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.   ***************/

/* --- 1. CSS GIAO DIỆN CHUNG --- */
.post-relation-block .block-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}
.site-breadcrumb {
  margin-top: 10px;
}
#ft-contact-icons .icon-phone:before {
  display: none;
}
.header-nav .has-block {
  padding: 15px !important;
}
.header-nav .has-block ul,
.header-nav .has-block li {
  list-style: disc !important;
}
.header-nav .has-block ul {
  padding-left: 15px;
}
.header-nav .has-block li a {
  display: block;
  line-height: 1.2;
  padding: 7px 0;
}
.taxonomy-description ul,
.taxonomy-description ol {
  padding-left: 25px;
}
.sub-menu.nav-dropdown .sub-menu {
  background: #fff;
  position: absolute;
  left: calc(100% + 0px);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  top: 0;
  padding: 5px;
  display: none;
}
.sub-menu.nav-dropdown > li.nav-dropdown-col {
  display: block;
  width: auto !important;
  position: relative;
}
.nav-dropdown .nav-dropdown-col > a {
  font-size: 100%;
  font-weight: 400;
  color: inherit; /* Đã sửa lỗi color: auto; */
}
.sub-menu.nav-dropdown li:hover .sub-menu {
  display: block;
}
.ptt.large-6 {
  max-width: 64%;
  -ms-flex-preferred-size: 64%;
  flex-basis: 64%;
}
.ptt.large-3 {
  max-width: 18%;
  -ms-flex-preferred-size: 18%;
  flex-basis: 18%;
}
.blog-single {
  padding-top: 10px;
}
.blog-single article {
  background: #fff;
  box-shadow: 0 8px 20px 0 rgb(0 0 0/13%);
  margin: 0 0 30px;
  border-radius: 10px;
  padding: 20px;
}
.entry-divider,
.home .is-divider,
.blog-style-1 .is-divider,
.blog-sub .is-divider {
  display: none;
}
.entry-category {
  margin-bottom: 24px;
}
.box-title,
.box-title-main {
  color: #000;
  font-weight: 600;
}
.box-title span,
.box-img-main {
  cursor: pointer;
}
.box-title-main {
  margin-top: 10px;
}
.row-c .col-inner {
  padding: 10px;
  background: #fff;
  border-radius: 5px;
}
.box-img-main img {
  width: 100%;
}
.box-img {
  width: 130px;
  margin-right: 10px;
}
.flex-custom {
  display: flex;
  margin-bottom: 10px;
}
.row-footer .col {
  padding-bottom: 10px;
}
.row-footer .col:nth-child(2) .col-inner {
  background: #222531 !important;
}
.row-footer .col:nth-child(2) .col-inner * {
  color: #fff;
}
.blog-style-1 + .blog-sub .post-item .col-inner {
  border-bottom: unset;
}
.blog-style-1 .overlay {
  background-image: linear-gradient(transparent, #000000d6);
  height: 150px;
  top: unset;
  background-color: unset !important;
}
.blog-style-1 .blog-post-inner * {
  color: #fff;
  opacity: 1;
}
.blog-style-1 .box-text {
  padding: 10px;
}
.col-title {
  padding-bottom: 0;
}
.row-blog > .col .post-item,
.row-blog > .col .box-text,
.row-blog > .col,
.blog-sub .post-item {
  padding-bottom: 0;
}
.blog-shadow .col-inner {
  box-shadow: 1px 1px 40px 0 rgb(88 102 126/8%), 1px 1px 2px 0 rgb(88 102 126/12%);
  -webkit-transition: 0.2s;
  transition: 0.2s;
  padding: 15px;
  border-radius: 10px;
  background: #fff;
}
.blog-shadow .col-inner:hover {
  -webkit-transform: translate(0, -3px);
  -ms-transform: translate(0, -3px);
  transform: translate(0, -3px);
}
.box-image img {
  border-radius: 5px;
}
.box-vertical .box-text {
  vertical-align: top;
}
.blog-sub .box-text {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.blog-sub .post-item .col-inner {
  border-bottom: 1px dashed #e1dede;
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.header-nav-main .header-search.has-icon {
  margin-right: 30px !important;
  margin-left: 10px;
}
.entry-author.author-box {
  background: #f7f7f7;
  border-radius: 5px;
  padding: 10px;
}
.taxonomy-description a,
.page .content-area.page-wrapper a,
.blog-content a,
.entry-content.single-page a {
  font-weight: 700;
}
.blog-content span,
.entry-content.single-page span {
  font-size: 16px !important;
}
.readmore-expand-btn a {
  font-weight: 900;
}
.has-equal-box-heights .box-image img,
.has-format img,
.image-cover img {
  object-fit: fill;
  border: 1px solid #d1d1d1;
}
.nav > li > a > i.icon-search {
  font-size: 20px;
}
footer#footer ul {
  padding-left: 16px;
}

/* --- 2. CSS CÁC NÚT LIÊN HỆ --- */
.phonering-alo-phone {
  position: fixed;
  visibility: hidden;
  background-color: transparent;
  width: 80px;
  height: 80px;
  cursor: pointer;
  z-index: 200000 !important;
  display: block;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transition: visibility 0.5s;
  right: 0 !important;
  bottom: 10px !important;
}
#phonering-alo-phoneIcon .number {
  display: none;
}
.phonering-alo-ph-circle {
  width: 80px;
  height: 80px;
  top: 0;
  left: 0;
}
.phonering-alo-ph-circle-fill {
  width: 100px;
  height: 100px;
  top: 80px;
  left: 80px;
}
.phonering-alo-ph-img-circle {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
}
.show-all-icon.contact-icons-right {
  bottom: 120px;
  right: 10px;
}
.home-top .icon-box {
  background-color: #fff;
  padding: 15px;
  box-shadow: 0px 24px 32px 0px rgba(206, 222, 237, 0.5);
}
.home-top .icon-box .icon-box-text h5 {
  font-size: 20px;
  color: var(--fs-color-secondary);
}
.zalome {
  position: fixed;
  z-index: 9;
  left: 25px !important;
  bottom: 50px;
  margin: 10px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #407bff;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 20px;
  padding: 0; /* Đã sửa padding âm */
  text-align: center;
  text-decoration: none;
  align-content: center;
}
.link-2 {
  bottom: 130px;
}
.zalome a,
.zalome a:hover {
  text-decoration: none;
  color: #fff;
}
.zalome a img {
  width: 35px;
  height: 35px;
}
.zalome a {
  font-size: 14px;
}

/* Nút AR Contact Us */
@keyframes arcontactus-pulse {
  0% { -webkit-transform: scale(0); transform: scale(0); opacity: 1; }
  50% { opacity: 0.5; }
  100% { -webkit-transform: scale(1); transform: scale(1); opacity: 0; }
}
.pulsation {
  width: 74px;
  height: 74px;
  background-color: red;
  border-radius: 50px;
  position: absolute;
  left: -16px;
  top: -16px;
  z-index: -1;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
  -webkit-animation: arcontactus-pulse 2s infinite;
  animation: arcontactus-pulse 2s infinite;
}
.arcontactus-prompt {
  background-color: #fff;
  color: #787878;
  font-family: Segoe UI, Frutiger, Frutiger Linotype, Dejavu Sans, Helvetica Neue, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.1;
  width: 270px;
  bottom: 120%;
  white-space: nowrap;
  padding: 14px 20px 14px;
  position: absolute;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
  background-repeat: no-repeat;
  background-position: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  border-radius: 7px;
  -webkit-transform-origin: 80% 105%;
  -ms-transform-origin: 80% 105%;
  transform-origin: 80% 105%;
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
  -webkit-transition: ease-out 0.12s all;
  -o-transition: ease-out 0.12s all;
  transition: ease-out 0.12s all;
  z-index: 1000000;
}
.arcontactus-prompt:before {
  content: " ";
  width: 4px;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
  border-left: 8px solid transparent;
  border-bottom: 0 none;
  bottom: 16px;
  right: -15px;
  top: 100%;
  left: 20px;
  position: absolute;
}
.arcontactus-prompt.active {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}
.arcontactus-prompt:hover .arcontactus-prompt-close {
  opacity: 1;
}
.arcontactus-prompt .arcontactus-prompt-close {
  opacity: 1;
  transition: 0.2s all;
  position: absolute;
  right: -10px;
  top: -10px;
  padding: 0;
  margin: 0;
  border: 0 none;
  background: 0 0;
  line-height: 1;
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: #fff;
  background: #787878;
  border-radius: 50%;
  text-align: center;
}
.arcontactus-prompt .arcontactus-prompt-close svg {
  height: 12px;
  width: 12px;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -6px 0 0 -6px;
}
.arcontactus-prompt .arcontactus-prompt-typing {
  border-radius: 10px;
  display: inline-block;
  left: 3px;
  padding: 0 0 0 3px;
  position: relative;
  top: 4px;
  width: 50px;
}
.arcontactus-prompt .arcontactus-prompt-typing > div {
  position: relative;
  float: left;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: #ccc;
  margin: 0 2px;
  -webkit-animation: arcontactus-updown 2s infinite;
  animation: arcontactus-updown 2s infinite;
}
.arcontactus-prompt .arcontactus-prompt-typing > div:nth-child(2) {
  animation-delay: 0.1s;
}
.arcontactus-prompt .arcontactus-prompt-typing > div:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes arcontactus-updown {
  0%, 43%, 100% { transform: translate(0, 0); }
  25%, 35% { transform: translate(0, -10px); }
}
@-webkit-keyframes arcontactus-updown {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-10px, 0); }
  35% { transform: translate(-10px, 0); }
  43% { transform: translate(0, 0); }
  100% { transform: translate(0, 0); }
}

/* Nút Xem thêm (Read More) */
.devvn_readmore_flatsome {
  text-align: center;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  bottom: 0;
  width: 100%;
  background: #fff;
}
.devvn_readmore_flatsome:before {
  height: 55px;
  margin-top: -45px;
  content: "";
  background: -moz-linear-gradient(top,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
  background: -webkit-linear-gradient(top,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
  background: linear-gradient(to bottom,rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff00',endColorstr='#ffffff',GradientType=0);
  display: block;
}
.devvn_readmore_flatsome a {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}
.devvn_readmore_flatsome a:after {
  content: '';
  width: 0;
  right: 0;
  border-top: 6px solid #00f;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  display: inline-block;
  vertical-align: middle;
  margin: -2px 0 0 5px;
}
.devvn_readmore_flatsome_less a:after {
  border-top: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #00f;
}
.devvn_readmore_flatsome_less:before {
  display: none;
}

/* --- 3. CSS CỠ CHỮ H2, H3 TRONG BÀI VIẾT (Đã gộp đầy đủ) --- */

/* Cỡ chữ cho màn hình máy tính (Desktop) */
.entry-content h2 {
    font-size: 22px !important; 
    line-height: 1.4;
    margin-top: 25px;
    margin-bottom: 15px;
}

.entry-content h3 {
    font-size: 19px !important; 
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* --- 4. MEDIA QUERIES (Responsive) --- */

@media only screen and (max-width: 992px) {
  .home-top { margin-top: -35px; }
}

@media only screen and (max-width: 768px) {
  /* Tự động thu nhỏ cỡ chữ H2, H3 trên điện thoại/Tablet */
  .entry-content h2 { font-size: 20px !important; }
  .entry-content h3 { font-size: 18px !important; }
  
  .row-blog > .col .box-text { padding-bottom: 15px; padding-top: 15px; }
  .blog-sub .box-vertical .box-image { width: 25% !important; }
  .blog-sub .box-vertical { display: flex; }
  .blog-sub .box-text { padding-left: 10px; }
  .ptt { max-width: 100% !important; -ms-flex-preferred-size: 100% !important; flex-basis: 100% !important; }
}

@media only screen and (max-width: 600px) {
  .zalome { bottom: 60px; }
  .hotline-phone-ring-wrap { bottom: 33px; }
  .link-2 { bottom: 86px; }
}

@media only screen and (max-width: 500px) {
  .hotline-bar { width: 170px; }
  .arcontactus-prompt { left: -32px; width: 200px; padding: 10px 2px; }
  .arcontactus-prompt:before { left: 55px; }
  .arcontactus-prompt-inner { min-width: 200px; }
}