/*
Theme Name: muatheme247 child
Description: Child theme for muatheme247.
Author: DTien
Template: muatheme247
*/

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

/******* Icon Chat ********/

.app-chat:hover .mess {
  display: block;
}
.app-chat .mess {
  display: none;
}
.app-chat .content-f-me {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.23);
  padding: 5px 10px;
  position: absolute;
  right: 70px;
  text-align: left;
  top: 0;
}
.app-chat .content-f-me span {
  color: #606060;
  font-size: 13px;
  font-weight: 300;
}
.app-chat .content-f-me p {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0;
}
.app-chat {
  bottom: 0;
  position: fixed;
  right: 10px;
  width: 350px;
  z-index: 999999;
}
.app-chat .img-chat {
  position: relative;
}
.app-chat .img-chat img {
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.23);
  height: 50px;
  width: 50px;
}
.app-chat .img-chat:after {
  background: #4caf50;
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: 4px;
  content: "";
  display: block;
  height: 10px;
  position: absolute;
  right: 0;
  width: 10px;
}
.app-chat .button-chat {
  align-items: center;
  bottom: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: row-reverse;
  position: relative;
  text-align: right;
}
/******* End Icon Chat ********/

/******* Header ********/
.header-nav-main .nav-dropdown {
  border-radius: 8px;
  border: unset;
  min-width: 350px;
}
.header-nav-main .icon-angle-down {
  display: none;
}
#wrapper .social-icons a {
  height: 30px;
  border-radius: 12px !important;
}

.header-bottom {
  display: block !important;
  padding-bottom: 10px;
  padding-top: 30px;
  background-color: #f6f7fb;
  background-image: url("/wp-content/uploads/2026/03/backgound-hero.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
form {
  margin-bottom: 0px !important;
}

.page-template-default .large-12.col {
  padding-bottom: 0px;
}
.div-contact h5 {
  color: var(--primary-color);
  margin-bottom: 0px;
}
.wpcf7 label {
  color: var(--primary-color);
}
#loi-nhan .mfp-close {
  mix-blend-mode: unset;
  background: #d8dadf;
  border-radius: 99px;
  top: 10px !important;
  right: 10px !important;
}
.wpcf7-spinner {
  display: none;
}
#loi-nhan form {
  margin-bottom: 0px;
}
#loi-nhan .p-ten {
  font-weight: bold;
  font-size: 16px;
}
#loi-nhan .icon-box img {
  border-radius: 99px;
  padding-top: 0px;
}
#loi-nhan .wpcf7-submit {
  margin-bottom: 0px;
  width: 100%;
  border-radius: 8px;
  text-transform: initial;
  margin-right: 0px;
  font-size: 14px;
  padding: 5px;
  font-weight: normal;
}
#loi-nhan {
  background: #fff;
  border-radius: 8px;
  box-shadow:
    0 12px 28px 0 rgba(0, 0, 0, 0.2),
    0 2px 4px 0 rgba(0, 0, 0, 0.102),
    inset 0 0 0 1px hsla(0, 0%, 100%, 0.502);
}
#loi-nhan h3 {
  margin-left: -15px;
  width: calc(100% + 30px);

  text-align: center;
  border-bottom: 1px solid #ededed;
  padding-bottom: 10px;
}
#loi-nhan .wpcf7-text {
  min-height: 45px;
  border-radius: 8px;
  box-shadow: unset;
}
#loi-nhan .col {
  padding-bottom: 0px;
}
#loi-nhan textarea {
  border: unset;
  box-shadow: unset;
  min-height: 85px;
}
.contact-tab ul li span {
  cursor: pointer;
}
#loi-nhan .p-ten-duoi {
  display: inline;
  background: #e4e6eb;
  padding: 4px 12px;
  font-size: 12px;
  color: black;
  font-weight: bold;
  border-radius: 8px;
}
#loi-nhan p,
.row-hoi-dap p {
  margin-bottom: 0px;
}
.row-hoi-dap ul {
  margin-bottom: 10px;
  display: flex;
}
.row-hoi-dap ul li {
  margin-left: 5px;
  margin-right: 5px;
  list-style: none;
}
.row-hoi-dap ul li span.active {
  background: var(--primary-color);

  color: #fff;
}

