/* --- Base Style (Mobile First) --- */
/* Áp dụng cho TẤT CẢ các thiết bị, bắt đầu từ màn hình nhỏ nhất */
.section .section-caption h2 {
  text-align: center;
  margin: 0 0 20px 0;
  font-size: 1.75rem;
  color: #10396a;
  font-weight: bold;
  line-height: 1.3;
}

/* --- Tablet & Lớn hơn (>= 768px) --- */

@media (min-width: 768px) {
  .section .section-caption h2 {
    font-size: 2rem;
    margin-bottom: 30px;
  }
}

/* --- Màn hình Desktop Lớn (>= 1200px) --- */

@media (min-width: 1200px) {
  .section .section-caption h2 {
    font-size: 2.25rem;
    margin-bottom: 40px;
  }
}

/* =========================================== */
/* Service item */
.service_item {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Giới hạn nội dung mô tả */
.service_item .si_caption .description {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Caption layout */
.si_caption {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 60px;
  margin-top: 20px;
}

.titles:hover {
  color: black;
}

#services .service_item .titles {
  font-size: 1.125rem;
}
