@charset "UTF-8";
/* ==========================================================================
   TRUNG TÂM Y TẾ HUYỆN TRI TÔN - T4 FRAMEWORK CUSTOM STYLES
   Primary Color: Medical Emerald Green (#0f824c / #139459)
   Accent: Gold / Yellow (#ffd166 / #ffe066)
   ========================================================================== */

:root {
  --primary-green: #1d9122;
  --primary-light-green: #25a92b;
  --primary-dark-green: #006e05;
  --primary-bg-tint: #f2f9f3;
  --primary-subtle-border: #cbe6ce;
  --accent-gold: #ffd166;
  --accent-yellow: #ffe066;
  --accent-red: #e03131;
  --accent-dark-red: #c92a2a;
}

html {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2d3748;
  background-color: #f7faf8;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Remove all social media icons */
.t4-social,
.social-links,
.social-icon,
.social-icons,
.t4-header-r .social-icon,
.footer-social,
.fa-facebook,
.fa-facebook-f,
.fa-twitter,
.fa-instagram,
.fa-youtube,
.fa-linkedin {
  display: none !important;
}

/* --------------------------------------------------------------------------
   1. TOPBAR
   -------------------------------------------------------------------------- */
.topbar-section,
#t4-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e2eae4;
  font-size: 0.84rem;
  color: #4a5568;
}

.topbar-section a {
  color: #4a5568;
  text-decoration: none;
}

.topbar-section a:hover {
  color: var(--primary-green);
}

/* --------------------------------------------------------------------------
   2. BANNER - CLEAN WITHOUT WHITE BORDERS / BOX
   -------------------------------------------------------------------------- */
.banner-section,
#t4-banner {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.site-banner-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #e4f2e8 0%, #d2ebd9 50%, #c4e4cd 100%) !important;
  border: none !important;
  box-shadow: none !important;
}

.banner-blur-backdrop {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(25px) saturate(150%);
  opacity: 0.35;
  transform: scale(1.15);
  pointer-events: none;
}

.banner-overlay-tint {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.banner-content-box {
  position: relative;
  z-index: 5;
}

.banner-img {
  max-height: 125px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: none !important;
  border: none !important;
  filter: none !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  .banner-img {
    max-height: 80px;
  }
}

/* --------------------------------------------------------------------------
   3. STICKY MAIN MENU (NAVBAR) - 1 ROW, NO OVERLAPPING LOGO/HOTLINE
   -------------------------------------------------------------------------- */
#t4-header,
.t4-header,
.main-nav-section {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  background: #138c18 url('../images/menu2.gif') repeat-x !important;
  background: linear-gradient(180deg, #006e05 0%, #138c18 50%, #25a92b 100%) !important;
  box-shadow: 0 4px 14px rgba(0, 110, 5, 0.22) !important;
  transition: all 0.25s ease-in-out;
  border-bottom: 2px solid #005504 !important;
}

.header-block {
  padding: 0 !important;
}

.header-block-2 .container-xxl {
  max-width: 100% !important;
  padding: 0 1rem !important;
}

.header-wrap {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hide text logo in navbar on all devices - banner already contains complete branding */
.header-wrap .navbar-brand {
  display: none !important;
}

@media (min-width: 992px) {
  .header-wrap .t4-header-r {
    display: none !important;
  }

  .header-wrap .t4-navbar {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  .t4-megamenu .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .t4-header-r .t4-offcanvas-toggle,
  .t4-header-r #triggerButton {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .header-wrap {
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    padding: 0.35rem 0.75rem !important;
  }

  .header-wrap .t4-header-r {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 100% !important;
  }

  /* Hide inline navbar toggler and mega menu on mobile */
  .t4-header-r nav.navbar-expand-lg,
  .header-wrap .t4-navbar {
    display: none !important;
  }

  /* SHOW Offcanvas Trigger button on mobile */
  .t4-header-r .t4-offcanvas-toggle,
  .t4-header-r #triggerButton {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    padding: 0.32rem 0.75rem !important;
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
  }

  .t4-header-r #triggerButton:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    color: var(--accent-gold) !important;
  }

  .t4-header-r #triggerButton::after {
    content: " MENU";
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 6px;
    color: #ffffff;
  }

  .hotline-navbar-pill {
    display: none !important;
  }
}

/* Style T4 Offcanvas Drawer */
.t4-offcanvas {
  background: #0d6e3f !important;
  color: #ffffff !important;
  width: 310px !important;
  max-width: 85vw !important;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.4) !important;
}

.t4-offcanvas .t4-off-canvas-header {
  background: linear-gradient(135deg, #074627 0%, #0d6e3f 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 0.9rem 1.15rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
}

.t4-offcanvas .t4-off-canvas-header .t4-offcanvas-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.t4-offcanvas .t4-off-canvas-header .t4-offcanvas-title-wrap i {
  color: #ffd166 !important;
  font-size: 1.05rem !important;
}

.t4-offcanvas .t4-off-canvas-header a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
}

.t4-offcanvas .t4-off-canvas-header .close {
  color: #ffffff !important;
  font-size: 1.3rem !important;
  opacity: 0.85 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
}

.t4-offcanvas .t4-off-canvas-header .close:hover,
.t4-offcanvas .t4-off-canvas-header .close:focus {
  opacity: 1 !important;
  color: #ffd166 !important;
  background: rgba(255, 255, 255, 0.25) !important;
  transform: rotate(90deg) !important;
}

.t4-offcanvas .t4-off-canvas-body {
  padding: 0.25rem 0 1.5rem 0 !important;
  overflow-y: auto !important;
}

.t4-offcanvas .navbar {
  padding: 0 !important;
  width: 100% !important;
}

.t4-offcanvas .navbar-nav {
  width: 100% !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  visibility: visible !important;
}

.t4-offcanvas .nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 100% !important;
  position: relative !important;
  transition: background 0.2s ease !important;
  visibility: visible !important;
}

.t4-offcanvas .nav-item:last-child {
  border-bottom: none !important;
}

.t4-offcanvas .nav-link {
  color: #ffffff !important;
  padding: 0.75rem 3.2rem 0.75rem 1.15rem !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-left 0.2s ease !important;
  border-left: 3px solid transparent !important;
  line-height: 1.35 !important;
}

.t4-offcanvas .nav-link:hover,
.t4-offcanvas .nav-item.active>.nav-link,
.t4-offcanvas .nav-item.current>.nav-link {
  color: #ffd166 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-left: 3px solid #ffd166 !important;
}