.row-hoi-dap ul li span {
  font-size: 14px;
  border-radius: 4px;
  padding: 5px 12px;
}
.row-hoi-dap a.a-loi-nhan {
  background: #f0f2f5;
  border-radius: 8px;
  color: #777;
  cursor: pointer;
  font-weight: 300;
  margin-top: 0px;
  padding: 12px;
  display: block;
}
.form-submit .submit {
  font-weight: normal;
  border-radius: 8px;
  text-transform: initial;
}
.div-2-colum-blog > .col-inner {
  padding-bottom: 0px !important;
}
.related-post .post-item {
  padding-bottom: 0px;
}
#comments .comment-respond {
  border-radius: 8px;
}

aside ul.menu > li a {
  font-size: 14px;
}
#categories-2 ul > li + li,
aside ul.menu > li + li {
  border-top: 1px dashed #ececec;
}
#categories-2 ul li a:before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("images/icon-arrow.png");
  background-size: cover;
  margin-right: 5px; /* Khoảng cách giữa hình và text */
  vertical-align: middle; /* Canh giữa hình với text */
}
.widget_recent_entries ul li a {
  font-size: 14px;
}
.widget_recent_entries ul li a:before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url("/wp-content/uploads/2025/10/icon-content.png");
  background-size: cover;
  margin-right: 5px; /* Khoảng cách giữa hình và text */
  vertical-align: middle; /* Canh giữa hình với text */
}
.div-center-post {
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* =============== Danh mục bài viết ================= */
.archive-page-header h1 {
  padding-bottom: 0px;
  margin-bottom: 0px;
}

.blog-archive #post-list .post-item .box .box-image {
  width: 30% !important;
}

.blog-archive #post-list .post-item .box .box-image .image-cover {
  padding-top: 60% !important;
}

.taxonomy-description {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.02);
  padding: 20px;
  margin-top: 15px;
}

.blog-archive .archive-page-header {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.02);
  padding: 20px;
  margin-bottom: 15px;
}
.blog-archive .div-center .post-item {
  padding-bottom: 15px;
}
.blog-archive .div-center .post-item > .col-inner {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.02);
  padding: 10px;
}
.row-dich-vu .box-image .image-cover {
  border-radius: 8px;
}
.row-dich-vu .box-text {
  font-size: 13px;
  height: 100%;
  top: 40%;
  padding: 0px;
}
#block_widget-5 .col {
  padding-bottom: 15px;
}
#block_widget-5 {
  background: transparent;
  padding: 0px;
}
.row-gioi-thieu .icon-box img {
  padding-top: 0px;
}
.row-gioi-thieu .icon-box p {
  margin-top: 8px;
}
.row-gioi-thieu .icon-box {
  align-items: center;
  padding-bottom: 6px;
}
.row-gioi-thieu .icon-box-text {
  padding-left: 10px !important;
  font-size: 15px;
}
.wpcf7-submit {
  font-weight: normal !important;
  text-transform: initial !important;
  border-radius: 8px !important;
}
textarea {
  box-shadow: unset !important;

  border-radius: 8px;
}
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"] {
  box-shadow: unset !important;
  min-height: 38px;
  border-radius: 8px;
}
h3.comments-title {
  display: none;
}
.header-nav-main li a img {
  margin-right: 0px;
  background: #d8dadf;
  border-radius: 99px;
  padding: 8px;
}
.header-nav-main li a span {
  display: none;
}
.div-white {
  padding-bottom: 20px;
}
.div-vertical .post-item {
  border-bottom: 1px solid #ededed;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.box-vertical .box-text {
  padding-right: 0px;
}
.div-meta .post-meta {
  text-transform: initial;
  opacity: 1 !important;
  margin-right: 15px;
  font-size: 12px;
  color: #777;
}
.div-meta span img {
  width: 18px;
}

