

.footer {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #FFFFFF;
  min-height: 581px;
  position: relative;
  font-family: 'Sora', sans-serif;
  padding-top: 60px;
  padding-right: 64px;
  padding-bottom: 20px;
  padding-left: 64px;
  gap: 40px;
}

/* Footer Container */
.footer__container {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

/* Navigation Container - Grid layout với 3 cột rõ ràng */
.footer__nav-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--Border, #393939);
  overflow: hidden;
  width: 1312px;
}

/* Mỗi cột navigation */
.footer__nav-column {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--Border, #393939);
  min-height: 200px;
  transition: all 0.3s ease;
  position: relative;
}


/* Title trong mỗi cột */
.footer__nav-column .footer__nav-title {
  padding: 32px 32px 16px 32px;
  border-bottom: 1px solid var(--Border, #393939);
  position: relative;
  transition: all 0.3s ease;
}

/* Links container trong mỗi cột */
.footer__nav-column .footer__nav-links {
  padding: 24px 32px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
}

/* Hiệu ứng cho links khi hover cột - chỉ thay đổi màu, không transform */
.footer__nav-column:hover .footer__nav-link {
  color: #FFFFFF;
}

/* Legacy support - ẩn các class cũ */
.footer__nav-titles-row,
.footer__nav-links-row {
  display: none;
}

/* Header Section */
.footer__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 1312px;
}

.footer__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1em;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  max-width: 575px;
}

.footer__cta-button {
  display:flex;
  align-items: center;
  justify-content: center;
  border: 1.63px solid #999999;
  border-radius: 2px; 
  color: #999999;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1; /* Đảm bảo nội dung nằm trên pseudo-element viền */
  width: 148px;
  height: 37px;
  text-transform: uppercase;
}

/* Spacing between text and Font Awesome icon */
.footer__cta-button i {
  margin-left: 8px;
}

/* Đảm bảo nội dung nằm trên pseudo-element */
.footer__cta-button > * {
  position: relative;
  z-index: 3;
}

/* Footer Content Grid - Giữ lại cho backward compatibility */
.footer__content {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 80px;
  align-items: start;
  margin-bottom: 40px;
}

/* Location and Time Section */
.footer__info {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

.footer__location {
  font-size: 14px;
  font-weight: 300;
  line-height: 1em;
  color: #A5A5A5;
}

.footer__time {
  font-size: 14px;
  font-weight: 300;
  line-height: 1em;
  letter-spacing: -0.02em;
  color: #A5A5A5;
}

/* Navigation Sections */
.footer__nav-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__nav-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.26em;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 0; /* Loại bỏ margin mặc định của h3 */
  text-align: left; /* Căn trái cho nhất quán với links */
}

.footer__nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__nav-link {
  font-size: 24px;
  font-weight: 300;
  line-height: 1.26em;
  letter-spacing: -0.02em;
  color: #A5A5A5;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover effect cho individual links */
.footer__nav-link:hover {
  color: #FFFFFF;
  transform: translateX(4px);
}

/* Underline effect cho links */
.footer__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #FFFFFF;
  transition: width 0.3s ease;
}

.footer__nav-link:hover::after {
  width: 100%;
}



/* Divider Line */
.footer__divider {
  height: 1px;
  background: #6C6C6C;
  margin: 40px 0;
}

/* Bottom Section */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width:1312px;
}

/* Social Media Icons */
.footer__social {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer__social-icon {
  width: 35px;
  height: 35px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}



.footer__social-icon img {
  width: 20px;
  height: 20px;
  filter:invert(1); 
}


.footer__social-icon svg {
  width: 20px;
  height: 20px;
}


/* Copyright Section */
.footer__copyright {
  display: flex;
  align-items: center;
  gap: 6.4px;
  color: #A5A5A5;
}

.footer__copyright-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.26em;
}

.footer__copyright-year {
  font-size: 12.8px;
  font-weight: 400;
  line-height: 1.26em;
}

/* ==========================
   Mobile Responsive (<=768px)
   ========================== */