.t4-offcanvas .nav-item.menu-open>.nav-link {
  color: #ffd166 !important;
  background: rgba(0, 0, 0, 0.16) !important;
  border-left: 3px solid #ffd166 !important;
}

/* Home item styling */
.t4-offcanvas .nav-item.item-101 .nav-link {
  display: flex !important;
  align-items: center !important;
}

.t4-offcanvas .nav-item.item-101 .nav-link img {
  width: 17px !important;
  height: 17px !important;
  margin-right: 8px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  filter: brightness(0) invert(1) !important;
  transition: filter 0.2s ease !important;
}

.t4-offcanvas .nav-item.item-101.active .nav-link img,
.t4-offcanvas .nav-item.item-101 .nav-link:hover img {
  filter: brightness(0) saturate(100%) invert(84%) sepia(26%) saturate(1468%) hue-rotate(352deg) brightness(102%) contrast(102%) !important;
}

.t4-offcanvas .nav-item.item-101 .nav-link::after {
  content: "TRANG CHỦ" !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}

/* Offcanvas Accordion Toggle & Submenu styling */
.t4-offcanvas .sub-menu-back {
  display: none !important;
}

/* Override T4 / Bootstrap default white circular button completely */
.t4-offcanvas .btn-toggle,
.t4-offcanvas .sub-menu-toggle,
.t4-offcanvas .t4-off-canvas-body .navbar .btn-toggle,
.t4-offcanvas .t4-off-canvas-body .navbar .nav-item .btn-toggle,
.t4-offcanvas .t4-off-canvas-body .navbar .dropdown-menu .btn-toggle {
  background-color: transparent !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: auto !important;
  width: 48px !important;
  height: 46px !important;
  max-height: 46px !important;
  line-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 5 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: background 0.2s ease !important;
}

.t4-offcanvas .btn-toggle:hover,
.t4-offcanvas .sub-menu-toggle:hover,
.t4-offcanvas .t4-off-canvas-body .navbar .btn-toggle:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Hide any ::before pseudo-element triangle */
.t4-offcanvas .sub-menu-toggle::before,
.t4-offcanvas .btn-toggle::before {
  display: none !important;
  content: none !important;
}

/* Elegant FontAwesome Chevron Icon */
.t4-offcanvas .btn-toggle::after,
.t4-offcanvas .sub-menu-toggle::after,
.t4-offcanvas .t4-off-canvas-body .navbar .btn-toggle::after {
  content: "\f078" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  display: inline-block !important;
  transition: transform 0.25s ease, color 0.2s ease !important;
}

/* Expanded state: rotate 180deg & gold highlight */
.t4-offcanvas .btn-toggle.open::after,
.t4-offcanvas .btn-toggle.is-active::after,
.t4-offcanvas .sub-menu-toggle.open::after,
.t4-offcanvas .sub-menu-toggle.is-active::after,
.t4-offcanvas .nav-item.menu-open>.btn-toggle::after,
.t4-offcanvas .nav-item.menu-open>.sub-menu-toggle::after {
  transform: rotate(180deg) !important;
  -webkit-transform: rotate(180deg) !important;
  color: #ffd166 !important;
}

/* Submenu dropdown container */
.t4-offcanvas .dropdown-menu {
  display: none;
  background: rgba(0, 0, 0, 0.16) !important;
  border: none !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  position: static !important;
  float: none !important;
  padding: 0.35rem 0 !important;
  margin: 0 !important;
  width: 100% !important;
  border-radius: 0 !important;
}

/* Submenu items */
.t4-offcanvas .dropdown-item,
.t4-offcanvas .t4-off-canvas-body .navbar .dropdown-menu .dropdown-item,
.t4-offcanvas .t4-off-canvas-body .navbar .dropdown-menu .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  padding: 0.65rem 1.25rem 0.65rem 1.5rem !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  visibility: visible !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.t4-offcanvas .dropdown-item *,
.t4-offcanvas .t4-off-canvas-body .navbar .dropdown-menu .dropdown-item * {
  visibility: visible !important;
  color: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: inline !important;
  line-height: inherit !important;
}

