/* Reset mặc định */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Căn chỉnh chung */
body {
    font-family: Arial, sans-serif;
    
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 80px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 65px;
}

/* Menu */
.menu {
    list-style: none;
    display: flex;
    gap: 30px;
  }
  
  .menu li {
    position: relative;
  }
  
  .menu li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 5px;
    transition: color 0.3s ease-in-out;
  }
  
  /* Hiệu ứng khi hover vào menu cha */
  .menu li a:hover {
    color: blue;
  }
  
  /* Menu con */
  .submenu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    position: absolute;
    left: 0;
    top: 100%;
    background: white;
    display: none;
    min-width: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    overflow: hidden;
    z-index: 10001; /* Đảm bảo menu con hiển thị trên cùng */
  }
  
  /* Các mục trong menu con */
  .submenu li {
    border-bottom: 1px solid #eee;
  }
  
  .submenu li:last-child {
    border-bottom: none;
  }
  
  .submenu a {
    padding: 12px 20px;
    display: block;
    color: #333;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
  }
  
  /* Hiệu ứng hover menu con */
  .submenu a:hover {
    background: #f5f5f5;
  }
  
  /* Hiển thị menu con khi hover */
  .menu li:hover .submenu {
    display: block;
  }
  
  /* Nút menu cho mobile */
  #menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
  }

/* Icons */
.icons {
    display: flex;
    gap: 15px;
}

/* Slider */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 80px; /* Giữ khoảng cách với navbar */
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Nút chuyển ảnh */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 50%;
}

.prev { left: 15px; }
.next { right: 15px; }

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* About */
.about {
    width: 80%;
    margin: 50px auto;
    text-align: left;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    width: 55%;
}

.about-text h2 {
    font-size: 32px;
    font-weight: bold;
    color: #0c2c7b;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.about-image {
    width: 40%;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

.about-subtitle {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    margin-top: 30px;
    color: #0c2c7b;
}

.about-icons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.icon {
    text-align: center;
    width: 20%;
}

.icon img {
    width: 70px;
    height: 70px;
}

.icon p {
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    color: #0c2c7b;
}
/* Reset mặc định */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Căn chỉnh chung */
body {
    font-family: Arial, sans-serif;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 80px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    height: 65px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu li a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

/* Hiệu ứng gạch dưới khi hover */
.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: blue;
    transition: width 0.3s ease-in-out;
}

.menu li a:hover {
    color: blue;
}

.menu li a:hover::after {
    width: 100%;
}

/* Nút menu cho mobile */
#menu-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: black;
    cursor: pointer;
}

/* Icons */
.icons {
    display: flex;
    gap: 15px;
}

/* Slider */
.slider-container {
    position: relative;
    width: 100%;
    margin-top: 80px;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Nút chuyển ảnh */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 50%;
}

.prev { left: 15px; }
.next { right: 15px; }

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* About */
.about {
    width: 80%;
    margin: 50px auto;
    text-align: left;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    width: 55%;
}