.button-xem-nhieu {
  background: #f0f2f5;
  border-radius: 8px;
  color: #424242;
  display: block;
  padding: 2px;
  text-align: center;
  margin-right: 0px;
  margin-top: 10px;
  text-transform: initial;
  font-weight: normal;
  font-size: 15px;
  margin-bottom: 0px;
}
.row-avater-header .icon-box-text {
  padding-left: 10px;
}
.row-avater-header .large-3 .button {
  text-transform: initial;
  border-radius: 8px;
  font-weight: normal;
}
.row-avater-header {
  margin-bottom: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}
.row-avater-header .col {
  padding-bottom: 0px;
}
.row-avater-header {
  padding-left: 30px !important;
  padding-right: 30px !important;
}
.row-custom-header > .col {
  padding-bottom: 0px;
}
.row-custom-header .icon-box {
  align-items: baseline;
  margin-top: -80px;
}
.row-custom-header .gallery-col img {
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}
.row-custom-header .icon-box-text h3 {
  font-size: 27px;
  margin-bottom: 1px;
  line-height: unset;
}
.row-custom-header .icon-box-text h3 span {
  margin-top: 10px;
  font-weight: normal;
  font-size: 17px;
  padding-left: 10px;
  position: absolute;
  margin-top: 0px;
}

.row-custom-header .icon-box-text h3 span img {
  width: 20px;
}

.row-custom-header .icon-box-text p {
  margin-bottom: 4px;
}
.row-uy-tin h5 a {
  font-size: 13px;
}
.row-uy-tin .box-text {
  padding-top: 5px;
  padding-bottom: 5px;
}

/* ***********
*
* ============ Sidebar ===============
*
***************/
aside .widget-title {
  color: var(--primary-color);
  font-size: 17px;
  text-transform: uppercase;
}
.entry-content.single-page {
  padding-top: 0px;
}
.div-right {
  padding-right: 15px;
}
.div-left {
  padding-left: 0px !important;
}

.div-left aside {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.02);
  padding: 10px;
}

.div-left aside img {
  width: 100%;
}

.row-white .div-white > .col-inner {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.02);
  padding: 20px;
}
.row-custom-header .icon-box-img img {
  padding-top: 0px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
#secondary aside img {
  border-radius: 8px;
}
#secondary aside {
  background: white;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.02);
  padding: 10px;
  border-radius: 8px;
}
.section-title-normal {
  border-bottom: unset;
  color: var(--primary-color);
  font-size: 17px;
}
.section-title-container {
  margin-bottom: 0px;
}
.section-title-normal span {
  border-bottom: unset;
}
.follow-icons a {
  margin-bottom: 0px !important;
  margin-top: 0px !important;
}
#text-2 {
  padding: 0px;
}
#text-2 p,
#text-2 img {
  padding-bottom: 0px !important;
  margin-bottom: 0px !important;
}
#masthead {
  background: var(--fs-color-primary);
}
#masthead .search-field {
  background: #f0f2f5;
  border-radius: 7px;
  min-height: 42px;
}

.header-bg-color {
  overflow: hidden;
}

.mkp-hero-slider .flickity-slider .img-inner img {
  border-radius: 20px;
}