/* Bullet point for submenu items */
.t4-offcanvas .dropdown-item::before,
.t4-offcanvas .t4-off-canvas-body .navbar .dropdown-menu .dropdown-item::before {
  content: "" !important;
  display: inline-block !important;
  width: 5px !important;
  height: 5px !important;
  background-color: rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
  margin-right: 10px !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.t4-offcanvas .dropdown-item:hover,
.t4-offcanvas .dropdown-item:focus,
.t4-offcanvas .dropdown-item.active,
.t4-offcanvas .t4-off-canvas-body .navbar .dropdown-menu .dropdown-item:hover,
.t4-offcanvas .t4-off-canvas-body .navbar .dropdown-menu .dropdown-item.active {
  color: #ffd166 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  padding-left: 1.8rem !important;
}

.t4-offcanvas .dropdown-item:hover::before,
.t4-offcanvas .dropdown-item:focus::before,
.t4-offcanvas .dropdown-item.active::before,
.t4-offcanvas .t4-off-canvas-body .navbar .dropdown-menu .dropdown-item:hover::before,
.t4-offcanvas .t4-off-canvas-body .navbar .dropdown-menu .dropdown-item.active::before {
  background-color: #ffd166 !important;
  transform: scale(1.4) !important;
}

.t4-navbar .navbar,
.t4-megamenu {
  padding: 0 !important;
  margin: 0 !important;
}

/* Navigation Links - Ultra-compact height, No hover background shading */
.t4-navbar .nav-link,
.t4-megamenu .nav-link {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: clamp(0.74rem, 0.78vw, 0.82rem) !important;
  padding: 0.28rem clamp(4px, 0.65vw, 9px) !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  letter-spacing: 0px !important;
  transition: color 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  border-radius: 4px !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* ACTIVE STATE: Distinct warm gold text, dark translucent pill background, crisp gold indicator bar */
.t4-navbar .nav-item.active>.nav-link,
.t4-megamenu .nav-item.active>.nav-link,
.t4-navbar .nav-item.current>.nav-link,
.t4-megamenu .nav-item.current>.nav-link {
  background: rgba(0, 0, 0, 0.22) !important;
  color: var(--accent-gold) !important;
  box-shadow: inset 0 -3px 0 var(--accent-gold) !important;
  font-weight: 800 !important;
}

.t4-navbar .nav-item.active>.nav-link .menu-item-title,
.t4-megamenu .nav-item.active>.nav-link .menu-item-title,
.t4-navbar .nav-item.current>.nav-link .menu-item-title,
.t4-megamenu .nav-item.current>.nav-link .menu-item-title {
  color: var(--accent-gold) !important;
}

/* HOVER STATE: Distinct light highlight, warm gold text, NO bottom indicator bar */
.t4-navbar .nav-item:not(.active):not(.current)>.nav-link:hover,
.t4-megamenu .nav-item:not(.active):not(.current)>.nav-link:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: var(--accent-gold) !important;
  box-shadow: none !important;
}

.t4-navbar .nav-item:not(.active):not(.current)>.nav-link:hover .menu-item-title,
.t4-megamenu .nav-item:not(.active):not(.current)>.nav-link:hover .menu-item-title {
  color: var(--accent-gold) !important;
}

/* Home Menu Item (ID 101): Compact, Distinct active vs hover */
.nav-item[data-id="101"] {
  flex-shrink: 0 !important;
}

.nav-item[data-id="101"] .nav-link {
  padding: 0.28rem 0.65rem !important;
  border-radius: 4px !important;
  transition: background 0.2s ease !important;
}

.nav-item[data-id="101"].active>.nav-link,
.nav-item[data-id="101"] .nav-link.active {
  background: rgba(0, 0, 0, 0.22) !important;
  box-shadow: inset 0 -3px 0 var(--accent-gold) !important;
}

.nav-item[data-id="101"]:not(.active)>.nav-link:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

.nav-item[data-id="101"] img {
  width: 15px !important;
  height: 15px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  transition: transform 0.2s ease, filter 0.2s ease !important;
}

.nav-item[data-id="101"] .nav-link:hover img,
.nav-item[data-id="101"].active img,
.nav-item[data-id="101"] .nav-link.active img {
  filter: brightness(0) saturate(100%) invert(86%) sepia(47%) saturate(1478%) hue-rotate(345deg) brightness(101%) contrast(102%) !important;
  transform: scale(1.15) !important;
}

.nav-item[data-id="101"] .menu-item-title,
.nav-item[data-id="101"] .image-title {
  display: none !important;
}

/* Caret icon for items with submenus */
.t4-megamenu .dropdown-toggle .item-caret {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 12px !important;
  height: 12px !important;
  margin-left: 4px !important;
  vertical-align: middle !important;
}

.t4-megamenu .dropdown-toggle .item-caret::before {
  border-top: 4px solid rgba(255, 255, 255, 0.88) !important;
  border-left: 3.5px solid transparent !important;
  border-right: 3.5px solid transparent !important;
  content: "" !important;
  display: inline-block !important;
  transition: transform 0.25s ease, border-top-color 0.25s ease !important;
}

.t4-megamenu .nav-item.dropdown:hover>.nav-link .item-caret::before,
.t4-megamenu .nav-item.dropdown.show>.nav-link .item-caret::before {
  border-top-color: var(--accent-gold) !important;
  transform: rotate(180deg) !important;
}

.t4-megamenu .nav-item.dropdown.active>.nav-link .item-caret::before,
.t4-megamenu .nav-item.dropdown.current>.nav-link .item-caret::before {
  border-top-color: var(--accent-gold) !important;
}

/* FIX SUBMENU GHOST / SHADOW FLYING FROM LEFT & CLEAN HOVER */
.t4-megamenu.animate.slide .dropdown .dropdown-menu>div,
.t4-megamenu.animate .dropdown .dropdown-menu>div,
.t4-megamenu .dropdown-menu>div,
.t4-megamenu .dropdown-menu-inner {
  margin-left: 0 !important;
  transform: none !important;
  left: 0 !important;
  position: static !important;
  width: 100% !important;
}

.t4-megamenu.animate.slide .dropdown>.dropdown-menu,
.t4-megamenu.animate .dropdown>.dropdown-menu {
  margin-top: 0 !important;
  margin-left: 0 !important;
}

@media (min-width: 992px) {
  .t4-megamenu .nav-item.dropdown {
    position: relative !important;
  }

  .t4-megamenu .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(6px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin: 0 !important;
    background-color: #ffffff !important;
    border: 1px solid #d4e5d8 !important;
    border-top: 3px solid var(--primary-green) !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    padding: 0.4rem 0 !important;
    min-width: 230px !important;
  }

  .t4-megamenu .nav-item.dropdown:hover>.dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }
}

.t4-megamenu .dropdown-menu ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.t4-megamenu .dropdown-item {
  font-weight: 600 !important;
  font-size: 0.86rem !important;
  padding: 0.55rem 1.25rem !important;
  color: #2d3748 !important;
  border-left: 3px solid transparent !important;
  transition: all 0.2s ease !important;
  text-transform: none !important;
}

.t4-megamenu .dropdown-item:hover {
  background-color: var(--primary-bg-tint) !important;
  color: var(--primary-green) !important;
  border-left-color: var(--primary-green) !important;
  padding-left: 1.55rem !important;
}

/* --------------------------------------------------------------------------
   4. FULL-WIDTH SLIDESHOW (Homepage Only)
   -------------------------------------------------------------------------- */
.slideshow-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  position: relative !important;
}

#hospitalCarousel,
.hospital-main-slider {
  width: 100% !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

.slide-banner-img {
  width: 100% !important;
  height: 520px !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.slide-hotline-img {
  object-fit: contain !important;
  background-color: #c7e5f2 !important;
  height: 520px !important;
  max-height: 520px !important;
}

@media (max-width: 992px) {

  .slide-banner-img,
  .slide-hotline-img {
    height: 380px !important;
    max-height: 380px !important;
  }
}

@media (max-width: 576px) {

  .slide-banner-img,
  .slide-hotline-img {
    height: 240px !important;
    max-height: 240px !important;
  }
}

.hospital-main-slider .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.7);
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.hospital-main-slider .carousel-indicators button.active {
  background-color: var(--primary-light-green);
  transform: scale(1.25);
  border-color: #ffffff;
}

.hospital-main-slider .carousel-control-prev,
.hospital-main-slider .carousel-control-next {
  width: 46px !important;
  height: 46px !important;
  background: rgba(0, 0, 0, 0.4) !important;
  border-radius: 50% !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 15px !important;
  transition: all 0.25s ease !important;
  opacity: 0.8 !important;
  border: none !important;
}

.hospital-main-slider .carousel-control-prev:hover,
.hospital-main-slider .carousel-control-next:hover {
  background: var(--primary-green) !important;
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

body:not(.item-101) .slideshow-section,
body:not(.item-101) #hospitalCarousel {
  display: none !important;
}

/* --------------------------------------------------------------------------
   5. HIDE BREADCRUMBS ON HOMEPAGE
   -------------------------------------------------------------------------- */
body.item-101 .breadcrumbs-section,
body.item-101 #t4-breadcrumbs,
body.view-featured .breadcrumbs-section,
body.view-featured #t4-breadcrumbs {
  display: none !important;
}