.about-text h2 {
    font-size: 32px;
    font-weight: bold;
    color: #0c2c7b;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.about-image {
    width: 40%;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

.about-subtitle {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    margin-top: 30px;
    color: #0c2c7b;
}

.about-icons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.icon {
    text-align: center;
    width: 20%;
}

.icon img {
    width: 70px;
    height: 70px;
}

.icon p {
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    color: #0c2c7b;
}


.container-fluid {
    display: flex;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.lefttnnb {
    background: #044A87;
    padding: 100px 60px 100px 20px;
    height: 745px;
    flex-basis: 50%; /* Chiếm 50% chiều rộng */
    box-sizing: border-box;
}

.righttnnb {
    background-image: url(/img/bgtinhnangnoibat.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 35px;
    flex-basis: 50%; /* Chiếm 50% chiều rộng */
    box-sizing: border-box;
    display: flex; /* Sử dụng Flexbox */
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
}

.righttnnb img {
    width: 35%; /* Giảm kích thước chiều rộng xuống 20% */
    height: auto; /* Đặt chiều cao tự động để giữ tỷ lệ */
}
.titletnnb {
    text-align: right;
    color: #fff;
    font-size: 33px;
    padding-right: 50px;
    border-right: 4px #fff solid;
    line-height: 27px;
    text-transform: uppercase;
    margin-bottom: 80px;
}

.subtitletnnb {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.grtnnba {
    position: relative;
    text-align: right;
    margin-bottom: 55px;
}

.texttnnb {
    line-height: 28px;
    color: #b3b3b3;
}

.grtnnba img {
    width: 73px;
    position: absolute;
    right: -97px;
    top: 17px;
    z-index: 100;
}


.success-stories {
text-align: center;
margin: 30px 0;
}

.success-stories h1 {
font-size: 28px;
color: #0c2c7b;
margin-bottom: 20px;
}

.slider-container {
max-width: 1200px;
margin: 0 auto;
overflow: hidden;
position: relative;
}

.slider-wrapper {
display: flex;
transition: transform 1s ease-in-out;
}

.col {
flex: 0 0 calc(33.33% - 20px); /* Hiển thị 3 card mỗi lần */
margin: 0 10px;
box-sizing: border-box;
}

.card {
background: #fff;
border: 1px solid #ddd;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.3s ease;
}

.card img {
width: 100%;
height: 200px;
object-fit: cover;
}

.card-body {
padding: 15px;
text-align: center;
}

.card-title {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px;
color: #333;
}

.card-text {
font-size: 14px;
color: #666;
}

.btn {
display: inline-block;
padding: 10px 20px;
margin-top: 10px;
font-size: 14px;
color: #999999;
background-color: #fff;
border: 1px solid transparent;
border-radius: 5px;
border-color:#ccc;
text-decoration: none;
transition: background-color 0.3s ease;
}

.btn:hover {
color: #0056b3;
border-color: #0056b3;
}
/* news section*/
.news-section {
    padding: 60px 0;
    overflow: hidden;
    background-color: #ebedee;
  }
  
  .dtkh {
    text-align: center;
    font-size: 29px;
    font-weight: 600;
    color: #092a52;
    margin-bottom: 23px;
    text-transform: uppercase;
  }
  
  .swiper-container {
    width: 100%;
    padding-bottom: 50px;
    overflow: hidden;
  }
  
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center; /* Căn giữa các card */
    padding: 0 5px; /* Giảm padding giữa các slide */
  }
  
  .card {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0; /* Loại bỏ margin mặc định */
  }
  
  .card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }
  
  .card-img-top {
    width: 100%;
    height: 320px;
    object-fit: cover;
  }
  
  .card-body {
    padding: 20px;
    text-align: left;
  }
  
  .card-title {
    font-size: 22px;
    font-weight: bold;
    color: #0c2c7b;
    margin-bottom: 10px;
  }
  
  .card-text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    height: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 14px;
    color: #999999;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .btn:hover {
    background-color: #fff;
    color: #0056b3;
  }
  
/* footer*/
.footer {
    background-color: #2f4f6f;
    color: #ffffff;
    padding: 20px 0;
    display: flex;
    justify-content: center; /* Căn giữa các cột */
    flex-wrap: wrap;
    gap: 20px; /* Tạo khoảng cách giữa các cột */
}

.footer-column {
    flex: 0 1 300px; /* Giới hạn độ rộng của các cột */
    margin: 10px;
    text-align: left ; /* Căn giữa nội dung trong từng cột */
}

.footer-column h3 {
    border-bottom: 1px solid #ffffff;
    padding-bottom: 10px;
    margin-bottom: 10px;
    display: inline-block;
}
.p{
  text-decoration: none; /* Thêm dòng này để xóa dấu gạch ngang */
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin: 5px 0;
    padding-left: 15px; /* Căn đều phần tử trong danh sách */
    text-indent: -15px; /* Làm thụt lề để các dòng dài vẫn thẳng hàng */
}

.footer-column ul li a {
    color: #ffffff;
    text-decoration: none;
}
.footer-column ul li a:hover {
    text-decoration: underline;
}
.footer-column .social-icons {
    margin-top: 10px;
}
.footer-column .social-icons a {
    color: #ffffff;
    margin-right: 10px;
    font-size: 20px;
}
.footer-column .qr-code {
    display: flex;
    align-items: center;
}
.footer-column .qr-code img {
    margin-right: 10px;
}
.footer-column .contact-info {
    display: flex;
    align-items: center;
    margin: 5px 0;
}
.footer-column .contact-info i {
    margin-right: 10px;
}
.footer-column .contact-info span {
    font-size: 16px;
}
.footer-column .contact-info .hotline {
    font-size: 20px;
    font-weight: bold;
}
.contact-info {
    display: flex;
    align-items: center;
    margin: 5px 0;
}
.contact-info img {
    margin-right: 10px;
}
.contact-info span {
    font-size: 16px;
}
.contact-info .hotline {
    font-size: 20px;
    font-weight: bold;
}
.footer-column ul li .list-icon {
    width: 10px;
    height: 10px;
    margin-right: 10px;
}
.customer-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #002060;
    margin-bottom: 20px;
  }
  
  .first-row {
    display: flex;
    overflow-x: hidden; /* Hiển thị thanh trượt ngang */
    scroll-snap-type: x mandatory; /* Đảm bảo các item bám chặt khi cuộn */
    gap: 10px;
    padding-bottom: 10px;
  }
  
  .first-row .grid-item {
    flex: 0 0 calc(16.66% - 10px); /* Hiển thị 6 item mỗi lần (100% / 6) */
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center;
    scroll-snap-align: center; /* Căn giữa mỗi item khi trượt */
  }
  
  .first-row .grid-item img {
    max-width: 70%;
    height: auto;
    margin-bottom: 10px;
  }
  
  .first-row::-webkit-scrollbar {
    display: none;
  }
  
  .first-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }
  .first-row .grid-item p {
    font-size: 12px;
    color: #002060;
    margin: 0;
  }
  
  .small-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    justify-items: center;
    align-items: center;
  }
  
  .small-grid-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    text-align: center;
    width: 100px;
  }
  
  .small-grid-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 5px;
  }
  
  .small-grid-item p {
    font-size: 10px;
    color: #002060;
    margin: 0;
  }
  .feedback-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