.page-left-sidebar .div-center {
  padding-left: 0px !important;
}
.div-left {
  padding-right: 15px !important;
}
.box-overlay .more-info {
  display: none;
}
.row-sidebar .tabbed-content h5 {
  color: #1976d2;
}
.large-8 .box-text .post-title {
  font-size: 24px;
  color: black;
}
.related-post .box-text .post-title {
  font-size: 16px;
  color: black;
}
.box-text .post-title:hover {
  color: #1976d2;
}
.more-info span i {
  padding-right: 4px;
}
.form-flat input:not([type="submit"]),
.form-flat textarea,
.form-flat select {
  background-color: transparent;
  box-shadow: none;
  border-color: transparent;
  color: currentColor !important;
  border-radius: 99px;
}
.entry-header h6.entry-category {
  display: none;
}
#recent-comments-2 .widget-title {
  display: none;
}
.div-author {
  background-color: #1976d2;
  margin-bottom: 24px;
  padding: 30px;
  border: 0;
  text-align: center;
  color: white;
}
.div-author h5 {
  color: white;
}
.nav-pagination > li > span,
.nav-pagination > li > a {
  border-radius: 0px;
  border: 1px solid #e5e5e5;
}
.row-sidebar .nav-simple {
  background: black;
  padding: 5px 10px;
}
.row-sidebar .nav-simple li a {
  padding: 10px;
  color: white;
}
.row-sidebar .widget-title {
  background-color: #000;
  color: #fff;
  padding: 0 14px;
  border-bottom: 0;
  font-size: 14px;
  line-height: 35px;
  border-left: 5px solid #1976d2;
  font-weight: 600;
}
.button.is-outline,
input[type="submit"].is-outline,
input[type="reset"].is-outline,
input[type="button"].is-outline {
  border: none;
  background-color: transparent;
  border-radius: 10px !important;
}
div.social-icons a.youtube {
  background: #1a0b09;
}
p.from_the_blog_comments {
  display: none;
}
#footer h3.widget-title {
  text-transform: uppercase;
  font-size: 15px;
  position: relative;
  border-bottom: 3px solid #333;
  padding-bottom: 12px;
  margin-top: 0;
  margin-bottom: 24px;
}
#footer img {
  margin-bottom: 5px;
}
#footer h3.widget-title::after {
  position: absolute;
  content: "";
  width: 50px;
  bottom: -3px;
  left: 0;
  border-bottom: 3px solid #1976d2;
  z-index: 0;
}

.row-sidebar .tab-panels p {
  display: none;
}
.row-sidebar .post-item p {
  display: none;
}
.post-item img {
  border-radius: 8px;
}
.post-item .box-overlay .image-cover {
  border-radius: 8px;
}
.post-item .box-overlay .box-text {
  padding: 4px;
}
.post-item .box-overlay .box-text h5 a {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  font-weight: normal;
  -webkit-box-orient: vertical;
  margin: 0;
}
.row-tin-dau .post-item {
  padding-bottom: 0px;
}
.row-tin-noi-bat {
  margin-bottom: 15px;
}
.post-sidebar {
  padding-right: 5px !important;
}
.text-tren {
  background-color: #1976d2 !important;
  padding: 15px 12px;
  text-align: center;
}
.text-tren p {
  font-size: 15px;
}
.text-tren p,
.text-tren h3,
.text-tren {
  color: white;
}
.text-duoi:before {
  position: absolute;
  content: "";
  display: block;
  margin-top: -20px;
  left: 0;
  width: 100%;
  height: 10px;
  background:
    linear-gradient(
      45deg,
      transparent 33.33%,
      #e9e9e9 33.333%,
      #e9e9e9 66.66%,
      transparent 66.66%
    ),
    linear-gradient(
      -45deg,
      transparent 33.33%,
      #e9e9e9 33.33%,
      #e9e9e9 66.66%,
      transparent 66.66%
    );
  background-size: 20px 40px;
}
.text-duoi {
  padding: 10px;
  text-align: center;
  background: #e9e9ef;
}

.text-tren:after {
  position: absolute;
  content: "";
  display: block;
}
.is-divider {
  display: none;
}
.tabbed-content .nav li a {
  text-transform: inherit;
  font-size: 16px;
  padding: 6px 12px;
}
.entry-image .badge {
  display: none;
}
.nav > li > a > i {
  transition: unset;
}
.gallery-col img {
  border-radius: 8px !important;
}

.header-bottom-nav li a {
  border-radius: 10px;
  padding: 10px 15px;
  font-weight: normal !important;
  font-size: 15px;
}

.header-bottom-nav li {
  position: relative;
}

.header-bottom-nav li > a {
  position: relative;
  z-index: 2;
  border-radius: 0;
  background: transparent !important;
  transition: color 0.3s ease;
}

.header-bottom-nav li:hover > a,
.header-bottom-nav li.current-menu-item > a {
  color: black !important;
}

.page-left-sidebar {
  padding-bottom: 0px;
}
span.cat-label {
  text-transform: initial;
  font-size: 12px;
}

span.cat-label a {
  color: #777;
}

