div#carousel-item-main {
   background-color: white;
}

body#page-site-index {
   background: #EFF9FF !important;
}

nav.navbar.fixed-top.navbar-light.navbar-expand {
   background: #EFF9FF !important;
}

@media (max-width: 768px) {
   .sticky-top {
      position: static;
   }

   #navbar {
      position: fixed;
      bottom: 0;
      top: unset !important;
      z-index: 10;
      padding: 0 !important;
   }

   #navbar .btn {
      border-radius: 0;
      border: none;
      height: 100%;
      background-color: #FFFFFF;
      font-size: 14px !important;
   }

   #navbar .btn.active {
      color: #f6657c;
      font-weight: bold;
      border-top: 4px #f6657c solid;
   }
}

div#navbar {
   margin-top: 20px;
}

h5#purchaseModalLabel {
   color: #FF5F7A;
   font-family: "Roboto";
   font-size: 24px;
   font-weight: 700;
}

p#contextModal {
   color: #000;
   font-family: 'ROBOTO';
   font-size: 15px;
   font-weight: 400;
}

button#submitActiveModal {
   height: 45px;
   width: 139px;
   border-radius: 15px;
   font-weight: bold;
}

.card {
   background-color: #fff;
   border-radius: 8px;
   transition: all 0.3s ease;
}

.card--title {
   margin: 0;
   font-size: 18px;
   font-weight: bold;
}

.btn.btn-outline-primary {
   background-color: #fff;
   border: 1px solid #ff9999;
   padding: 8px 9px;
   color: #ff6666;
   border-radius: 20px;
   transition: all 0.3s ease;
}

.mt-3.ml-auto.d-inline-block {
   display: inline-block;
   text-decoration: none;
}

.card:hover {
   transform: translateY(-5px);
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
   border-color: #ff9999;
}

.btn.btn-outline-primary:hover {
   background-color: #ff9999;
   color: #fff;
   border-color: #ff6666;
}

p.mb-1.fw-bold {
   color: #414042;
   font-family: Roboto;
   font-size: 16px;
   font-style: normal;
   font-weight: 600 !important;
   line-height: normal;
}

a.tryLeaningHt {
   color: #FFFFFF;
   font-weight: 700;
   font-family: Roboto;
}

a.btn-lg.btn-primary.w-100.h-100.py-3.mt-3 {
   text-decoration: none;
   text-align: center;
   font-weight: bold;
   background: #233B74;
   outline: none;
   box-shadow: none;
}

button.btn-lg.btn-danger.py-3.w-100 {
   outline: none;
   box-shadow: none;
}

.fab {
   position: fixed;
   bottom: 150px;
   right: 5px;
   width: 50px;
   height: 50px;
   background-color: #d41e25;
   color: white;
   border-radius: 50%;
   border: none;
   font-size: 15px;
   cursor: pointer;
   z-index: 1000;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: bottom 0.3s ease, right 0.3s ease;
}

.fab-menu {
   position: fixed;
   bottom: 100px;
   right: 20px;
   border-radius: 10px;
   padding: 15px;
   width: 50%;
   display: none;
   z-index: 999;
}

.fab-menu.show {
   display: block;
}

.fab-menu a.btn-lg {
   display: block;
   text-align: center;
}

.fab:hover {
   animation: bounce 1.5s infinite;
}

@keyframes pulse {
   0% {
      box-shadow: 0 0 0 0 rgba(35, 59, 116, 0.5);
   }

   70% {
      box-shadow: 0 0 0 15px rgba(35, 59, 116, 0);
   }

   100% {
      box-shadow: 0 0 0 0 rgba(35, 59, 116, 0);
   }
}

.fab::after {
   content: "";
   position: absolute;
   width: 100%;
   height: 100%;
   border-radius: 50%;
   background: rgba(35, 59, 116, 0.4);
   animation: ripple 1.5s infinite;
   z-index: -1;
}

@keyframes ripple {
   0% {
      transform: scale(1);
      opacity: 1;
   }

   100% {
      transform: scale(2.5);
      opacity: 0;
   }
}

