/* ===========================
   KHUNG DANH SÁCH CHI NHÁNH
=========================== */
#list-chinhanh {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 30px;
  justify-content: space-between;
}

#list-chinhanh .col-chinhanh {
  width: calc(50% - 12.5px); /* Hai cột trên desktop */
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  animation: fadeIn 0.4s ease-in-out;
}

#list-chinhanh .col-chinhanh:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* ===========================
   BÊN TRONG ITEM
=========================== */
.container-chinhanh {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 20px;
}

/* ===========================
   ẢNH VÀ TIÊU ĐỀ
=========================== */
.meta-cn-list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.col-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.anh-dai-dien img {
  width: 300px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #eee;
  transition: 0.3s;
}

.anh-dai-dien img:hover {
  border-color: #ff6b00;
}

.title-chinhanh {
  width: 400px;
}

.title-chinhanh a {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  line-height: 1.3;
}

.title-chinhanh a:hover {
  color: #ff6b00;
}

/* ===========================
   NÚT HÀNH ĐỘNG (CTA)
=========================== */
.chinhanh-cta {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.chinhanh-cta a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  background: #ff8e45;
  color: #fff;
}

.chinhanh-cta a.cta-dat-lich {
  background-color: #ff6b00;
}

.chinhanh-cta a.cta-dat-lich:hover {
  background-color: #e55e00;
}

.chinhanh-cta a.cta-chi-duong {
  background-color: #f2f2f2;
  color: #333;
}

.chinhanh-cta a.cta-chi-duong:hover {
  background-color: #ddd;
}

/* ===========================
   THÔNG TIN LIÊN HỆ
=========================== */
.chinhanh-item2 {
  margin-top: 12px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.chinhanh-item2 a {
  color: #0066cc;
  text-decoration: none;
}

.chinhanh-item2 a:hover {
  text-decoration: underline;
}

/* ===========================
   FILTER BOX
=========================== */
.filter-box {
  background: #f8f8f8;
  padding: 15px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-box-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-box select,
.filter-box input {
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 8px;
  min-width: 150px;
}

.filter-box select {
  width: 31.45%;
  margin-right: 1%;
}

.filter-box button {
  background-color: #ff6b00;
  color: #fff;
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.filter-box button:hover {
  background-color: #e55e00;
}

/* ===========================
   ANIMATION
=========================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 992px) {
  #list-chinhanh {
    flex-direction: column;
    gap: 20px;
  }

  #list-chinhanh .col-chinhanh {
    width: 100%;
  }

  .meta-cn-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .col-left {
    width: 100%;
  }

  .anh-dai-dien img {
    width: 100%;
    height: 200px;
  }

  .title-chinhanh {
    width: 100%;
  }

.chi-nhanh-cta a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

  .chinhanh-cta {
    margin-top: 10px;
    width: 100%;
  }

  .filter-box-container input,
  .filter-box-container select,
  .filter-box-container button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
}
