.coveo-result-list-customer .slider {
  margin: 0px 5px !important;
}

.CoveoResultCustomer .slider-item {
  padding-bottom: 0px !important;
}

.CoveoResultCustomer .slider-item img {
  border-radius: 5px !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.CoveoResultCustomer .slider-item .image-wrapper {
  height: 89px !important;
  padding-bottom: calc(0% + 89px)
}

@media (min-width: 768px) {
  .coveo-result-list-customer .slick-track {
    margin-bottom: 0px !important;
  }
}

.contact-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  position: relative;
}

/* Tablet: 2 cột */
@media (max-width: 992px) {
  .contact-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 cột */
@media (max-width: 600px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
}

/*phân trang*/
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  gap: 6px;
  justify-content: center;
}

.pagination li {
  display: inline-block;
}

.pagination a {
  display: flex;
  /* canh icon/text giữa */
  align-items: center;
  justify-content: center;
  width: 36px;
  /* ô vuông đều nhau */
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.pagination a.active,
.pagination .active {
  background: #007bff;
  color: #fff !important;
  border-color: #007bff;
  font-weight: bold;
}

.pagination .prev i,
.pagination .next i {
  font-size: 16px;
}

.ecolab-catalog-search .CoveoSearchInterface .coveo-list-layout.CoveoResult .catalog-item {
  padding: 10px 16px 50px 16px !important;
}

@media (min-width: 768px) {
  .slick-slider .slick-track {
    margin-bottom: 0px !important;
  }
}

/* style for project single */
.project-content table {
  width: 100%;
  border-collapse: collapse;
}

.project-content table td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  vertical-align: top;
}

.project-content table td:first-child {
  width: 200px;
  font-weight: bold;
  background-color: #f0f0f0;
  /* nền xám nhạt */
}

.project-content table td:last-child {
  background-color: #fafafa;
  /* nền sáng hơn một chút */
}

.project-content {
  background-color: #fff;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 40px;
}

.related-projects .section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid #0073e6;
  display: inline-block;
  padding-bottom: 5px;
}

.related-projects .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card .image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 4;
  /* giữ tỷ lệ ảnh */
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card .info {
  padding: 12px;
}

.project-card .date {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.project-card .title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #009049;
  margin: 0;

  /* Giới hạn 2 dòng */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* số dòng muốn hiển thị */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 🔹 Responsive */
@media (max-width: 1024px) {
  .related-projects .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related-projects .grid {
    grid-template-columns: 1fr;
  }
}

/*dịch vụ hoạt động*/
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  /* khoảng cách giữa các ảnh */
  margin: 30px 0;
}

.service-card {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {

  /* Tablet ngang */
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  /* Mobile */
  .services {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 200px;
    /* giảm chiều cao để vừa màn nhỏ */
  }

  .overlay {
    font-size: 16px;
    padding: 10px;
  }
  .ecolab-slider .image-wrapper {
    padding-bottom: calc(0% + 250px) !important;
  }
}

.score-stripe.ecolab-top-bar .utility-toggle {
  font-size: 16px;
  width: auto;
  color: #fff;
  background: transparent;
}

.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-selected {
  padding: 5px 25px;
  cursor: pointer;
  background: transparent;
  border: none;
}

.lang-options {
  display: none;
  position: absolute;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 200px;
}

.lang-options li {
  padding: 5px 25px;
  cursor: pointer;
  background: #009049;
  border-top: 1px solid #fff;
}

.lang-options li:hover {
  background: rgba(0, 0, 0, 0.4);
}

.lang-dropdown.open .lang-options {
  display: block;
}

@media (min-width: 992px) {
  .ecolab-slider .slick-slider .slick-slide .slider-text h3 {
    height: 46px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    margin-bottom: 15px;
  }
}
@media (min-width: 1350px) {
    .container {
        width: 100%;
        max-width: 1170px;
    }
}

.ecolab-slider .image-wrapper {
    height: 1px;
    padding-bottom: calc(0% + 158px);
}
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
@media (min-width: 992px) {
    .news-headline-with-subtitle .score-document-header h1 {
        font-size: 3.2rem;
        line-height: 1;
        text-align: center;
    }
}
@media (max-width: 767px) {
    .news-headline-with-subtitle .score-document-header h1 {
        text-align: center;
    }
}
@media (max-width: 1350px) {
  .ecolab-slider .image-wrapper {
      height: 1px;
      padding-bottom: calc(0% + 165px);
  }
}
header .container{
	max-width: 1170px;
	max-width: 1170px;
  padding-left: 0;
  padding-right: 0;
}

/* --------------------------------------------------------------------------------------- */
/* style cho danh sách bài viết */
.news-grid {
  /* font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; */
  color: #222;
  /* max-width: 1200px; */
  margin: 0 auto;
  /*padding: 20px;*/
}

.news-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 20px;
}

/* Featured article chiếm 2 cột */
.news-item.featured {
  position: relative;
  grid-column: span 2;
  grid-row: span 1;
  overflow: hidden;
}

.news-item.featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 20px;
  color: #009049;
  background: #fff;
  width: 50%;
  opacity: 0.7;
}

.news-overlay .news-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 5px;
}

.news-overlay .news-date {
  font-size: 14px;
  opacity: 0.9;
}

/* Các bài thường */
.news-item.normal {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-item.normal:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.news-item.normal img {
  width: 100%;
  object-fit: cover;
}

.news-content {
  padding: 15px;
}

.news-content .news-date {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.news-content .news-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #009049;
}

/* Responsive */
@media (max-width: 900px) {
  .news-grid-container {
    grid-template-columns: 1fr 1fr;
  }
  .news-item.featured {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .news-grid-container {
    grid-template-columns: 1fr;
  }
  .news-item.featured {
    grid-column: span 1;
  }
}
.wp-caption p{
  margin: 5px 0 5px !important;
}
@media (max-width: 767px) {
  .wp-caption {
    max-width: 100% !important;
    width: auto !important;
  }

  .wp-caption img {
    width: 100% !important;
    height: auto !important;
  }
}