@media (max-width: 767px) {
   .fab {
      bottom: 110px;
      right: 10px;
      width: 45px;
      height: 45px;
   }

   .fab-menu {
      bottom: 70px;
      right: 10px;
      width: 54%;
   }

   #chat-launcher {
      position: fixed;
      bottom: 20px;
      right: 10px;
      top: 88%;
      background: #2684ff;
      color: white;
      width: 50px;
      height: 50px;
      font-size: 24px;
      border-radius: 50%;
      text-align: center;
      line-height: 50px;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      z-index: 9999;
   }

   #chat-toggle-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 55px;
      height: 55px;
      background-color: #2684ff;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      z-index: 9999;
   }

   #chatbot-widget {
      position: fixed;
      bottom: 90px;
      right: 20px;
      width: 360px;
      border: 1px solid #ccc;
      border-radius: 10px;
      overflow: hidden;
      background: #fff;
      font-family: sans-serif;
      z-index: 9998;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
   }

   .chat-header {
      background: #007bff;
      color: white;
      padding: 10px;
      font-weight: bold;
   }

   .chat-body {
      max-height: 300px;
      overflow-y: auto;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
   }

   .chat-msg {
      padding: 10px;
      border-radius: 8px;
      max-width: 80%;
   }

   .chat-msg.bot {
      background: #f1f1f1;
      align-self: flex-start;
   }

   .chat-msg.user {
      background: #d0e7ff;
      align-self: flex-end;
   }

   .chat-options button {
      margin: 5px 5px 0 0;
      padding: 8px 12px;
      border: none;
      background: #e9e9e9;
      border-radius: 5px;
      cursor: pointer;
   }

   .chat-input {
      display: flex;
      border-top: 1px solid #ddd;
   }

   .chat-input input {
      flex: 1;
      border: none;
      padding: 10px;
   }

   .chat-input button {
      background: #007bff;
      color: white;
      border: none;
      padding: 10px 14px;
      cursor: pointer;
   }

   #chat-launcher {
      position: fixed;
      bottom: 20px;
      right: 5px;
      background: #2684ff;
      color: white;
      width: 50px;
      height: 50px;
      font-size: 24px;
      border-radius: 50%;
      text-align: center;
      line-height: 50px;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      z-index: 9999;
   }

   #chatbox {
      position: fixed;
      bottom: 80px;
      right: 50px;
      width: 360px;
      background: white;
      border-radius: 12px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
      font-family: sans-serif;
      z-index: 9998;
      display: flex;
      flex-direction: column;
      overflow: hidden;
   }

   .chat-header {
      display: flex;
      align-items: center;
      padding: 10px;
      background: #007bff;
      color: white;
   }

   .chat-header .avatar {
      width: 35px;
      height: 35px;
      border-radius: 50%;
      margin-right: 10px;
   }

   .bot-name {
      font-weight: bold;
   }

   .chat-close {
      margin-left: auto;
      cursor: pointer;
   }

   .chat-body {
      padding: 10px;
      max-height: 300px;
      overflow-y: auto;
   }

   .msg {
      margin: 5px 0;
      padding: 10px;
      border-radius: 8px;
      background: #f1f1f1;
   }

   .msg.bot {
      background: #f0f0f0;
   }

   .quick-buttons button {
      margin: 5px 5px 0 0;
      padding: 6px 12px;
      border: none;
      background: #eee;
      border-radius: 20px;
      cursor: pointer;
   }

   .chat-footer {
      display: flex;
      border-top: 1px solid #ddd;
   }

   .chat-footer input {
      flex: 1;
      padding: 10px;
      border: none;
   }

   .chat-footer button {
      background: #007bff;
      color: white;
      border: none;
      padding: 10px 12px;
      cursor: pointer;
   }

   .powered {
      text-align: center;
      font-size: 12px;
      padding: 6px;
      color: #888;
      background: #f9f9f9;
   }

   @keyframes blink {
      0% {
         opacity: 1;
      }

      50% {
         opacity: 0.4;
      }

      100% {
         opacity: 1;
      }
   }

   .msg.bot:contains("Đang phản hồi") {
      animation: blink 1s infinite;
   }

   .avatar-emoji {
      font-size: 28px;
      width: 32px;
      height: 32px;
      text-align: center;
      line-height: 32px;
      border-radius: 50%;
      background-color: #e1ecf4;
   }
}

