@charset "UTF-8";
/* ==========================================================================
   AWEE AN GIANG - T4 FRAMEWORK CUSTOM STYLES
   Primary Brand Color: AWEE Red (#ED1B2F)
   Secondary Dark: #9E1623
   Footer Dark: #2b2c2c
   ========================================================================== */

/* Vietnamese Futura Font matching old site */
@font-face {
  font-family: 'Futura';
  src: url('../fonts/elle-futura-book.woff') format('woff'),
    url('../fonts/elle-futura-book.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Futura';
  src: url('../fonts/elle-futura-bold.woff') format('woff'),
    url('../fonts/elle-futura-bold.ttf') format('truetype');
  font-weight: bold;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-red: #ED1B2F;
  --primary-dark-red: #9E1623;
  --primary-light-red: #ff3b4e;
  --bg-red-tint: #fff5f5;
  --border-color: #eaeaea;
  --text-dark: #222222;
  --text-muted: #666666;
  --heading-font-family: 'Futura', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: 'Futura', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 14px;
  color: var(--text-dark);
  background-color: #ffffff;
  overflow-x: clip !important;
  overflow-y: visible !important;
  max-width: 100%;
  width: 100%;
}

.t4-wrapper,
.t4-content,
main,
.body-innerwrapper {
  overflow: visible !important;
  max-width: 100% !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Tahoma, Arial, sans-serif;
  color: var(--primary-red);
  font-weight: bold;
}

a {
  color: #001dd0;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--primary-dark-red);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   1. TOPBAR & LOGO & HOTLINE & SEARCH
   -------------------------------------------------------------------------- */
.topbar-section,
#t4-topbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0 10px;
}

.agi-logo-container {
  display: flex;
  align-items: center;
}

.agi-logo-main {
  height: 75px !important;
  max-height: 80px !important;
  width: auto !important;
  transition: transform 0.2s ease;
}

.agi-logo-sub {
  height: 60px !important;
  max-height: 65px !important;
  width: auto !important;
  margin-left: 14px;
}

.agi-phone-box {
  font-size: 13px;
  line-height: 1.5;
}

.agi-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media (min-width: 992px) {
  .agi-topbar-actions {
    flex-wrap: nowrap !important;
  }

  .agi-phone-box {
    white-space: nowrap !important;
  }

  .agi-header-search-form {
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
}

.agi-header-search-group {
  width: 230px;
  background-color: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid #ced4da !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.agi-header-search-group:focus-within {
  border-color: var(--primary-red) !important;
  box-shadow: 0 0 0 2px rgba(237, 27, 47, 0.2) !important;
}

.agi-header-search-input {
  border: none !important;
  box-shadow: none !important;
  font-size: 13px !important;
  padding: 6px 14px !important;
  background: transparent !important;
}

.agi-header-search-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.agi-header-search-btn {
  background-color: var(--primary-red) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  border-radius: 0 20px 20px 0 !important;
  transition: background-color 0.2s ease;
}

.agi-header-search-btn:hover {
  background-color: var(--primary-dark-red) !important;
  color: #ffffff !important;
}

/* Menu Top Right */
.topbar-r .navbar {
  padding: 0 !important;
  display: block !important;
}

.menu-top-right,
#menu-top-right {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  font-size: 12.5px !important;
}

.menu-top-right li {
  margin-left: 14px;
  position: relative;
  display: inline-block;
}

.menu-top-right li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  color: #cccccc;
}

.menu-top-right li a {
  color: #555555;
  font-weight: 500;
  padding: 0 !important;
  display: inline-block;
}

.menu-top-right li a:hover {
  color: var(--primary-red) !important;
}

/* Section Inner Padding ~5px as requested */
.t4-section-inner {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.t4-section.py-3,
.t4-section.py-4 {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* --------------------------------------------------------------------------
   2. MAIN NAVIGATION (AWEE THEME) - Height ~73px like old site, Logo on Left
   -------------------------------------------------------------------------- */
.main-nav-section,
#t4-header {
  background-image: url("../images/bgmai.gif") !important;
  background-repeat: repeat !important;
  background-attachment: fixed !important;
  background-color: #ffffff !important;
  min-height: 73px !important;
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

#t4-header.sticky-top,
#t4-header.t4-sticky {
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12) !important;
}

#t4-header .header-wrap {
  min-height: 73px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Logo on the left */
#t4-header .navbar-brand {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 20px 0 0 !important;
}

#t4-header .navbar-brand a {
  display: flex !important;
  align-items: center !important;
}

#t4-header .navbar-brand .logo-img {
  max-height: 70px !important;
  height: 70px !important;
  width: auto !important;
  display: block !important;
}

#t4-header .t4-navbar {
  flex-grow: 1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  margin: 0 !important;
}

/* Main Menu Items & Links - Height 73px, uppercase, dark blue #001dd0, hover/active red #d30000 */
.t4-megamenu .nav>li,
.t4-megamenu .navbar-nav>li {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  height: 73px !important;
}

.t4-megamenu .nav>li>a,
.t4-megamenu .nav>li>.nav-link,
.t4-megamenu .navbar-nav>li>a,
.t4-megamenu .navbar-nav>li>.nav-link {
  color: #001dd0 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  padding: 0 11px !important;
  height: 73px !important;
  line-height: 73px !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  letter-spacing: 0.3px;
  background: transparent !important;
  transition: color 0.2s ease, background-color 0.2s ease;
  border-bottom: none !important;
  text-decoration: none !important;
}