.breadcrumbs-section {
  background-color: #ffffff;
  border-bottom: 1px solid #e5ebe6;
  font-size: 0.84rem;
}



/* --------------------------------------------------------------------------
   7. UNIFORM & DISTINCT ARTICLE BLOG CARDS
   -------------------------------------------------------------------------- */
.items-row.cols-2 .item,
.items-row .item,
.com-content-category-blog .item,
.com-content-featured .item {
  display: flex !important;
  margin-bottom: 14px !important;
}

.items-row.cols-2 .item-inner,
.items-row .item-inner,
.blog .item-inner,
.blog-featured .item-inner,
.com-content-category-blog .item-inner,
.com-content-featured .item-inner {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #dce8df !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
}

@media (min-width: 768px) {

  .blog .item-inner,
  .blog-featured .item-inner,
  .items-row .item-inner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}

.items-row.cols-2 .item-inner:hover,
.items-row .item-inner:hover,
.com-content-category-blog .item-inner:hover,
.com-content-featured .item-inner:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 16px rgba(15, 130, 76, 0.12) !important;
  border-color: var(--primary-green) !important;
}

.items-row.cols-2 .item-image,
.items-row .item-image,
.com-content-category-blog .item-image,
.com-content-featured .item-image {
  width: 100% !important;
  height: 155px !important;
  min-height: 155px !important;
  max-height: 155px !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #f0f5f2 !important;
  float: none !important;
  position: relative !important;
}

.items-row.cols-2 .item-image img,
.items-row .item-image img,
.com-content-category-blog .item-image img,
.com-content-featured .item-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.35s ease !important;
}

.items-row.cols-2 .item-inner:hover .item-image img,
.items-row .item-inner:hover .item-image img,
.com-content-category-blog .item-inner:hover .item-image img,
.com-content-featured .item-inner:hover .item-image img {
  transform: scale(1.05) !important;
}

/* Default image logo: 100% visible, fully contained, never cropped */
.items-row.cols-2 .item-image img[src*="no-image"],
.items-row .item-image img[src*="no-image"],
.com-content-category-blog .item-image img[src*="no-image"],
.com-content-featured .item-image img[src*="no-image"],
.item-image img[src*="no-image"],
.item-media img[src*="no-image"],
img[src*="no-image2"] {
  /* object-fit: contain !important; */
  background-color: #e4f8f8 !important;
  padding: 2px 0 !important;
}

.items-row.cols-2 .item-content,
.items-row .item-content,
.com-content-category-blog .item-content,
.com-content-featured .item-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 0.6rem 0.8rem 0.65rem 0.8rem !important;
}

.items-row.cols-2 .page-header,
.items-row .page-header,
.com-content-category-blog .page-header,
.com-content-featured .page-header {
  margin: 0 0 0.2rem 0 !important;
  padding: 0 !important;
  border: none !important;
}

.items-row.cols-2 .page-header h2,
.items-row .page-header h2,
.com-content-category-blog .page-header h2,
.com-content-featured .page-header h2 {
  font-size: 0.93rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  margin: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.7em !important;
  max-height: 2.7em !important;
}

.items-row.cols-2 .page-header h2 a,
.items-row .page-header h2 a,
.com-content-category-blog .page-header h2 a,
.com-content-featured .page-header h2 a {
  color: #1a2a22 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.items-row.cols-2 .item-inner:hover .page-header h2 a,
.items-row .item-inner:hover .page-header h2 a,
.com-content-category-blog .item-inner:hover .page-header h2 a,
.com-content-featured .item-inner:hover .page-header h2 a {
  color: var(--primary-green) !important;
}

/* Meta info: Hide hits on blog list */
.article-aside.top-infor {
  font-size: 0.76rem !important;
  color: #718096 !important;
  margin-bottom: 0.2rem !important;
}

.blog-featured .article-info .hits,
.blog .article-info .hits,
.com-content-featured .article-info .hits,
.com-content-category-blog .article-info .hits {
  display: none !important;
}

/* Detail page shows hits */
.com-content-article .article-info .hits {
  display: inline-flex !important;
}

/* Intro Text - Compact, NO bottom whitespace */
.items-row.cols-2 .item-intro,
.items-row .item-intro,
.com-content-category-blog .item-intro,
.com-content-featured .item-intro {
  font-size: 0.81rem !important;
  color: #4a5568 !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: auto !important;
  max-height: 2.8em !important;
  margin-bottom: 0 !important;
}

.items-row.cols-2 .item-intro *,
.items-row .item-intro *,
.com-content-category-blog .item-intro *,
.com-content-featured .item-intro * {
  font-size: 0.81rem !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.items-row.cols-2 .item-intro img,
.items-row .item-intro img,
.com-content-category-blog .item-intro img,
.com-content-featured .item-intro img {
  display: none !important;
}

/* Readmore button */
.items-row.cols-2 .readmore,
.items-row .readmore,
.com-content-category-blog .readmore,
.com-content-featured .readmore {
  margin-top: auto !important;
  padding-top: 0.2rem !important;
}

.items-row.cols-2 .readmore .btn,
.items-row .readmore .btn,
.com-content-category-blog .readmore .btn,
.com-content-featured .readmore .btn {
  background-color: var(--primary-bg-tint) !important;
  color: var(--primary-green) !important;
  border: 1px solid var(--primary-subtle-border) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
}

.items-row.cols-2 .readmore .btn:hover,
.items-row .readmore .btn:hover,
.com-content-category-blog .readmore .btn:hover,
.com-content-featured .readmore .btn:hover {
  background-color: var(--primary-green) !important;
  color: #ffffff !important;
  border-color: var(--primary-green) !important;
}

/* Load More Button Styling */
#infinity-next.btn-more {
  background: var(--primary-bg-tint) !important;
  color: var(--primary-green) !important;
  border: 1px solid var(--primary-green) !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  padding: 0.55rem 2rem !important;
  transition: all 0.25s ease !important;
  font-size: 0.9rem !important;
}

#infinity-next.btn-more:hover {
  background: var(--primary-green) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(15, 130, 76, 0.25) !important;
}