@media (min-width: 768px) and (max-width: 1024px) {
   .fab {
      bottom: 100px;
      right: 20px;
      width: 50px;
      height: 50px;
   }

   .card-custom {
      display: none;
   }

   .fab-menu {
      bottom: 90px;
      right: 20px;
      width: 60%;
   }
}

.modal-content {
   border-radius: 30px;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
   transition: all 0.3s ease;
}

.modal.fade .modal-dialog {
   transform: translate(0, 50px);
}

.modal.show .modal-dialog {
   transform: translate(0, 0);
}

.modal-header {
   border-bottom: none;
   padding: 20px 30px;
   position: relative;
}

.modal-title {
   font-size: 24px;
   color: #333;
   text-align: center;
   width: 100%;
}

.modal-header .close {
   font-size: 30px;
   position: absolute;
   right: 20px;
   top: 15px;
   color: #666;
   opacity: 0.8;
   transition: opacity 0.3s ease;
}

.modal-header .close:hover {
   opacity: 1;
}

.modal-body {
   padding: 20px 40px;
}

.modal-body p {
   font-size: 16px;
   color: #555;
   line-height: 1.6;
}

.modal-body p small {
   font-size: 14px;
   display: block;
   margin-top: 5px;
}

.modal-body p small a {
   color: #d41e25;
   padding: 2px 8px;
   border-radius: 5px;
   transition: background-color 0.3s ease;
}

.modal-body p small a:hover {
   background-color: #e9ecef;
}

#couponForm {
   margin-top: 20px;
}

#coupon_code {
   font-size: 18px;
   padding: 12px;
   border-radius: 10px;
   border: 1px solid #ced4da !important;
   box-shadow: none !important;
   outline: none !important;
   text-align: center;
   height: 50px;
   transition: border-color 0.3s ease;
}

#coupon_code:focus {
   border-color: #FFFFFF;
   box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
   outline: none;
}

.g-recaptcha {
   margin: 20px auto !important;
   display: flex;
   justify-content: center;
}

#submitActiveModal {
   font-size: 15px;
   background-color: #3333ff;
   border: none;
   transition: background-color 0.3s ease, transform 0.2s ease;
}

#submitActiveModal:hover {
   background-color: #3333ff;
   transform: translateY(-2px);
}

#coupon-error {
   font-size: 14px;
   padding: 10px;
   border-radius: 8px;
}

@media (min-width: 992px) {
   .modal-dialog {
      max-width: 650px;
   }

   .modal-content {
      min-width: 650px;
   }
}

.col-12.col-lg-7.py-3.hide-scrollbar {
   height: 80vh;
}

@media (min-width: 992px) {
   .responsive-img {
      width: 150px;
      max-height: 150px;
      object-fit: cover;
      transition: opacity 0.3s;
   }

   #vnpayMethod {
      display: block;
   }

   button.btn-lg.btn-danger.py-3.w-100 {
      font-size: 18px;
      font-weight: bold;
   }

   a.btn-lg.btn-primary.w-100.h-100.py-3.mt-3.hidden.d-lg-block {
      font-size: 18px;
      font-weight: bold;
   }

   h5.card-title.text-decoration-none {
      font-size: 20px;
      color: #ffffff;
   }

   .text-decoration-none {
      font-size: 15px;
   }

   a.text-decoration-none.d-block {
      color: #343a40;
      font-size: 16px;
      font-weight: bold;
   }

   .col-12.col-lg-7.py-3.hide-scrollbar {
      height: 80vh;
   }

   h5.card-title {
      color: #343a40;
      font-size: 20px;
      font-weight: bold;
   }

   i.fa.fa-lock.me-1 {
      float: inline-end;
   }

   i.fa.fa-unlock.ghidanhkd {
      float: inline-end;
      color: green;
   }

   .swal-title-custom {
      font-size: 20px !important;
   }

   .swal-text-custom {
      font-size: 15px !important;
   }

   .swal-confirm-button,
   .swal-cancel-button {
      font-size: 15px !important;
   }

   p.mb-0.text-muted.small {
      font-size: 14px;
   }
}

