/* --------Phần footer--------------*/
footer {
  background-image: url('/images/home/FooterBackground.jpg');
  background-size: cover;
 
}

.footer-content-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  gap: 60px;
}


 .footer-column2, .footer-column3{  
  width: 100px;    
  margin: 10px;            
}
.footer-column1, .footer-column4{
  width: 300px;    
  margin: 10px;
}
/* css cho cột 1 trong footer */
.footer-column1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0px;
}


.footer-brand-container{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}
.footer-brand{
  font-family: "Pacifico", cursive;
  font-size: 3.6rem;
  color: #333333;
 
}
.footer-logo{
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-socials img{
  width: 4rem;
  height: 4rem;
  transition: transform 0.3s;
}

.footer-socials img:hover{
  transform: scale(1.1);
}

.footer-contact {
  display: flex;
  gap: 8px;
  color: #333333;
  font-size: 1.5rem;
}

.footer-contact img{
  width: 2rem;
  height: 2rem;
}

/* css cột Company của footer */
.footer-column2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 0px;
}

.footer-title2{
  font-weight: bold;
  font-size: 2.4rem;
  margin-bottom: 30px;
  margin-top: 50px;

}
.footer-column2 ul{
  padding: 0;
  margin: 0;
}
.footer-column2 li {
  list-style: none;
  margin-bottom: 20px;
  font-size: 1.6rem;
}
/* Css cho cột 3 help của footer */

.footer-column3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 0px;
}

.footer-title3{
  font-weight: bold;
  font-size: 2.4rem;
  margin-bottom: 30px;
  margin-top: 50px;
}
.footer-column3 ul{
  padding: 0;
  margin: 0;
}
.footer-column3 li {
  list-style: none;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

/* Css cho cột 4 */
.footer-column4 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 0px;
}


.footer-title4{
  font-weight: bold;
  font-size: 2.4rem;
  margin-bottom: 30px;
  text-wrap: nowrap;
  margin-top: 50px;
}
.footer-column4 ul{
  padding: 0;
  margin: 0;
}
.footer-column4 li {
  list-style: none;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.footer-column4 form {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}
.footer-column4 input[type='email']{
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background-color: #f5f5f5; 
  font-size: 14px;
  outline: none; /* Ẩn viền xanh khi focus */
  box-sizing: border-box;
}
.footer-column4 input[type="email"]::placeholder {
  color: #999; 
}

.footer-column4 input[type="email"]:focus {
  background-color: #fff; /* Khi click vào thì nền sáng hơn chút */
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.footer-column4 input[type="submit"] {
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background-color: #000;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.footer-column4 input[type="submit"]:hover {
  background-color: #333;
}

/* =========================================
   STYLE CHO CÁC LINK PHỤ FOOTER 
========================================= */

/* 1. Định dạng mặc định */
.footer-column2 ul li a,
.footer-column3 ul li a,
.footer-column4 ul li a {
  text-decoration: none;     /* Bỏ gạch chân */
  color: #333333;            /* Màu gốc */
  display: inline-block;     /* Giúp hiệu ứng ổn định hơn */
  transition: transform 0.2s ease; /* Hiệu ứng mượt */
}

/* 2. Hiệu ứng khi Hover: in đậm */
.footer-column2 ul li a:hover,
.footer-column3 ul li a:hover,
.footer-column4 ul li a:hover {
  font-weight: bold;      /* In đậm chữ */
  transform: scale(1.05); /* Phóng to nhẹ (5%)  */
}

.footer-bottom {
  /* Căn giữa 2 dòng text */
  text-align: center;
  margin-top: 0px;
  padding-top: 0px;
  padding-bottom: 20px;
  color: #333333;
  width: 100%;
}


.footer-legal-links {
  /* Tạo khoảng cách giữa hàng link và hàng copyright */
  margin-bottom: 15px;
}

.footer-legal-links a {
  /* Bỏ gạch chân */
  text-decoration: none;
  /* Lấy màu chữ từ cha (.footer-bottom) */
  color: inherit;
  margin: 0 10px;
  font-weight: 600;
  font-size: 1.6rem;
}


/* Thêm dấu gạch đứng "|" vào sau mỗi link (trừ link cuối cùng) */
.footer-legal-links a:not(:last-child)::after {
  content: "|";
  margin-left: 20px;
  color: #555;
  font-weight: normal;
}
.footer-legal-links a:hover {
  text-decoration: underline; /* Thêm gạch chân khi di chuột vào */
}

.footer-copyright {
  font-size: 1.4rem; 
  color: #555; 
  margin: 0; 
}
@media (max-width: 768px) {
 /* 1. Chuyển container chính sang layout cột */
 .footer-content-container {
 flex-direction: column; /* Xếp 4 cột chồng lên nhau */
 align-items: center;  /* Căn giữa các cột theo chiều ngang */
 gap: 40px;  /* Tăng khoảng cách dọc giữa các cột */
 }

 /* 2. Cho tất cả các cột chiếm 90% chiều rộng và căn giữa */
 .footer-column1,
 .footer-column2,
 .footer-column3,
 .footer-column4 {
  width: 90%;    /* Đặt chiều rộng là 90% */
  max-width: 350px;  /* Giới hạn chiều rộng tối đa cho đẹp */
  align-items: center;  /* Căn giữa nội dung bên trong cột (logo, text) */
  text-align: center; /* Căn giữa tất cả chữ */
  margin: 0; /* Xóa margin cũ */
 }

 /* 3. Reset lề của các tiêu đề (vì đã có 'gap' ở container) */
 .footer-title2,
 .footer-title3,
 .footer-title4 {
  margin-top: 0; /* Xóa lề trên 50px */
  margin-bottom: 20px;/* Giảm lề dưới 1 chút */
 }

 /* 4. Chuyển form (email + submit) thành layout cột */
 .footer-column4 form {
  flex-direction: column; /* Ô input và nút submit chồng lên nhau */
 }

 /* 5. Cho nút submit chiếm 100% chiều rộng của form */
 .footer-column4 input[type="submit"] {
 width: 100%;
 }

 /* 6. Chuyển các link (Privacy, Terms) thành layout cột */
 .footer-legal-links {
  display: flex;
  flex-direction: column; /* Xếp các link chồng lên nhau */
  gap: 10px; /* Khoảng cách giữa các link */
  margin-bottom: 20px;
 }

 /* 7. Xóa dấu gạch đứng "|" giữa các link */
 .footer-legal-links a:not(:last-child)::after {
  content: none; /* Ẩn dấu | đi */
 }
}
/* Áp dụng cho màn hình từ 480px trở xuống (Điện thoại nhỏ) */
@media (max-width: 480px) {

 /* 1. Cho logo và tên thương hiệu nhỏ lại 1 chút */
 .footer-logo {
  width: 80px; /* Giảm từ 100px xuống 80px */
  height: 80px;
 }

 .footer-brand {
  font-size: 1.8rem; /* Giảm từ 2rem xuống 1.8rem */
 }

 /* 2. Giảm cỡ chữ của các tiêu đề cột */
 .footer-title2,
 .footer-title3,
 .footer-title4 {
  font-size: 1.3rem; /* Giảm từ 1.5rem xuống 1.3rem */
 }

 .footer-socials img{
  width: 20px;
  height: 20px;

}

 /* 3. Giảm cỡ chữ của icon liên hệ */
 .footer-contact {
  font-size: 1.3rem; /* Giảm từ 1.5rem xuống 1.3rem */
 }
 /* Giảm khoảng cách của logo với icon socials */
 .footer-brand-container{
  margin-bottom: 10px;
 }
}