.title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 20px;
}

.testimonials {
    display: flex;
    justify-content: flex-start;
    transition: transform 0.5s ease;
}

.testimonial {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 0 0 32%; /* Chiếm 32% mỗi phần tử */
    box-sizing: border-box;
    margin-right: 20px; /* Khoảng cách giữa các phần tử */
}

.testimonial img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
}

.testimonial p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.testimonial .name {
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
}

.testimonial .position {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Responsive for small screens */
@media (max-width: 768px) {
    .testimonials {
        flex-direction: column;
        align-items: center;
    }
    .testimonial {
        max-width: 100%;
        margin-right: 0; /* Không có khoảng cách giữa các phần tử */
    }
}
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    display: none; /* Ẩn biểu tượng ban đầu */
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.back-to-top img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}
 /* Định dạng footer */
 .footer {
    background-color: #2c4878;
    color: white;
    padding: 30px 10%;
    font-family: Arial, sans-serif;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .footer-column {
    width: 30%;
  }
  
  .footer-column h3 {
    border-bottom: 2px solid white;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 18px;
  }
  
  /* Danh sách liên kết */
  .footer-column ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-column ul li {
    margin: 8px 0;
  }
  
  .footer-column ul li i {
    margin-right: 8px;
  }
  
  .footer-column ul li a {
    color: white;
    text-decoration: none;
  }
  .footer-column0{
    display: flex;
    gap: 20px;
  }
  .footer-column1 a img {
    width: 200px; /* Tăng kích thước ảnh CH Play & App Store */
    height: auto;
  }
  
  /* Icon mạng xã hội */
  .social-icons a {
    color: white;
    margin-right: 10px;
    font-size: 20px;
  }
  
  /* QR Code và App Links */
  .qr-code {
    width: 120px;
    height: auto;
    margin-bottom: 10px;
  }
  
  .footer-column img {
    width: 150px;
    height: auto;
    margin-bottom: 10px;
  }

/* Responsive cho Mobile */
/* Hiển thị nút menu trên mobile */
/* Ẩn menu mặc định trên mobile */
@media (max-width: 1024px) {
  .menu {
      display: none;
      flex-direction: column;
      width: 100%;
      background: white;
      position: absolute;
      top: 80px;
      left: 0;
      padding: 10px 0;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      z-index: 10001;
  }

  /* Hiển thị menu khi có class "active" */
  .menu.active {
      display: flex;
  }

  .menu li {
      text-align: center;
      padding: 10px 0;
      width: 100%;
  }

  .menu li a {
      display: block;
      padding: 12px 20px;
      text-align: center;
      font-size: 18px;
      font-weight: bold;
  }

  /* Nút menu toggle */
  #menu-toggle {
      display: block;
      font-size: 24px;
      background: none;
      border: none;
      color: black;
      cursor: pointer;
  }

  /* Điều chỉnh icon trên mobile */
  .icons {
      margin-top: 10px;
  }



  /* Responsive Banner */
  .slider-container {
      padding-top: 60px;
  }

  /* About Section */
  .about-container {
      flex-direction: column;
      text-align: center;
  }

  .about-text {
      width: 100%;
      padding: 20px;
  }

  .about-image {
      width: 100%;
      padding: 20px;
  }
}

  /* 🚀 Responsive trên tablet */