/* Hover and Active states - No underline */
.t4-megamenu .nav>li:hover>a,
.t4-megamenu .nav>li.show>a,
.t4-megamenu .navbar-nav>li:hover>a,
.t4-megamenu .navbar-nav>li.show>a,
.t4-megamenu .nav>li>a:hover,
.t4-megamenu .navbar-nav>li>a:hover,
.t4-megamenu .nav>li>a:focus,
.t4-megamenu .navbar-nav>li>a:focus,
.t4-megamenu .nav>li.active>a,
.t4-megamenu .nav>li.current>a,
.t4-megamenu .navbar-nav>li.active>a,
.t4-megamenu .navbar-nav>li.current>a,
.t4-megamenu a,
.t4-megamenu a:hover,
.t4-megamenu a:focus,
.t4-megamenu a:active,
.t4-megamenu .nav-link,
.t4-megamenu .nav-link:hover,
.t4-megamenu .menu-item-title {
  text-decoration: none !important;
  /* border-bottom: none !important;
  box-shadow: none !important; */
  outline: none !important;
}

.t4-megamenu .nav>li:hover>a,
.t4-megamenu .nav>li.show>a,
.t4-megamenu .navbar-nav>li:hover>a,
.t4-megamenu .navbar-nav>li.show>a,
.t4-megamenu .nav>li.active>a,
.t4-megamenu .nav>li.current>a,
.t4-megamenu .navbar-nav>li.active>a,
.t4-megamenu .navbar-nav>li.current>a {
  color: #d30000 !important;
  background-color: transparent !important;
}

/* Submenu indicator chevron icon */
.t4-megamenu .dropdown-toggle .item-caret,
.t4-megamenu .nav>li>a .item-caret,
.t4-megamenu .navbar-nav>li>a .item-caret {
  margin-left: 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  border: none !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

.t4-megamenu .dropdown-toggle .item-caret::before {
  display: none !important;
}

.t4-megamenu .dropdown-toggle .item-caret::after {
  content: "\f107" !important;
  font-family: "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900 !important;
  font-size: 11px !important;
  color: #001dd0 !important;
  transition: transform 0.25s ease, color 0.2s ease;
  display: inline-block !important;
}

.t4-megamenu .nav>li:hover>a .item-caret::after,
.t4-megamenu .nav>li.active>a .item-caret::after,
.t4-megamenu .nav>li.show>a .item-caret::after,
.t4-megamenu .navbar-nav>li:hover>a .item-caret::after,
.t4-megamenu .navbar-nav>li.active>a .item-caret::after,
.t4-megamenu .navbar-nav>li.show>a .item-caret::after {
  color: #d30000 !important;
}

.t4-megamenu .nav>li.show>a .item-caret::after {
  transform: rotate(180deg) !important;
}

/* Mobile header rules */
@media (max-width: 991.98px) {
  #t4-header {
    min-height: 56px !important;
    padding: 0 12px !important;
  }

  #t4-header .header-wrap {
    min-height: 56px !important;
    height: 56px !important;
  }

  #t4-header .navbar-brand .logo-img,
  #t4-header .navbar-brand .logo-img-sm {
    max-height: 48px !important;
    height: 48px !important;
  }

  #t4-header .t4-navbar {
    display: none !important;
  }

  #t4-header .t4-offcanvas-toggle,
  #t4-header #triggerButton {
    display: inline-flex !important;
    color: #d30000 !important;
    font-size: 22px !important;
  }
}

@media (min-width: 992px) {

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

/* Dropdown Submenus */
.dropdown-menu,
.t4-megamenu .dropdown-menu {
  border-radius: 0 0 4px 4px;
  border: 1px solid #e0e0e0;
  border-top: 3px solid var(--primary-red) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
  padding: 6px 0;
  min-width: 240px;
}

.dropdown-menu a,
.t4-megamenu .dropdown-menu a {
  font-size: 13.5px !important;
  color: #333333 !important;
  padding: 9px 20px !important;
  text-transform: none !important;
  font-weight: 500 !important;
  display: block;
  transition: all 0.15s ease;
}

.dropdown-menu a:hover,
.t4-megamenu .dropdown-menu a:hover {
  background-color: var(--bg-red-tint) !important;
  color: var(--primary-red) !important;
  padding-left: 24px !important;
}

/* Desktop hover support for dropdowns */
@media (min-width: 992px) {
  .t4-megamenu .nav-item.dropdown:hover>.dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: fadeInMenu 0.2s ease forwards;
  }
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   3. BANNER SLIDESHOW (Full Width & Smooth Transition)
   -------------------------------------------------------------------------- */
.slideshow-section,
#t4-slideshow {
  background: transparent !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.agi-slideshow-wrapper,
.agi-carousel-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  background: transparent !important;
}

.agi-carousel-slides {
  position: relative;
  width: 100%;
  display: grid;
  aspect-ratio: 1350 / 550;
  min-height: 420px;
}

@media (max-width: 991.98px) {
  .agi-carousel-slides {
    aspect-ratio: 1350 / 550;
    min-height: 280px;
  }
}

@media (max-width: 767.98px) {
  .agi-carousel-slides {
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }
}

.agi-carousel-item {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  height: 100% !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease-in-out, visibility 0.7s ease-in-out;
  z-index: 1;
  overflow: hidden;
}

.agi-carousel-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.agi-carousel-item>a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

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

/* Indicators */
.agi-carousel-indicators {
  bottom: 18px;
  z-index: 10;
  gap: 10px;
}

.agi-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background-color: rgba(255, 255, 255, 0.4);
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.agi-indicator-dot.active {
  background-color: var(--primary-red) !important;
  border-color: #ffffff !important;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(237, 27, 47, 0.9);
}

/* Nav Buttons - Khi hover vào slide mới hiện, có hình review nhỏ */
.agi-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.25s ease, background-color 0.2s ease;
}

.agi-carousel-container:hover .agi-carousel-btn {
  opacity: 1;
  visibility: visible;
}

.agi-carousel-btn:hover {
  background-color: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-50%) scale(1.1);
}

.agi-carousel-prev {
  left: 20px;
}

.agi-carousel-next {
  right: 20px;
}

/* Floating thumbnail preview tooltip on hover of Prev / Next buttons */
.agi-btn-preview {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  width: 72px;
  height: 42px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
  background: #000000;
  z-index: 15;
}

.agi-btn-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agi-btn-preview-prev {
  left: 54px;
}