@media (max-width: 991px) and (min-width: 768px) {
   .modal-dialog {
      max-width: 90%;
   }

   .modal-content {
      min-width: 0;
      border-radius: 25px;
   }

   .modal-title {
      font-size: 22px;
   }

   .modal-body {
      padding: 20px 30px;
   }

   .modal-body p {
      font-size: 15px;
   }

   #coupon_code {
      font-size: 16px;
      padding: 10px;
   }

   .g-recaptcha {
      transform: scale(0.9);
      transform-origin: center;
   }

   #submitActiveModal {
      width: 60%;
      font-size: 16px;
   }
}

/* Responsive: Mobile (dưới 768px) */
@media (max-width: 767px) {
   .modal-dialog {
      margin: 0 auto;
      max-width: 90% !important;
   }

   a#lang-menu-toggle {
      display: none;
   }

   li.nav-item {
      display: none;
   }

   span.login.pl-2 {
      font-size: 12px;
   }

   .list-group-item.active {
      z-index: 2;
      color: #fff !important;
   }

   .list-group-item {
      z-index: 2;
      color: #fff !important;
   }

   .list-group-item.active {
      outline: none !important;
      box-shadow: none !important;
   }

   .modal-content {
      min-width: auto !important;
      border-radius: 20px !important;
      padding: 15px !important;
   }

   .modal-header {
      padding: 10px 15px;
   }

   .modal-title {
      font-size: 18px;
   }

   .modal-header .close {
      font-size: 24px;
      right: 0;
      top: 0;
   }

   h5#purchaseModalLabel {
      font-family: "Roboto";
      font-size: 20px;
   }

   .modal-body {
      padding: 10px 15px;
   }

   .modal-body p {
      font-size: 14px;
   }

   .modal-body p small {
      font-size: 12px;
   }

   #couponForm {
      margin-top: 10px;
   }

   #coupon_code {
      font-size: 16px;
      padding: 0px;
      border-radius: 20px;
      width: 80%;
      height: 60px;
      margin-left: 10%;
   }

   .g-recaptcha {
      transform: scale(0.85);
      transform-origin: center;
   }

   #submitActiveModal {
      width: 100%;
      font-size: 16px;
      padding: 12px;
      border-radius: 8px;
   }

   #coupon-error {
      font-size: 13px;
      padding: 8px;
   }

   a.btn-lg.btn-primary.w-100.h-100.py-3.d-lg-none {
      text-decoration: none;
      font-size: 13px;
   }

   .card-title {
      font-size: 15px;
   }

   p.mb-1.fw-bold {
      font-size: 13px;
   }

   .col-5.col-lg-3.text-muted {
      font-size: 13px;
   }

   a.btn.btn-sm.btn-outline-primary {
      width: 98px;
      height: 35px;
      border-radius: 5px;
   }

   a.text-decoration-none.d-block {
      color: #343a40;
      font-size: 13px;
      font-weight: bold;
   }

   .search-wrapper {
      display: none !important;
      justify-content: flex-start;
      margin-left: 0%;
      margin-top: 25px;
      margin-bottom: 20px;
   }

   button#eventToggleBtn {
      position: fixed !important;
      bottom: 20px !important;
      right: 10px !important;
      top: 70% !important;
      z-index: 1050 !important;
      background: #f6657c !important;
   }

   .custom-border-btn {
      color: red;
      height: 40px !important;
      line-height: 37px !important;
      border: 1px solid red !important;
      border-radius: 10px !important;
      font-family: 'Roboto';
      transition: all 0.2s ease;
   }
}

.card-body .btn-danger {
   border: none !important;
   box-shadow: none !important;
}

.card-body .btn-danger:focus {
   outline: none !important;
   box-shadow: none !important;
}

.btn-outline-primary.active,
.btn-outline-primary:active,
.btn-outline-primary:focus {
   border-color: #ffffff !important;
   box-shadow: none !important;
}

.popover-region-toggle *,
.popover-region-toggle:focus,
.popover-region-toggle:focus-visible,
.popover-region-toggle *:focus {
   outline: none !important;
   box-shadow: none !important;
}