@media (max-width: 1024px) {
  .container-fluid {
      flex-direction: column; /* Chuyển thành layout dọc */
      text-align: center;
  }

  .lefttnnb,
  .righttnnb {
      width: 100%;
      padding: 30px;
  }

  .titletnnb {
      font-size: 26px;
  }

  .subtitletnnb {
      font-size: 18px;
  }

  .texttnnb {
      font-size: 14px;
  }

  .grtnnba img {
      position: static;
      display: block;
      margin: 10px auto;
  }
}

/* 🚀 Responsive trên mobile */
@media (max-width: 480px) {
  .lefttnnb,
  .righttnnb {
      padding: 20px;
  }

  .titletnnb {
      font-size: 22px;
  }

  .subtitletnnb {
      font-size: 16px;
  }

  .texttnnb {
      font-size: 13px;
  }

  .grtnnba {
      margin-bottom: 20px;
      text-align: center;
  }

  .grtnnba img {
      width: 40px;
      margin: 10px auto;
  }

  .righttnnb img {
      width: 80%;
  }
}
/* 🚀 Tablet: Hiển thị 2 cột */
@media (max-width: 1024px) {
  .slider-wrapper {
      flex-wrap: wrap;
      justify-content: center;
  }

  .col {
      flex: 0 0 calc(50% - 15px); /* Hiển thị 2 card mỗi dòng */
      margin-bottom: 20px;
  }
}

/* 🚀 Mobile: Hiển thị 1 cột */
@media (max-width: 768px) {
  .slider-wrapper {
      flex-direction: column;
      align-items: center;
  }

  .col {
      flex: 0 0 100%; /* Hiển thị 1 card mỗi dòng */
      margin-bottom: 15px;
  }
}
@media (max-width: 768px) {
  .slider-wrapper {
      transform: none !important;
      transition: none !important;
  }
}
/* ✅ Responsive cho Mobile */
@media (max-width: 768px) {
  .first-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Tự động sắp xếp */
      gap: 10px;
      justify-items: center;
  }

  .grid-item {
      width: 100px; /* Nhỏ hơn trên mobile */
  }

  .grid-item p {
      font-size: 12px;
  }
}

/* ✅ Responsive cho màn hình nhỏ hơn (Mobile nhỏ) */
@media (max-width: 480px) {
  .grid-item {
      width: 80px; /* Thu nhỏ hơn nữa */
  }

  .grid-item p {
      font-size: 10px;
  }
}
/* ✅ Chỉ áp dụng hiệu ứng trên Laptop */
@media (min-width: 769px) {
  .testimonial:hover {
      transform: scale(1.05);
  }
}

/* ✅ Responsive cho Tablet (≤768px) - Tắt hover */
@media (max-width: 768px) {
  .testimonials {
      flex-direction: column;
      align-items: center;
  }

  .testimonial {
      flex: 0 0 80%;
      max-width: 80%;
      transition: none; /* ❌ Tắt hiệu ứng chuyển động */
  }
}

/* ✅ Responsive cho Mobile nhỏ (≤480px) - Tắt hover */
@media (max-width: 480px) {
  .testimonial {
      flex: 0 0 100%;
      max-width: 100%;
      padding: 15px;
      transition: none; /* ❌ Tắt hiệu ứng chuyển động */
  }

  .testimonial img {
      width: 60px;
      height: 60px;
  }

  .testimonial p {
      font-size: 12px;
  }

  .testimonial .name {
      font-size: 14px;
  }

  .testimonial .position {
      font-size: 10px;
  }
}
@media (max-width: 768px) {
  .testimonials, .testimonial {
      transition: none !important;
      animation: none !important;
      transform: none !important; /* ✅ Chặn mọi hiệu ứng */
      position: static !important; /* ✅ Không dịch chuyển */
  }
}
