.bg-light {
  background-color: #ffffff !important; /* trắng tinh */
}

/* Style cho dropdown nhiều cấp */
    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
        display: none;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    /* Hiện dropdown khi hover */
    .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-menu {
        transition: all 0.2s ease-in-out;
    }

    .navbar {
    background: #fff;
    padding: 12px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', sans-serif;
}

.carousel-img {
    width: 100%;
    height: 100vh;
    object-fit: contain; /* Hoặc 'contain' nếu bạn muốn ảnh không bị crop */
}
#carouselExampleCaptions {
    margin-top: 80px; /* Tùy chỉnh */
}

/* Fix cho thiết bị di động */
@media (max-width: 768px) {
    .carousel-img {
        /* padding-top: 70px; */
        width: 100%;
        height: auto;
        object-fit: contain; /* Giữ toàn ảnh, tránh crop */

    }
    #carouselExampleCaptions {
        padding-top: 0px; /* hoặc theo chiều cao thực tế của navbar */
    }

}
/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .carousel-img {
        /* padding-top: 70px; */
        width: 100%;
        height: 100%;
        object-fit: contain; /* Giữ toàn ảnh, tránh crop */

    }
    #carouselExampleCaptions {
        padding-top: 0px; /* hoặc theo chiều cao thực tế của navbar */
    }
}

/* Style cho các box tính năng */
.feature-box {
    transition: all 0.3s ease;
}
.feature-box:hover {
    background-color: #e9f3fc; /* xanh nhạt nhẹ nhàng khi hover */
    transform: translateY(-5px);
}


/* Style cho Aboutus */
#about {
    /* background: linear-gradient(to bottom, #f8f9fa, #e0f0ff); nền sáng nhẹ xanh dương */
    background: linear-gradient(to bottom,#b4e0f5, #2aa7e0 ); /* nền sáng nhẹ xanh dương */
}
#service {
    background: linear-gradient(to bottom, #b4e0f5, #66c3ee); /* nền sáng nhẹ xanh dương */
}
.service-img {
    object-fit: contain; /* Giữ nguyên tỉ lệ ảnh */
    width: 100%;
    height: auto; /* Chiều cao tự động */
    max-height: 200px; /* Giới hạn chiều cao */
}

/* Mobile */
@media (max-width: 768px) {
    .service-img {
        max-height: 140px; /* giảm chiều cao ảnh trên mobile */
        width: auto;       /* giữ nguyên chiều ngang theo tỷ lệ */
        max-width: 100%;
    }
    .card-title {
        font-size: 1rem; /* nhỏ hơn để cân đối */
    }
    .card-text {
        font-size: 0.9rem;
    }
}

#news {
    background: linear-gradient(to bottom, #b4e0f5, #88c7e4); /* nền sáng nhẹ xanh dương */
}
/* Style cho Service */

.service-animate .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border 0.3s ease;
  background-color: #ffffff; /* màu nền ban đầu */
  border: 1px solid #e0e0e0;
}

.service-animate .card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: #f7ba49; /* nền nhạt xanh khi hover */
  border: 1px solid #0d6efd; /* màu xanh đậm */
}

/* Owl Carousel chỉnh sửa lại nếu cần */
.news-carousel .owl-stage-outer {
    padding: 10px 0;
}

.news-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-item .p-4 {
    padding: 1.2rem !important;
}

.news-item h5 {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.news-item p {
    font-size: 0.9rem;
    color: #666;
}

.news-item .text-muted i {
    color: #f0ad4e; /* màu biểu tượng đồng hồ */
}
.owl-carousel .owl-nav {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 15px;
}

.owl-carousel .owl-nav i {
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.owl-carousel .owl-nav i:hover {
  color: #0066ff;
}

@media (max-width: 768px) {
    .news-item img {
        height: 160px;
    }

    .news-item h5 {
        font-size: 1rem;
    }

    .news-item p {
        font-size: 0.85rem;
    }
}

/* Page Header */
.page-header {
  background: linear-gradient(180deg, #d1dbe6, #e3e7e9);

  padding: 20px 15px 20px; /* chừa khoảng cho navbar cố định */
}

.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.page-header .breadcrumb-item a {
  color: #141313;
  text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Card */
.card-img-top {
  height: 220px;
  object-fit: cover;
}

.hover-shadow:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 20px 15px 20px;
  }
  .page-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 20px 10px 20px;
  }
  .page-title {
    font-size: 1.5rem;
  }
}

/* Hình ảnh tự co theo màn hình */
.richtext-content img {
  
  display: block;/* chuyển img thành block để có thể margin auto */
  margin-left: auto;        /* căn giữa ngang */
  margin-right: auto;       /* căn giữa ngang */
  max-width: 100%;          /* ảnh co vừa màn hình */
  height: auto;
  border: 2px solid #ddd;         /* viền xám nhẹ */
  border-radius: 8px;             /* bo góc */
  padding: 4px;                   /* khoảng cách giữa ảnh và viền */
  background-color: #fff;         /* nền trắng sau viền */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* bóng nhẹ */
}

/* Bảng có thể cuộn ngang */
.richtext-content table {
  width: 100% !important;
  border-collapse: collapse;
}

.richtext-content table,
.richtext-content td,
.richtext-content th {
  border: 1px solid #ddd;
}

.richtext-content {
  overflow-x: auto;
}

/* Video nhúng (YouTube, iframe) responsive */
.richtext-content iframe {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 576px) {
    .row.g-4 {
      --bs-gutter-x: 0.75rem; /* ngang nhỏ lại */
      --bs-gutter-y: 0.75rem; /* dọc nhỏ lại */
    }
    .card {
      border-radius: 10px; /* bo tròn nhẹ cho đẹp */
    }
    .card-body {
      padding: 0.75rem; /* thu gọn padding cho gọn trên mobile */
    }
    .card-title {
      font-size: 1rem; /* chữ nhỏ hơn một chút */
    }
    .card-text {
      font-size: 0.875rem; 
    }
  }