.agi-btn-preview-next {
  right: 54px;
}

.agi-carousel-prev:hover .agi-btn-preview-prev,
.agi-carousel-next:hover .agi-btn-preview-next {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

/* Thumbnail Navigator Strip at Bottom (Hình review nhỏ đổi gọn, ẩn khi chưa hover vào slide) */
.agi-carousel-thumbs-wrap {
  bottom: 12px;
  z-index: 10;
  max-width: 520px;
  width: auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
  pointer-events: none;
}

/* Chỉ hiện khi hover vào slide hình */
.agi-carousel-container:hover .agi-carousel-thumbs-wrap {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

.agi-carousel-thumbs {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
  gap: 6px;
}

.agi-carousel-thumbs::-webkit-scrollbar {
  display: none;
}

.agi-thumb-item {
  width: 50px;
  height: 28px;
  flex: 0 0 50px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  position: relative;
  background: #000000;
}

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

.agi-thumb-item:hover {
  opacity: 0.9;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.agi-thumb-item.active {
  opacity: 1 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.5);
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   4. CONTENT SLIDER (Sản phẩm xe máy & Tin tức - Hiệu ứng viền không bị khuất)
   -------------------------------------------------------------------------- */
.agi-content-slider-wrapper {
  background: #ffffff;
  padding: 10px 0;
}

.agi-slider-header {
  border-bottom: 2px solid var(--primary-red) !important;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.agi-slider-title {
  color: var(--primary-red) !important;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.agi-slider-nav-btns .btn {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 3px;
}

/* Fix Owl Carousel Clipping: Cho phép bóng đổ và đường viền hover hiển thị trọn vẹn */
.agi-content-slider-wrapper .owl-carousel {
  padding: 6px 0 !important;
}

.agi-content-slider-wrapper .owl-stage-outer {
  padding: 10px 4px !important;
  margin: -10px -4px !important;
  overflow: hidden !important;
}

.agi-slide-item {
  padding: 6px !important;
}

.agi-slide-item .card {
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  transition: all 0.25s ease-in-out !important;
  background: #ffffff;
}

.agi-slide-item .card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  border-color: var(--primary-red) !important;
}

.agi-slide-item .card-img-wrap {
  background: #fdfdfd;
  padding: 12px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f0f0f0;
}

.agi-thumb-img {
  max-height: 155px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.agi-slide-item .card:hover .agi-thumb-img {
  transform: scale(1.05);
}

.agi-item-link {
  color: #222222 !important;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  height: 2.8em;
}

.agi-item-link:hover {
  color: var(--primary-red) !important;
}

.btn-view-detail {
  background-color: var(--primary-red) !important;
  border-color: var(--primary-red) !important;
}

.btn-view-detail:hover {
  background-color: var(--primary-dark-red) !important;
  border-color: var(--primary-dark-red) !important;
}

/* Owl Carousel Custom styling */
.owl-theme .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px 4px;
  background: #cccccc;
  border-radius: 30px;
  transition: background 0.2s ease;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--primary-red) !important;
}

/* --------------------------------------------------------------------------
   5. REGULAR LABS TABS & ACCORDIONS (.rl_tabs & [data-rlta-element])
   -------------------------------------------------------------------------- */
.rl_tabs {
  margin: 20px 0;
}

.rl_tabs>ul.nav-tabs {
  border-bottom: 2px solid var(--primary-red);
  margin-bottom: 15px;
}

.rl_tabs>ul.nav-tabs>li {
  margin-bottom: -2px;
}

.rl_tabs>ul.nav-tabs>li>a {
  color: #333333 !important;
  font-weight: bold;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  background-color: #f7f7f7;
  padding: 10px 16px;
  margin-right: 4px;
  border-radius: 4px 4px 0 0;
  display: block;
}

.rl_tabs>ul.nav-tabs>li>a:hover {
  color: var(--primary-red) !important;
  background-color: var(--bg-red-tint);
}

.rl_tabs>ul.nav-tabs>li.active>a,
.rl_tabs>ul.nav-tabs>li.active>a:focus,
.rl_tabs>ul.nav-tabs>li.active>a:hover {
  color: #ffffff !important;
  background-color: var(--primary-red) !important;
  border: 1px solid var(--primary-red) !important;
  border-bottom: 1px solid var(--primary-red) !important;
}

.rl_tabs .tab-pane {
  padding: 15px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: none;
  line-height: 1.7;
}

/* Modern Regular Labs Tabs & Accordions (v3.2+) */
[data-rlta-element=container] {
  margin: 20px 0 !important;
}

[data-rlta-element=container]>[data-rlta-element=button-list] {
  border-bottom: 2px solid var(--primary-red) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin-bottom: -1px !important;
}

[data-rlta-element=container]>[data-rlta-element=button-list]>[data-rlta-element=button],
[data-rlta-element=container]>[data-rlta-element=button] {
  background-color: #f8f9fa !important;
  color: #333333 !important;
  border: 1px solid #dcdcdc !important;
  border-bottom: none !important;
  border-radius: 4px 4px 0 0 !important;
  padding: 10px 18px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

[data-rlta-element=container]>[data-rlta-element=button-list]>[data-rlta-element=button]>[data-rlta-element=heading],
[data-rlta-element=container]>[data-rlta-element=button]>[data-rlta-element=heading] {
  font-size: 14px !important;
  font-weight: bold !important;
  color: inherit !important;
  margin: 0 !important;
}

[data-rlta-element=container]>[data-rlta-element=button-list]>[data-rlta-element=button]:hover,
[data-rlta-element=container]>[data-rlta-element=button]:hover {
  background-color: var(--bg-red-tint) !important;
  color: var(--primary-red) !important;
}

[data-rlta-element=container]>[data-rlta-element=button-list]>[data-rlta-element=button]:not([data-rlta-state=closed]),
[data-rlta-element=container]>[data-rlta-element=button][data-rlta-state=open] {
  background-color: var(--primary-red) !important;
  color: #ffffff !important;
  border-color: var(--primary-red) !important;
  border-bottom: 1px solid var(--primary-red) !important;
}

[data-rlta-element=container]>[data-rlta-element=button-list]>[data-rlta-element=button]:not([data-rlta-state=closed])>[data-rlta-element=heading],
[data-rlta-element=container]>[data-rlta-element=button][data-rlta-state=open]>[data-rlta-element=heading] {
  color: #ffffff !important;
}

[data-rlta-element=container]>[data-rlta-element=panels]>[data-rlta-element=panel],
[data-rlta-element=container]>[data-rlta-element=panel] {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-top: none !important;
  padding: 18px !important;
  border-radius: 0 0 4px 4px !important;
}

/* Sub-tabs / Nested Tabs */
[data-rlta-element=container] [data-rlta-element=container] {
  margin: 15px 0 !important;
}

[data-rlta-element=container] [data-rlta-element=container]>[data-rlta-element=button-list] {
  border-bottom: 2px solid #555555 !important;
}

[data-rlta-element=container] [data-rlta-element=container]>[data-rlta-element=button-list]>[data-rlta-element=button]:not([data-rlta-state=closed]) {
  background-color: #555555 !important;
  border-color: #555555 !important;
  color: #ffffff !important;
}

/* Agi Accordion (Parsed from [accordion] shortcode) */
.agi-accordion .accordion-item {
  border: 1px solid #e4e4e4 !important;
  border-radius: 6px !important;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.agi-accordion .accordion-button {
  background-color: #f8f9fa;
  color: #333333;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 18px;
  box-shadow: none !important;
  border-bottom: 1px solid #eeeeee;
  transition: all 0.2s ease;
}

.agi-accordion .accordion-button:not(.collapsed) {
  background-color: var(--primary-red) !important;
  color: #ffffff !important;
  border-bottom: 1px solid var(--primary-red) !important;
}

.agi-accordion .accordion-button:not(.collapsed) i {
  color: #ffffff !important;
}

.agi-accordion .accordion-button::after {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.agi-accordion .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.agi-accordion .accordion-body {
  padding: 18px;
  background-color: #ffffff;
}

/* Agi Gallery (Parsed from [gallery] shortcode) */
.agi-gallery {
  margin: 15px 0;
}

.agi-gallery .gallery-card {
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.agi-gallery .gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-red);
}

.agi-gallery .gallery-card img {
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   6. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs-section,
#t4-breadcrumbs {
  background-color: #f8f9fa;
  border-bottom: 1px solid #eeeeee;
  font-size: 13px;
}

.breadcrumb-item a {
  color: #666666;
}

.breadcrumb-item a:hover {
  color: var(--primary-red);
}

.breadcrumb-item.active {
  color: var(--primary-red);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. FOOTNAV & FOOTER (Compact Padding)
   -------------------------------------------------------------------------- */
.footnav-section,
#t4-footnav {
  background-color: #2b2c2c !important;
  color: #e0e0e0;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  margin: 0 !important;
  border-top: 4px solid var(--primary-red) !important;
}

#t4-footnav .t4-section-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.footer-title,
.footnav-section .module-title {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid #444444;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  line-height: 1.6 !important;
  letter-spacing: 0.5px;
  overflow: visible !important;
  display: block !important;
}

/* FontAwesome 4 vs 5 fix: Map marker icon in footer and content */
.fa-map-marker-alt,
.fa.fa-map-marker-alt,
.fas.fa-map-marker-alt {
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  display: inline-block !important;
}

.fa.fa-map-marker-alt::before,
.fas.fa-map-marker-alt::before {
  content: "\f3c5" !important;
  font-family: "Font Awesome 5 Free" !important;
  font-weight: 900 !important;
}

.branch-info {
  margin-bottom: 6px !important;
}

.branch-info p {
  margin-bottom: 2px !important;
  font-size: 12.5px !important;
}

.branch-info .text-danger {
  color: #ff4d5a !important;
}

/* Visitor Counter in Footer */
.footnav-section .vvisit_counter_box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
  color: #333333 !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
}

.footnav-section .vvisit_counter_box .vstat_row {
  border-bottom: 1px dashed #e2e8f0 !important;
  height: 26px !important;
  line-height: 26px !important;
}

.footnav-section .vvisit_counter_box .vstat_title {
  color: #333333 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.footnav-section .vvisit_counter_box .vstat_number {
  color: #d91b38 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

.footnav-section .vvisit_counter_box hr.vfooter_hr {
  border-top: 1px solid #e2e8f0 !important;
  margin: 8px 0 4px 0 !important;
}

.footnav-section .mod_jovisitorcounter,
.footnav-section #jovisitorcounter {
  background: transparent !important;
  border: none !important;
  color: #333333 !important;
}

/* Footer Bottom */
.footer-section,
#t4-footer {
  background-color: #1f2020 !important;
  color: #999999;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  font-size: 12px;
}

.footer-section a {
  color: #cccccc;
}

.footer-section a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. ARTICLE CONTENT & TABLE CELL BORDERS
   -------------------------------------------------------------------------- */
.com-content-article .page-header h1,
.com-content-article .page-header h2 {
  font-size: 24px;
  color: var(--primary-red);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.com-content-article img {
  max-width: 100%;
  height: auto;
}

/* Table Cell Borders (border="1" & article tables) */
.article-body table,
.com-content-article table,
table.agi-table {
  border: 1px solid #c8c8c8 !important;
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 15px 0 !important;
}

.article-body table th,
.article-body table td,
.com-content-article table th,
.com-content-article table td,
table.agi-table th,
table.agi-table td {
  border: 1px solid #c8c8c8 !important;
  padding: 8px 12px !important;
  vertical-align: middle !important;
}

.article-body table th,
.com-content-article table th,
table.agi-table th {
  background-color: #f5f5f5 !important;
  font-weight: bold !important;
  color: #222222 !important;
}

.article-body table tr:hover td,
.com-content-article table tr:hover td {
  background-color: #fafafa !important;
}

/* --------------------------------------------------------------------------
   9. CATEGORY BLOG 3-COLUMN UNIFIED GRID
   -------------------------------------------------------------------------- */
.agi-blog-grid {
  margin-left: -12px !important;
  margin-right: -12px !important;
}

.agi-blog-grid>[class*="col-"] {
  padding-left: 12px !important;
  padding-right: 12px !important;
  margin-bottom: 24px;
}

.agi-blog-card {
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
}

.agi-blog-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--primary-red) !important;
}

.agi-blog-thumb-wrap {
  height: 210px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
}

.agi-blog-thumb {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}

.agi-blog-card:hover .agi-blog-thumb {
  transform: scale(1.05);
}

.agi-blog-body {
  padding: 16px !important;
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
}

.agi-blog-meta {
  font-size: 12px !important;
  color: #777777 !important;
}

.agi-blog-title {
  font-size: 15px !important;
  line-height: 1.4 !important;
  height: 2.8em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 8px !important;
}

.agi-blog-title a {
  color: #222222 !important;
  transition: color 0.2s ease;
}

.agi-blog-title a:hover {
  color: var(--primary-red) !important;
}

.agi-blog-desc {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #666666 !important;
  height: 4.5em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

.agi-btn-readmore {
  border-color: var(--primary-red) !important;
  color: var(--primary-red) !important;
  border-radius: 4px !important;
  font-size: 12.5px !important;
  text-transform: uppercase !important;
  padding: 6px 12px !important;
  transition: all 0.2s ease !important;
}

.agi-btn-readmore:hover {
  background-color: var(--primary-red) !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   10. SEARCH & RESULTS (com_finder)
   -------------------------------------------------------------------------- */
.com-finder,
.agi-finder-container {
  padding: 15px 0;
}

.agi-search-title {
  font-size: 20px;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.agi-search-wrapper {
  max-width: 720px;
}

.agi-search-label {
  font-size: 15px;
  color: #333333;
}

.agi-search-input-group {
  display: flex !important;
  align-items: stretch !important;
  border-radius: 30px !important;
  overflow: hidden !important;
  border: 2px solid #ced4da !important;
  background-color: #ffffff !important;
  transition: all 0.25s ease;
  width: 100% !important;
}

.agi-search-input-group:focus-within {
  border-color: var(--primary-red) !important;
  box-shadow: 0 0 0 4px rgba(237, 27, 47, 0.15) !important;
}

.agi-search-input-col {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
}

.agi-search-input-col .awesomplete,
.agi-search-input-col div.awesomplete {
  flex: 1 1 auto !important;
  width: 100% !important;
  display: flex !important;
}

.agi-search-input-col input.agi-search-input {
  width: 100% !important;
  border: none !important;
  box-shadow: none !important;
  padding: 12px 22px !important;
  font-size: 15px !important;
  color: #333333 !important;
  background: transparent !important;
}

.agi-search-input-col input.agi-search-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.agi-search-submit-btn {
  flex-shrink: 0 !important;
  background-color: var(--primary-red) !important;
  border: none !important;
  color: #ffffff !important;
  padding: 12px 30px !important;
  font-size: 14.5px !important;
  font-weight: bold !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 28px 28px 0 !important;
  transition: background-color 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.agi-search-submit-btn:hover {
  background-color: var(--primary-dark-red) !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   SHOWROOM SẢN PHẨM XE MÁY (agi-product-card)
   -------------------------------------------------------------------------- */
.agi-product-card {
  background: #ffffff;
  border-radius: 8px !important;
  border: 1px solid #e8e8e8 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  overflow: hidden;
}

.agi-product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red) !important;
  box-shadow: 0 10px 24px rgba(237, 27, 47, 0.14) !important;
}

.agi-product-thumb {
  transition: transform 0.35s ease;
}

.agi-product-card:hover .agi-product-thumb {
  transform: scale(1.06);
}

.agi-product-title a {
  color: #222222 !important;
  font-size: 15px !important;
  transition: color 0.2s ease;
}

.agi-product-card:hover .agi-product-title a {
  color: var(--primary-red) !important;
}

.agi-btn-product {
  background-color: var(--primary-red) !important;
  border-color: var(--primary-red) !important;
  color: #ffffff !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  letter-spacing: 0.3px;
  border-radius: 4px !important;
  transition: background-color 0.2s ease !important;
}

.agi-btn-product:hover {
  background-color: var(--primary-dark-red) !important;
  color: #ffffff !important;
}

/* Hide legacy advanced search, tips, filter dropdowns, and redundant headers */
.com-finder__advanced,
#advancedSearch,
.com-finder__tips,
#finder-filter-window,
.btn-secondary[data-bs-target="#advancedSearch"],
.featured-section-header {
  display: none !important;
}

.finder-results-list,
.com-finder__results {
  list-style: none !important;
  padding: 0 !important;
}

.finder-item,
.com-finder__result-item,
.search-result {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-left: 4px solid var(--primary-red) !important;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.finder-item:hover,
.com-finder__result-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.result-title,
.com-finder__result-title {
  font-size: 16.5px !important;
  font-weight: bold !important;
  margin-bottom: 6px !important;
}

.result-title a,
.com-finder__result-title a {
  color: var(--primary-red) !important;
  text-decoration: none;
}

.result-title a:hover,
.com-finder__result-title a:hover {
  color: var(--primary-dark-red) !important;
  text-decoration: underline;
}

.result-text,
.com-finder__result-description {
  color: #444444;
  line-height: 1.6;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.highlight {
  background-color: #fff3cd !important;
  color: #664d03 !important;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
}

.result-taxonomy {
  margin-bottom: 8px;
}

.result-taxonomy .badge {
  background-color: #f0f2f5 !important;
  color: #555555 !important;
  font-weight: 500 !important;
  font-size: 11.5px !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  margin-right: 5px;
  border: 1px solid #e2e8f0;
}

.com-finder__explained {
  background: #fff5f5;
  border-left: 3px solid var(--primary-red);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #555555;
  margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   11. MOBILE OFFCANVAS (t4-offcanvas)
   -------------------------------------------------------------------------- */
.t4-offcanvas {
  max-width: 320px !important;
  background-color: #ffffff !important;
}

.t4-off-canvas-header {
  background-color: var(--primary-red) !important;
  color: #ffffff !important;
  padding: 10px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.t4-off-canvas-header .logo-img {
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  max-height: 44px !important;
  width: auto !important;
  display: block;
}

.t4-off-canvas-header a,
.t4-off-canvas-header i,
.t4-off-canvas-header .close {
  color: #ffffff !important;
  opacity: 1 !important;
  font-size: 26px !important;
  line-height: 1 !important;
  background: transparent !important;
  border: none !important;
}

.t4-offcanvas .nav {
  padding: 10px 0 !important;
  list-style: none !important;
}

.t4-offcanvas .nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.t4-offcanvas .nav-item a.nav-link {
  color: #333333 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.t4-offcanvas .nav-item.active>a.nav-link,
.t4-offcanvas .nav-item a.nav-link:hover {
  color: var(--primary-red) !important;
  background-color: var(--bg-red-tint) !important;
}

.t4-offcanvas .dropdown-menu {
  background-color: #fafafa !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 0 0 15px !important;
}

.t4-offcanvas .dropdown-menu a {
  padding: 8px 18px !important;
  font-size: 13px !important;
  color: #555555 !important;
}

.t4-offcanvas .dropdown-menu a:hover {
  color: var(--primary-red) !important;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .topbar-section .agi-phone-box {
    text-align: center !important;
    margin-top: 8px;
  }

  .topbar-section .agi-logo-container {
    justify-content: center;
  }

  .menu-top-right {
    justify-content: center;
    margin-top: 5px;
  }

  .agi-topbar-actions {
    justify-content: center !important;
    margin-top: 10px;
  }

  .agi-search-group {
    width: 100% !important;
    max-width: 280px;
    margin: 0 auto;
  }

  .t4-megamenu .navbar-nav>li>a {
    padding: 10px 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* --------------------------------------------------------------------------
   13. STYLING FOR LIEN-HE, HO-TRO, TUYEN-DUNG PAGES
   -------------------------------------------------------------------------- */
.agi-page-hero {
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border-left: 5px solid #ed1b2f;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.agi-page-hero h1,
.agi-page-hero h2 {
  color: #ed1b2f;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.agi-quick-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  transition: all 0.25s ease;
  height: 100%;
}

.agi-quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(237, 27, 47, 0.12);
  border-color: #ed1b2f;
}

.agi-quick-card .quick-icon {
  width: 52px;
  height: 52px;
  line-height: 52px;
  border-radius: 50%;
  background: #fff0f1;
  color: #ed1b2f;
  font-size: 22px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agi-branch-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
  height: 100%;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.agi-branch-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ed1b2f;
}

.agi-branch-card:hover {
  border-color: #ed1b2f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.agi-branch-title {
  color: #ed1b2f;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e2e8f0;
}

.agi-service-item {
  border: 1px solid #edf2f7;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
  height: 100%;
  transition: all 0.2s ease;
}

.agi-service-item:hover {
  border-color: #ed1b2f;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.agi-service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff0f1;
  color: #ed1b2f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.agi-job-badge {
  background-color: #e3f2fd;
  color: #0d6efd;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ==========================================================================
   AWEE AN GIANG - THEME & MODULE STYLES
   ========================================================================== */

/* Module Titles matching old site - Rõ nét dấu tiếng Việt */
.t4-section .module-title,
.module-title,
.sp-module-title,
.t4-module .module-title {
  font-family: 'Futura', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  background: linear-gradient(to right, #FAFAFA 0%, #FFFFFF 100%);
  border-left: 4px solid #d30000;
  line-height: 1.45 !important;
  padding: 10px 14px !important;
  font-size: 1.15rem !important;
  text-transform: uppercase;
  font-weight: 700 !important;
  color: #d30000;
  margin-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
  letter-spacing: 0.3px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.t4-section .module-title span,
.module-title span {
  display: inline-block;
  line-height: inherit;
}

/* Hide empty main body on homepage */
body.itemid-132 #t4-main-body,
.view-featured #t4-main-body:has(.blog-featured:empty),
.view-featured #t4-main-body:empty {
  display: none !important;
}

/* Right Sidebar styling */
.sidebar-right-col .t4-module {
  margin-bottom: 25px;
  border-radius: 6px;
  overflow: hidden;
}

.sidebar-right-col video {
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-right-col .djslider-default {
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
}

/* Content Slider Carousel - Equal Height Items */
.awee-content-slider-wrapper {
  margin-top: 10px;
}

.awee-owl-carousel.owl-carousel .owl-stage {
  display: flex !important;
}

.awee-owl-carousel.owl-carousel .owl-item {
  display: flex !important;
  height: auto !important;
}

.awee-slide-item {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
}

.awee-content-slider-wrapper .awee-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.awee-content-slider-wrapper .awee-card .card-body {
  display: flex !important;
  background: #fff;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

.awee-content-slider-wrapper .awee-card .card-title {
  min-height: 42px !important;
  max-height: 44px !important;
  line-height: 1.35 !important;
  margin-bottom: 8px !important;
  font-size: 0.95rem !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-word !important;
}

.awee-content-slider-wrapper .awee-card .card-title a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.awee-content-slider-wrapper .awee-card .card-text {
  flex-grow: 1 !important;
  min-height: 60px !important;
  height: 60px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
}

.awee-content-slider-wrapper .awee-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
}

.awee-content-slider-wrapper .awee-item-link {
  color: #212529;
  transition: color 0.2s;
}

.awee-content-slider-wrapper .awee-item-link:hover {
  color: #d30000;
}

div.owl-carousel div.owl-nav {
  margin-top: 0 !important;
}

.awee-content-slider-wrapper .owl-dots {
  display: none !important;
}

.awee-content-slider-wrapper .owl-nav button {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 11px;
  line-height: 1;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.awee-content-slider-wrapper .owl-nav button.owl-prev {
  left: -10px;
}

.awee-content-slider-wrapper .owl-nav button.owl-next {
  right: -10px;
}

.sidebar-r .awee-content-slider-wrapper .owl-nav button.owl-prev {
  left: 0px;
}

.sidebar-r .awee-content-slider-wrapper .owl-nav button.owl-next {
  right: 0px;
}

.awee-content-slider-wrapper .owl-nav button:hover {
  background: #d30000 !important;
}

/* DJ-ImageSlider - Dark Gradient Overlay for White Text Legibility (Mod 227 & 228) */
.djslider-default ul.djslider-in .slide-desc {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.88) 100%) !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  padding: 28px 10px 18px 10px !important;
  box-sizing: border-box !important;
  z-index: 10 !important;
}

.djslider-default ul.djslider-in .slide-desc .slide-desc-in {
  padding-bottom: 6px !important;
}

.djslider-default ul.djslider-in .slide-desc .slide-desc-bg {
  display: none !important;
}

.djslider-default ul.djslider-in .slide-desc .slide-title {
  margin-bottom: 4px !important;
  line-height: 1.35 !important;
}

.djslider-default ul.djslider-in .slide-desc .slide-title a,
.djslider-default ul.djslider-in .slide-desc a {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 2px 6px rgba(0, 0, 0, 0.75) !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Breadcrumbs style matching old site */
.breadcrumb-item+.breadcrumb-item::before {
  color: #d30000;
}

/* ==========================================================================
   AWEE THEME: BACKGROUND, TOPBAR, HEADER, MENU, JUNEWSULTRA, FOOTER
   ========================================================================== */

/* 1. Body Background with subtle apricot pattern */
html,
body {
  /* background: linear-gradient(150deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%), url("../images/bgmai.gif") repeat fixed !important; */
  /* background-attachment: fixed !important; */
  /* background-repeat: repeat !important; */
  background-color: #fffdfd;
  background-image:
    radial-gradient(at 15% 20%, rgba(255, 165, 195, 0.65) 0px, transparent 42%),
    radial-gradient(at 85% 25%, rgba(255, 190, 215, 0.72) 0px, transparent 40%),
    radial-gradient(at 50% 80%, rgba(255, 150, 188, 0.58) 0px, transparent 45%),
    radial-gradient(at 25% 75%, rgba(255, 205, 222, 0.65) 0px, transparent 38%);
  background-size: 190% 190%;
  animation: pinkGlowDriftFast 7.5s ease-in-out infinite alternate;
}

@keyframes pinkGlowDriftFast {
  0% {
    background-position: 0% 10%;
    background-size: 185% 185%;
  }

  50% {
    background-position: 100% 65%;
    background-size: 210% 210%;
  }

  100% {
    background-position: 20% 95%;
    background-size: 190% 190%;
  }
}

body.home #t4-main-body {
  display: none;
}

.t4-wrapper,
.t4-content,
main,
.t4-main-body,
#t4-main-body,
.section-main-content,
.section-connect-slider,
.section-logos,
.body-innerwrapper {
  background: transparent !important;
}

#t4-main-body>.container,
.section-main-content .container,
.section-connect-slider .container {
  background: rgba(255, 255, 255, 0.65) !important;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.section-logos,
.section-logos .container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* 2. Top Bar (Red #d30000 matching old site) */
.topbar-section,
#t4-topbar {
  background: #d30000 !important;
  border-bottom: none !important;
  padding: 6px 0 !important;
  color: #ffffff !important;
  font-size: 13px;
}

.topbar-section a {
  color: #ffffff !important;
  text-decoration: none;
}

.topbar-section a:hover {
  color: #eaff03 !important;
}

.topbar-section .custom p,
#t4-topbar .custom p {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  #t4-topbar .t4-row {
    row-gap: 4px;
  }

  #t4-topbar .topbar-l,
  #t4-topbar .topbar-r {
    text-align: center !important;
  }

  #t4-topbar .topbar-l .custom p,
  #t4-topbar .topbar-r .custom p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 14px;
  }

  #t4-topbar .topbar-r .custom p > span.me-3 {
    margin-right: 0 !important;
  }
}

/* 4. Module tin JUNewsUltra Pro exact match */
.junewsultra {
  margin-bottom: 25px;
}

.junewsultra .jn {
  margin: 0 0 16px 0;
  border: 1px #e0e0e0 solid;
  border-radius: 6px;
  background: #fafafa;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.junewsultra .jn:last-child {
  margin-bottom: 0 !important;
}

.junewsultra .jn:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.junewsultra .jn-head {
  display: flex;
  flex-wrap: nowrap;
  background: #fafafa;
  min-height: 238px;
}

.junewsultra .jn-left {
  width: 48%;
  flex: 0 0 48%;
  overflow: hidden;
  display: flex;
}

.junewsultra .jn-left a {
  display: block;
  width: 100%;
  height: 100%;
}

.junewsultra .jn-left img {
  width: 100%;
  height: 238px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.junewsultra .jn:hover .jn-left img {
  transform: scale(1.03);
}

.junewsultra .jn-right {
  width: 52%;
  flex: 0 0 52%;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.junewsultra .jn-right h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.junewsultra .jn-right h4 a {
  color: #001dd0 !important;
  text-decoration: none;
}

.junewsultra .jn-right h4 a:hover {
  color: #d30000 !important;
  text-decoration: underline;
}

.junewsultra .jn-intro {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.55;
  margin-bottom: 10px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.junewsultra .jn-more {
  text-align: left;
  margin-top: auto;
}

.junewsultra .jn-more a.readmore {
  font-size: 15px;
  font-weight: 600;
  color: #d30000 !important;
  text-decoration: none;
}

.junewsultra .jn-more a.readmore:hover {
  color: #001dd0 !important;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .junewsultra .jn-head {
    flex-wrap: wrap;
    min-height: auto;
  }

  .junewsultra .jn-left,
  .junewsultra .jn-right {
    width: 100%;
    flex: 0 0 100%;
  }

  .junewsultra .jn-left img {
    height: 190px;
  }
}

/* 5. Footer styling matching old site */
#t4-footnav,
.footnav-section,
#t4-footer,
.footer-section {
  background: #d30000 !important;
  color: #ffffff !important;
  border-top: none !important;
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

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

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

.footer-office-info {
  font-size: 14px !important;
  letter-spacing: 0.2px;
}

.footer-office-info p {
  margin: 0 0 10px 0 !important;
  line-height: 1.5 !important;
}

/* ==========================================================================
   SIMPLE IMAGE GALLERY (SIG) - 3 IMAGES PER ROW IN ALBUM DETAILS
   ========================================================================== */
ul.sigFreeContainer.sigFreeClassic {
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 15px -8px !important;
  padding: 0 !important;
  list-style: none !important;
  gap: 16px 0 !important;
  width: auto !important;
  clear: both !important;
}

ul.sigFreeContainer.sigFreeClassic li.sigFreeThumb {
  width: 33.333333% !important;
  max-width: 33.333333% !important;
  flex: 0 0 33.333333% !important;
  padding: 0 8px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: transparent !important;
  display: block !important;
  float: none !important;
}

ul.sigFreeContainer.sigFreeClassic li.sigFreeThumb a.sigFreeLink {
  width: 100% !important;
  height: 220px !important;
  display: block !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
}

ul.sigFreeContainer.sigFreeClassic li.sigFreeThumb a.sigFreeLink:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16) !important;
}

ul.sigFreeContainer.sigFreeClassic li.sigFreeThumb a.sigFreeLink img.sigFreeImg {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: block !important;
  border: none !important;
}

ul.sigFreeContainer.sigFreeClassic li.sigFreeClear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 767.98px) {
  ul.sigFreeContainer.sigFreeClassic li.sigFreeThumb {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }

  ul.sigFreeContainer.sigFreeClassic li.sigFreeThumb a.sigFreeLink {
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  ul.sigFreeContainer.sigFreeClassic li.sigFreeThumb {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  ul.sigFreeContainer.sigFreeClassic li.sigFreeThumb a.sigFreeLink {
    height: 200px !important;
  }
}

/* ==========================================================================
   VIDEO CATALOG & VIDEO CARDS
   ========================================================================== */
.agi-video-catalog {
  margin-top: 15px;
  margin-bottom: 25px;
}

.agi-video-catalog .agi-video-card {
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.agi-video-catalog .agi-video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
}

.agi-video-catalog .agi-video-player-wrap {
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  overflow: hidden;
  background: #000000;
}

.agi-video-catalog .agi-video-player-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agi-video-catalog .agi-video-title a {
  color: #1a202c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.agi-video-catalog .agi-video-title a:hover {
  color: #d30000 !important;
}

#back-to-top {
  background-color: #001dd0;
}

/* 1. Căn giữa theo chiều dọc, không kéo full chiều cao header */
header .nav>li,
header nav ul>li,
.main-menu>li,
.navbar-nav>li {
  display: inline-flex !important;
  align-items: center !important;
  height: auto !important;
  align-self: center !important;
}

/* 2. Thu gọn khung item menu chính & bo góc */
header .nav>li>a,
header .nav>li>span,
header nav ul>li>a,
header nav ul>li>span,
.main-menu>li>a,
.main-menu>li>span,
.navbar-nav>li>a,
.navbar-nav>li>span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 5px;
  height: 36px !important;
  max-height: 36px !important;
  line-height: 1.1 !important;
  padding: 0 12px !important;
  margin: 0 2px;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

/* 3. Hover: nền hồng nhạt + viền bo góc dạ ánh hồng */
header .nav>li>a:hover,
header .nav>li>span:hover,
header nav ul>li>a:hover,
header nav ul>li>span:hover,
.main-menu>li>a:hover,
.main-menu>li>span:hover,
.navbar-nav>li>a:hover,
.navbar-nav>li>span:hover {
  background-color: #fff0f5 !important;
  border-color: rgba(255, 105, 165, 0.65) !important;
  box-shadow:
    0 0 8px rgba(255, 105, 165, 0.35),
    0 0 16px rgba(255, 130, 190, 0.2),
    inset 0 0 6px rgba(255, 182, 210, 0.25) !important;
}

/* 4. Active / đang mở menu con: nền hồng nhạt rõ hơn + dạ hồng */
header .nav>li.active>a,
header .nav>li.current>a,
header .nav>li.active-trail>a,
header .nav>li.open>a,
header .nav>li.show>a,
header .nav>li>a.active,
header .nav>li>a[aria-current="page"],
header nav ul>li.active>a,
header nav ul>li.current>a,
header nav ul>li.active-trail>a,
header nav ul>li.open>a,
header nav ul>li.show>a,
header nav ul>li>a.active,
header nav ul>li>a[aria-current="page"],
.main-menu>li.active>a,
.main-menu>li.open>a,
.main-menu>li>a.active,
.navbar-nav>li.active>a,
.navbar-nav>li.open>a,
.navbar-nav>li>a.active {
  background-color: #ffe2ec !important;
  border-color: rgba(244, 63, 128, 0.75) !important;
  box-shadow:
    0 0 10px rgba(255, 105, 165, 0.45),
    0 0 20px rgba(255, 120, 185, 0.25),
    inset 0 0 8px rgba(255, 190, 220, 0.3) !important;
}

/* 5. Đảm bảo menu con (dropdown) bên dưới không bị ăn style của item cha */
header .nav>li ul a,
header nav ul>li ul a,
.main-menu>li ul a,
.dropdown-menu>li>a {
  height: auto !important;
  max-height: none !important;
  justify-content: flex-start !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}