/* --------------------------------------------------------------------------
   8. SIDEBAR HOTLINE CARD (Clean White, NOT green background)
   -------------------------------------------------------------------------- */
.sidebar-hotline-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-top: 4px solid var(--accent-red) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  padding: 1.15rem !important;
  margin-bottom: 1.5rem !important;
}

.sidebar-hotline-card .hotline-unit-box {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-hotline-card .hotline-unit-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* --------------------------------------------------------------------------
   9. SIDEBAR MODULES & PROMINENT HEADER TITLES
   -------------------------------------------------------------------------- */
.sidebar-r .t4-module,
.sidebar-l .t4-module,
.t4-sidebar .t4-module {
  background: #ffffff !important;
  border: 1px solid #dce8df !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
}

/* Mod216 (Hotline) handles its own card styling */
.sidebar-r #Mod216,
.sidebar-l #Mod216,
.t4-sidebar #Mod216 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 1.5rem !important;
  overflow: visible !important;
}

.sidebar-r #Mod216 .module-ct,
.sidebar-l #Mod216 .module-ct,
.t4-sidebar #Mod216 .module-ct {
  padding: 0 !important;
}

/* PROMINENT SIDEBAR MODULE TITLES: Gradient emerald header bar with gold accent */
.sidebar-r .module-title,
.sidebar-r .module-title,
.sidebar-l .module-title,
.t4-sidebar .module-title {
  background: #138c18 url('../images/menu2.gif') repeat-x !important;
  background: linear-gradient(180deg, #006e05 0%, #138c18 50%, #25a92b 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 0.72rem 1.15rem !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border-bottom: 3px solid var(--accent-gold) !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: 0 2px 6px rgba(0, 110, 5, 0.15) !important;
}

.sidebar-r .module-title span,
.sidebar-l .module-title span,
.t4-sidebar .module-title span {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

/* Default icon for sidebar modules */
.sidebar-r .module-title::before,
.sidebar-l .module-title::before,
.t4-sidebar .module-title::before {
  content: "\f054" !important;
  /* fa-chevron-right */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: var(--accent-gold) !important;
  margin-right: 9px !important;
  font-size: 0.82rem !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
}

/* Specific icons for each sidebar module */
#Mod209 .module-title::before {
  content: "\f477" !important;
  /* fa-hand-holding-medical */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: var(--accent-gold) !important;
  margin-right: 9px !important;
  font-size: 1rem !important;
}

#Mod210 .module-title::before {
  content: "\f0c1" !important;
  /* fa-link */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: var(--accent-gold) !important;
  margin-right: 9px !important;
  font-size: 1rem !important;
}

#Mod211 .module-title::before {
  content: "\f1ea" !important;
  /* fa-newspaper */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: var(--accent-gold) !important;
  margin-right: 9px !important;
  font-size: 1rem !important;
}

.sidebar-r .module-ct,
.sidebar-l .module-ct,
.t4-sidebar .module-ct {
  padding: 1.1rem !important;
}

.quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quick-action-btn {
  display: flex !important;
  align-items: center !important;
  padding: 0.65rem 0.85rem !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #dce8df !important;
  color: #1e3a29 !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  transition: all 0.22s ease !important;
}

.quick-action-btn i:first-child {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
  color: var(--primary-green) !important;
  margin-right: 0.75rem;
  transition: color 0.2s ease;
}

.quick-action-btn .action-arrow {
  font-size: 0.75rem;
  color: #a0aec0 !important;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* FIXED HOVER STATE: Complete white text & icons */
.quick-action-btn:hover {
  background: var(--primary-green) !important;
  border-color: var(--primary-green) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 10px rgba(15, 130, 76, 0.25) !important;
}

.quick-action-btn:hover,
.quick-action-btn:hover span,
.quick-action-btn:hover i {
  color: #ffffff !important;
}

.quick-action-btn:hover .action-arrow {
  transform: translateX(3px) !important;
  color: var(--accent-gold) !important;
}

/* --------------------------------------------------------------------------
   10. COMPACT MODERN "Tin tức mới nhất" (Sidebar)
   -------------------------------------------------------------------------- */
.latestnews.list-item {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.latestnews .item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 9px 0 !important;
  border-bottom: 1px dashed #e2eae4 !important;
  transition: all 0.2s ease !important;
}

.latestnews .item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.latestnews .item:hover {
  background-color: #f7faf8 !important;
  transform: translateX(3px) !important;
}

.latestnews .item-media {
  flex-shrink: 0 !important;
  width: 65px !important;
  height: 52px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background-color: #edf2f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.latestnews .item-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

.latestnews .item:hover .item-media img {
  transform: scale(1.08) !important;
}

.latestnews .item-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.latestnews .item-title {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  margin: 0 0 4px 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.latestnews .item-title a {
  color: #2b3a42 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.latestnews .item:hover .item-title a {
  color: var(--primary-green) !important;
}

.latestnews .item-meta {
  font-size: 0.74rem !important;
  color: #8898aa !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.latestnews .item-category a {
  color: var(--primary-green) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

/* --------------------------------------------------------------------------
   11. BOTTOM NEWS MODULES ("Thông tin truyền thông" & "Thông tin dược")
   -------------------------------------------------------------------------- */
.bottom-section {
  background-color: #ffffff;
}

.bottom-section .t4-module {
  background: #ffffff;
  border: 1px solid #e1ede4;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.bottom-section .module-title {
  color: var(--primary-green) !important;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-subtle-border);
  display: flex;
  align-items: center;
}

.bottom-section .module-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--primary-green);
  margin-right: 8px;
  border-radius: 2px;
}

.category-module.mod-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.category-module.mod-list .item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-bottom: 1px dashed #e2ede4 !important;
  transition: all 0.2s ease !important;
}

.category-module.mod-list .item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.category-module.mod-list .item:hover {
  background-color: #f7faf8 !important;
  transform: translateX(4px) !important;
}

.category-module.mod-list .item-media {
  flex-shrink: 0 !important;
  width: 80px !important;
  height: 62px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background-color: #edf2f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.category-module.mod-list .item-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

.category-module.mod-list .item:hover .item-media img {
  transform: scale(1.08) !important;
}

.category-module.mod-list .item-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Equalize Bottom News Modules (Mod 217 & Mod 218) */
#t4-main-bottom .t4-col {
  display: flex !important;
}