#user-menu-toggle:focus,
#user-menu-toggle:focus-visible,
.dropdown-item:focus,
.dropdown-item:focus-visible,
.carousel-navigation-link:focus,
.carousel-navigation-link:focus-visible,
.btn:focus,
.btn:focus-visible {
   outline: none !important;
   box-shadow: none !important;
}

.col-9 a:focus,
.col-9 a:focus-visible,
.col-9 a:active {
   outline: none !important;
   box-shadow: none !important;
}

.hide-scrollbar {
   overflow-y: auto;
   scrollbar-width: none;
   -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
   display: none;
}

.card.mb-3.p-3.text-center.hidden.d-lg-block {
   height: 400px;
}

#fabmenuRes i {
   margin-right: 8px;
}

#fabmenuRes:hover {
   background-color: #c82333;
   transition: background-color 0.3s ease;
}

@media (max-width: 430px) {
   #fabmenuRes {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      min-width: 200px;
      text-align: center;
      border: 1px solid #ffffff;
   }
}

@media only screen and (max-width: 390px) {
   #fabmenuRes {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      min-width: 180px;
      text-align: center;
      border: 1px solid #ffffff;
   }
}

@media (min-width: 992px) and (max-width: 1199px) {
   #fabmenuRes {
      display: none;
   }

   button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
      font-size: 15px;
   }

   button.py-3.w-100.btn.btn-outline-primary.btn-lg {
      font-size: 15px;
   }

   h5.card-title.text-decoration-none {
      font-size: 15px;
   }

   .text-decoration-none {
      font-size: 13px;
   }

   .circle {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      border: 2px solid #dc3545;
      color: #dc3545;
      font-size: 14px;
   }
}

.popover-region-toggle.nav-link.icon-no-margin {
   outline: none !important;
   box-shadow: none !important;
}

/* Small laptop (13 inch) */
@media (min-width: 1024px) and (max-width: 1439px) {
   .pie-chart canvas {
      max-width: 200px !important;
      max-height: 200px !important;
   }

   .card-body h5 {
      font-size: 16px;
   }

   .card-body p {
      font-size: 14px;
   }

   .circle {
      width: 34px;
      height: 34px;
      font-size: 13px;
   }

   .card-title {
      font-size: 14px;
   }

   .card .col-9 {
      padding-right: 0;
   }

   .card .col-3 svg {
      width: 28px;
      height: 28px;
   }

   .text-decoration-none {
      font-size: 12px;
   }

   button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
      font-size: 15px;
   }

   button.py-3.w-100.btn.btn-outline-primary.btn-lg {
      font-size: 15px;
   }

   button.btn-lg.btn-danger.py-3.w-100 {
      font-size: 13px;
   }

   a.btn-lg.btn-primary.w-100.h-100.py-3.mt-3.hidden.d-lg-block {
      font-size: 13px;
   }

   p.mb-1.fw-bold {
      font-size: 15px;
   }

   h6.fw-bold.mb-1 {
      font-size: 15px;
   }
}

/* Ẩn Tập tin riêng tư */
.usermenu .dropdown-menu a[href*="user/files.php"] {
   display: none !important;
}

/* Ẩn Điểm */
.usermenu .dropdown-menu a[href*="grade/report"] {
   display: none !important;
}

/* Ẩn Lịch */
.usermenu .dropdown-menu a[href*="calendar"] {
   display: none !important;
}

/* Ẩn Báo cáo */
.usermenu .dropdown-menu a[href*="report"] {
   display: none !important;
}

a[href="https://topimaster.fexitech.com/user/preferences.php"] {
   display: none !important;
}

#accessibilitysettings-control {
   display: none !important;
}

h6.fw-bold.mb-1 {
   margin-left: 20px;
}