span.dem-luot {
  color: #ec681a;
  font-weight: bold !important;
  font-size: 12px;
}
span.post-meta {
  font-size: 12px;
}
.luot-xem:before {
  content: "\f06e";
  color: #f96e5b;
  display: inline-block;
  font-size: 14px;
  font-family: "FontAwesome";
  margin: auto;
  padding: 5px;
}
span.luot-xem {
  color: #f96e5b;
}
.row-divided > .col + .col:not(.large-12) {
  border: none;
}

.single-date {
  border-bottom: 1px dashed #ededed;
}
h1.entry-title {
  font-size: 24px !important;
}
/*Kết thúc màu sắc*/

footer.entry-meta {
  border-top: none !important;
  border-bottom: 1px dashed #ececec !important;
}

.entry-content img {
  width: auto !important;
}
.duong-line {
  background: rgba(0, 0, 0, 0) url(images/line.png) repeat scroll 0 0;
  height: 12px;
  margin-top: 5px;
  overflow: hidden;
}
.related-post h7 {
  font-weight: bold;
  font-size: 18px;
  float: left;
  margin: -8px 20px 0 0;
}
.div-no-padding {
  padding-bottom: 0px;
}
@media (max-width: 855px) {
  .blog-archive #post-list .post-item .box .box-text {
    padding-top: 0px;
  }
  .blog-archive #post-list .post-item .box .from_the_blog_excerpt {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
  }
  .blog-archive #post-list .post-item .box .box-image .image-cover {
    padding-top: 100% !important;
  }
  .blog-archive #post-list .post-item .box .box-image {
    width: 50% !important;
    padding-right: 5px;
  }
  .blog-archive #post-list .post-item .box {
    display: flex;
  }
  .div-white .div-white {
    padding-left: 0px !important;
  }
  .page-template-default #content {
    padding-top: 5px !important;
  }
  .blog-archive .div-center .post-item {
    padding-bottom: 5px;
  }
  .blog-archive .archive-page-header {
    margin-bottom: 5px;
  }
  .blog-archive,
  .blog-single {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
  .div-center-post {
    padding-left: 0px !important;
    padding-right: 0px !important;
  }
  .row-page > .div-white {
    padding-left: 0px !important;
  }
  .row-avater-header .button.icon {
    min-width: 2em !important;
    min-height: 2em !important;

    line-height: 2em !important;
  }
  .mobile-nav.nav-right .icon-angle-down,
  .mobile-nav.nav-right .sub-menu {
    display: none;
  }
  .stuck.header-main {
    height: 48px;
    line-height: 67px;
  }
  #logo {
    width: 120px !important;
  }
  .mobile-nav.nav-right {
    line-height: 20px !important;
  }
  .mobile-nav.nav-right li a img {
    background: #d8dadf;
    border-radius: 99px;
    padding: 4px;
  }
  .mobile-nav.nav-right li a {
    width: 25px;
  }
  .mobile-nav.nav-right li a span {
    display: none;
  }
  /* ***********
  *
  * ============ Scrollbar Moblie ===============
  *
  ***************/
  .header-bottom .flex-col.flex-left {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .header-bottom .flex-col.flex-left::-webkit-scrollbar {
    display: none;
  }

  .header-bottom .flex-col.flex-left ul {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .header-bottom .flex-col.flex-left ul::-webkit-scrollbar {
    display: none;
  }

  /* ***********
  *
  * ============ End scrollbar Moblie ===============
  *
  ***************/

  .nav.header-nav .menu-item a {
    display: flex;
    align-items: center;
    padding: 6px;
  }
  .nav.header-nav .menu-item {
    flex: 0 0 auto; /* Ngăn các item co lại */
    margin-right: 10px; /* Khoảng cách giữa các item */
  }

  .row-custom-header .gallery-col .box-image {
    padding-top: 200px !important;
  }
  .header-bottom-nav li a {
    padding: 10px 0px;

    font-size: 15px;
  }
  .header-bottom-nav li a img {
    display: none;
  }
  .row-avater-header .icon-box-text {
    padding-top: 24px !important;
  }
  .row-custom-header .icon-box {
    align-items: center !important;

    margin-top: -52px !important;
  }
  .row-custom-header .icon-box-text h3 span {
    font-size: 9px !important;

    position: absolute !important;
    margin-top: 6px !important;
  }
  .row-custom-header .icon-box-text h3 {
    font-size: 17px !important;
  }
  .row-avater-header .icon-box .icon-box-img {
    width: 110px !important;
  }
  .row-avater-header {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .header-bottom {
    display: block !important;
  }
  .blog-single .div-white {
    padding-right: 20px !important;
  }
  .page-left-sidebar .div-center {
    padding-bottom: 5px !important;
  }
  .post-item .box-text {
    padding-bottom: 0px !important;
  }
  #text-2 p,
  #text-2 img {
    width: 100%;
  }
  .row-hoi-dap ul li span {
    font-size: 12px;
  }
  .row-white .div-white > .col-inner {
    padding: 10px !important;
  }
  .div-white {
    padding-bottom: 6px !important;
    padding-right: 0px !important;
  }
  .div-left {
    padding-right: 0px !important;
  }
  .div-meta span {
    font-size: 11px;
  }

  .div-vertical .box .box-text {
    padding-top: 0px;
  }
  .div-vertical .box .box-image .image-cover {
    padding-top: 56% !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  .div-vertical .box .box-image {
    width: 60% !important;
    padding-right: 10px;
  }
  .div-vertical .box {
    display: flex;
  }
  .header-bottom .header-bottom {
    display: block !important;
  }
  .post-sidebar {
    padding-bottom: 0px;
  }
}

.container-404 {
  background: white;
  padding: 30px;
}

.container-404 .gif {
  display: flex;
  justify-content: center;
}

.container-404 .content {
  text-align: center;
}

.container-404 .content .main-heading {
  font-size: 2.5rem;
  font-weight: 700;
}

.container-404 button {
  border-radius: 15px;
  outline: none;
  border: none;
  background-color: var(--fs-color-primary);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

/* ***********
*
* ============ Chi Tiết Bài Viết ===============
*
***************/

.blog-single .article-inner {
  background: white;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.02);
  padding: 25px;
  border-radius: 10px;
}

.blog-single {
  counter-reset: sec; /* H2 counter */
}

.blog-single .article-inner h2 {
  counter-increment: sec;
  counter-reset: sub;
  font-size: 21px;
  position: relative;
  margin: 15px 0;
  padding: 7px 10px 7px 36px;
  border-radius: 14px;
  font-weight: 700;
  line-height: 1.28;
  scroll-margin-top: 110px;
  color: var(--primary-color);
}

.blog-single .article-inner h2::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  left: -8px;
  top: -3px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;

  color: #fff;
  font-weight: 900;
  font-size: 16px;

  background: linear-gradient(
    135deg,
    var(--fs-color-primary, #ed1c24),
    #ff7b81
  );
  border-radius: 12px;
  transform: rotate(-6deg);
  box-shadow: 0 10px 18px rgba(237, 28, 36, 0.24);
}

.blog-single .article-inner h3:not(.faq-question) {
  counter-increment: sub;
  position: relative;
  margin-bottom: 1.3em;
  padding-left: 52px;
  font-weight: 700;
  line-height: 1.33;
  font-size: 18px;
  scroll-margin-top: 110px;
}

.blog-single .article-inner h3:not(.faq-question)::before {
  content: counter(sec) "." counter(sub);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #ed1c24;
  background: rgba(237, 28, 36, 0.08);
  border: 1px solid rgba(237, 28, 36, 0.16);
}

/* ---------- Nhỏ màn hình ---------- */
@media (max-width: 640px) {
  .blog-single .article-inner h2 {
    padding-left: 30px;
  }
  .blog-single .article-inner h2::before {
    width: 30px;
    height: 30px;
    left: -6px;
    top: -8px;
    font-size: 13px;
  }
  .blog-single .article-inner h3 {
    padding-left: 35px;
  }
  .blog-single .article-inner h3::before {
    padding: 3px 5px;
    font-size: 12px;
  }

  .blog-single .article-inner {
    padding: 20px;
  }
  .blog-single .article-inner p,
  ul {
    font-size: 14px;
    text-align: justify;
  }

  .blog-single .article-inner h2 {
    font-size: 16px;
  }

  .blog-single .article-inner h3 {
    font-size: 14px;
  }

  .ez-toc-open-icon {
    padding: 10px 0px 12px;
    background-color: #f44220bd;
  }

  .ez-toc-open-icon span.arrow {
    display: none;
  }

  .ez-toc-open-icon span.text {
    font-size: 12px;
    color: white;
  }
}

/* ***********
*
* ============ END Chi Tiết Bài Viết ===============
*
***************/

/* ***********
*
* ============ CAPTION ===============
*
***************/

figure.wp-block-image {
  position: relative;
  display: inline-block;
  margin: 0 auto 24px;
}

figure.wp-block-image img {
  display: block;
}

figure.wp-block-image .wp-element-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 10px 12px;
  background: #f6f7f9;
  color: #333;
  font-size: 14px;
  line-height: 1.5;

  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
}

figure.wp-block-image:hover .wp-element-caption,
figure.wp-block-image:has(img:hover) .wp-element-caption {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

figure.wp-block-image .wp-element-caption {
  border-radius: 0 0 8px 8px;
  margin-bottom: 0px;
}

/* ***********
*
* ============ END CAPTION ===============
*
***************/

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

/* Chỉ áp dụng cho trang single post */
.single-post .entry-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.3em;
}

/* Ảnh nằm trước */
.single-post .entry-header .entry-image {
  order: 1;
  margin-bottom: 0;
}

/* Box chữ (tiêu đề + meta) nằm sau */
.single-post .entry-header .entry-header-text-top {
  order: 2;
}

/* Khung chứa ảnh */
.single-post .entry-header .entry-image {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
}

/* Ảnh */
.single-post .entry-header .entry-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
}