#t4-main-bottom .section-news-box {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

#t4-main-bottom .section-news-box .module-inner {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #dce8df !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

#t4-main-bottom .section-news-box .module-ct {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0.75rem !important;
}

#t4-main-bottom .section-news-box ul.category-module {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#t4-main-bottom .section-news-box li.item {
  display: flex !important;
  align-items: flex-start !important;
  padding: 0.55rem 0 !important;
  border-bottom: 1px dashed #e2ede5 !important;
}

#t4-main-bottom .section-news-box li.item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

#t4-main-bottom .section-news-box .item-media {
  width: 80px !important;
  height: 60px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  max-height: 60px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  margin-right: 0.75rem !important;
  flex-shrink: 0 !important;
}

#t4-main-bottom .section-news-box .item-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

#t4-main-bottom .section-news-box .item-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.category-module.mod-list .mod-articles-category-title {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #2b3a42 !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 2.7em !important;
  transition: color 0.2s ease !important;
}

.category-module.mod-list .item:hover .mod-articles-category-title {
  color: var(--primary-green) !important;
}

.category-module.mod-list .item-date {
  font-size: 0.74rem !important;
  color: #718096 !important;
  margin-top: 2px !important;
  display: block !important;
}

/* Introtext snippet in bottom news modules: Equalized height */
.category-module.mod-list .item-introtext {
  font-size: 0.8rem !important;
  color: #556976 !important;
  line-height: 1.4 !important;
  margin-top: 3px !important;
  margin-bottom: 0 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 2.8em !important;
}

/* --------------------------------------------------------------------------
   ARTICLE DETAIL TABLES: BORDER ONLY WHEN border="1" (OTHERWISE NO BORDER)
   -------------------------------------------------------------------------- */
.com-content-article table[border="1"],
.com-content-article table:not([border="0"]):not([border=""]):where([border]),
.item-page table[border="1"],
.item-page table:not([border="0"]):not([border=""]):where([border]),
.desc-article table[border="1"],
.desc-article table:not([border="0"]):not([border=""]):where([border]),
.view-article table[border="1"],
.view-article table:not([border="0"]):not([border=""]):where([border]),
article table[border="1"],
article table:not([border="0"]):not([border=""]):where([border]),
.article-body table[border="1"],
.article-body table:not([border="0"]):not([border=""]):where([border]) {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0.75rem !important;
  margin-bottom: 1.25rem !important;
  border-collapse: collapse !important;
  border: 1px solid #b8d5c0 !important;
  background-color: #ffffff !important;
}

.com-content-article table[border="1"] th,
.com-content-article table[border="1"] td,
.com-content-article table:not([border="0"]):not([border=""]):where([border]) th,
.com-content-article table:not([border="0"]):not([border=""]):where([border]) td,
.item-page table[border="1"] th,
.item-page table[border="1"] td,
.item-page table:not([border="0"]):not([border=""]):where([border]) th,
.item-page table:not([border="0"]):not([border=""]):where([border]) td,
.desc-article table[border="1"] th,
.desc-article table[border="1"] td,
.desc-article table:not([border="0"]):not([border=""]):where([border]) th,
.desc-article table:not([border="0"]):not([border=""]):where([border]) td,
.view-article table[border="1"] th,
.view-article table[border="1"] td,
.view-article table:not([border="0"]):not([border=""]):where([border]) th,
.view-article table:not([border="0"]):not([border=""]):where([border]) td,
article table[border="1"] th,
article table[border="1"] td,
article table:not([border="0"]):not([border=""]):where([border]) th,
article table:not([border="0"]):not([border=""]):where([border]) td,
.article-body table[border="1"] th,
.article-body table[border="1"] td,
.article-body table:not([border="0"]):not([border=""]):where([border]) th,
.article-body table:not([border="0"]):not([border=""]):where([border]) td {
  border: 1px solid #b8d5c0 !important;
  padding: 0.5rem 0.75rem !important;
  vertical-align: middle !important;
  line-height: 1.45 !important;
  font-size: 0.9rem !important;
}

.com-content-article table[border="1"] th,
.item-page table[border="1"] th,
.desc-article table[border="1"] th,
.view-article table[border="1"] th,
article table[border="1"] th,
.article-body table[border="1"] th {
  background-color: #eaf5ed !important;
  color: var(--primary-dark-green) !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.com-content-article table[border="1"] tr:nth-child(even) td,
.item-page table[border="1"] tr:nth-child(even) td,
.desc-article table[border="1"] tr:nth-child(even) td,
.view-article table[border="1"] tr:nth-child(even) td,
article table[border="1"] tr:nth-child(even) td,
.article-body table[border="1"] tr:nth-child(even) td {
  background-color: #f7faf8 !important;
}

/* TABLES WITHOUT border="1" (OR border="0"): NO BORDERS ON CELLS */
.com-content-article table:not([border="1"]):not([border]),
.com-content-article table[border="0"],
.item-page table:not([border="1"]):not([border]),
.item-page table[border="0"],
.desc-article table:not([border="1"]):not([border]),
.desc-article table[border="0"],
.view-article table:not([border="1"]):not([border]),
.view-article table[border="0"],
article table:not([border="1"]):not([border]),
article table[border="0"],
.article-body table:not([border="1"]):not([border]),
.article-body table[border="0"] {
  border: none !important;
  background: transparent !important;
  margin-top: 0.5rem !important;
  margin-bottom: 0.75rem !important;
}

.com-content-article table:not([border="1"]):not([border]) th,
.com-content-article table:not([border="1"]):not([border]) td,
.com-content-article table[border="0"] th,
.com-content-article table[border="0"] td,
.item-page table:not([border="1"]):not([border]) th,
.item-page table:not([border="1"]):not([border]) td,
.item-page table[border="0"] th,
.item-page table[border="0"] td,
.desc-article table:not([border="1"]):not([border]) th,
.desc-article table:not([border="1"]):not([border]) td,
.desc-article table[border="0"] th,
.desc-article table[border="0"] td,
.view-article table:not([border="1"]):not([border]) th,
.view-article table:not([border="1"]):not([border]) td,
.view-article table[border="0"] th,
.view-article table[border="0"] td,
article table:not([border="1"]):not([border]) th,
article table:not([border="1"]):not([border]) td,
article table[border="0"] th,
article table[border="0"] td,
.article-body table:not([border="1"]):not([border]) th,
.article-body table:not([border="1"]):not([border]) td,
.article-body table[border="0"] th,
.article-body table[border="0"] td {
  border: none !important;
  background: transparent !important;
  padding: 0.25rem 0.5rem !important;
  vertical-align: top !important;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.footer-section,
#t4-footer {
  background: linear-gradient(180deg, #178e1e 0%, #1E9122 50%, #127a18 100%) !important;
  color: #ffffff !important;
  border-top: 3px solid #ffca28 !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08) !important;
  padding-bottom: 0 !important;
}

#t4-footer p,
#t4-footer ul,
#t4-footer li,
#t4-footer div {
  color: #ffffff !important;
}

#t4-footer .text-white-50 {
  color: rgba(255, 255, 255, 0.92) !important;
}

