body{
  padding-top: 60px;
  overflow-x: hidden; /* Ngăn scroll ngang */
}
.absolute {
  position: absolute;
}
/* Đảm bảo submenu hiển thị bên phải cho cấp con */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: 0;
}
.dropdown-item-container {
  position: relative;
}
.dropdown-item-container .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.125rem;
}
/* Ẩn submenu mặc định */
.dropdown-submenu .dropdown-menu {
  display: none;
}
.custom_navbar_toggler{
  border: none;
  outline: none;
  padding-left: 0px;
}
.main_menu li{
  list-style: none;
}
.main_menu .nav-item{
  padding: 0px 20px;
}
.box_home_video{
  min-height: 500px;
  background: url(../images/bg_video.webp) no-repeat center center;
  background-size: contain;
  padding-top: 70px;
}
.box_home_video_content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 315px; /* Đảm bảo chiều cao cố định */
  border-radius: 15px;
  overflow: hidden;
}
/* Nếu muốn submenu hiện ra khi hover, dùng đoạn CSS (có thể kết hợp JS) */
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

/* Phần header */
.navbar{
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.landingpage_slider_item{
  padding: 10px 20px;
}
.landingpage_slider_item img{
  max-width: 100%;
}
.landingpage_box_title{
  font-family: Oswald, sans-serif;
  font-weight: bold;
  line-height: 1.6;
  color: rgb(3, 100, 72);
  text-align: center;
  text-shadow: rgb(191, 191, 191) 2px 1px 1px;
  -webkit-text-stroke: 0px rgb(255, 255, 255);
  text-transform: uppercase;
  font-size: 30px;
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  width: 100%;
}
.landingpage_box_title span{
  position: relative;
  display: inline-block;
}
.landingpage_box_title span::after{
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 20px;
  background: url(../images/line-title.png) no-repeat center center;
  background-size: contain;
  z-index: -1;
}
/* Style cho mobile */
@media (max-width: 991.98px) {
  .navbar-brand {
    margin: 0;
    margin-left: 10px;
    position: absolute;
    left: 70px;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Style cho menu cấp 2 và cấp 3 trên mobile */
  .navbar-collapse .dropdown-menu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    border: none;
    background: transparent;
  }

  .navbar-collapse .dropdown-menu.show {
    display: block;
  }

  /* Style cho nút toggle menu cấp 2 và cấp 3 */
  .navbar-collapse .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: transform 0.3s;
  }

  .navbar-collapse .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  /* Style cho menu item */
  .navbar-collapse .nav-item {
    padding: 0.5rem 0;
  }

  .navbar-collapse .dropdown-item {
    padding: 0.5rem 1rem;
    color: #212529;
  }

  .navbar-collapse .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #21a76d;
  }

  /* Đảm bảo container không bị tràn */
  .container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
  }

  /* Fix lỗi tràn khung cho các section */
  section {
    width: 100%;
    overflow: hidden;
  }
}

/* Style cho nút đăng ký học thử */
.btn_hocthu {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  line-height: 150%;
  font-weight: 600;
  color: rgb(33, 155, 103);
  padding: 8px 16px;
  background: rgb(255, 255, 255);
  border-radius: 8px;
  border: 1px solid rgb(33, 155, 103);
  position: relative;
  overflow: hidden;
}

.btn_hocthu:hover {
  background: rgb(123 185 159);
  color: #fff;
}
.box_home img{
  max-width: 100%;
}
@media (max-width: 991.98px) {
  .btn_hocthu {
    padding: 6px 12px;
    font-size: 14px;
  }

  .btn_hocthu svg {
    width: 18px;
    height: 18px;
  }
}

.main_menu a{
  font-weight: 500;
}
.nav-item{
  padding: 0px 20px;
}
.main_menu .nav-item:hover a{
  color: #21a76d;
}
.main_menu .nav-item:hover > .nav-link {
  position: relative;
}
.main_menu .nav-item:hover > .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px; /* Adjust this value if needed */
  width: 100%;
  height: 2px;
  background-color: #21a76d;
}
.main_menu .nav-item:hover > .nav-link::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: #21a76d;
}


