/* Thiết lập chung cho section */
.philo-section {
  position: relative;
  min-height: 100vh;
  padding: 80px 20px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;  
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Lớp phủ mờ (overlay) để làm dịu background, làm nổi bật nội dung */
.philo-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 1;
}

/* Đảm bảo nội dung nằm trên lớp phủ */
.container {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 160px);
  margin: 0 auto;
  width: 100%;
}

/* Header (Tiêu đề và Nút) */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  padding-bottom: 10px;
  border-bottom: 1px solid #fff;
}

.section-header h2 {
  margin: 0;
  text-transform: uppercase;
}

.btn-process {
  background-color: #8a7c6b; /* Màu nâu vàng như video */
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border: 1px solid #FFF; /* Đã sửa lại đúng chuẩn */
  transition: background-color 0.3s ease;
}

.btn-process:hover {
  background-color: #6d6153;
}

/* Lưới 4 cột cho thẻ */
.cards-wrapper {
  display: flex;
  gap: 20px;
}

/* Thiết kế thẻ (Card) mặc định */
.card {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.9); /* Màu trắng hơi trong suốt */
  padding: 40px 20px;
  transition: all 0.4s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* NỘI DUNG THẺ: SỐ ĐẾM */
.card-number {
  margin-bottom: 20px;
  transition: color 0.4s ease;
}

/* NỘI DUNG THẺ: TIÊU ĐỀ THẺ */
.card-title {
  margin-bottom: 15px;
  transition: color 0.4s ease;
}

/* NỘI DUNG THẺ: MÔ TẢ THẺ */
.card-desc {
  transition: color 0.4s ease;
}

/* ---- HIỆU ỨNG HOVER VÀO THẺ ---- */
.card:hover {
  background-color: #312658; /* Đổi nền sang xanh tím đậm */
  transform: translateY(-5px); /* Tùy chọn: nẩy nhẹ lên trên */
}

/* Đổi màu tất cả chữ thành trắng khi hover */
.card:hover .card-number,
.card:hover .card-title,
.card:hover .card-desc {
  color: #ffffff;
}

/* ====================================================
   RESPONSIVE CHO TABLET & MOBILE (< 1024px)
==================================================== */
@media (max-width: 1023px) {
  /* Ép Container thành cột đứng để lấy chỗ chứa nút ở đáy */
	.philo-section {
        padding-left: 8px !important;  /* Thay đổi số 8px này theo ý bạn */
        padding-right: 8px !important; /* Thay đổi số 8px này theo ý bạn */
    }
  .container {
	max-width: 100% !important;
	  padding:0;  
    display: flex;
    flex-direction: column;
    padding-bottom: 130px; 
  }

  /* Đẩy nút bấm xuống dưới cùng, cách viền 30px và căn giữa */
  .btn-process {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap; /* Chống rớt chữ trong nút */
  }

  /* Tinh chỉnh lại khoảng cách Header */
  .section-header { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 15px; 
    margin: 0 1rem 1rem; 
  }
  /* Bọc Lưới Thẻ và chia tỷ lệ */
  .cards-wrapper { 
    flex-wrap: wrap; 
    gap: 10px; 
    padding: 0 16px;
  }

  /* Ép cứng luôn luôn 2 cột trên Tablet & Mobile */
  .card { 
    flex: 0 0 calc(50% - 5px) !important; 
    max-width: calc(50% - 5px) !important; 
    padding: 20px 10px; 
  }
}