@media (max-width: 1024px) {
   #navbar {
      position: fixed !important;
      bottom: 0;
      top: auto !important;
      width: 100%;
      z-index: 9999;
      background-color: white;
      padding: 0.5rem;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
   }

   #navbar nav {
      flex-direction: row !important;
      justify-content: space-around;
      align-items: center;
   }

   #navbar a {
      margin-bottom: 0 !important;
      padding: 0 4px;
   }

   #navbar button {
      font-size: 0.9rem;
      padding: 0.5rem;
   }

   .search-form {
      display: none !important;
   }

   .btn-outline-primary,
   .btn-outline-primary:hover,
   .btn-outline-primary:focus,
   .btn-outline-primary:active {
      border: none !important;
      border-radius: 0 !important;
      box-shadow: none !important;
   }

   .custom-button-style {
      border: none !important;
      border-radius: 0 !important;
   }

   body,
   html {
      overflow-y: hidden;
   }

   .search-wrapper {
      display: none;
   }

   button#eventToggleBtn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      top: 75%;
      width: 50px;
      height: 50px !important;
      z-index: 1050;
      background: #f6657c !important;
   }
}

.card-wrapper {
   position: relative;
}

.submenu {
   position: absolute;
   top: 50%;
   left: 0;
   z-index: 1000;
   background: white;
   width: 100%;
   border-radius: 0.5rem;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   display: none;
}

.title_sub {
   color: #FFFFFF;
   font-size: 20px;
   font-weight: bold;
   margin-left: 30px;
}

.card-custom {
   background-color: #ff5d7c;
   border-radius: 20px;
   color: white;
   padding: 20px 20px;
   display: flex;
   align-items: center;
}

.arrow-icon {
   margin-left: 200px;
}

.icon-text {
   display: flex;
   align-items: center;
}

.icon-text img {
   width: 36px;
   height: 36px;
   margin-right: 12px;
}

.arrow-icon {
   font-size: 1.5rem;
   color: white;
}

.text-small {
   font-size: 0.9rem;
   opacity: 0.9;
}

.text-bold {
   font-weight: 600;
}

article.card.mb-3.bg-danger.text-white {
   border-radius: 20px;
}

.card {
   transition: background-color 0.3s ease;
}

.card:hover {
   transform: none !important;
}

.custom-footer-space {
   padding-bottom: 60px !important;
}

#loading-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(255, 255, 255, 0.8);
   display: none;
   justify-content: center;
   align-items: center;
   z-index: 9999;
}

.spinner {
   border: 4px solid #ccc;
   border-top: 4px solid #007bff;
   border-radius: 50%;
   width: 40px;
   height: 40px;
   animation: spin 0.8s linear infinite;
}

@keyframes spin {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(360deg);
   }
}

a[href*="my/courses.php"] {
   display: none !important;
}

@media (max-width: 768px) {
   .circle {
      width: 32px;
      height: 32px;
      font-size: 12px;
   }

   .card-body h5 {
      font-size: 13px;
   }
}

.submenu.p-3 {
   border-radius: 20px;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible {
   outline: none !important;
   box-shadow: none !important;
   border-color: transparent !important;
}

.icon-text {
   display: flex;
   align-items: center;
   gap: 16px;
   flex-wrap: wrap;
}

.icon-text img {
   width: 36px;
   height: 36px;
   flex-shrink: 0;
}

.text-block {
   display: flex;
   flex-direction: column;
   flex-grow: 1;
}

.text-small {
   font-size: 16px;
   color: #ffffff;
   font-weight: bold;
}

.text-bold {
   font-size: 18px;
   font-weight: bold;
   color: #ffffff;
}

.arrow-icon {
   font-size: 18px;
   color: #ffffff;
   margin-left: 100px;
   flex-shrink: 0;
   font-weight: bold;
   text-decoration: none;
}

@media (max-width: 768px) {
   .icon-text {
      flex-direction: column;
      align-items: flex-start;
   }

   .arrow-icon {
      margin-left: 0;
      margin-top: 8px;
      align-self: flex-end;
   }
}

@media (max-width: 1280px) {
   .icon-text {
      flex-wrap: wrap;
      gap: 10px;
   }

   .icon-text img {
      width: 32px;
      height: 32px;
   }

   .text-small {
      font-size: 14px;
   }

   .text-bold {
      font-size: 12px;
   }

   .arrow-icon {
      font-size: 16px;
      margin-left: 50px;
      align-self: flex-end;
   }

   .scrollable-sidebar {
      max-height: calc(100vh - 80px);
      overflow-y: auto;
      padding-right: 5px;
      scrollbar-width: none;
      -ms-overflow-style: none;
   }

   .scrollable-sidebar::-webkit-scrollbar {
      display: none;
   }

   p.mb-1.fw-bold {
      font-size: 15px;
   }

   button.py-3.w-100.btn.btn-outline-primary.btn-lg {
      font-size: 17px !important;
   }

   button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
      font-size: 17px !important;
   }

   .card-title {
      font-size: 12px;
      font-weight: 700;
   }

   .card-body h5 {
      font-size: 16px;
   }

   .circle {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      border: 2px solid #D5DCE5;
      color: black;
      font-size: 12px;
   }

   .card-body p {
      font-size: 12px;
   }

   span.fw-semibold {
      font-size: 12px;
   }

   span.fw-bold.text-muted {
      font-size: 15px;
   }

   .col-6.text-end {
      font-size: 12px;
   }

   .logo_lms {
      width: 200px !important;
      height: 80px !important;
      border-radius: 5px;
      margin-top: 0px;
   }

   .primary-navigation {
      display: none;
   }

   .responsive-image {
      width: 90px !important;
      height: 90px !important;
   }

   h5.mb-0 {
      font-size: 18px;
   }

   span.h6 {
      font-size: 13px;
   }

   a.text-decoration-none.fw-bold.text-dark {
      font-size: 15px;
   }

   svg.bi.bi-check-circle {
      width: 35px;
      height: 35px;
   }

   img.res_mobile {
      width: 35px;
      height: 35px;
   }

   img.res_icon {
      width: 35px;
      height: 35px;
   }
}