.main_box_title{
  font-size: 40px;
  font-weight: 500;
}
.main_box_title_line{
    margin-top: 8px;
    margin-bottom: 8px;
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgb(40, 160, 110) 0%, rgba(255, 255, 255, 0) 80%);
}
.main_box_title span span{
  color:rgb(40, 160, 110);
}
.box_form{
  padding: 50px 0;
}
.box_form img{
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
}
.box_form .row{
  min-height: 500px;
}
.box_form input{
  line-height: 3;
}
.box_feedback_content_wrapper{
  width: 300px;
}
.box_feedback_list_item > div{
  display: flex;
  align-items: center;
  cursor:pointer;
  border-radius: 1rem;
  padding: 15px;
  margin-bottom: 15px;
  opacity: .5;
}
.box_feedback_list_item img{
  width:80px;
  height:80px;
  border-radius: 0.5rem;
}
.box_feedback_list_item p{
  margin-bottom: .5rem;
  line-height: 1.6;
}
.box_feedback_list_item div div{
  margin-left: 1.5rem;
}

.box_feedback_list .slick-current > div{
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  color: rgb(66, 66, 66);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  opacity:1;
}
.box_feedback_content_item span{
    width: 100%;
    padding-top: 124.01%;
    position: relative;
    display: block;
}
.box_feedback_content_item img{
    position: absolute;
    height: 100%;
    width: 100%;
    inset: 0px;
    color: transparent;
    border-radius: .75rem;
}
.box_feedback{
    background: url(../images/bg_box.png) rgb(255, 255, 255);
}
.teacher_list_item img{
  width: 100%;
}
.teacher_list_item p{
  margin-bottom: 0.5rem;
}
.teacher_list_item .relative{
  position: relative;
}
.teacher_list_item .teacher_sub{
  position: absolute;
  width: 100%;
  bottom: 30px;
}
.teacher_list_item_name{
  font-weight: 500;
  font-size: 20px;
}
.teacher_list_item_from{
  color: #b8b6b6;
}
.teacher_sub span{
    background-color: #3e9f6f;
    border-radius: .375rem;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border: 0 solid #e5e7eb;
    padding: 5px 10px;
}

footer{
    padding-bottom: 40px;
    color: rgb(66, 66, 66);
    line-height: 1rem;
    background-color: rgb(240, 247, 255);
}
.footer_menu{
  display: flex;
  padding: 0px;
}
.footer_menu ul{
  padding: 0px;
}
.footer_menu>li{
  width: 33%;

}
.footer_menu>li>a{
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  color: #000;
}
.footer_menu li{
  list-style: none;
  line-height: 1.6;
}
.footer_menu li li a{
  color: rgb(66, 66, 66);
  text-decoration: none;
  font-size: 13px;
}
.line_footer{
  position: relative;
  overflow: hidden;
  background-color: rgb(250, 250, 250);
  height: 84px;
}
.line_footer::before{
    z-index: 1;
    position: absolute;
    top: 0px;
    left: 50%;
    display: block;
    width: 150%;
    height: 1000px;
    background-color: rgb(240, 247, 255);
    border-radius: 2150px 2150px 0px 0px / 900px 900px 0px 0px;
    content: "";
    transform: translateX(-50%);
}
.line_footer_min{
  background-color: rgb(196, 196, 196);
    margin: 24px 0px;
    width: 100%;
    height: 1px;
}
.box_footer_bottom{

}
/* Ẩn các nút mặc định của Slick Slider */
.slick-prev, .slick-next {
  display: block;
  width: 60px; /* Kích thước nút, bạn có thể điều chỉnh */
  height: 50px; /* Kích thước nút, bạn có thể điều chỉnh */
  background: #ffffff; /* Nền trắng */
  border: none; /* Xóa viền mặc định */
  border-radius: 20px; /* Góc bo tròn, điều chỉnh để phù hợp */
  cursor: pointer;
  outline: none; /* Xóa outline khi click */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1; /* Đảm bảo nút hiển thị trên slider */
  transition: opacity 0.3s, box-shadow 0.3s; /* Hiệu ứng khi hover, bao gồm box-shadow */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Thêm bóng đổ nhẹ để nổi bật trên nền trắng */
}