#t4-footer strong,
#t4-footer b {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.footer-section a,
#t4-footer a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.footer-section a:hover,
#t4-footer a:hover {
  color: #ffca28 !important;
  text-decoration: underline !important;
}

#t4-footer h5 {
  color: #ffffff !important;
  font-weight: 700 !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3) !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

#t4-footer .border-light {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

#t4-footer .bg-black {
  background: rgba(0, 0, 0, 0.16) !important;
  border: 1px solid rgba(255, 202, 40, 0.6) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* --------------------------------------------------------------------------
   13. NEWSBLOG LAYOUT (TIN TỨC VÀ SỰ KIỆN, TRUYỀN THÔNG, DƯỢC)
   -------------------------------------------------------------------------- */
.featured-news-layout {
  background: #ffffff !important;
  border-radius: 4px !important;
  border: 1px solid #e0e6e3 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 0 !important;
}

.featured-section-header {
  background: #138c18 url('../images/menu2.gif') repeat-x !important;
  background: linear-gradient(180deg, #006e05 0%, #138c18 50%, #25a92b 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 0.72rem 1.15rem !important;
  margin: 0 0 1rem 0 !important;
  border: none !important;
  border-bottom: 3px solid var(--accent-gold) !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: 0 2px 6px rgba(0, 110, 5, 0.15) !important;
}

.featured-section-header::before {
  content: "\f1ea" !important;
  /* fa-newspaper */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: var(--accent-gold) !important;
  margin-right: 9px !important;
  font-size: 0.95rem !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
}

.featured-section-header .section-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
  font-size: 0.95rem !important;
}

.featured-section-header .section-title a,
.featured-section-header .section-title span,
.featured-section-header .section-title-link {
  color: #ffffff !important;
  font-family: 'Open Sans', Arial, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
  transition: color 0.2s ease;
}

.featured-section-header .section-title-link:hover,
.featured-section-header .section-title-link:hover span {
  color: var(--accent-gold) !important;
  text-decoration: none !important;
}

.featured-news-layout .newsblog-body {
  padding: 0 1rem 1rem 1rem !important;
}

/* Tiêu đề & Hộp Module Thông tin truyền thông & Thông tin dược (đồng nhất với sidebar phải) */
.homepage-content-bottom-modules .t4-module,
.section-news-box {
  background: #ffffff !important;
  border-radius: 4px !important;
  border: 1px solid #e0e6e3 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
  margin-bottom: 1.5rem !important;
}

.homepage-content-bottom-modules .module-title,
.section-news-box .module-title {
  background: #138c18 url('../images/menu2.gif') repeat-x !important;
  background: linear-gradient(180deg, #006e05 0%, #138c18 50%, #25a92b 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  padding: 0.72rem 1.15rem !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 3px solid var(--accent-gold) !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: 0 2px 6px rgba(0, 110, 5, 0.15) !important;
}

.homepage-content-bottom-modules .module-title::before,
.section-news-box .module-title::before {
  content: "\f054" !important;
  /* fa-chevron-right */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: var(--accent-gold) !important;
  margin-right: 9px !important;
  font-size: 0.82rem !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
}

#Mod217 .module-title::before {
  content: "\f1ea" !important;
  /* fa-newspaper */
}

#Mod218 .module-title::before {
  content: "\f484" !important;
  /* fa-pills */
}

.homepage-content-bottom-modules .module-title a,
.homepage-content-bottom-modules .module-title span,
.section-news-box .module-title a,
.section-news-box .module-title span {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-family: 'Open Sans', Arial, sans-serif !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
  transition: color 0.2s ease;
}

.homepage-content-bottom-modules .module-title a:hover,
.homepage-content-bottom-modules .module-title a:hover span,
.section-news-box .module-title a:hover,
.section-news-box .module-title a:hover span {
  color: var(--accent-gold) !important;
  text-decoration: none !important;
}

.homepage-content-bottom-modules .module-ct,
.section-news-box .module-ct {
  padding: 0.9rem !important;
}

.homepage-content-bottom-modules .t4-module {
  background: #ffffff !important;
  border-radius: 4px !important;
  border: 1px solid #e0e6e3 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
  margin-bottom: 0 !important;
}

.homepage-content-bottom-modules .t4-module .module-inner {
  display: flex;
  flex-direction: column;
}

