/*
 * Theme Name: HCOM Theme
 * Template:   flatsome
 * Description: Child theme for Flatsome — optimized & merged
 * Version:    2.0
 * ─────────────────────────────────────────────────────────────
 */

@font-face {
  font-family: 'fl-icons';
  src: url('https://hcom.vn/wp-content/themes/flatsome/assets/css/icons/fl-icons.woff2?v=3.19.7') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* Brand colours */
  --hcom-primary:      #d50015;
  --hcom-primary-dark: #b00020;
  --hcom-primary-soft: #ffe6e9;
  --hcom-accent:       #003ea6;
  --hcom-accent-dark:  #003380;

  /* UI colours */
  --hcom-warning: #fcce0a;
  --hcom-success: #34c158;
  --hcom-zalo:    #005ae0;
  --hcom-black:   #000;

  /* Text */
  --hcom-text:      #222;
  --hcom-text-soft: #333;
  --hcom-text-muted:#555;

  /* Borders */
  --hcom-border:      #e6e6e6;
  --hcom-border-soft: #f1f1f1;

  /* Backgrounds */
  --hcom-bg:       #ffffff;
  --hcom-bg-soft:  #f7f7f7;
  --hcom-bg-soft-2:#f5f9ff;

  /* Shape */
  --hcom-radius-sm: 5px;
  --hcom-radius-md: 10px;
  --hcom-radius-lg: 12px;

  /* Shadows */
  --hcom-shadow-sm: 0 2px 5px rgba(0, 0, 0, .10);
  --hcom-shadow-md: 0 0 10px rgba(227, 227, 227, 1);
}


/* ═══════════════════════════════════════════════════════════════
   2. BASE / TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
html,
body,
.nav > li > a,
h1, h2, h3, h4, h5, h6,
.heading-font,
.off-canvas-center .nav-sidebar.nav-vertical > li > a,
.ads-TOP {
  font-family: 'SVN-Poppins', sans-serif !important;
}

b, strong { font-weight: 600; }

.entry-content { font-size: 15px; }

p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Prevent span from inheriting unexpected colours */
span { color: inherit; }


/* ═══════════════════════════════════════════════════════════════
   3. ACCESSIBILITY HELPERS
   ═══════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* ═══════════════════════════════════════════════════════════════
   4. LINK STYLES
   ═══════════════════════════════════════════════════════════════ */
.entry-content a,
.hcom-container a,
.shop-container a,
.article-inner a,
.cta-box a,
.term-description a,
.toc-box a {
  color: var(--hcom-primary-dark) !important;
}

.entry-content a:hover,   .entry-content a:focus,
.hcom-container a:hover,  .hcom-container a:focus,
.shop-container a:hover,  .shop-container a:focus,
.article-inner a:hover,   .article-inner a:focus,
.cta-box a:hover,         .cta-box a:focus,
.toc-box a:hover,         .toc-box a:focus,
.term-description a:hover,.term-description a:focus,
.w-box a:hover,           .w-box a:focus {
  color: var(--hcom-accent-dark) !important;
}


/* ═══════════════════════════════════════════════════════════════
   5. GLOBAL HELPERS / UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.banner-hcom { text-shadow: 1px 1px var(--hcom-black); }

/* Padding / margin resets */
.clear-pad,
.list-video,
.box-nd,
.cate-box > .col { padding-bottom: 0 !important; }

.clear-mar { margin: 0 !important; }

/* Hidden elements */
.absolute-footer,
.is-divider,
.box-category p.count,
.hcom-prd-l .star-rating,
.video-ft .ads-migi { display: none !important; }