/* Tùy chỉnh vị trí của nút prev (trái) - 1 nửa trong, 1 nửa ngoài */
.slick-prev {
  left: -30px; /* Di chuyển nút ra ngoài, điều chỉnh để 1 nửa nằm ngoài */
}

/* Tùy chỉnh vị trí của nút next (phải) - 1 nửa trong, 1 nửa ngoài */
.slick-next {
  right: -30px; /* Di chuyển nút ra ngoài, điều chỉnh để 1 nửa nằm ngoài */
}

/* Tùy chỉnh biểu tượng mũi tên bằng ::before hoặc ::after */
.slick-prev::before, .slick-next::before {
  content: ''; /* Tạo nội dung giả */
  display: block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent; /* Điều chỉnh kích thước mũi tên */
  border-bottom: 5px solid transparent;
  border-left: 8px solid #1a73e8; /* Màu xanh đậm cho mũi tên, bạn có thể thay đổi */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Sửa lại mũi tên cho nút next (hướng phải) */
.slick-prev::before {
  border-left: none;
  border-right: 8px solid #1a73e8; /* Màu xanh đậm cho mũi tên */
}

/* Hiệu ứng hover (tùy chọn) */
.slick-prev:hover, .slick-next:hover {
  opacity: 0.8; /* Làm mờ khi hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Bóng đổ đậm hơn khi hover */
}

/* Đảm bảo nút hiển thị rõ ràng trên slider */
.slick-slider {
  position: relative;
}
.box_feedback_summary_item{
  --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  background-color: #fff;
  border-left: 14px solid rgb(33, 155, 103);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 1rem;
  font-size: 1.25rem;
  display: none; /* Ẩn tất cả các item */
}

.box_feedback_summary_item:first-child {
  display: block; /* Hiển thị item đầu tiên */
}

.box_feedback_summary_item_1{
  display: flex;
}
.box_feedback_summary_item_1>div{
  line-height: 1.3 !important;
}
.box_feedback_summary_item_1>p{
  line-height: 1.3 !important;
}
.box_feedback_summary_item_2 p{
}
.box_feedback_summary_item_2 p:first-child{
  font-weight: 500;
}
.box_feedback_summary_item_2 p:last-child{
  color: #ccc
}
.box_footer_1{
  font-size: 13px;
}
.copyright{
  line-height: 1.6;
}
.footer_social{
  text-align: right;
}
.footer_social div{
  width: 24px;
  display: inline-block;
  text-align: right;
  margin-right: 20px;
}
.footer_social div img{
  width: 100%;
}
.goi_hotline{
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 155px;
}
.goi_hotline img{
  width: 100%;
}
.box_feedback_list {
  max-height: 430px;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .line_footer::before {
      border-radius: 2150px 2150px 0px 0px / 500px 500px 0px 0px;
  }
  .feedback-content-wrapper{
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 30px;
  }
  .box_feedback_summary{
    position: relative;
    flex: 1;
    padding-left: 0;
  }
  .box_feedback_content_wrapper {
    flex: 1;
  }
}
@media(max-width: 680px)
{
  .teacher_list_item .teacher_sub{
    bottom: 20px;
  }
  
}
@media (max-width: 768px) {
  .goi_hotline{
    width: 90px;
  }
  .copyright{
    text-align: center;
  }
  .footer_social{
    text-align: center;
    margin-top: 20px;
  }
  footer{
    padding-bottom: 30px;
  }
  .box_footer_1 img{
    display: none;
  }
  .line_footer{
    height: 40px;
  }
  .box_home_video{
    padding-top: 0px;
  }
  .footer_menu{
    display: block;
  }
  .footer_menu>li{
    width: 100%;
  }
  
  .box_feedback_list .slick-current > div{
    box-shadow: none !important;
  }
  .feedback-container {
    display: flex;
    flex-direction: column;
  }
  
  .feedback-list-wrapper {
    order: 2;
  }
  
  .feedback-content-wrapper {
    order: 1;
    margin-bottom: 30px;
  }

  .box_feedback_list_item {
    padding: 5px;
  }

  .box_feedback_list_item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }

  .box_feedback_list_item div > div {
    display: none;
  }

  .box_feedback_list .slick-track {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  /* Style cho slider-nav trên mobile */
  .slider-nav .slick-track {
    display: flex;
    align-items: center;
  }

  .slider-nav .slick-slide {
    margin: 0 5px;
  }

  /* Ẩn nút prev/next trên mobile */
  .slider-nav .slick-prev,
  .slider-nav .slick-next {
    display: none !important;
  }
  .slider-for .slick-prev,
  .slider-for .slick-next {
    display: none !important;
  }
  .teacher_list .slick-prev,
  .teacher_list .slick-next {
    display: none !important;
  }
  .box_feedback_content_wrapper{
    width: 40%;
    margin: auto;
  }
  .box_feedback_summary_item{
    font-size: 0.875rem;
    margin-bottom: 0px;
  }
  .main_box_title{
    font-size: 24px;
    text-align: center;
  }
  .box_form{
    padding: 30px 0;
  }
  .box_form .row{
    min-height: auto;
  }
}
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.popup-form {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 8px;
  z-index: 1000;
  max-width: 90%;
  width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.popup-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.popup-close:hover {
  color: #333;
}

.popup-form-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Responsive cho popup form */
@media (max-width: 768px) {
  .popup-form {
    width: 95%;
    padding: 15px;
  }
  
  /* Ẩn ảnh trên mobile */
  .popup-form-image {
    display: none;
  }
  
  /* Điều chỉnh padding cho form trên mobile */
  .popup-form .container {
    padding: 0;
  }
  
  .popup-form .main_box_title {
    font-size: 24px;
  }
}

/* Thêm animation cho popup */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-form.active {
  animation: fadeIn 0.3s ease-in-out;
}

/* Style cho modal đăng ký */
#registerModal .modal-content {
  border-radius: 16px;
  border: none;
}

#registerModal .modal-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

#registerModal .modal-body {
  padding: 1rem 1.5rem 1.5rem;
}