.homepage-content-bottom-modules .newsblog-layout {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.newsblog-layout {
  width: 100%;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eaeaea;
}

@media (min-width: 768px) {

  .newsblog-body>.newsblog-left,
  .com-content-featured .newsblog-body>.newsblog-left {
    flex: 0 0 54% !important;
    max-width: 54% !important;
    border-right: 1px solid #e5e5e5 !important;
    padding-right: 18px !important;
  }

  .newsblog-body>.newsblog-right,
  .com-content-featured .newsblog-body>.newsblog-right {
    flex: 0 0 46% !important;
    max-width: 46% !important;
    padding-left: 18px !important;
  }
}

/* Bài viết tiêu điểm bên trái (Left Column) */
.newsblog-featured-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.newsblog-featured-card .featured-title {
  margin: 0 0 8px 0 !important;
  line-height: 1.35 !important;
}

.newsblog-featured-card .featured-title a {
  color: #1d9122 !important;
  font-family: 'Open Sans', Arial, sans-serif !important;
  font-size: 15.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.newsblog-featured-card .featured-title a:hover {
  color: #005c05 !important;
  text-decoration: none !important;
}

.newsblog-featured-card .featured-image {
  width: 100%;
  margin-bottom: 6px;
  overflow: hidden;
  background: #fdfdfd;
  border: 1px solid #ebebeb;
  border-radius: 2px;
}

.newsblog-featured-card .featured-image a {
  display: block;
  width: 100%;
}

.newsblog-featured-card .featured-image img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  display: block;
}

.newsblog-featured-card .featured-date,
.newsblog-item .item-date {
  font-size: 12px !important;
  color: #666 !important;
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.newsblog-featured-card .featured-date i,
.newsblog-item .item-date i {
  color: #1d9122 !important;
  margin-right: 6px;
  font-size: 13px;
}

/* Danh sách bài viết bên phải (Right Column) */
.newsblog-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

.newsblog-item {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0 !important;
  border-bottom: 1px solid #eaeaea !important;
}

.newsblog-item:first-child {
  padding-top: 0 !important;
}

.newsblog-item:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

.newsblog-item .item-thumb {
  flex: 0 0 70px;
  width: 70px;
  height: 60px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 2px;
  background: #fcfcfc;
}

.newsblog-item .item-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.newsblog-item .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newsblog-item .item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.newsblog-item .item-title {
  margin: 0 0 3px 0 !important;
  line-height: 1.3 !important;
}

.newsblog-item .item-title a {
  color: #1d9122 !important;
  font-family: 'Open Sans', Arial, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.newsblog-item .item-title a:hover {
  color: #005c05 !important;
  text-decoration: none !important;
}

/* Tinh chỉnh cho 2 module Thông tin truyền thông & Dược bên dưới Tin tức & sự kiện (Mỗi module 1 hàng) */
.homepage-content-bottom-modules .newsblog-featured-card .featured-title {
  margin: 0 0 8px 0 !important;
}

.homepage-content-bottom-modules .newsblog-featured-card .featured-title a {
  font-size: 15.5px !important;
  line-height: 1.35 !important;
}

.homepage-content-bottom-modules .newsblog-featured-card .featured-image img {
  max-height: 220px !important;
}

.homepage-content-bottom-modules .newsblog-item {
  padding: 6px 0 !important;
  gap: 10px !important;
}

.homepage-content-bottom-modules .newsblog-item .item-thumb {
  flex: 0 0 65px !important;
  width: 65px !important;
  height: 52px !important;
}

.homepage-content-bottom-modules .newsblog-item .item-title a {
  font-size: 13.5px !important;
  line-height: 1.3 !important;
}

.homepage-content-bottom-modules .newsblog-item .item-date,
.homepage-content-bottom-modules .newsblog-featured-card .featured-date {
  font-size: 12px !important;
  margin-top: 3px !important;
}

@media (max-width: 767.98px) {
  .newsblog-left {
    margin-bottom: 12px;
  }
}

/* --------------------------------------------------------------------------
   14. MENU MODULES IN SIDEBAR (TIỆN ÍCH CHO BỆNH NHÂN & LIÊN KẾT WEBSITE)
   -------------------------------------------------------------------------- */
#Mod209 .navbar,
#Mod210 .navbar,
.sidebar-r .quick-actions-menu .navbar,
.sidebar-r .weblinks-menu .navbar {
  padding: 0 !important;
  width: 100% !important;
}

#Mod209 .nav,
#Mod210 .nav,
.sidebar-r .quick-actions-menu .nav,
.sidebar-r .weblinks-menu .nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#Mod209 .nav-item,
#Mod210 .nav-item {
  width: 100% !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#Mod209 .nav-link,
#Mod210 .nav-link {
  display: flex !important;
  align-items: center !important;
  padding: 0.72rem 1rem !important;
  background: #ffffff !important;
  border: 1px solid #dce8e0 !important;
  border-radius: 6px !important;
  color: #244b32 !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  transition: all 0.22s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  width: 100% !important;
}

#Mod209 .nav-link:hover,
#Mod210 .nav-link:hover {
  background: #f4faf6 !important;
  border-color: #1d9122 !important;
  color: #006e05 !important;
  transform: translateX(4px) !important;
  box-shadow: 0 3px 8px rgba(29, 145, 34, 0.12) !important;
}

/* Icons for Tiện ích cho bệnh nhân */
#Mod209 .nav-link::before {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: #1d9122 !important;
  margin-right: 12px !important;
  font-size: 1.05rem !important;
  width: 20px !important;
  text-align: center !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

#Mod209 .item-173 .nav-link::before {
  content: "\f274" !important;
  /* fa-calendar-check */
}

#Mod209 .item-174 .nav-link::before {
  content: "\f571" !important;
  /* fa-file-invoice-dollar */
}

#Mod209 .item-175 .nav-link::before {
  content: "\f0a1" !important;
  /* fa-bullhorn */
}

#Mod209 .item-176 .nav-link::before {
  content: "\f0f0" !important;
  /* fa-user-md */
}

#Mod209 .item-177 .nav-link::before {
  content: "\f5b0" !important;
  /* fa-shield-virus */
}

#Mod209 .nav-link::after {
  content: "\f061" !important;
  /* fa-arrow-right */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: #a0aec0 !important;
  margin-left: auto !important;
  font-size: 0.82rem !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

#Mod209 .nav-link:hover::after {
  color: #1d9122 !important;
  transform: translateX(3px) !important;
}

/* Icons for Liên kết website */
#Mod210 .nav-link::before {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: #1d9122 !important;
  margin-right: 12px !important;
  font-size: 1.05rem !important;
  width: 20px !important;
  text-align: center !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

#Mod210 .item-128 .nav-link::before {
  content: "\f19c" !important;
  /* fa-landmark */
}

#Mod210 .item-129 .nav-link::before {
  content: "\f47d" !important;
  /* fa-hospital-alt */
}

#Mod210 .item-130 .nav-link::before {
  content: "\f0f8" !important;
  /* fa-hospital-user */
}

#Mod210 .item-131 .nav-link::before {
  content: "\f21e" !important;
  /* fa-heartbeat */
}

#Mod210 .item-132 .nav-link::before {
  content: "\f0fe" !important;
  /* fa-plus-square */
}

#Mod210 .item-133 .nav-link::before {
  content: "\f7f2" !important;
  /* fa-clinic-medical */
}

#Mod210 .item-134 .nav-link::before {
  content: "\f0f8" !important;
  /* fa-hospital */
}

#Mod210 .nav-link::after {
  content: "\f35d" !important;
  /* fa-external-link-alt */
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  color: #a0aec0 !important;
  margin-left: auto !important;
  font-size: 0.8rem !important;
  transition: color 0.2s ease !important;
}

#Mod210 .nav-link:hover::after {
  color: #1d9122 !important;
}