/* Overlay đen mờ */
.single-post .entry-header .entry-image::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */

  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.45),
    rgba(15, 23, 42, 0.15)
  );

  z-index: 1;
  pointer-events: none;
}

/* Nếu có badge ngày tháng trong .entry-image thì cho nó nổi lên trên overlay */
.single-post .entry-header .entry-image .badge {
  position: absolute;
  z-index: 2;
}
/* Hộp trắng giống mockup bên phải */
.single-post .entry-header .entry-header-text-top {
  background: #fff;
  border-radius: 10px;
  padding: 18px 24px;
  box-shadow: 0 4px 0px #f4431f94;
  max-width: 80%;
  margin: -40px auto 0; /* kéo lên chồng lên mép dưới của ảnh */
  position: relative;
  z-index: 2;
}

/* Giấu dòng category nhỏ phía trên nếu không cần nữa */
.single-post .entry-header .entry-category {
  display: none;
}

.single-post .entry-header .div-meta {
  display: flex;
  flex-wrap: wrap;
}

/* Mỗi span thành một chip đỏ */
.single-post .entry-header .div-meta .post-meta {
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  background: #ffe7e1;
  color: var(--primary-color);
  font-weight: 700;
}

.single-post .entry-header .div-meta .post-meta span {
  color: var(--primary-color);
}