#registerModal .modal-body .row {
  min-height: 400px;
}

#registerModal img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

#registerModal .main_box_title {
  font-size: 32px;
}

@media (max-width: 768px) {
  .popup-form {
    width: 95%;
    padding: 15px;
  }
  
  .popup-form-image {
    display: none;
  }
  
  .popup-form .container {
    padding: 0;
  }
  
  .popup-form .main_box_title {
    font-size: 24px;
  }

  #registerModal .modal-body .row {
    min-height: auto;
  }

  #registerModal .main_box_title {
    font-size: 24px;
  }
}

/* Loại bỏ marker cho menu */
.navbar-nav,
.dropdown-menu,
.main_menu,
.main_menu li,
.main_menu ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.dropdown-menu {
  padding: 0.5rem 0;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  clear: both;
  text-align: inherit;
  white-space: nowrap;
  background: none;
  border: 0;
  color: #212529;
  text-decoration: none;
}

/* Style cho hover menu */
@media (min-width: 992px) {
  .has-submenu:hover > .submenu {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .has-submenu:hover > .dropdown-toggle::after {
    transform: rotate(-180deg);
  }
  
  .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #21a76d;
  }

  .dropdown-menu .dropdown-toggle::after {
    display: none;
  }
  
  .dropdown-menu {
    display: none;
    margin: 0;
  }
  
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
  
  .dropend:hover > .dropdown-menu {
    display: block;
    top: 0;
    left: 100%;
  }
}

/* Animation cho dropdown */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .home_box_video_img {
    display: none;
  }
}

.btn_scroll{
  position: fixed;
  right: 0px;
  bottom: 150px;
  width: 80px;
  z-index: 999;
}

.btn_scroll a{
  display: block;
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  border-radius: 50%;
  overflow: hidden;
}

.btn_scroll a:last-child{
  margin-bottom: 0;
}

.btn_scroll a div{
  width: 100%;
  height: 100%;
}

.btn_scroll a div img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
