/*!
 * bootstrap5-on-bootstrap3.css
 * CSS shim: dùng một số class Bootstrap 5 phổ biến trên website đang chạy Bootstrap 3.
 * Nên load file này SAU bootstrap.min.css của Bootstrap 3.
 */

/* =========================
   1. Container / Grid gutter
   ========================= */

.container,
.container-fluid {
  box-sizing: border-box;
}

/* Bootstrap 5 dùng .row với gutter qua CSS variables.
   Bootstrap 3 đã có .row margin-left/right -15px, nên chỉ bổ sung g-* phổ biến. */
.row.g-0,
.row.no-gutters {
  margin-left: 0;
  margin-right: 0;
}

.row.g-0 > [class^="col-"],
.row.g-0 > [class*=" col-"],
.row.no-gutters > [class^="col-"],
.row.no-gutters > [class*=" col-"] {
  padding-left: 0;
  padding-right: 0;
}

/* Gutter X */
.row.gx-0 { margin-left: 0; margin-right: 0; }
.row.gx-0 > [class^="col-"],
.row.gx-0 > [class*=" col-"] { padding-left: 0; padding-right: 0; }

.row.gx-1 { margin-left: -4px; margin-right: -4px; }
.row.gx-1 > [class^="col-"],
.row.gx-1 > [class*=" col-"] { padding-left: 4px; padding-right: 4px; }

.row.gx-2 { margin-left: -8px; margin-right: -8px; }
.row.gx-2 > [class^="col-"],
.row.gx-2 > [class*=" col-"] { padding-left: 8px; padding-right: 8px; }

.row.gx-3 { margin-left: -15px; margin-right: -15px; }
.row.gx-3 > [class^="col-"],
.row.gx-3 > [class*=" col-"] { padding-left: 15px; padding-right: 15px; }

.row.gx-4 { margin-left: -24px; margin-right: -24px; }
.row.gx-4 > [class^="col-"],
.row.gx-4 > [class*=" col-"] { padding-left: 24px; padding-right: 24px; }

.row.gx-5 { margin-left: -48px; margin-right: -48px; }
.row.gx-5 > [class^="col-"],
.row.gx-5 > [class*=" col-"] { padding-left: 48px; padding-right: 48px; }

/* Gutter Y */
.row.gy-0 > [class^="col-"],
.row.gy-0 > [class*=" col-"] { margin-top: 0; }

.row.gy-1 > [class^="col-"],
.row.gy-1 > [class*=" col-"] { margin-top: 8px; }

.row.gy-2 > [class^="col-"],
.row.gy-2 > [class*=" col-"] { margin-top: 16px; }

.row.gy-3 > [class^="col-"],
.row.gy-3 > [class*=" col-"] { margin-top: 24px; }

.row.gy-4 > [class^="col-"],
.row.gy-4 > [class*=" col-"] { margin-top: 32px; }

.row.gy-5 > [class^="col-"],
.row.gy-5 > [class*=" col-"] { margin-top: 48px; }

/* Gutter tổng hợp g-* */
.row.g-0 {
  margin-left: 0;
  margin-right: 0;
}

.row.g-1 {
  margin-left: -4px;
  margin-right: -4px;
}

.row.g-1 > [class^="col-"],
.row.g-1 > [class*=" col-"] {
  padding-left: 4px;
  padding-right: 4px;
  margin-top: 8px;
}

.row.g-2 {
  margin-left: -8px;
  margin-right: -8px;
}

.row.g-2 > [class^="col-"],
.row.g-2 > [class*=" col-"] {
  padding-left: 8px;
  padding-right: 8px;
  margin-top: 16px;
}

.row.g-3 {
  margin-left: -15px;
  margin-right: -15px;
}

.row.g-3 > [class^="col-"],
.row.g-3 > [class*=" col-"] {
  padding-left: 15px;
  padding-right: 15px;
  margin-top: 24px;
}

.row.g-4 {
  margin-left: -24px;
  margin-right: -24px;
}

.row.g-4 > [class^="col-"],
.row.g-4 > [class*=" col-"] {
  padding-left: 24px;
  padding-right: 24px;
  margin-top: 32px;
}

.row.g-5 {
  margin-left: -48px;
  margin-right: -48px;
}

.row.g-5 > [class^="col-"],
.row.g-5 > [class*=" col-"] {
  padding-left: 48px;
  padding-right: 48px;
  margin-top: 48px;
}


/* =========================
   2. Display
   ========================= */

.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-table { display: table !important; }
.d-table-row { display: table-row !important; }
.d-table-cell { display: table-cell !important; }
.d-flex { display: -webkit-box !important; display: -ms-flexbox !important; display: flex !important; }
.d-inline-flex { display: -webkit-inline-box !important; display: -ms-inline-flexbox !important; display: inline-flex !important; }