/* Misc layout fixes */
.additional-meta           { text-align: center; }
.author-box p,
p.author-name              { margin-bottom: 0; }
.fd-hcom                   { flex-direction: column; align-items: baseline !important; }
.luot-xem .fa-eye          { margin-left: 0; }
.shop-container .count     { display: none; }
.breadcrumbs a             { color: #111 !important; text-decoration: underline !important; }
.rd-15 img                 { border-radius: 15px; }


/* ═══════════════════════════════════════════════════════════════
   6. SECTION / TITLE STYLES
   ═══════════════════════════════════════════════════════════════ */
.section-title b   { height: 0; }
.section-title a   { color: var(--hcom-primary-dark); text-decoration: underline; }

span.widget-title {
  border-left: 5px solid var(--hcom-primary);
  padding-left: 10px;
  color: #e31811;
}

.h2-title {
  margin: 36px 0 16px;
  text-align: justify;
  color: #000080;
  font-size: 24px;
  font-weight: bold;
}
.h3-title {
  margin: 28px 0 12px;
  text-align: justify;
  font-size: 20px;
  font-weight: bold;
}
.h4-title {
  margin: 22px 0 10px;
  text-align: justify;
  font-size: 18px;
  font-weight: bold;
}

.text-navy { color: #000080; }
.text-blue { color: #1f4fbf; }


/* ═══════════════════════════════════════════════════════════════
   7. LAYOUT BLOCKS / BOXES
   ═══════════════════════════════════════════════════════════════ */
.w-box,
.author-box,
#post-list,
.widget-area,
.article-inner,
.shop-container,
.sidebar-inner {
  background: var(--hcom-bg);
  border-radius: var(--hcom-radius-md);
  padding: 10px;
}

.widget { margin-bottom: 1.5em; }

/* Blog post & product cards */
.box-blog-post,
.product-small.box,
.hcom-prd-l .product-small {
  border-radius: var(--hcom-radius-md);
  border: 1px solid #f2f2f2;
  overflow: hidden;
}
.box-blog-post:hover,
.product-small.box:hover,
.hcom-prd-l .product-small:hover { box-shadow: var(--hcom-shadow-md); }

.box-blog-post .box-text { padding: 5px 10px; }

/* Category image box */
.box-category .box-image {
  border-radius: var(--hcom-radius-md);
  border: 1px solid var(--hcom-primary);
  overflow: hidden;
  max-height: 130px;
  background: var(--hcom-primary);
}

/* Shared image box for products/tabs */
.product .box-image,
.tab-dmsp .box-image {
  border-radius: var(--hcom-radius-md);
  background: var(--hcom-bg);
  text-align: center;
}

/* Search */
.searchform-wrapper {
  width: 100%;
  border-radius: var(--hcom-radius-sm) !important;
  overflow: hidden;
}

/* Term description */
.term-description {
  border: 1px dashed #cf2e2e;
  padding: 8px;
  margin-bottom: 15px;
}

/* Category header box */
.header-cat {
  border: 1px dashed #f00024;
  padding: 10px;
  border-radius: var(--hcom-radius-md);
  background: var(--hcom-bg);
  margin-top: 20px;
}


/* ═══════════════════════════════════════════════════════════════
   8. ICON / FEATURE BOXES
   ═══════════════════════════════════════════════════════════════ */
.icb {
  padding: 30px 0;
  display: flex;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}
.icb .icon-box-text { margin-left: 15px; }
.icb .icon-box-img  { margin-right: 0; }

.bg-vom,
.dmsp {
  position: absolute;
  background: url('/wp-content/uploads/2021/04/bg-bom.png') no-repeat;
}
.bg-vom { transform: translateY(-67px); }
.dmsp   { background-position: top center; transform: translateY(-113px); padding-top: 45px; }


/* ═══════════════════════════════════════════════════════════════
   9. TAGS / MENUS / SMALL LISTS
   ═══════════════════════════════════════════════════════════════ */
.tag-tk,
.ul-menu,
.gioithieu,
.mg-fix ul,
#footer .w-box ul,
.ft-row-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Shared float-list items */
.tag-tk li,
.li_menu,
ul.gioithieu li {
  float: left;
  border-radius: var(--hcom-radius-sm);
  padding: 5px 10px;
  margin-right: 5px;
}

.tag-tk li { background: #929292; border-left: 5px solid #cb0000; }
.li_menu   { background: #929292; border-left: 5px solid #db0008; margin-left: 0 !important; }

.tag-tk li a,
.li_menu a { color: #fff !important; text-decoration: underline; }

.tag-tk li a:hover, .tag-tk li a:focus,
.li_menu a:hover,   .li_menu a:focus { color: #fff !important; text-decoration: underline; }

ul.gioithieu li     { color: #cb0000; background: #f1f1f1; font-size: 13px; }
ul.gioithieu li a   { color: var(--hcom-primary-dark) !important; text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════════
   10. POSTS / PRODUCTS / CATEGORIES
   ═══════════════════════════════════════════════════════════════ */
p.product-title a,
.tab-dmsp .product-title a {
  font-weight: normal;
  color: #3e3e3e !important;
  text-decoration: none;
}

/* Clamped 2-line titles */
.hcom-prd-l .product-title a,
.product-small.box .product-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  color: var(--hcom-accent) !important;
  min-height: 35px;
}

/* Product link (WooCommerce) */
a.woocommerce-loop-product__link {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  height: 10px;
}

/* Price colours */
.amount,
.woozero,
.product .amount,
.tab-dmsp .price-wrapper .amount { color: #e20b2d; }

/* Thumbnail tweaks */
.img-thumb-prd         { padding: 1px; }
.img-thumb-prd .box-text { padding: 0 3px 0 !important; }

#fix-product > .product-small > .box-image {
  max-height: 250px !important;
  border: 1px solid rgba(221, 52, 52, 0.38) !important;
  border-radius: var(--hcom-radius-md) !important;
}

/* Gallery */
.product-gallery-slider img { padding: 10px 0; }

/* Short description panel */
.product-info .product-short-description {
  font-size: 13px;
  display: inline-block;
  border: 1px solid var(--hcom-primary);
  background-color: rgba(195, 20, 20, 0.08);
  padding: .5rem 1.25rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  margin-top: .5rem;
  border-radius: .5rem;
}

/* Corner ribbon */
.css-18wywdr {
  position: absolute;
  top: -1px; right: -1px;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 36px 36px 0;
  border-color: transparent var(--hcom-primary) transparent transparent;
}
.css-th3zma {
  position: absolute;
  top: 0; right: 6px;
  color: #fff;
  z-index: 0;
  font-size: 10px;
}


/* ═══════════════════════════════════════════════════════════════
   11. HEADER / TOPBAR
   ═══════════════════════════════════════════════════════════════ */
.logo-left .logo { margin-right: 80px; }

/* fl-icons pseudo-elements */
.map-hcom::before   { content: "\e009"; font-family: fl-icons; margin-right: 3px; }
.hl-hcom b::before  { content: "\e600"; font-family: fl-icons; margin-right: 3px; }
.mail-hcom span::before { content: "\e003"; font-family: fl-icons; margin-right: 3px; }

/* Topbar list */
.hcom-topbar {
  min-width: 260px;
  margin-top: 5px !important;
  color: #fff;
  list-style: none;
  font-size: 15px;
}
.hcom-topbar li  { float: left; margin-right: 15px; margin-bottom: 5px; }
.hcom-topbar,
.hcom-topbar a,
.hcom-topbar li  { color: #fff; }
.hcom-topbar span,
.hcom-topbar b   { color: var(--hcom-warning); }
.hcom-topbar a:hover,
.hcom-topbar a:focus { color: #fff7b8 !important; text-decoration: underline; }

/* Better WCAG contrast for header contact */
#header .header-contact span { color: #ffd84d; }

/* Phone button */
.header-phone a {
  color: #fff !important;
  display: flex;
  flex-direction: column;
  padding: 5px 15px;
  border: 1px solid #fff;
  border-radius: var(--hcom-radius-sm);
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-decoration: none;
}
.header-phone a:hover,
.header-phone a:focus {
  color: #111 !important;
  background: rgba(255, 255, 255, .92);
  outline: none;
}

/* Sale bar */
.header-sale {
  background: #f9cd2c;
  margin: 0;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 10px;
}
.header-sale a {
  color: #111 !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 4.3;
  animation: zoom 1s infinite;
  text-decoration: underline;
}
.header-sale a:hover,
.header-sale a:focus {
  color: #111 !important;
  background: rgba(255, 255, 255, .92);
  outline: none;
}

/* Vertical menu */
.header-vertical-menu__opener {
  border-top-left-radius: var(--hcom-radius-md);
  border-top-right-radius: var(--hcom-radius-md);
  margin-bottom: -22px;
}
.header-vertical-menu__fly-out {
  max-width: 220px;
  margin-top: 30px;
  border-radius: var(--hcom-radius-md);
}

/* Nav contrast fix (opacity/shadow overrides from parent) */
#header .nav > li > a,
#header .nav-top-link,
#header .menu-item > a,
#header .icon-angle-down,
#header i {
  opacity: 1 !important;
  text-shadow: none !important;
}


/* ═══════════════════════════════════════════════════════════════
   12. NAVIGATION DROPDOWN
   ═══════════════════════════════════════════════════════════════ */
/* Sub-menu visibility logic */
.header-nav .nav-dropdown li.current-menu-item > .sub-menu { display: none !important; }
.header-nav .nav-dropdown li.current-menu-item:hover > .sub-menu,
.header-nav .nav-dropdown li:not(.current-menu-item):hover > .sub-menu { display: block !important; }

/* Remove CSS transitions on sub-menu (JS handles show/hide) */
.nav-dropdown .sub-menu { transition: none !important; }

/* Dropdown wrapper */
.nav-dropdown {
  border: 1px solid #ddd;
  padding: 0;
}

/* Column items */
.nav-dropdown > li.nav-dropdown-col {
  display: block;
  width: 100%;
  border-right: 0;
}

/* Link typography */
.nav-dropdown .nav-dropdown-col > a,
.nav-dropdown li a {
  font-weight: 500 !important;
  text-transform: none !important;
  font-size: 15px;
}

/* Top-level items */
.nav-dropdown-default > li > a  { border-bottom: 0 !important; color: #000 !important; }
.nav-dropdown-default > li:hover { background: #ff0000; }
.nav-dropdown-default > li:hover > a { color: #fff; }

/* Second-level flyout panel */
.nav-dropdown .nav-dropdown-col > ul {
  border: 1px solid #d2d2d2;
  margin-top: -40px;
  box-shadow: 1px 1px 3px #828282;
  display: none;
  position: absolute;
  left: 100%;
  z-index: 9;
  background: #fff;
  min-width: 240px;
}
.nav-dropdown .nav-dropdown-col > ul li a { padding: 10px; text-transform: none; color: #000; }
.nav-dropdown .nav-dropdown-col > ul li:hover             { background: #cb1515; }
.nav-dropdown .nav-dropdown-col > ul li:hover > a         { color: #fff; }

/* Show flyout on hover */
.header-nav li.nav-dropdown-col:hover > ul { display: block !important; }


/* ═══════════════════════════════════════════════════════════════
   13. FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer-wrapper p img { object-fit: cover; height: 180px; }

#footer .w-box ul li { margin-left: 2px; font-size: 13px; }

.ft-social { padding: 15px 0 0 15px !important; }

.ft-row-menu h3 {
  border-bottom: 1px solid #efefef;
  padding-bottom: 10px;
  font-weight: 900;
}
.ft-row-menu ul > li { margin-left: 0; font-size: 13px; }

.w-box.ft-contact,
.ft-row-menu.w-box { margin-bottom: 20px; color: #000; }

.w-box.ft-contact a,   .w-box.ft-contact h3,
.w-box.ft-contact li,  .w-box.ft-contact p,
.ft-row-menu.w-box a,  .ft-row-menu.w-box h3,
.ft-row-menu.w-box p   { color: #000 !important; }


/* ═══════════════════════════════════════════════════════════════
   14. SPECIAL SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.slider-TV { padding-bottom: 65px; }
.flickity-page-dots { bottom: 5px; }

.hc-blist {
  background: #000 !important;
  border-radius: var(--hcom-radius-md);
  padding: 5px;
}

/* About section with red overlay */
.about-hc {
  position: relative;
  background-image: url('/wp-content/uploads/2021/04/bg-banner-slider.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.about-hc::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(245, 0, 24, .84);
  z-index: -1;
  border-radius: var(--hcom-radius-md);
}
.about-hc * { position: relative; z-index: 2; }

.hc-dichvu .box-image { overflow: hidden; border-radius: var(--hcom-radius-md); }

/* Info note box */
.mg-fix {
  margin-top: 10px;
  border: 1px solid var(--hcom-primary);
  padding: 10px;
  font-size: 13px;
  border-radius: var(--hcom-radius-md);
}
.mg-fix ul { list-style: none; margin: 0; padding: 0; }
.mg-fix h4 { color: var(--hcom-primary-dark); }

/* Ads/top notice */
.ads-TOP {
  background: #e6f4ff;
  border-radius: var(--hcom-radius-md);
  margin: 5px auto;
  padding: 15px 5px 5px;
  font-size: 16px;
  color: #000;
}
.ads-TOP a { color: var(--hcom-primary-dark) !important; text-decoration: underline; }

.thong-so-hc { background: var(--hcom-primary); border-radius: var(--hcom-radius-md); }
.col.3d-box  { min-height: 500px !important; }
.thong-so-hc .col { position: relative; }
.thong-so-hc .col-divided > .col-inner { border: none !important; }
.thong-so-hc .col:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   15. CONTENT COMPONENTS (TOC / CTA)
   ═══════════════════════════════════════════════════════════════ */
.hcom-container {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--hcom-text);
}

/* Table of Contents box */
.toc-box {
  background: var(--hcom-bg-soft-2);
  border: 1px solid #d8e7f7;
  padding: 18px 20px;
  border-radius: var(--hcom-radius-lg);
  margin: 0 0 30px;
}
.toc-title {
  margin: 0 0 10px;
  color: #003366;
  font-size: 18px;
  font-weight: bold;
}
.toc-list { margin: 0; padding-left: 18px; line-height: 1.8; }

/* CTA notice box */
.cta-box {
  background: var(--hcom-bg-soft);
  border-left: 6px solid var(--hcom-primary);
  padding: 16px;
  font-size: 17px;
  color: var(--hcom-text);
  margin: 24px 0 30px;
}
.cta-box strong { color: var(--hcom-text); }
.cta-footer     { font-size: 18px; }


/* ═══════════════════════════════════════════════════════════════
   16. TABLES / MEDIA / VIDEO
   ═══════════════════════════════════════════════════════════════ */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.hcom-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 15px;
}
.hcom-table th,
.hcom-table td   { border: 1px solid #ddd; padding: 10px; text-align: left; vertical-align: top; }
.hcom-table thead { background-color: #d71920; color: #fff; }
.table-striped tr:nth-child(even) { background-color: #f9fafc; }

.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 4px;
}
.entry-content > .wp-block-image { text-align: center !important; }

/* Responsive video wrapper */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--hcom-radius-lg);
  margin: 15px 0;
  background: #000;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}


/* ═══════════════════════════════════════════════════════════════
   17. CTA / ACTION BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.migi-call-to-action {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
  margin-top: 15px;
}

.migi-call-to-action a.button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 70px;
  padding: 12px 20px;
  margin: 0 !important;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  text-decoration: none !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transition: all 0.3s ease;
}

/* Force white text on all child elements */
.migi-call-to-action a.button,
.migi-call-to-action a.button span,
.migi-call-to-action a.button strong,
.migi-call-to-action a.button b { color: #fff !important; }

.migi-call-to-action a.button.hotline { background: var(--hcom-success) !important; }
.migi-call-to-action a.button.zalo    { background: var(--hcom-zalo) !important; }

.migi-call-to-action a.button:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.migi-call-to-action a.button span:first-child {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.migi-call-to-action a.button span:last-child {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   18. TOC PLUGIN / PAGINATION / MISC
   ═══════════════════════════════════════════════════════════════ */
.ez-toc-icon-toggle-span { height: 20px; }

#ez-toc-container .ez-toc-js-icon-con,
#ez-toc-container .ez-toc-toggle label { border: 1px solid #c7e4f4 !important; }

.nav-pagination > li > a,
.nav-pagination > li > span {
  border: 1px solid var(--hcom-border-soft);
  border-radius: var(--hcom-radius-sm);
}

.woocommerce-layout__header { position: relative !important; }

.wp-block-tag-cloud a {
  float: left;
  margin-right: 5px;
  border-radius: var(--hcom-radius-sm);
  background: #f1f1f1;
}


/* ═══════════════════════════════════════════════════════════════
   19. ACCORDION / A11Y FIXES
   ═══════════════════════════════════════════════════════════════ */
.accordion-title.plain,
.accordion-title,
.accordion-title a  { color: #111 !important; }

.post-sidebar       { padding-left: 0 !important; }
.mobile-sidebar,
.mfp-content        { width: 100%; }

.tab-dmsp a.button  { border-radius: var(--hcom-radius-sm); }
.tab-dmsp .tab span { color: #9b0000; }

.entry-meta .fa-hashtag { color: #078bf7; }


/* ═══════════════════════════════════════════════════════════════
   20. PRODUCT TITLE & MENU COMPONENT
   ═══════════════════════════════════════════════════════════════ */
.product_title_and_menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #f50018;
  margin: 10px 0;
}

.product_title_and_menu .title h3 { margin: 0; }

.product_title_and_menu .title h3 a {
  display: block;
  height: 45px;
  line-height: 45px;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  padding: 0 8px 0 12px;
  background: #d92329;
  position: relative;
  text-transform: uppercase;
}

/* Arrow tail */
.product_title_and_menu .title h3 a::after {
  content: "";
  display: block;
  border-top: 22px solid transparent;
  border-left: 15px solid #d92329;
  border-right: 0 solid transparent;
  border-bottom: 23px solid transparent;
  position: absolute;
  top: 0;
  right: -15px;
}

.product_title_and_menu .show_tab br { display: none; }

.product_title_and_menu .show_tab a {
  font-size: 14px;
  margin-right: 5px;
}
.product_title_and_menu .show_tab a::before {
  content: "/";
  margin-right: 7px;
  color: #ccc;
}
.product_title_and_menu .show_tab a:first-child::before { display: none; }


/* ═══════════════════════════════════════════════════════════════
   21. PDP MODULE (HALF LAYOUT)
   ═══════════════════════════════════════════════════════════════ */
.pdp-module-half {
  background: var(--hcom-bg-soft);
  padding: 50px 0;
  margin-bottom: 50px;
}

.pdp-module-half__box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.pdp-module-half__txt  { flex: 1; }
.pdp-module-half__image { flex: 1; text-align: center; }

.pdp-module-half__headline {
  font-size: 28px;
  margin-bottom: 20px;
  color: #222;
}
.pdp-module-half__description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--hcom-text-muted);
}

.pdp-module-half__image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Optional section separator */
.section-divider {
  border: 0;
  border-top: 2px solid #e0e0e0;
  margin: 50px 0;
}


/* ═══════════════════════════════════════════════════════════════
   22. LANDING BLOCK
   ═══════════════════════════════════════════════════════════════ */
.landing-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 10%;
  gap: 40px;
  overflow: hidden;
}

.landing-block .content,
.landing-block .image { flex: 1; position: relative; z-index: 1; }

.landing-block .content h2 { font-size: 32px; margin-bottom: 20px; color: #222; }
.landing-block .content p  { font-size: 16px; line-height: 1.6; margin-bottom: 20px; color: #111; }

.landing-block .image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.landing-block .image img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

/* CTA button inside landing block */
.landing-block .btn {
  display: inline-block;
  padding: 12px 22px;
  background: #ff6600;
  color: #fff;
  border-radius: var(--hcom-radius-sm);
  text-decoration: none;
  transition: background 0.3s ease;
}
.landing-block .btn:hover { background: #e65500; }

/* Background image (set via inline --bg custom property) */
.landing-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg) center / cover no-repeat;
  z-index: 0;
}

/* White gradient overlay — odd blocks: text on left */
.landing-block:nth-child(odd)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.6)  100%
  );
  z-index: 0;
}

/* Even blocks: flip layout + gradient direction */
.landing-block:nth-child(even) { flex-direction: row-reverse; }
.landing-block:nth-child(even)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.6)  100%
  );
  z-index: 0;
}


/* ═══════════════════════════════════════════════════════════════
   23. RESPONSIVE — TABLET (≤ 849px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 849px) {
  .hcom-topbar { font-size: 13px; }
  .hcom-topbar .map-hcom { display: none; }

  iframe.fb_customer_chat_icon { display: none !important; }
  .fb-customerchat iframe { bottom: 105px !important; }

  .img-thumb-prd img { width: auto !important; }
  .category-page-row { padding-top: 5px; }

  /* Blog thumbnails in vertical list */
  .tin-blog .box-vertical .box-image { width: 35% !important; margin-right: 10px; float: left; }
  .tin-blog .box-vertical .box-text  { width: 61% !important; float: right; }
  .tin-blog .post-item               { padding-right: 0; }
}


/* ═══════════════════════════════════════════════════════════════
   24. RESPONSIVE — MOBILE (≤ 549px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 549px) {
  /* Header */
  .logo-left .logo { margin-right: 0; }
  .header-phone a  { padding: 5px 10px; }

  /* gioithieu tags: stack vertically */
  .gioithieu li,
  ul.gioithieu li { width: 100% !important; margin-left: 0 !important; }

  /* Fixed-height images */
  .height-fix img { height: 350px; object-fit: cover; }

  /* Thong so – remove radius on mobile (full-bleed) */
  .thong-so-hc { border-radius: 0 !important; }

  /* Sidebar */
  .post-sidebar.col { padding-left: 15px !important; }

  /* TOC */
  div#ez-toc-container { width: 100% !important; }

  /* CTA buttons: single column */
  .migi-call-to-action { grid-template-columns: 1fr; gap: 10px; }
  .migi-call-to-action a.button { min-height: 64px; font-size: 16px; }
  .migi-call-to-action a.button span:last-child { font-size: 24px; }

  /* PDP module: stack columns */
  .pdp-module-half__box { flex-direction: column; text-align: center; }
  .pdp-module-half__txt { margin-bottom: 20px; }

  /* Product title & menu: stack vertically */
  .product_title_and_menu { flex-direction: column; align-items: flex-start; }
  .product_title_and_menu .show_tab { width: 100%; }
  .product_title_and_menu .show_tab a { margin-right: 0; padding: 7px 10px; display: block; }
  .product_title_and_menu .show_tab a::before { display: none; }
  .product_title_and_menu .title h3 a { font-size: 15px; height: 35px; line-height: 35px; }
  .product_title_and_menu .title h3 a::after {
    border-top: 17.5px solid transparent;
    border-bottom: 17.5px solid transparent;
  }

  /* Landing block: stack columns */
  .landing-block,
  .landing-block:nth-child(even) {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
  }
}
