/* Khai báo Inter variable font */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../../fonts/Inter_google/Inter-VariableFont_opsz\,wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../../fonts/Inter_google/Inter-Italic-VariableFont_opsz\,wght.ttf') format('truetype');
}

:root {
  --primary-color: #0A68FF; 
  --blue-color: #175CD3;
  --secondary-color: #808089;
  --secondary-dark-color: #38383D;

  --neutral-color: #27272A;
  --neutral-color-icon: #515158;

  --gray-color-10: #F5F5FA;
  --gray-color-25: #FDFDFD;
  --gray-color-50: #F9FAFB;
  --gray-color-100: #F5F5F5;
  --gray-color-200: #E9EAEB;
  --gray-color-300: #D5D7DA;
  --gray-color-500: #667085;
  --gray-color-600: #535862;
  --gray-color-700: #414651;
  --gray-color-900: #181D27;

  --warning-50: #FFFAEB;
  --warning-700: #B54708;

  --global-orange-60: #FC820A;

  --blue-light-50: #F0F9FF;

  --success-color: #28a745;
  --danger-color: #dc3545; 
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #212529;
  --blue-color-200: #B2DDFF;
  --light-background-color: #EFF8FF;

  --hover-primary-button-color: #DDEAFF;

  --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}
/* Bootstrap 3 Compatibility CSS */
/* Các class từ Bootstrap 5 không có trong Bootstrap 3 */

/* Bootstrap 3 Visibility Classes - Updated breakpoint to 768px (tablet) */
/* hidden-xs: ẩn trên mobile (< 768px) */
.hidden-xs {
  display: none !important;
}

/* hidden-sm: ẩn trên mobile (< 768px) */
.hidden-sm {
  display: none !important;
}

/* visible-xs-block: hiển thị block trên mobile (< 768px) */
.visible-xs-block {
  display: block !important;
}

.fw-bold{
  font-weight: bold;
}
/* Từ tablet (768px) trở lên - hiển thị như desktop */
@media (min-width: 768px) {
  .hidden-xs {
    display: block !important;
  }
  
  .hidden-sm {
    display: block !important;
  }
  
  .visible-xs-block {
    display: none !important;
  }
  
  /* Force tablet to show 3-column layout (col-md-4 = 33.33%) */
  /* Bootstrap 3 col-md applies at 992px, but we want it from 768px */
  .col-xs-6.col-md-4,
  .col-md-4 {
    width: 33.333333% !important;
    float: left !important;
  }
}

/* Gap utilities - Bootstrap 5 (dùng margin thay vì gap cho tương thích tốt hơn) */
.gap-1 > * {
  margin: 0.125rem !important;
}
.gap-1 > *:first-child {
  margin-left: 0 !important;
}
.gap-1 > *:last-child {
  margin-right: 0 !important;
}

.gap-2 > * {
  margin: 0.25rem !important;
}
.gap-2 > *:first-child {
  margin-left: 0 !important;
}
.gap-2 > *:last-child {
  margin-right: 0 !important;
}

/* .gap-3 > * {
  margin-right: 1rem !important;
  margin-bottom: 1rem !important;
}
.gap-3 > *:last-child {
  margin-right: 0 !important;
  margin-bottom: 0 !important;
} */

.gap-4 > * {
  margin: 0.5rem !important;
}
.gap-4 > *:first-child {
  margin-left: 0 !important;
}
.gap-4 > *:last-child {
  margin-right: 0 !important;
}

.gap-md-0 > * {
  margin: 0 !important;
}

/* Flexbox gap support cho các trình duyệt hiện đại */
@supports (gap: 1rem) {
  .gap-1 {
    gap: 0.25rem !important;
  }
  .gap-1 > * {
    margin: 0 !important;
  }

  .gap-2 {
    gap: 0.5rem !important;
  }
  .gap-2 > * {
    margin: 0 !important;
  }

  .gap-3 {
    gap: 1rem !important;
  }
  /* .gap-3 > * {
    margin-right: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .gap-3 > *:last-child {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
  } */

  .gap-4 {
    gap: 1rem !important;
  }
  .gap-4 > * {
    margin: 0 !important;
  }
}

/* gap-md-0: only apply from tablet (768px) up */
@media (min-width: 768px) {
  .gap-md-0 {
    gap: 0 !important;
  }
  .gap-md-0 > * {
    margin: 0 !important;
  }
}

/* Gutter utilities - Bootstrap 5 (Bootstrap 3 không dùng CSS variables) */
.g-0 {
  margin: 0 !important;
  margin: 0 !important;
}

.g-0 > [class*="col-"] {
  padding: 0 !important;
  padding: 0 !important;
}

.g-2 {
  margin: -0.25rem !important;
  margin: -0.25rem !important;
}

.g-2 > [class*="col-"] {
  padding: 0.25rem !important;
}

.g-3 {
  margin: -0.375rem !important;
  margin: -0.375rem !important;
}

.g-3 > [class*="col-"] {
  padding: 0.375rem !important;
  padding: 0.375rem !important;
}

.g-5 {
  margin: -1.5rem !important;
  margin: -1.5rem !important;
}

.g-5 > [class*="col-"] {
  padding: 1.5rem !important;
  padding: 1.5rem !important;
}

/* Font size utilities - Bootstrap 5 */
.fs-2 {
  font-size: 1.5rem !important;
}
.fs-4 {
  font-size: 1.5rem !important;
}

/* Opacity utilities - Bootstrap 5 */
.opacity-50 {
  opacity: 0.5 !important;
}