/* sm >= 768 */
@media (min-width: 768px) {
  .d-sm-none { display: none !important; }
  .d-sm-inline { display: inline !important; }
  .d-sm-inline-block { display: inline-block !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex { display: -webkit-box !important; display: -ms-flexbox !important; display: flex !important; }
}

/* md >= 992 */
@media (min-width: 992px) {
  .d-md-none { display: none !important; }
  .d-md-inline { display: inline !important; }
  .d-md-inline-block { display: inline-block !important; }
  .d-md-block { display: block !important; }
  .d-md-flex { display: -webkit-box !important; display: -ms-flexbox !important; display: flex !important; }
}

/* lg >= 1200 */
@media (min-width: 1200px) {
  .d-lg-none { display: none !important; }
  .d-lg-inline { display: inline !important; }
  .d-lg-inline-block { display: inline-block !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex { display: -webkit-box !important; display: -ms-flexbox !important; display: flex !important; }
}

/* Bootstrap 5 có xl >= 1200, xxl >= 1400.
   Với Bootstrap 3, lg đã là >=1200 nên map xl chung với lg. */
@media (min-width: 1200px) {
  .d-xl-none { display: none !important; }
  .d-xl-inline { display: inline !important; }
  .d-xl-inline-block { display: inline-block !important; }
  .d-xl-block { display: block !important; }
  .d-xl-flex { display: -webkit-box !important; display: -ms-flexbox !important; display: flex !important; }
}

@media (min-width: 1400px) {
  .d-xxl-none { display: none !important; }
  .d-xxl-inline { display: inline !important; }
  .d-xxl-inline-block { display: inline-block !important; }
  .d-xxl-block { display: block !important; }
  .d-xxl-flex { display: -webkit-box !important; display: -ms-flexbox !important; display: flex !important; }
}


/* =========================
   3. Flex utilities
   ========================= */

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

.flex-wrap { -ms-flex-wrap: wrap !important; flex-wrap: wrap !important; }
.flex-nowrap { -ms-flex-wrap: nowrap !important; flex-wrap: nowrap !important; }
.flex-wrap-reverse { -ms-flex-wrap: wrap-reverse !important; flex-wrap: wrap-reverse !important; }

.justify-content-start { -webkit-box-pack: start !important; -ms-flex-pack: start !important; justify-content: flex-start !important; }
.justify-content-end { -webkit-box-pack: end !important; -ms-flex-pack: end !important; justify-content: flex-end !important; }
.justify-content-center { -webkit-box-pack: center !important; -ms-flex-pack: center !important; justify-content: center !important; }
.justify-content-between { -webkit-box-pack: justify !important; -ms-flex-pack: justify !important; justify-content: space-between !important; }
.justify-content-around { -ms-flex-pack: distribute !important; justify-content: space-around !important; }
.justify-content-evenly { -webkit-box-pack: space-evenly !important; -ms-flex-pack: space-evenly !important; justify-content: space-evenly !important; }

.align-items-start { -webkit-box-align: start !important; -ms-flex-align: start !important; align-items: flex-start !important; }
.align-items-end { -webkit-box-align: end !important; -ms-flex-align: end !important; align-items: flex-end !important; }
.align-items-center { -webkit-box-align: center !important; -ms-flex-align: center !important; align-items: center !important; }
.align-items-baseline { -webkit-box-align: baseline !important; -ms-flex-align: baseline !important; align-items: baseline !important; }
.align-items-stretch { -webkit-box-align: stretch !important; -ms-flex-align: stretch !important; align-items: stretch !important; }

.align-self-auto { -ms-flex-item-align: auto !important; align-self: auto !important; }
.align-self-start { -ms-flex-item-align: start !important; align-self: flex-start !important; }
.align-self-end { -ms-flex-item-align: end !important; align-self: flex-end !important; }
.align-self-center { -ms-flex-item-align: center !important; align-self: center !important; }
.align-self-baseline { -ms-flex-item-align: baseline !important; align-self: baseline !important; }
.align-self-stretch { -ms-flex-item-align: stretch !important; align-self: stretch !important; }

.align-content-start { -ms-flex-line-pack: start !important; align-content: flex-start !important; }
.align-content-end { -ms-flex-line-pack: end !important; align-content: flex-end !important; }
.align-content-center { -ms-flex-line-pack: center !important; align-content: center !important; }
.align-content-between { -ms-flex-line-pack: justify !important; align-content: space-between !important; }
.align-content-around { -ms-flex-line-pack: distribute !important; align-content: space-around !important; }
.align-content-stretch { -ms-flex-line-pack: stretch !important; align-content: stretch !important; }

.flex-fill { -webkit-box-flex: 1 !important; -ms-flex: 1 1 auto !important; flex: 1 1 auto !important; }
.flex-grow-0 { -webkit-box-flex: 0 !important; -ms-flex-positive: 0 !important; flex-grow: 0 !important; }
.flex-grow-1 { -webkit-box-flex: 1 !important; -ms-flex-positive: 1 !important; flex-grow: 1 !important; }
.flex-shrink-0 { -ms-flex-negative: 0 !important; flex-shrink: 0 !important; }
.flex-shrink-1 { -ms-flex-negative: 1 !important; flex-shrink: 1 !important; }

.order-first { -webkit-box-ordinal-group: 0 !important; -ms-flex-order: -1 !important; order: -1 !important; }
.order-0 { -webkit-box-ordinal-group: 1 !important; -ms-flex-order: 0 !important; order: 0 !important; }
.order-1 { -webkit-box-ordinal-group: 2 !important; -ms-flex-order: 1 !important; order: 1 !important; }
.order-2 { -webkit-box-ordinal-group: 3 !important; -ms-flex-order: 2 !important; order: 2 !important; }
.order-3 { -webkit-box-ordinal-group: 4 !important; -ms-flex-order: 3 !important; order: 3 !important; }
.order-4 { -webkit-box-ordinal-group: 5 !important; -ms-flex-order: 4 !important; order: 4 !important; }
.order-5 { -webkit-box-ordinal-group: 6 !important; -ms-flex-order: 5 !important; order: 5 !important; }
.order-last { -webkit-box-ordinal-group: 7 !important; -ms-flex-order: 6 !important; order: 6 !important; }


/* =========================
   4. Spacing Bootstrap 5
   scale: 0, 1=.25rem, 2=.5rem, 3=1rem, 4=1.5rem, 5=3rem
   root 16px => 4, 8, 16, 24, 48
   ========================= */

.m-0 { margin: 0 !important; }
.m-1 { margin: 4px !important; }
.m-2 { margin: 8px !important; }
.m-3 { margin: 16px !important; }
.m-4 { margin: 24px !important; }
.m-5 { margin: 48px !important; }
.m-auto { margin: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 48px !important; }
.mt-auto { margin-top: auto !important; }

.me-0, .mr-0 { margin-right: 0 !important; }
.me-1, .mr-1 { margin-right: 4px !important; }
.me-2, .mr-2 { margin-right: 8px !important; }
.me-3, .mr-3 { margin-right: 16px !important; }
.me-4, .mr-4 { margin-right: 24px !important; }
.me-5, .mr-5 { margin-right: 48px !important; }
.me-auto, .mr-auto { margin-right: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 48px !important; }
.mb-auto { margin-bottom: auto !important; }

.ms-0, .ml-0 { margin-left: 0 !important; }
.ms-1, .ml-1 { margin-left: 4px !important; }
.ms-2, .ml-2 { margin-left: 8px !important; }
.ms-3, .ml-3 { margin-left: 16px !important; }
.ms-4, .ml-4 { margin-left: 24px !important; }
.ms-5, .ml-5 { margin-left: 48px !important; }
.ms-auto, .ml-auto { margin-left: auto !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 4px !important; margin-right: 4px !important; }
.mx-2 { margin-left: 8px !important; margin-right: 8px !important; }
.mx-3 { margin-left: 16px !important; margin-right: 16px !important; }
.mx-4 { margin-left: 24px !important; margin-right: 24px !important; }
.mx-5 { margin-left: 48px !important; margin-right: 48px !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 4px !important; margin-bottom: 4px !important; }
.my-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
.my-3 { margin-top: 16px !important; margin-bottom: 16px !important; }
.my-4 { margin-top: 24px !important; margin-bottom: 24px !important; }
.my-5 { margin-top: 48px !important; margin-bottom: 48px !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 4px !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.p-5 { padding: 48px !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 4px !important; }
.pt-2 { padding-top: 8px !important; }
.pt-3 { padding-top: 16px !important; }
.pt-4 { padding-top: 24px !important; }
.pt-5 { padding-top: 48px !important; }

.pe-0, .pr-0 { padding-right: 0 !important; }
.pe-1, .pr-1 { padding-right: 4px !important; }
.pe-2, .pr-2 { padding-right: 8px !important; }
.pe-3, .pr-3 { padding-right: 16px !important; }
.pe-4, .pr-4 { padding-right: 24px !important; }
.pe-5, .pr-5 { padding-right: 48px !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 4px !important; }
.pb-2 { padding-bottom: 8px !important; }
.pb-3 { padding-bottom: 16px !important; }
.pb-4 { padding-bottom: 24px !important; }
.pb-5 { padding-bottom: 48px !important; }

.ps-0, .pl-0 { padding-left: 0 !important; }
.ps-1, .pl-1 { padding-left: 4px !important; }
.ps-2, .pl-2 { padding-left: 8px !important; }
.ps-3, .pl-3 { padding-left: 16px !important; }
.ps-4, .pl-4 { padding-left: 24px !important; }
.ps-5, .pl-5 { padding-left: 48px !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 4px !important; padding-right: 4px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 16px !important; padding-right: 16px !important; }
.px-4 { padding-left: 24px !important; padding-right: 24px !important; }
.px-5 { padding-left: 48px !important; padding-right: 48px !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-5 { padding-top: 48px !important; padding-bottom: 48px !important; }

/* Responsive spacing - sm */
@media (min-width: 768px) {
  .p-sm-0 { padding: 0 !important; }
  .p-sm-1 { padding: 4px !important; }
  .p-sm-2 { padding: 8px !important; }
  .p-sm-3 { padding: 16px !important; }
  .p-sm-4 { padding: 24px !important; }
  .p-sm-5 { padding: 48px !important; }

  .px-sm-0 { padding-left: 0 !important; padding-right: 0 !important; }
  .px-sm-1 { padding-left: 4px !important; padding-right: 4px !important; }
  .px-sm-2 { padding-left: 8px !important; padding-right: 8px !important; }
  .px-sm-3 { padding-left: 16px !important; padding-right: 16px !important; }
  .px-sm-4 { padding-left: 24px !important; padding-right: 24px !important; }
  .px-sm-5 { padding-left: 48px !important; padding-right: 48px !important; }

  .py-sm-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
  .py-sm-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
  .py-sm-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
  .py-sm-3 { padding-top: 16px !important; padding-bottom: 16px !important; }
  .py-sm-4 { padding-top: 24px !important; padding-bottom: 24px !important; }
  .py-sm-5 { padding-top: 48px !important; padding-bottom: 48px !important; }

  .m-sm-0 { margin: 0 !important; }
  .m-sm-1 { margin: 4px !important; }
  .m-sm-2 { margin: 8px !important; }
  .m-sm-3 { margin: 16px !important; }
  .m-sm-4 { margin: 24px !important; }
  .m-sm-5 { margin: 48px !important; }

  .mx-sm-0 { margin-left: 0 !important; margin-right: 0 !important; }
  .mx-sm-1 { margin-left: 4px !important; margin-right: 4px !important; }
  .mx-sm-2 { margin-left: 8px !important; margin-right: 8px !important; }
  .mx-sm-3 { margin-left: 16px !important; margin-right: 16px !important; }
  .mx-sm-4 { margin-left: 24px !important; margin-right: 24px !important; }
  .mx-sm-5 { margin-left: 48px !important; margin-right: 48px !important; }
  .mx-sm-auto { margin-left: auto !important; margin-right: auto !important; }

  .my-sm-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
  .my-sm-1 { margin-top: 4px !important; margin-bottom: 4px !important; }
  .my-sm-2 { margin-top: 8px !important; margin-bottom: 8px !important; }
  .my-sm-3 { margin-top: 16px !important; margin-bottom: 16px !important; }
  .my-sm-4 { margin-top: 24px !important; margin-bottom: 24px !important; }
  .my-sm-5 { margin-top: 48px !important; margin-bottom: 48px !important; }
}

/* Responsive spacing - md */
@media (min-width: 992px) {
  .p-md-0 { padding: 0 !important; }
  .p-md-1 { padding: 4px !important; }
  .p-md-2 { padding: 8px !important; }
  .p-md-3 { padding: 16px !important; }
  .p-md-4 { padding: 24px !important; }
  .p-md-5 { padding: 48px !important; }

  .px-md-0 { padding-left: 0 !important; padding-right: 0 !important; }
  .px-md-1 { padding-left: 4px !important; padding-right: 4px !important; }
  .px-md-2 { padding-left: 8px !important; padding-right: 8px !important; }
  .px-md-3 { padding-left: 16px !important; padding-right: 16px !important; }
  .px-md-4 { padding-left: 24px !important; padding-right: 24px !important; }
  .px-md-5 { padding-left: 48px !important; padding-right: 48px !important; }

  .m-md-0 { margin: 0 !important; }
  .m-md-1 { margin: 4px !important; }
  .m-md-2 { margin: 8px !important; }
  .m-md-3 { margin: 16px !important; }
  .m-md-4 { margin: 24px !important; }
  .m-md-5 { margin: 48px !important; }

  .mx-md-auto { margin-left: auto !important; margin-right: auto !important; }
}


/* =========================
   5. Text utilities
   ========================= */

.text-start { text-align: left !important; }
.text-end { text-align: right !important; }
.text-center { text-align: center !important; }

@media (min-width: 768px) {
  .text-sm-start { text-align: left !important; }
  .text-sm-end { text-align: right !important; }
  .text-sm-center { text-align: center !important; }
}

@media (min-width: 992px) {
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  .text-md-center { text-align: center !important; }
}

@media (min-width: 1200px) {
  .text-lg-start { text-align: left !important; }
  .text-lg-end { text-align: right !important; }
  .text-lg-center { text-align: center !important; }
}

.text-lowercase { text-transform: lowercase !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.fw-bold { font-weight: 700 !important; }
.fw-bolder { font-weight: bolder !important; }
.fw-normal { font-weight: 400 !important; }
.fw-light { font-weight: 300 !important; }
.fst-italic { font-style: italic !important; }
.fst-normal { font-style: normal !important; }

.text-decoration-none { text-decoration: none !important; }
.text-decoration-underline { text-decoration: underline !important; }
.text-decoration-line-through { text-decoration: line-through !important; }

.text-wrap { white-space: normal !important; }
.text-nowrap { white-space: nowrap !important; }
.text-break {
  word-wrap: break-word !important;
  word-break: break-word !important;
}


/* =========================
   6. Font size Bootstrap 5
   ========================= */

.fs-1 { font-size: 40px !important; }
.fs-2 { font-size: 32px !important; }
.fs-3 { font-size: 28px !important; }
.fs-4 { font-size: 24px !important; }
.fs-5 { font-size: 20px !important; }
.fs-6 { font-size: 16px !important; }


/* =========================
   7. Width / Height
   ========================= */

.w-25 { width: 25% !important; }
.w-50 { width: 50% !important; }
.w-75 { width: 75% !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

.h-25 { height: 25% !important; }
.h-50 { height: 50% !important; }
.h-75 { height: 75% !important; }
.h-100 { height: 100% !important; }
.h-auto { height: auto !important; }

.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

.vw-100 { width: 100vw !important; }
.vh-100 { height: 100vh !important; }
.min-vw-100 { min-width: 100vw !important; }
.min-vh-100 { min-height: 100vh !important; }


/* =========================
   8. Image
   ========================= */

.img-fluid {
  display: block;
  max-width: 100%;
  height: auto;
}

.img-thumbnail {
  padding: 4px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  max-width: 100%;
  height: auto;
}


/* =========================
   9. Border / Rounded
   ========================= */

.border { border: 1px solid #dee2e6 !important; }
.border-0 { border: 0 !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-end, .border-right { border-right: 1px solid #dee2e6 !important; }
.border-bottom { border-bottom: 1px solid #dee2e6 !important; }
.border-start, .border-left { border-left: 1px solid #dee2e6 !important; }

.border-top-0 { border-top: 0 !important; }
.border-end-0, .border-right-0 { border-right: 0 !important; }
.border-bottom-0 { border-bottom: 0 !important; }
.border-start-0, .border-left-0 { border-left: 0 !important; }

.rounded { border-radius: 4px !important; }
.rounded-0 { border-radius: 0 !important; }
.rounded-1 { border-radius: 2px !important; }
.rounded-2 { border-radius: 4px !important; }
.rounded-3 { border-radius: 6px !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 999px !important; }

.rounded-top {
  border-top-left-radius: 4px !important;
  border-top-right-radius: 4px !important;
}

.rounded-end {
  border-top-right-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
}

.rounded-bottom {
  border-bottom-right-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
}

.rounded-start {
  border-bottom-left-radius: 4px !important;
  border-top-left-radius: 4px !important;
}


/* =========================
   10. Background / Color
   ========================= */

.bg-primary { background-color: #337ab7; }
.bg-success { background-color: #5cb85c; }
.bg-info { background-color: #5bc0de; }
.bg-warning { background-color: #f0ad4e; }
.bg-danger { background-color: #d9534f; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #212529; }
.bg-white { background-color: #fff; }
.bg-transparent { background-color: transparent; }

.text-primary { color: #337ab7; }
.text-success { color: #3c763d; }
.text-info { color: #31708f; }
.text-warning { color: #8a6d3b; }
.text-danger { color: #a94442; }
.text-muted { color: #777; }
.text-white { color: #fff; }
.text-dark { color: #212529; }
.text-body { color: #333; }
.text-black-50 { color: rgba(0, 0, 0, .5); }
.text-white-50 { color: rgba(255, 255, 255, .5); }


/* =========================
   11. Position
   ========================= */

.position-static { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
}

.top-0 { top: 0 !important; }
.top-50 { top: 50% !important; }
.top-100 { top: 100% !important; }
.bottom-0 { bottom: 0 !important; }
.bottom-50 { bottom: 50% !important; }
.bottom-100 { bottom: 100% !important; }
.start-0, .left-0 { left: 0 !important; }
.start-50, .left-50 { left: 50% !important; }
.start-100, .left-100 { left: 100% !important; }
.end-0, .right-0 { right: 0 !important; }
.end-50, .right-50 { right: 50% !important; }
.end-100, .right-100 { right: 100% !important; }

.translate-middle {
  -webkit-transform: translate(-50%, -50%) !important;
  -ms-transform: translate(-50%, -50%) !important;
  transform: translate(-50%, -50%) !important;
}

.translate-middle-x {
  -webkit-transform: translateX(-50%) !important;
  -ms-transform: translateX(-50%) !important;
  transform: translateX(-50%) !important;
}

.translate-middle-y {
  -webkit-transform: translateY(-50%) !important;
  -ms-transform: translateY(-50%) !important;
  transform: translateY(-50%) !important;
}


/* =========================
   12. Overflow / Visibility
   ========================= */

.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll { overflow: scroll !important; }

.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }


/* =========================
   13. Shadow
   ========================= */

.shadow-none { box-shadow: none !important; }
.shadow-sm { box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important; }
.shadow { box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important; }


/* =========================
   14. Float / Clearfix
   ========================= */

.float-start, .pull-left { float: left !important; }
.float-end, .pull-right { float: right !important; }
.float-none { float: none !important; }

.clearfix:before,
.clearfix:after {
  display: table;
  content: " ";
}

.clearfix:after {
  clear: both;
}


/* =========================
   15. Buttons mapping
   Bootstrap 5 .btn-close
   ========================= */

.btn-close {
  box-sizing: content-box;
  width: 16px;
  height: 16px;
  padding: 4px;
  color: #000;
  background: transparent;
  border: 0;
  border-radius: 4px;
  opacity: .5;
  cursor: pointer;
  position: relative;
}

.btn-close:before,
.btn-close:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background-color: currentColor;
}

.btn-close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.btn-close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.btn-close:hover {
  opacity: .75;
}


/* =========================
   16. Form Bootstrap 5 names
   ========================= */

.form-control {
  box-sizing: border-box;
}

/* Bootstrap 5 .form-select dùng cho select */
.form-select {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-select:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.form-check {
  position: relative;
  display: block;
  margin-bottom: 10px;
}

.form-check-input {
  margin: 4px 0 0;
  line-height: normal;
}

.form-check-label {
  margin-bottom: 0;
  font-weight: normal;
  cursor: pointer;
}

.form-text {
  display: block;
  margin-top: 5px;
  color: #737373;
}

.form-label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: bold;
}


/* =========================
   17. Table Bootstrap 5 names
   ========================= */

.table-responsive {
  min-height: .01%;
  overflow-x: auto;
}

.table-borderless > tbody > tr > td,
.table-borderless > tbody > tr > th,
.table-borderless > tfoot > tr > td,
.table-borderless > tfoot > tr > th,
.table-borderless > thead > tr > td,
.table-borderless > thead > tr > th {
  border: 0;
}

.table-sm > tbody > tr > td,
.table-sm > tbody > tr > th,
.table-sm > tfoot > tr > td,
.table-sm > tfoot > tr > th,
.table-sm > thead > tr > td,
.table-sm > thead > tr > th {
  padding: 5px;
}


/* =========================
   18. Card Bootstrap 5 basic
   ========================= */

.card {
  position: relative;
  display: block;
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.card-body {
  padding: 15px;
}

.card-title {
  margin-top: 0;
  margin-bottom: 10px;
}

.card-subtitle {
  margin-top: -5px;
  margin-bottom: 10px;
  color: #777;
}

.card-text:last-child {
  margin-bottom: 0;
}

.card-header {
  padding: 10px 15px;
  margin-bottom: 0;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.card-footer {
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
}

.card-img-top {
  width: 100%;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}


/* =========================
   19. Badge Bootstrap 5 basic
   ========================= */

.badge {
  display: inline-block;
  min-width: 10px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  background-color: #777;
  border-radius: 10px;
}

.badge.bg-primary { background-color: #337ab7 !important; }
.badge.bg-success { background-color: #5cb85c !important; }
.badge.bg-info { background-color: #5bc0de !important; }
.badge.bg-warning { background-color: #f0ad4e !important; }
.badge.bg-danger { background-color: #d9534f !important; }
.badge.bg-dark { background-color: #212529 !important; }


/* =========================
   20. Ratio Bootstrap 5 basic
   ========================= */

.ratio {
  position: relative;
  width: 100%;
}

.ratio:before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-1x1 { --bs-aspect-ratio: 100%; }
.ratio-4x3 { --bs-aspect-ratio: 75%; }
.ratio-16x9 { --bs-aspect-ratio: 56.25%; }
.ratio-21x9 { --bs-aspect-ratio: 42.8571428571%; }


/* =========================
   21. Object fit
   ========================= */

.object-fit-contain { object-fit: contain !important; }
.object-fit-cover { object-fit: cover !important; }
.object-fit-fill { object-fit: fill !important; }
.object-fit-scale { object-fit: scale-down !important; }
.object-fit-none { object-fit: none !important; }


/* =========================
   22. Gap utilities
   Chỉ hoạt động tốt với flex/grid.
   ========================= */

.gap-0 { gap: 0 !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.gap-4 { gap: 24px !important; }
.gap-5 { gap: 48px !important; }

.row-gap-0 { row-gap: 0 !important; }
.row-gap-1 { row-gap: 4px !important; }
.row-gap-2 { row-gap: 8px !important; }
.row-gap-3 { row-gap: 16px !important; }
.row-gap-4 { row-gap: 24px !important; }
.row-gap-5 { row-gap: 48px !important; }

.column-gap-0 { column-gap: 0 !important; }
.column-gap-1 { column-gap: 4px !important; }
.column-gap-2 { column-gap: 8px !important; }
.column-gap-3 { column-gap: 16px !important; }
.column-gap-4 { column-gap: 24px !important; }
.column-gap-5 { column-gap: 48px !important; }


/* =========================
   23. Bootstrap 5 grid alias for Bootstrap 3
   Chỉ hỗ trợ class .col, .col-auto, .row-cols-*
   Không thay thế toàn bộ .col-md-*
   vì Bootstrap 3 đã có sẵn .col-xs/sm/md/lg-*.
   ========================= */

.col {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  float: left;
  width: 100%;
}

@media (min-width: 768px) {
  .col {
    width: auto;
    float: none;
    display: table-cell;
  }
}

.col-auto {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  float: left;
  width: auto;
}

.row-cols-1 > * { width: 100%; float: left; }
.row-cols-2 > * { width: 50%; float: left; }
.row-cols-3 > * { width: 33.33333333%; float: left; }
.row-cols-4 > * { width: 25%; float: left; }
.row-cols-5 > * { width: 20%; float: left; }
.row-cols-6 > * { width: 16.66666667%; float: left; }

@media (min-width: 768px) {
  .row-cols-sm-1 > * { width: 100%; float: left; }
  .row-cols-sm-2 > * { width: 50%; float: left; }
  .row-cols-sm-3 > * { width: 33.33333333%; float: left; }
  .row-cols-sm-4 > * { width: 25%; float: left; }
  .row-cols-sm-5 > * { width: 20%; float: left; }
  .row-cols-sm-6 > * { width: 16.66666667%; float: left; }
}

@media (min-width: 992px) {
  .row-cols-md-1 > * { width: 100%; float: left; }
  .row-cols-md-2 > * { width: 50%; float: left; }
  .row-cols-md-3 > * { width: 33.33333333%; float: left; }
  .row-cols-md-4 > * { width: 25%; float: left; }
  .row-cols-md-5 > * { width: 20%; float: left; }
  .row-cols-md-6 > * { width: 16.66666667%; float: left; }
}

@media (min-width: 1200px) {
  .row-cols-lg-1 > * { width: 100%; float: left; }
  .row-cols-lg-2 > * { width: 50%; float: left; }
  .row-cols-lg-3 > * { width: 33.33333333%; float: left; }
  .row-cols-lg-4 > * { width: 25%; float: left; }
  .row-cols-lg-5 > * { width: 20%; float: left; }
  .row-cols-lg-6 > * { width: 16.66666667%; float: left; }
}


/* =========================
   24. Bootstrap 5 offset alias
   Bootstrap 3 đã có .col-md-offset-*
   Bổ sung .offset-md-* theo Bootstrap 5
   ========================= */

.offset-0 { margin-left: 0; }
.offset-1 { margin-left: 8.33333333%; }
.offset-2 { margin-left: 16.66666667%; }
.offset-3 { margin-left: 25%; }
.offset-4 { margin-left: 33.33333333%; }
.offset-5 { margin-left: 41.66666667%; }
.offset-6 { margin-left: 50%; }
.offset-7 { margin-left: 58.33333333%; }
.offset-8 { margin-left: 66.66666667%; }
.offset-9 { margin-left: 75%; }
.offset-10 { margin-left: 83.33333333%; }
.offset-11 { margin-left: 91.66666667%; }

@media (min-width: 768px) {
  .offset-sm-0 { margin-left: 0; }
  .offset-sm-1 { margin-left: 8.33333333%; }
  .offset-sm-2 { margin-left: 16.66666667%; }
  .offset-sm-3 { margin-left: 25%; }
  .offset-sm-4 { margin-left: 33.33333333%; }
  .offset-sm-5 { margin-left: 41.66666667%; }
  .offset-sm-6 { margin-left: 50%; }
  .offset-sm-7 { margin-left: 58.33333333%; }
  .offset-sm-8 { margin-left: 66.66666667%; }
  .offset-sm-9 { margin-left: 75%; }
  .offset-sm-10 { margin-left: 83.33333333%; }
  .offset-sm-11 { margin-left: 91.66666667%; }
}

@media (min-width: 992px) {
  .offset-md-0 { margin-left: 0; }
  .offset-md-1 { margin-left: 8.33333333%; }
  .offset-md-2 { margin-left: 16.66666667%; }
  .offset-md-3 { margin-left: 25%; }
  .offset-md-4 { margin-left: 33.33333333%; }
  .offset-md-5 { margin-left: 41.66666667%; }
  .offset-md-6 { margin-left: 50%; }
  .offset-md-7 { margin-left: 58.33333333%; }
  .offset-md-8 { margin-left: 66.66666667%; }
  .offset-md-9 { margin-left: 75%; }
  .offset-md-10 { margin-left: 83.33333333%; }
  .offset-md-11 { margin-left: 91.66666667%; }
}

@media (min-width: 1200px) {
  .offset-lg-0 { margin-left: 0; }
  .offset-lg-1 { margin-left: 8.33333333%; }
  .offset-lg-2 { margin-left: 16.66666667%; }
  .offset-lg-3 { margin-left: 25%; }
  .offset-lg-4 { margin-left: 33.33333333%; }
  .offset-lg-5 { margin-left: 41.66666667%; }
  .offset-lg-6 { margin-left: 50%; }
  .offset-lg-7 { margin-left: 58.33333333%; }
  .offset-lg-8 { margin-left: 66.66666667%; }
  .offset-lg-9 { margin-left: 75%; }
  .offset-lg-10 { margin-left: 83.33333333%; }
  .offset-lg-11 { margin-left: 91.66666667%; }
}


/* =========================
   25. Bootstrap 5 columns alias .col-*
   Lưu ý: Bootstrap 3 có .col-xs-* cho mobile.
   Bổ sung .col-* để dùng kiểu Bootstrap 5 mobile-first.
   ========================= */

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  box-sizing: border-box;
}

/* .col-* của Bootstrap 5 chạy từ mobile */
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
  position: relative;
  min-height: 1px;
  float: left;
  padding-left: 15px;
  padding-right: 15px;
}

.col-12 { width: 100%; }
.col-11 { width: 91.66666667%; }
.col-10 { width: 83.33333333%; }
.col-9 { width: 75%; }
.col-8 { width: 66.66666667%; }
.col-7 { width: 58.33333333%; }
.col-6 { width: 50%; }
.col-5 { width: 41.66666667%; }
.col-4 { width: 33.33333333%; }
.col-3 { width: 25%; }
.col-2 { width: 16.66666667%; }
.col-1 { width: 8.33333333%; }


/* =========================
   26. Helpers thường gặp khi copy code Bootstrap 5
   ========================= */

.ratio iframe,
.ratio embed,
.ratio object,
.ratio video {
  border: 0;
}

.stretched-link:after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.user-select-all { user-select: all !important; }
.user-select-auto { user-select: auto !important; }
.user-select-none { user-select: none !important; }

.pe-none { pointer-events: none !important; }
.pe-auto { pointer-events: auto !important; }

.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: .25 !important; }
.opacity-50 { opacity: .5 !important; }
.opacity-75 { opacity: .75 !important; }
.opacity-100 { opacity: 1 !important; }

.z-0 { z-index: 0 !important; }
.z-1 { z-index: 1 !important; }
.z-2 { z-index: 2 !important; }
.z-3 { z-index: 3 !important; }


/* =========================
   27. Lưu ý không map JavaScript
   =========================
   File này chỉ hỗ trợ CSS class.
   Các component cần JS của Bootstrap 5 như modal, dropdown, collapse, offcanvas
   không thể chạy đúng chỉ bằng CSS trên Bootstrap 3.
*/