@media (max-width: 768px) {
  .footer {
    padding: 40px 16px 20px;
    gap: 40px;
  }

  .footer__container {
    gap: 40px;
    width: 100%;
  }
  
  /* Header Section - Stack vertically with proper spacing */
  .footer__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: stretch;
  }

  .footer__title {
    font-size: 20px;
    line-height: 1.5em;
    font-weight: 400;
    text-align: left;
    margin-bottom: 0;
    max-width: none;
  }

  .footer__cta-button {
    width: auto;
    height: auto;
    padding: 8px 16px;
    font-size: 14px;
    align-self: flex-start;
  }

  /* Navigation Container - Mobile responsive với 2x2 grid */
  .footer__nav-container {
    width: 100%;
    border: 1px solid #393939;
    border-radius: 4px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
  }

  /* Services column - chiếm 2 cột ở hàng trên */
  .footer__nav-column:first-child {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid #393939;
    min-height: auto;
  }

  /* Company column - cột đầu tiên hàng dưới */
  .footer__nav-column:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    border-right: 1px solid #393939;
    border-bottom: none;
    min-height: auto;
  }

  /* Contact column - cột thứ hai hàng dưới */
  .footer__nav-column:last-child {
    grid-column: 2;
    grid-row: 2;
    border-right: none;
    border-bottom: none;
    min-height: auto;
  }

  /* Title trong mỗi cột trên mobile */
  .footer__nav-column .footer__nav-title {
    padding: 20px 24px 12px 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5em;
    text-transform: none;
  }

  /* Services title - padding đặc biệt cho box rộng */
  .footer__nav-column:first-child .footer__nav-title {
    padding: 20px 24px 12px 24px;
    text-align: left; /* Căn trái thay vì căn giữa */
  }

  /* Links container trong mỗi cột trên mobile */
  .footer__nav-column .footer__nav-links {
    padding: 16px 24px 24px 24px;
    gap: 12px;
  }

  /* Services links - hiển thị theo cột dọc */
  .footer__nav-column:first-child .footer__nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px 24px 24px;
  }

  .footer__nav-link {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6em;
  }

  /* Bottom Section - Stack vertically */
  .footer__bottom {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    width: 100%;
    margin-top: 0;
  }

  .footer__info {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    justify-content: center;
  }

  .footer__location {
    font-size: 14px;
  }

  .footer__time {
    font-size: 14px;
  }

  .footer__copyright {
    justify-content: center;
  }

  .footer__copyright-text {
    font-size: 14px;
  }

  .footer__copyright-year {
    font-size: 14px;
  }

  .footer__social {
    gap: 16px;
  }

  .footer__social-icon {
    width: 32px;
    height: 32px;
  }
}

/* ==========================
   Small Mobile (<=480px)
   ========================== */
@media (max-width: 480px) {
  .footer {
    padding: 40px 16px 20px;
  }

  .footer__header {
    gap: 16px;
  }

  .footer__title {
    font-size: 20px;
  }

  .footer__cta-button {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* Smaller padding for very small screens - giữ nguyên layout 2x2 */
  .footer__nav-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .footer__nav-column:first-child {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid #393939;
  }

  .footer__nav-column:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    border-right: 1px solid #393939;
    border-bottom: none;
  }

  .footer__nav-column:last-child {
    grid-column: 2;
    grid-row: 2;
    border-right: none;
    border-bottom: none;
  }

  .footer__nav-column .footer__nav-title {
    padding: 16px 20px 10px 20px;
    font-size: 15px;
  }

  /* Services title trên màn hình nhỏ */
  .footer__nav-column:first-child .footer__nav-title {
    padding: 16px 20px 10px 20px;
    text-align: left; /* Căn trái thay vì căn giữa */
  }

  .footer__nav-column .footer__nav-links {
    padding: 12px 20px 20px 20px;
    gap: 10px;
  }

  /* Services links trên màn hình nhỏ - hiển thị theo cột dọc */
  .footer__nav-column:first-child .footer__nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 20px 20px 20px;
  }

  .footer__nav-link {
    font-size: 14px;
  }

  .footer__info {
    gap: 6px;
  }

  .footer__location,
  .footer__time {
    font-size: 14px;
  }

  .footer__copyright-text,
  .footer__copyright-year {
    font-size: 14px;
  }

  .footer__social-icon {
    width: 32px;
    height: 32px;
  }
}