@media (max-width: 576px) {
   .responsive-image {
      width: 100% !important;
      height: auto !important;
      max-width: 100% !important;
   }
}

button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
   font-size: 22px;
   font-weight: 500;
}

button.py-3.w-100.btn.btn-outline-primary.btn-lg {
   font-size: 22px;
   font-weight: 400;
}

@media (min-width: 1200px) {
   button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
      font-size: 18px !important;
      font-weight: 500;
   }

   button.py-3.w-100.btn.btn-outline-primary.btn-lg {
      font-size: 18px;
      font-weight: 400;
   }

   .logo_lms {
      width: 180px !important;
      height: 80px !important;
      border-radius: 5px;
      margin-top: 15px;
   }

   .card-body h5 {
      font-size: 17px;
      font-family: Poppins, sans-serif;
   }

   .arrow-icon {
      margin-left: 0;
   }

   .text-bold {
      font-size: 15px;
      font-weight: bold;
      color: #ffffff;
   }

   a.text-decoration-none.fw-bold.text-dark {
      font-size: 15px;
   }

   article.card.mb-2.bg-danger.text-white {
      border-radius: 20px;
   }

   p.mb-2 {
      font-size: 13px;
   }

   .circle {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      border: 2px solid #D5DCE5;
      color: black;
      font-size: 12px;
   }

   .search-wrapper {
      display: flex;
      justify-content: flex-start;
      margin-left: 38%;
      margin-top: 25px;
      margin-bottom: 20px;
   }
}