/* Text decoration - Bootstrap 5 */
.text-decoration-none {
  text-decoration: none !important;
}

/* Padding all sides */
.p-0 {
  padding: 0 !important;
} /* 4px */
.p-2 {
  padding: 0.5rem !important;
} /* 8px */
.p-3 {
  padding: 1rem !important;
} /* 16px */
.p-4 {
  padding: 1.5rem !important;
} /* 24px */ /* 48px */

/* Padding top */
.pt-3 {
  padding-top: 1rem !important;
}
.pt-5 {
  padding-top: 3rem !important;
}

/* Padding bottom */
.pb-5 {
  padding-bottom: 3rem !important;
}

/* Padding left */

/* Padding right */

/* Padding X axis (left + right) */

/* Padding Y axis (top + bottom) */
.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

/* Margin Utilities */
/* Margin all sides */
.m-0 {
  margin: 0 !important;
}

/* Margin top */
.mt-4 {
  margin-top: 1.5rem !important;
}
.mt-5 {
  margin-top: 3rem !important;
}

/* Margin bottom */
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 0.25rem !important;
}
.mb-2 {
  margin-bottom: 0.5rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.mb-5 {
  margin-bottom: 3rem !important;
}

/* Margin left */

/* Margin right */

/* Margin X axis (left + right) */

/* Margin Y axis (top + bottom) */

/* Offcanvas component - Bootstrap 5 (không có trong Bootstrap 3) */
.offcanvas {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 1050;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  max-width: 100%;
  visibility: hidden;
  background-color: #fff;
  background-clip: padding-box;
  outline: 0;
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  -o-transition: -o-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.offcanvas.offcanvas-start {
  left: 0;
  width: 100vw;
  max-width: 100vw;
  border-right: none;
  -webkit-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%);
}

.offcanvas.show {
  visibility: visible;
  -webkit-transform: translateX(0);
  -ms-transform: translateX(0);
  transform: translateX(0);
}

/* Offcanvas backdrop */
.offcanvas-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  -o-transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

/* Hide backdrop completely on tablet and mobile */
@media (max-width: 1024px) {
  .offcanvas-backdrop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* No backdrop - menu full screen */

.offcanvas-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.offcanvas-body {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1.5rem 1rem;
  padding-bottom: 140px;
  overflow-y: auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.offcanvas-body .navbar-nav {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column !important;
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
  -webkit-flex-direction: column !important;
  -ms-flex-direction: column !important;
}

.offcanvas-body .mt-auto {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  background: white;
  padding: 1.5rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1052;
  margin-top: 0 !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Close button */
.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}

.close::before {
  display: none !important;
}

.offcanvas-header .close::before {
  display: none !important;
  content: none !important;
}

/* Position utilities */
.position-relative {
  position: relative !important;
}

/* Position absolute */
.position-absolute {
  position: absolute !important;
}

/* Flex utilities - Bootstrap 3 có một số, nhưng bổ sung thêm */
/* Đảm bảo flexbox hoạt động tốt */
.d-flex,
.d-inline-flex {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
}

.d-inline-flex {
  display: -webkit-inline-box !important;
  display: -webkit-inline-flex !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
}

.flex-column {
  -webkit-box-orient: vertical !important;
  -webkit-box-direction: normal !important;
  -webkit-flex-direction: column !important;
  -ms-flex-direction: column !important;
  flex-direction: column !important;
}

.flex-wrap {
  -webkit-flex-wrap: wrap !important;
  -ms-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
}

.flex-shrink-0 {
  -webkit-flex-shrink: 0 !important;
  -ms-flex-negative: 0 !important;
  flex-shrink: 0 !important;
}

.align-items-center {
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
}

.justify-content-between {
  -webkit-box-pack: justify !important;
  -webkit-justify-content: space-between !important;
  -ms-flex-pack: justify !important;
  justify-content: space-between !important;
}

.justify-content-center {
  -webkit-box-pack: center !important;
  -webkit-justify-content: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
}

.justify-content-end {
  -webkit-box-pack: end !important;
  -webkit-justify-content: flex-end !important;
  -ms-flex-pack: end !important;
  justify-content: flex-end !important;
}

/* Margin utilities - Bootstrap 3 có nhưng bổ sung thêm */
.m-0 {
  margin: 0 !important;
}
.mt-auto {
  margin-top: auto !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 0.25rem !important;
}
.mb-2 {
  margin-bottom: 0.5rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
}
.mb-4 {
  margin-bottom: 1.5rem !important;
}
.mb-5 {
  margin-bottom: 3rem !important;
}
.mt-4 {
  margin-top: 1.5rem !important;
}
.mt-5 {
  margin-top: 3rem !important;
}
.me-2 {
  margin-right: 0.5rem !important;
}
.me-3 {
  margin-right: 1rem !important;
}
.me-4 {
  margin-right: 1.5rem !important;
}
.ps-2 {
  padding-left: 0.5rem !important;
}

/* Padding utilities */
.p-0 {
  padding: 0 !important;
}
.p-2 {
  padding: 0.5rem !important;
}
.p-3 {
  padding: 1rem !important;
}
.p-4 {
  padding: 1.5rem !important;
}
.p-md-3 {
  padding: 1rem !important;
}
.p-md-4 {
  padding: 1.5rem !important;
}

/* Padding responsive - applies from tablet (768px) */
@media (min-width: 767.98px) and (max-width: 1024.98px) {
  .p-md-3 {
    padding: 1rem !important;
  }
  .p-md-4 {
    padding: 1.5rem !important;
  }
  .mt-md-0 {
    margin-top: 0 !important;
  }
  .mb-md-3 {
    margin-bottom: 1rem !important;
  }
}

/* Margin responsive utilities */

/* Text alignment responsive - applies from tablet (768px) */

/* Width utilities */
.w-50 {
  width: 50% !important;
}
.w-100 {
  width: 100% !important;
}

/* Text utilities */
.text-center {
  text-align: center !important;
}
.text-white {
  color: #fff !important;
}
.text-muted {
  color: #777 !important;
}
.text-dark {
  color: #333 !important;
}
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.6em;
  line-height: 1.8em;
}

/* Small utility */
.small {
  font-size: 85% !important;
}

/* Border utilities */
.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

/* Background utilities */
.bg-white {
  background-color: #fff !important;
}

/* Display utilities - Bootstrap 3 có một số */
.d-none {
  display: none !important;
}
.d-flex {
  display: flex !important;
}
.d-inline-flex {
  display: inline-flex !important;
}
.d-lg-none {
  display: none !important;
}
.d-lg-flex {
  display: flex !important;
}
.d-lg-inline-flex {
  display: inline-flex !important;
}

/* Mobile: d-md-none should be visible, d-md-block should be hidden */
/* Changed: md now applies to tablet+ (768px), not desktop+ (992px) */
.d-md-none {
  display: block !important;
}
.d-md-block {
  display: none !important;
}
.d-md-flex {
  display: none !important;
}

@media (min-width: 768px) {
  /* Tablet and up - show desktop layout */
  .d-md-none {
    display: none !important;
  }
  .d-md-block {
    display: block !important;
  }
  .d-md-flex {
    display: flex !important;
  }
}

/* lg breakpoint for larger desktops (1200px+) */
@media (min-width: 1200px) {
  .d-lg-none {
    display: none !important;
  }
  .d-lg-flex {
    display: flex !important;
  }
  .d-lg-inline-flex {
    display: inline-flex !important;
  }
}

/* For screens below 1200px, lg classes should follow md behavior */
@media (max-width: 1199px) {
  .d-lg-flex {
    display: none !important;
  }

  .d-lg-none {
    display: block !important;
  }

  .d-lg-inline-flex {
    display: none !important;
  }
}

/* Height utilities */
.h-100 {
  height: 100% !important;
}

/* Navbar expand - Bootstrap 3 không có, cần thêm */
.navbar-expand-lg {
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -webkit-flex-direction: row !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-flex-wrap: nowrap !important;
  -ms-flex-wrap: nowrap !important;
  flex-wrap: nowrap !important;
  -webkit-box-pack: start !important;
  -webkit-justify-content: flex-start !important;
  -ms-flex-pack: start !important;
  justify-content: flex-start !important;
}

.navbar-expand-lg .navbar-nav {
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -webkit-flex-direction: row !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
}

@media (max-width: 991px) {
  .navbar-expand-lg {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: column !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
  }

  .navbar-expand-lg .navbar-nav {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: column !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
  }
}

/* Fix navbar structure for Bootstrap 3 */
.navbar {
  position: relative;
  min-height: 50px;
  margin-bottom: 0px;
  border: 1px solid transparent;
}

.navbar .container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 992px) {

  .navbar-expand-lg .navbar-nav {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
  }
}

/* Padding utilities cho navbar */
.py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

/* Đảm bảo row có display flex khi cần */
.row.d-flex {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-flex-wrap: wrap !important;
  -ms-flex-wrap: wrap !important;
  flex-wrap: wrap !important;
  margin-left: -15px;
  margin-right: -15px;
}

/* Fix cho navbar brand */
.navbar-brand {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -webkit-align-items: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
}

/* Fix cho dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1050;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 14px;
  background-color: #fff;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
}

.dropdown-menu.open {
  display: block;
}

.dropdown {
  position: relative;
}

/* Fix cho btn-link */
.btn-link {
  color: #337ab7;
  font-weight: normal;
  border-radius: 0;
  background-color: transparent;
  border: none;
}

.btn-link:hover,
.btn-link:focus {
  color: #23527c;
  text-decoration: underline;
  background-color: transparent;
}

.btn-dashboard{
  transition: all 0.3s ease;
  color: var(--secondary-dark-color);
}

.btn-dashboard:hover{
  color: var(--primary-color);
}
/* Custom flex utilities for responsive justify-content */
.justify-content-start {
  -webkit-box-pack: start !important;
  -webkit-justify-content: flex-start !important;
  -ms-flex-pack: start !important;
  justify-content: flex-start !important;
}

@media (min-width: 768px) {
  .justify-content-sm-center {
    -webkit-box-pack: center !important;
    -webkit-justify-content: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
  }
}

/* Responsive display flex */
@media (min-width: 768px) {
  .d-sm-flex {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
  }
}
html {
  font-size: 62.5%; /* 1rem = 10px */
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
input,
textarea,
select,
button,
label,
p,
a,
span,
div {
  font-family: var(--font-family-sans-serif)!important;
}

body {
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
  font-size: 1.6rem; /* Khôi phục cỡ chữ mặc định cho body */
  overflow-x: hidden;
  max-width: 100vw;
}

/* Reset inheritance breaking from style.css */
*:not(i) {
    font-family: inherit;
}

/* Sticky Header Fix */
#header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #fff;
}

.h1, .h2, .h3, h1, h2, h3{
  margin-top: 10px;
}

a {
  text-decoration: none!important;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Common Layout */
header .container,
footer .container {
  max-width: 1720px !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

/* Override Bootstrap 3 media queries for container */
@media (min-width: 768px) {
  header .container,
  footer .container {
    max-width: 1720px !important;
  }
}

@media (min-width: 992px) {
  header .container,
  footer .container {
    max-width: 1720px !important;
  }
}

@media (min-width: 1200px) {
  header .container,
  footer .container {
    max-width: 1720px !important;
  }
}

.section {
  padding: 60px 0;
}

p {
  margin-bottom: 15px;
}
/* Buttons */
.btn-c {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.--bg-gray {
  background-color: var(--gray-color-10);
}

.--bg-primary {
  background-color: var(--primary-color);
}

/* Owl Carousel Styles */
.owl-carousel {
  width: 100%;
  height: 400px;
}

header .item {
  text-align: center;
  font-size: 1.8rem;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.login-btn {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 12px;
  border: 5px solid transparent;
}

.login-btn:hover {
  outline: 5px solid var(--hover-primary-button-color);
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
  color: white;
}

.register-outline-btn {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 18px;
  border-radius: 12px;
}

.register-outline-btn:hover {
  outline: 5px solid var(--hover-primary-button-color);
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
}

.primary-btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: 12px 20px;
  font-size: 1.8rem;
  font-weight: 600;
  border-radius: 12px;
  border: 5px solid transparent;
}

.primary-btn:hover {
  outline: 5px solid var(--hover-primary-button-color);
  box-shadow: 0 1px 2px 0 rgba(10, 13, 18, 0.05);
  color: white;
}

.register-btn {
  color: var(--gray-color-600);
  font-size: 1.6rem;
  font-weight: 600;
  padding: 10px 18px;
  margin-right: 1rem;
}

.register-btn:hover {
  color: var(--primary-color);
}

.logout-btn {
  border-radius: 8px;
  border: 1px solid var(--gray-color-300);
  padding: 10px 18px;
}

.btn-search {
  background-color: var(--global-orange-60);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.btn-search:hover {
  outline: 1px solid var(--global-orange-60);
  background-color: white!important;
  color: var(--global-orange-60);
}

.section-container_space {
  padding: 104px 0;
}

.section-container_space-sm {
  padding: 96px 0;
}

.subtitle {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: normal;
}

.title {
  color: var(--gray-color-800);
  font-size: 4.8rem;
  font-weight: 600;
  line-height: normal;
}

.description {
  color: var(--gray-color-600);
  font-size: 2rem;
  font-weight: 400;
  line-height: normal;
}

@media (min-width: 768px) and (max-width: 1024.98px) {
  .section-container_space {
    padding: 40px 0px;
  }
  .subtitle {
    font-size: 1.4rem;
  }

  .title {
    font-size: 2.6rem;
  }

  .description {
    font-size: 1.4rem;
  }
}

@media (max-width: 767.98px) {
  .section-container_space {
    padding: 48px 0px;
  }

  .section-container_space-sm {
    padding: 0px;
  }

  .subtitle {
    font-size: 1.4rem;
  }

  .title {
    font-size: 2.8rem;
  }

  .description {
    font-size: 1.4rem;
  }

  .primary-btn {
    font-size: 1.4rem;
  }
}
.site-header {
  position: relative;
  z-index: 1000;
  overflow: visible;
}

.site-header .navbar {
  background: #fff;
  position: relative;
  z-index: 1000;
  overflow: visible;
}

/* Navbar container layout - no padding to be flush with screen edges */
.site-header .navbar .container {
  position: relative;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  /* Use clip instead of hidden to allow dropdowns to show */
  overflow: visible;
  overflow-y: visible;
}

/* Fallback for browsers that don't support clip */
  @supports not (overflow-x: clip) {
  .site-header .navbar .container {
    overflow: visible;    overflow-y: visible;
  }
  
  /* Allow dropdowns to escape overflow in older browsers */
  .site-header .navbar .container > .d-none.d-lg-flex > .navbar-nav {
    overflow: visible;
    position: relative;
    z-index: 1001;
  }
  
  .site-header .navbar .container .dropdown-menu,
  .site-header .navbar .container .mega-dropdown {
    position: absolute;
    z-index: 1051;
  }
}

/* Ensure dropdown menus can escape container overflow */
.site-header .navbar {
  overflow: visible;
}

.site-header .navbar .container {
  /* Container can have overflow hidden, but navbar-nav will handle dropdowns */
}

/* Desktop layout wrapper - Logo+Menu (left) | Actions (right) */
.site-header .navbar .container > .d-none.d-lg-flex {
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  overflow: visible;
  overflow-y: visible;
}

/* Left side: Logo + Menu grouped together */
.site-header .navbar .container > .d-none.d-lg-flex > .navbar-brand {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-right: 0;
  padding-left: 20px;
}

/* Menu - Right after logo, no large gap */
.site-header .navbar .container > .d-none.d-lg-flex > .navbar-nav {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  margin-left: 2rem;
  margin-right: 0;
  overflow: visible;
  position: relative;
  z-index: 1001;
  /* Create new stacking context for dropdown menus */
  isolation: isolate;
}

/* Right side: Actions grouped together */
.site-header .navbar .container > .d-none.d-lg-flex > .d-flex:last-child {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: auto;
  padding-right: 20px;
  box-sizing: border-box;
  max-width: 100%;
}

/* Desktop navbar brand */
.site-header .navbar .navbar-brand {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-right: 0;
  z-index: 2;
  position: relative;
}

.brand-logo {
  width: auto;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

/* Mobile brand centered like screenshot */
.brand-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Navbar links styling */
.navbar-nav .nav-link,
.navbar-nav .nav-item.dropdown li a,
.lang-wrap span {
  color: var(--secondary-color);
  transition: color 0.2s ease-in-out;
  font-size: 1.8rem;
  font-weight: 400;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  text-wrap: auto;
}

.navbar-nav .nav-item {
  margin: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .nav-item.dropdown li a {
  color: var(--secondary-dark-color);
  font-weight: 500;
}

/* Menu items styling */
.site-header .navbar .container > .d-none.d-lg-flex > .navbar-nav {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  z-index: 1001;
  position: relative;
  overflow: visible;
}

.site-header .navbar .container > .d-none.d-lg-flex > .navbar-nav > li {
  margin: 0;
}

.site-header .navbar .container > .d-none.d-lg-flex > .navbar-nav > li .nav-link {
  padding: 0.5rem 1.2rem;
}

.site-header .navbar .container > .d-none.d-lg-flex > .navbar-nav > li:first-child .nav-link {
  padding-left: 0;
}

/* Right actions positioning */
.site-header .navbar .container > .d-none.d-lg-flex > .d-flex:last-child {
  margin-left: auto;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  z-index: 2;
  position: relative;
}

/* Arrow rotation on hover - Desktop */
.navbar-nav .dropdown > .nav-link:hover i {
  transform: rotate(180deg);
  transition: transform 0.3s ease-in-out;
}

/* "Đăng nhập" button */

/* Language Dropdown */

/* Hide the default Google Translate Select if present */
.lang-wrap #google_translate_element2 {
    display: none !important;
}

/* GTranslate Nice Dropdown Styling */
.lang-wrap .gt_switcher {
    background: transparent;
    border: 0;
    overflow: visible;
}

.lang-wrap .gt_selected {
    position: relative;
    background: white!important;
}

.lang-wrap .gt_selected a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--primary-color);
    background-color: var(--light-color);
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.lang-wrap .gt_selected a:hover,
.lang-wrap .gt_selected a:focus, 
.lang-wrap .gt_switcher:hover .gt_selected a {
    border: 1px solid var(--primary-color);
    background-color: #fff;
}

.lang-wrap .gt_selected a img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
}

/* Dropdown Menu */
.lang-wrap .gt_option {
    position: absolute!important;
    top: 100% !important;
    left: 0 !important;
    z-index: 10000 !important; 
    background: #fff !important; /* Force white background */
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    min-width: 150px !important;
    width: max-content !important; /* Fix for missing right border */
    max-width: 300px !important; /* Safety cap */
    padding: 8px !important;
    display: none; 
    margin-top: 5px !important;
    height: auto !important; /* Override inline height */
    overflow: visible !important; /* Start visible, maybe auto if too long */
    box-sizing: border-box !important;
}

/* Show dropdown on hover only on desktop to avoid sticky hover on mobile */
@media (min-width: 1024.98px) {
    .lang-wrap .gt_switcher:hover .gt_option {
        display: block !important;
        position: absolute;
    }
}

.lang-wrap .gt_option a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    font-size: 1.4rem !important;
    color: var(--text-color) !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: background-color 0.2s !important;
    white-space: nowrap !important;
}

.lang-wrap .gt_option a:hover {
    background-color: var(--gray-color-100) !important;
    color: var(--primary-color) !important;
}

.lang-wrap .gt_option a img {
    margin-right: 8px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* Add subtle shadow to flag */
}

.lang-wrap .gt_option a.gt_current {
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    background-color: var(--blue-light-50) !important;
}

/* Mobile specific overrides */
.mobile_language .lang-wrap {
    margin-right: 0;
}

/* Dropdown on hover - override Bootstrap 3 default */
.navbar-nav .dropdown:hover > .dropdown-menu,
.navbar-nav .dropdown:hover .dropdown-menu,
.navbar-nav .dropdown:hover .mega-dropdown {
  display: block !important;
  margin-top: 0;
  border-radius: 12px;
}

/* When dropdown is fixed (via JS), ensure it's visible */

/* Ensure the dropdown parent link stays highlighted on hover/active */
.navbar-nav .dropdown:hover > .nav-link {
  color: var(--secondary-dark-color);
}

/* Make submenu width match parent */
.navbar-nav .dropdown-menu {
  width: 100%;
  display: none !important;
}

/* ===== MEGA DROPDOWN MENU ===== */
.mega-dropdown {
  min-width: 600px;
  max-width: 900px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
  position: absolute;
  z-index: 1051;
  background: #fff;
  display: none;
  left: 0;
  top: 100%;
  box-sizing: border-box;
  /* Ensure dropdown doesn't cause horizontal overflow but can still be visible */
  max-width: min(700px, calc(100vw - 40px));
  /* Allow content to be fully visible */
  overflow: visible;
  overflow-x: visible;
  overflow-y: visible;
  padding: 16px !important;
}

/* Reduce gap between items in mega dropdown */
.mega-dropdown .row {
  overflow: visible;
  margin-left: -8px;
  margin-right: -8px;
}

.mega-dropdown .row > * {
  overflow: visible;
  padding-left: 8px;
  padding-right: 8px;
  margin-bottom: 8px;
}

.mega-dropdown .dropdown-item-custom {
  overflow: visible;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  height: 100%;
}

/* Ensure mega-dropdown container doesn't clip content */
.mega-dropdown > * {
  overflow: visible;
}

/* Make all items same height for alignment */
.mega-dropdown .col-md-6 {
  display: flex;
  flex-direction: column;
}

.mega-dropdown .col-md-6 > .dropdown-item-custom {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Dropdown menu z-index */
.navbar-nav .dropdown-menu {
  z-index: 1051;
  position: absolute;
  overflow: visible;
  /* Force dropdown to be visible even if parent has overflow hidden */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.navbar-nav .dropdown {
  position: relative;
  overflow: visible;
}

.dropdown-item-custom {
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  overflow: visible;
  word-wrap: break-word;
  white-space: normal;
  padding: 12px 16px !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto !important;
  flex-grow: 0 !important;
}

.dropdown-item-custom:hover,
.mega-menu-group-header:hover {
  background-color: var(--gray-color-50);
}

.dropdown-item-custom i,
.mega-menu-group-header i {
  color: var(--primary-color);
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.dropdown-item-custom h6,
.mega-menu-group-header h6 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gray-color-900);
  margin-bottom: 0px!important;
  padding-bottom: 0px!important;
  flex-grow: 0;
  text-wrap: auto;
  line-height: 1.3;
}

.dropdown-item-custom p {
  font-size: 1.2rem;
  color: var(--gray-color-600);
  line-height: 1.4;
  padding-left: 32px;
  margin-bottom: 0;
  text-wrap: auto;
  white-space: normal;
}

/* Ensure icon and title are aligned */
.dropdown-item-custom > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

/* ===== MOBILE MEGA MENU ===== */
.mobile-mega-menu {
  background-color: var(--gray-color-10);
  border-radius: 12px;
  margin-top: 0.5rem;
}

.mobile-menu-item {
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  background-color: white;
  height: 100%;
  transition: background-color 0.2s ease;
}

.mobile-menu-item:hover {
  background-color: var(--gray-color-10);
}

.mobile-menu-item i,
.mobile-menu-group-header i {
  color: var(--primary-color);
  font-size: 18px;
}

.mobile-menu-item h6,
.mobile-menu-group-header h6 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gray-color-900);
  padding-bottom: 0;
  margin-bottom: 0;
}

.mobile-menu-item p {
  font-size: 1.2rem;
  color: #6b7280;
  line-height: 1.3;
}

/* Responsive adjustments - Mobile and Tablet */
@media (max-width: 1024px) {
  /* Ensure desktop layout is hidden on mobile and tablet */
  .site-header .navbar .container > .d-none.d-lg-flex {
    display: none !important;
  }

  /* Mobile header fixes */
  .site-header .navbar .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Mobile top bar - ensure no overlap - show on mobile and tablet */
  .site-header .navbar .d-lg-none {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile hamburger button */
  .site-header .navbar .d-lg-none > button {
    background: none;
    background-color: transparent !important;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    min-width: 40px;
    width: 40px;
    height: 40px;
    z-index: 1001;
    padding: 0;
    margin: 0;
  }

  /* Mobile brand center */
  .site-header .navbar .d-lg-none > .navbar-brand.brand-center {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 1000;
    margin: 0;
    max-width: calc(100% - 120px);
    box-sizing: border-box;
  }

  /* Mobile search button */
  .site-header .navbar .d-lg-none > a[aria-label="Search"] {
    background: none;
    background-color: transparent !important;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    min-width: 40px;
    width: 40px;
    height: 40px;
    z-index: 1001;
    padding: 0;
    margin: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .mobile-menu-item h6 {
    font-size: 1.2rem;
  }

  .mobile-menu-item p {
    font-size: 1rem;
    padding-left: 25px;
  }

  .offcanvas-body .nav-link[data-toggle="collapse"] i {
    transition: transform 0.3s ease-in-out;
  }

  .offcanvas-body .nav-link[data-toggle="collapse"][aria-expanded="true"] i {
    transform: rotate(180deg);
  }

  .offcanvas-body
    .nav-link[data-toggle="collapse"][aria-expanded="false"]
    i {
    transform: rotate(0deg);
  }

  /* Offcanvas nav-link padding */
  .offcanvas-body .navbar-nav {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    display: flex !important;
    flex-direction: column !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: column !important;
    -ms-flex-direction: column !important;
    list-style: none;
  }

  .offcanvas-body .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
    width: 100%;
    display: block;
    float: none;
  }

  .offcanvas-body .navbar-nav .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.6rem;
    color: #333;
    border-radius: 0;
    -webkit-transition: background-color 0.2s ease;
    -o-transition: background-color 0.2s ease;
    transition: background-color 0.2s ease;
    display: block;
    width: 100%;
    float: none;
    text-align: left;
  }

  .offcanvas-body .navbar-nav .nav-link.active {
    background-color: #f3f4f6;
    font-weight: 600;
    width: 100%;
  }

  /* Language section borders - same alignment as menu items */
  .offcanvas-body .lang-wrap {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
  }
}

.offcanvas.offcanvas-start {
  width: 100vw !important;
  max-width: 100vw !important;
}

/* Tablet specific - fullwidth offcanvas, no overlay */
@media (min-width: 768px) and (max-width: 1024px) {
  .offcanvas.offcanvas-start {
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 1050;
  }
  
  /* Ensure offcanvas is visible and properly positioned on tablet */
  .offcanvas.offcanvas-start.show {
    transform: translateX(0) !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* Completely hide backdrop on tablet - no overlay at all */
  .offcanvas-backdrop {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* Ensure body doesn't get darkened on tablet */
  body.offcanvas-open {
    background-color: #fff !important;
  }
  
  /* Ensure main content is not darkened */
  main,
  .main-banner,
  section {
    opacity: 1 !important;
    filter: none !important;
  }
  
  /* Ensure offcanvas body displays correctly on tablet */
  .offcanvas-body {
    overflow-y: auto;
    padding: 1.5rem;
  }
  
  /* Ensure all menu items are visible on tablet and display vertically */
  .offcanvas-body .navbar-nav {
    display: flex !important;
    flex-direction: column !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: column !important;
    -ms-flex-direction: column !important;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    list-style: none;
  }
  
  .offcanvas-body .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
    width: 100%;
    display: block;
    float: none !important;
    clear: both;
  }
  
  .offcanvas-body .navbar-nav .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.6rem;
    display: block;
    width: 100%;
    float: none !important;
    text-align: left;
  }
  
  /* Override any Bootstrap 3 navbar-expand-lg styles for offcanvas */
  .offcanvas-body .navbar-expand-lg .navbar-nav,
  .offcanvas-body .navbar-nav {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -webkit-flex-direction: column !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
  }
  
  /* User info block on tablet */
  .offcanvas .user-info_block {
    padding: 12px 16px;
  }
  
  /* Buttons at bottom on tablet */
  .offcanvas .register-outline-btn,
  .offcanvas .login-btn {
    font-size: 1.4rem;
    padding: 12px 16px;
  }
}

.offcanvas-header {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  position: relative;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-header .close {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  font-size: 2rem;
  line-height: 1;
  opacity: 0.5;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  z-index: 1;
  color: #333;
  width: 32px;
  height: 32px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.offcanvas-header .close:hover {
  opacity: 0.75;
}

.offcanvas-header .close i {
  font-size: 2rem;
}

/* Hide Bootstrap 3 default close button if exists */
.offcanvas-header button.close:not(#closeMobileNav) {
  display: none !important;
}

.offcanvas-header .close::before {
  display: none !important;
}

.offcanvas-header .brand-container {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.5rem;
  -webkit-box-pack: flex-start;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: flex-start;
  justify-content: flex-start;
  padding-left: 1rem;
}

/* Hide HRs in offcanvas */
.offcanvas .register-outline-btn,
.offcanvas .login-btn,
.offcanvas .logout-btn {
  font-size: 1.4rem;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
}

.offcanvas .register-outline-btn {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: white;
}

.offcanvas .login-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.offcanvas .logout-btn {
  color: var(--gray-color-700);
  border: 1px solid #e5e7eb;
  background: white;
  margin-top: 0.5rem;
}

.offcanvas .badge {
  display: -webkit-inline-box;
  display: -webkit-inline-flex;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  background-color: var(--global-orange-60);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 24px;
  height: 24px;
  line-height: 1;
}

.offcanvas .user-info_block {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--primary-color);
  border-radius: 12px;
  color: white;
  margin-bottom: 1rem;
}

.offcanvas .user-info_block .user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}

.offcanvas .user-info_block .user-info__detail {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 4px;
}

.offcanvas .user-info_block h6 {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.offcanvas .user-info_block span {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}

/* iPad Pro and Tablet specific fixes - prevent width overflow */
@media (min-width: 768px) and (max-width: 1024px) {
  .site-header .navbar .container {
    max-width: 100vw;
    overflow: visible;
    overflow-y: visible;
  }
  
  /* Ensure mobile top bar displays correctly on tablet */
  .site-header .navbar .d-lg-none {
    max-width: 100vw;
    box-sizing: border-box;
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
  }
  
  .site-header .navbar .d-lg-none > .navbar-brand.brand-center {
    max-width: calc(100vw - 140px);
    overflow: hidden;
  }
  
  /* Ensure desktop layout is hidden on tablet */
  .site-header .navbar .container > .d-none.d-lg-flex {
    display: none !important;
  }
}
footer {
  background-image: url("../../images/home/footer/footer_background.png");
}

footer h3{
  display: none;
}
.footer-upper_left h5 {
  font-size: 3.1rem;
  font-weight: 900;
}

.footer-upper_left img {
  width: auto;
  height: 90px;
  border-radius: 17.533px;
  border: 1.403px solid #fff;
}

.footer-upper_left p,
.footer-upper_right h5 {
  font-size: 2rem;
  font-weight: 400;
  color: var(--blue-color-200);
}

.footer-upper_right a {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-color-100);
  word-break: break-word;
}

.footer-upper_right h5 {
  text-transform: uppercase;
}

.footer-bottom {
  background-color: var(--primary-color);
}

.footer-bottom p {
  font-size: 1.6rem;
  font-weight: 400;
  color: white;
}

/* Mobile-only styles (< 768px) */
@media only screen and (max-width: 767px) {
  .footer-upper_left h5{
    font-size: 2.4rem;
  }
  .footer-upper_left p,
  .footer-upper_right h5 {
    font-size: 1.4rem;
  }

  .footer-upper_right a{
    font-size: 1.4rem;
  }
}

/* Tablet and desktop (>= 768px) keep original sizes */
@media (min-width: 768px) {
  .footer-upper_left h5{
    font-size: 3.1rem;
  }
  .footer-upper_left p,
  .footer-upper_right h5 {
    font-size: 2rem;
  }

  .footer-upper_right a{
    font-size: 20px;
  }
}

/* Bootstrap 3 Dropdown Fix: Restore .open class functionality after PurgeCSS */
.open > .dropdown-menu {
  display: block;
}



/* Fix for mobile language dropdown */
/* 1. Prevent global hover rule from opening this specific dropdown */
/* We use a high specificity to ensure we override the theme's default hover rule */
.navbar-nav .dropdown.mobile-lang-dropdown:hover > .dropdown-menu,
.navbar-nav .dropdown.mobile-lang-dropdown:hover .dropdown-menu {
  display: none !important;
}

/* 2. Show only when explicitly open via JS class ON THE INNER CONTAINER */
/* Specificity must be higher than the hover rule above (4 classes + 1 pseudo) vs (6 classes) */
.navbar-nav .dropdown.mobile-lang-dropdown .mobile_language.open > .dropdown-menu,
.navbar-nav .dropdown.mobile-lang-dropdown .mobile_language.open .dropdown-menu {
  display: block !important;
}

/* 3. Positioning and Styling */
.mobile_language {
  position: relative; /* Anchor for the absolute dropdown */
}

.mobile-lang-dropdown .dropdown-menu {
  position: absolute !important; /* Prevent layout shift */
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  width: auto !important;
  min-width: 140px;
  float: none !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  margin-top: 8px !important;
  background-color: #fff !important;
  padding: 8px 0 !important;
  z-index: 1000;
}

.mobile-lang-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align button content */
}

/* Added missing margin-start utilities */
.ms-auto {
  margin-left: auto !important;
}
.ms-2 {
  margin-left: 0.5rem !important;
}

/* ===== USER DASHBOARD DROPDOWN (DESKTOP) ===== */
.btn-icon-dashboard {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gray-color-100); /* Light gray */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-color-700);
  font-size: 1.6rem;
  transition: all 0.2s ease;
  border: none;
  margin-right: 12px;
  text-decoration: none !important;
}

