/* Footer tổng thể */

#footer:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("https://irchea.vn/wp-content/themes/flatsome-child/assets/images/bg-footer.png")
    no-repeat 30%;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

.section-footer {
  background-color: #f4f8fb;
  color: #333;
  padding: 20px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* Bên trong footer */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Bên trái */
.footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 50px;
}

.footer-text {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-text .business-info {
  font-size: 13px;
  color: #333;
}

.footer-text .copyright {
  font-size: 12px;
  color: #666;
}

/* Bên phải: social & cert */
.footer-right .social-footer {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
  /* căn theo trục ngang */
}

/* Social Footer (In Payment Section) */
.social-footer {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 15px;
}

.social-footer li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e2e8f0;
  transition: all 0.3s;
  color: #475569;
}

.social-footer li a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-footer li a:hover {
  transform: translateY(-3px);
  color: #fff;
}

.company-details li a img {
  transition: transform 0.3s;
}

.company-details li a:hover img {
  transform: translateY(-2px);
}

/* Certifications Row */
.certification-logos {
  display: flex !important;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.certification-logos img {
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* Bo Cong Thuong might need to be slightly larger */
.certification-logos a img {
  height: 42px;
}

/* Facebook Hover */
.social-footer li:hover a {
  background-color: #1877f2; /* FB Blue */
}

/* Youtube Hover */
.social-footer li:nth-child(2):hover a {
  background-color: #ff0000; /* YT Red */
}

/* Zalo Hover (3rd item) */
.social-footer li:nth-child(3):hover a {
  background-color: #0068ff; /* Zalo Blue */
}

.zalo-btn {
  font-weight: 900;
  font-family: sans-serif;
  font-size: 10px !important;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .footer-right .social-footer {
    justify-content: flex-start;
  }
}

.section-company-payment {
  background-color: #ffffff;
  padding: 20px 0;
  font-family: Arial, sans-serif;
  color: #333;
}

.payment-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Cột thông tin công ty */
.company-info .company-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.company-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.company-details li {
  margin-bottom: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-details li i {
  color: #2e95e9;
  width: 20px;
  text-align: center;
}

/* Cột thanh toán */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.payment-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.payment-logos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
  .payment-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-methods {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Custom Footer Menu Styles */
#footer .widget_nav_menu .menu > li {
  border-bottom: none !important;
  padding: 6px 0 !important;
}

#footer .widget_nav_menu .menu > li > a {
  position: relative;
  text-decoration: none !important;
  display: inline-block;
  transition: color 0.3s;
  padding-bottom: 2px;
}

/* Sliding underline effect */
#footer .widget_nav_menu .menu > li > a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  background: #2e95e9; /* Blue color matching theme */
  transition: width 0.3s ease;
  bottom: 0;
  left: 0;
}

#footer .widget_nav_menu .menu > li > a:hover:after {
  width: 100%;
}

#footer .widget_nav_menu .menu > li > a:hover {
  color: #2e95e9;
}

/* Contact Bar Overlay */
.footer-contact-bar {
  position: relative;
  z-index: 100;
  transform: translateY(-20%);
}

.contact-bar-inner {
  background: #fff;
  border: 1px solid #fbbf24; /* Lighter Gold */
  border-radius: 60px;
  display: flex;
  justify-content: space-evenly; /* Even spacing */
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.15); /* Warm shadow */
  max-width: 900px; /* Limit width */
  margin: 0 auto; /* Center it */
}

.cb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.cb-item:hover {
  transform: scale(1.02);
}

.cb-icon {
  width: 44px; /* Slightly smaller */
  height: 44px;
  border-radius: 50%;
  border: 1px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  background: #fff;
  transition: all 0.3s;
}

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

.cb-item:hover .cb-icon {
  background: #f59e0b;
  color: #fff;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.cb-text {
  display: flex;
  flex-direction: column;
}

.cb-title {
  font-family:
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Modern sans-serif */
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
  line-height: 1.2;
}

.cb-desc {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.cb-divider {
  width: 1px;
  height: 30px;
  background: #e2e8f0;
}

@media (max-width: 768px) {
  .footer-contact-bar {
    transform: none;
    margin-bottom: 30px;
    margin-top: -20px;
  }
  .contact-bar-inner {
    flex-direction: column;
    padding: 20px;
    align-items: flex-start;
    border-radius: 16px;
    width: 90%;
    gap: 15px;
  }
  .cb-divider {
    display: none;
  }
  .cb-item {
    width: 100%;
    justify-content: flex-start;
  }
}