@media (min-width: 1400px) {
   .circle {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      border: 2px solid #D5DCE5;
      color: black;
      font-size: 15px;
   }

   .search-wrapper {
      display: flex;
      justify-content: flex-start;
      margin-left: 47%;
      margin-top: 25px;
      margin-bottom: 20px;
   }

   button.active.py-3.w-100.btn.btn-outline-primary.btn-lg {
      font-size: 22px !important;
      font-weight: 600;
      font-family: Poppins, sans-serif;
   }

   button.py-3.w-100.btn.btn-outline-primary.btn-lg {
      font-size: 22px;
      font-weight: 500;
      font-family: Poppins, sans-serif;
   }

   .logo_lms {
      width: 250px !important;
      height: 100px !important;
      border-radius: 5px;
      margin-top: 15px;
   }

   p.mb-2 {
      font-size: 15px;
   }

   h5.card-title.text-dark.fw-bold {
      color: #343a40 !important;
      font-size: 18px;
   }

   a.btn.btn-outline-primary.event_Lms {
      width: 160px;
   }

   #chat-toggle-btn {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 55px;
      height: 55px;
      background-color: #2684ff;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      z-index: 9999;
   }

   #chatbot-widget {
      position: fixed;
      bottom: 90px;
      right: 20px;
      width: 360px;
      border: 1px solid #ccc;
      border-radius: 10px;
      overflow: hidden;
      background: #fff;
      font-family: sans-serif;
      z-index: 9998;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
   }

   .chat-header {
      background: #007bff;
      color: white;
      padding: 10px;
      font-weight: bold;
   }

   .chat-body {
      max-height: 300px;
      overflow-y: auto;
      padding: 10px;
      display: flex;
      flex-direction: column;
      gap: 6px;
   }

   .chat-msg {
      padding: 10px;
      border-radius: 8px;
      max-width: 80%;
   }

   .chat-msg.bot {
      background: #f1f1f1;
      align-self: flex-start;
   }

   .chat-msg.user {
      background: #d0e7ff;
      align-self: flex-end;
   }

   .chat-options button {
      margin: 5px 5px 0 0;
      padding: 8px 12px;
      border: none;
      background: #e9e9e9;
      border-radius: 5px;
      cursor: pointer;
   }

   .chat-input {
      display: flex;
      border-top: 1px solid #ddd;
   }

   .chat-input input {
      flex: 1;
      border: none;
      padding: 10px;
   }

   .chat-input button {
      background: #007bff;
      color: white;
      border: none;
      padding: 10px 14px;
      cursor: pointer;
   }

   #chat-launcher {
      position: fixed;
      bottom: 20px;
      right: 5px;
      background: #2684ff;
      color: white;
      width: 50px;
      height: 50px;
      font-size: 20px;
      border-radius: 50%;
      text-align: center;
      line-height: 50px;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      z-index: 9999;
   }

   #chatbox {
      position: fixed;
      bottom: 80px;
      right: 20px;
      width: 360px;
      background: white;
      border-radius: 12px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
      font-family: sans-serif;
      z-index: 9998;
      display: flex;
      flex-direction: column;
      overflow: hidden;
   }

   .chat-header {
      display: flex;
      align-items: center;
      padding: 10px;
      background: #007bff;
      color: white;
   }

   .chat-header .avatar {
      width: 35px;
      height: 35px;
      border-radius: 50%;
      margin-right: 10px;
   }

   .bot-name {
      font-weight: bold;
   }

   .chat-close {
      margin-left: auto;
      cursor: pointer;
   }

   .chat-body {
      padding: 10px;
      max-height: 300px;
      overflow-y: auto;
   }

   .msg {
      margin: 5px 0;
      padding: 10px;
      border-radius: 8px;
      background: #f1f1f1;
   }

   .msg.bot {
      background: #f0f0f0;
   }

   .quick-buttons button {
      margin: 5px 5px 0 0;
      padding: 6px 12px;
      border: none;
      background: #eee;
      border-radius: 20px;
      cursor: pointer;
   }

   .chat-footer {
      display: flex;
      border-top: 1px solid #ddd;
   }

   .chat-footer input {
      flex: 1;
      padding: 10px;
      border: none;
   }

   .chat-footer button {
      background: #007bff;
      color: white;
      border: none;
      padding: 10px 12px;
      cursor: pointer;
   }

   .powered {
      text-align: center;
      font-size: 12px;
      padding: 6px;
      color: #888;
      background: #f9f9f9;
   }

   @keyframes blink {
      0% {
         opacity: 1;
      }

      50% {
         opacity: 0.4;
      }

      100% {
         opacity: 1;
      }
   }

   .msg.bot:contains("Đang phản hồi") {
      animation: blink 1s infinite;
   }

   .avatar-emoji {
      font-size: 28px;
      width: 32px;
      height: 32px;
      text-align: center;
      line-height: 32px;
      border-radius: 50%;
      background-color: #e1ecf4;
   }

   img.img-fluid.border-radius.responsive-image {
      width: 100px;
      height: 100px;
   }
}

/* Fix scroll cut-off in iOS Safari */
@supports (-webkit-touch-callout: none) {
  .custom-footer-space {
    padding-bottom: 50px !important;
  }
}