.btn-icon-dashboard:hover {
  background-color: var(--gray-color-200);
  color: var(--primary-color);
}

.user-dropdown-wrapper {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background-color: white;
}

.user-dropdown-toggle:hover,
.user-dropdown-wrapper.open .user-dropdown-toggle {
  border-color: var(--primary-color);
  background-color: #F0F9FF; /* Light blue tint */
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.user-avatar-img,
.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-toggle-arrow {
  color: var(--gray-color-700);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.user-dropdown-wrapper.open .user-toggle-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu Container */
.dropdown-menu-user {
  position: absolute;
  top: 100%;
  right: 0 !important;
  left: auto !important;
  width: 800px; /* Wide dropdown */
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  border: 1px solid var(--gray-color-200);
  padding: 0;
  margin-top: 12px;
  display: none;
  z-index: 1060;
  overflow: hidden;
  transform: none !important;
}

.user-dropdown-wrapper.open .dropdown-menu-user {
  display: flex; /* Flex layout for 2 columns */
}

/* Left Column: Navigation */
.user-menu-col-left {
  width: 35%;
  background-color: #fff;
  padding: 24px;
  border-right: 1px solid var(--gray-color-200);
}

.user-menu-section-title {
  font-size: 1.4rem;
  color: var(--gray-color-500);
  margin-bottom: 16px;
  font-weight: 500;
}

.user-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none !important;
  color: var(--gray-color-900);
  transition: color 0.2s;
  cursor: pointer;
}

.user-nav-item:hover {
  color: var(--primary-color);
}

.user-nav-item i {
  font-size: 2rem; /* Larger icons */
  color: var(--primary-color);
  width: 24px;
  text-align: center;
  margin-top: 2px;
}

.user-nav-content h6 {
  font-size: 1.6rem; 
  font-weight: 600;
  margin: 0 0 4px 0;
  color: inherit;
}

.user-nav-content p {
  font-size: 1.3rem;
  color: var(--gray-color-600);
  margin: 0;
  line-height: 1.4;
}

/* Right Column: Actions & Suggestions */
.user-menu-col-right {
  width: 65%;
  background-color: #F9FAFB; /* Slightly off-white */
  padding: 24px;
}

.logout-banner {
  background-color: #F0F9FF;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.logout-banner a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 700;
}

.logout-banner a:hover {
  text-decoration: underline;
}

.suggest_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.suggest_header span {
  font-size: 1.4rem;
  color: var(--gray-color-500);
}

.suggest_header a {
  font-size: 1.4rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.suggest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.suggest-card {
  display: flex;
  gap: 12px;
  text-decoration: none !important;
  transition: opacity 0.2s;
}

.suggest-card:hover {
    opacity: 0.8;
}

.suggest-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.suggest-info h6 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-color-900);
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggest-info p {
  font-size: 1.3rem;
  color: var(--gray-color-600);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* --- SITE FULLSCREEN SEARCH MODAL --- */
.site-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.site-search-modal.active {
    opacity: 1;
    visibility: visible;
}

.site-search-wrapper {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    position: relative;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.site-search-modal.active .site-search-wrapper {
    transform: translateY(0);
}

.site-search-form {
    position: relative;
}

.site-search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    padding: 15px 0;
    outline: none;
    font-family: inherit;
    text-align: center;
    transition: border-color 0.3s;
}

.site-search-input:focus {
    border-bottom-color: #fff;
}

.site-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 30px;
}

.site-search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    outline: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.site-search-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.site-search-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 20px;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .site-search-input {
        font-size: 24px;
        font-weight: normal;
    }
    .site-search-input::placeholder {
        font-size: 20px;
    }
    .site-search-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