.single-post .entry-header .div-meta .post-meta img {
  filter: invert(42%) sepia(82%) saturate(2810%) hue-rotate(2deg)
    brightness(96%) contrast(93%);
}

.single-post .entry-header .entry-title {
  font-size: 24px;
  line-height: 1.35;
}

/* ===================== MOBILE ===================== */
@media (max-width: 767px) {
  .single-post .entry-header {
    margin-bottom: 1.5rem;
  }

  .single-post .entry-header .entry-image {
    height: 120px;
    border-radius: 8px;
  }

  .single-post .entry-header .entry-header-text-top {
    background: #ffffff9e;
    max-width: 100%;
    margin: -30px auto 0;
    padding: 10px 5px 0px 5px;
    border-radius: 10px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    box-shadow: 0 4px 0px #f4431f94;
  }

  .single-post .entry-header .entry-title {
    font-size: 16px !important;
    line-height: 1.4;
    margin-bottom: 10px;
    color: black;
  }

  .single-post .entry-header .div-meta span {
    font-size: 8px;
    padding: 6px 7px;
    border-radius: 999px;
    font-weight: 500;
    margin-right: 0;
  }

  .single-post .entry-header .div-meta span img {
    width: 10px;
  }
}
/* ========= Danh mục bài viết (EZ TOC Sticky) =========== */

/* 1) Sticky + scroll */
.ez-toc-sticky {
  position: sticky;
  top: 90px; /* chỉnh theo header */
  max-height: calc(100vh - 110px);
  overflow: auto;

  /* scrollbar (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.toc-left {
  padding-right: 0px !important;
}

/* Mobile: không sticky */
@media (max-width: 849px) {
  .ez-toc-sticky {
    display: none !important;
  }
}

/* 2) Card container */
.ez-toc-sticky #ez-toc-container {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 14px 14px 12px;
}

/* 3) Title */
.ez-toc-sticky .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ez-toc-sticky .ez-toc-title {
  margin: 0 !important;
  font-weight: 600 !important;
  color: var(--primary-color);
  letter-spacing: 0.2px;
}

/* 4) List reset */
.ez-toc-sticky nav {
  margin: 0 !important;
}
.ez-toc-sticky .ez-toc-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.ez-toc-sticky .ez-toc-list > li {
  margin: 6px 0 !important;
}

/* 5) Link base */
.ez-toc-sticky .ez-toc-link {
  display: block; /* full clickable */
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none !important;
  color: #2b2b2b !important;
  line-height: 1.35;
  font-size: 14px;
  font-weight: 600;
  background: transparent;

  /* long text */
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;

  /* smooth */
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    color 0.15s ease;
}

/* Keep visited same color (đừng để visited đen khác màu) */
.ez-toc-sticky #ez-toc-container a:visited {
  color: #2b2b2b !important;
}

/* Hover */
.ez-toc-sticky .ez-toc-link:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(2px);
}

/* 6) Active */
.ez-toc-sticky .ez-toc-link.is-active {
  background: #f446221a !important;
  color: var(--primary-color) !important;
  font-weight: 800;
  position: relative;
}
.ez-toc-sticky .ez-toc-link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 4px;
  background: var(--primary-color);
}

/* 7) Level 3 indent */
.ez-toc-sticky .ez-toc-list-level-3 {
  margin: 6px 0 0 0 !important;
  padding-left: 12px !important;
}
.ez-toc-sticky .ez-toc-list-level-3 .ez-toc-link {
  font-size: 13px;
  font-weight: 600;
  color: #444 !important;
  padding: 7px 10px;
}

/* 8) Scrollbar (Chrome/Edge) */
.ez-toc-sticky::-webkit-scrollbar {
  width: 8px;
}
.ez-toc-sticky::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
}
.ez-toc-sticky::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.28);
}

/* ========= Breadcrumb cho danh mục bài viết + chi tiết bài viết  =========== */
/* =========================
   Rank Math Breadcrumb - PC style
   ========================= */
.rank-math-breadcrumb {
  margin: 0 0 14px;
}

.rank-math-breadcrumb p {
  margin: 0;
  padding: 10px 14px;
  background: #f6f7fb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  line-height: 1.4;
  font-size: 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.rank-math-breadcrumb a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
}

.rank-math-breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.rank-math-breadcrumb .separator {
  opacity: 0.5;
  padding: 0 2px;
}

.rank-math-breadcrumb .last {
  color: #111827;
  font-weight: 700;
}

/* PC: giới hạn chiều dài để không làm bự đầu bài */
@media (min-width: 992px) {
  .rank-math-breadcrumb p {
    max-width: 100%;
    overflow: hidden;
  }
  /* Nếu tiêu đề cuối quá dài thì cắt gọn đẹp */
  .rank-math-breadcrumb .last {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px; /* chỉnh theo bố cục */
    display: inline-block;
    vertical-align: bottom;
  }
}

@media (max-width: 768px) {
  .rm-breadcrumbs .rank-math-breadcrumb {
    display: none;
  }
}
