/* =======================================================
   FOOTER SOBIE — đã vá lỗi chồng chéo
======================================================== */
.sobie-footer {
  font-family: 'Montserrat', sans-serif;
  background-color: #0B78B9;
  color: #fff;
  line-height: 1.6;
  padding: 40px 0 20px;
}
.sf-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.sobie-footer *,
.sobie-footer *::before,
.sobie-footer *::after { box-sizing: border-box; }

/* ---------- TOP: logo/socials trái — liên hệ phải ---------- */
.sf-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}
.sf-top-left {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 550px;
}
.sf-logo { display: inline-block; }
.sf-logo img { max-width: 180px; height: auto; display: block; }
.sf-top-left h3 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}
.sf-top-left p {
  font-size: 14px;
  color: #f3f4f6;
  margin: 0 0 25px 0;
}
.sf-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}
.sf-btn:hover { background: #e5e5e5; transform: translateY(-2px); }
.sf-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.social-box {
  width: 44px; height: 44px;
  border: 1px solid #fff;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.social-box:hover { background: #fff; color: #000; }

/* Cột phải: giữ nguyên bề ngang, không kéo giãn đè sang trái */
.sf-top-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.sf-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.sf-contact-item i {
  font-size: 30px;
  flex-shrink: 0;
  width: 34px;
  text-align: center;
}
.sf-contact-info p.lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #f3f4f6;
  margin: 0 0 2px 0;
}
.sf-contact-info p.val {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  word-break: break-word;
}

.sf-divider {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin: 24px 0;
}

/* ---------- MIDDLE: các cột menu ---------- */
.sf-middle {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: start;
}
.sf-col-address { grid-column: span 2; }
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  color: #fff;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.footer-list li { margin-bottom: 12px; }
.footer-list a {
  color: #f3f4f6;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-list a:hover { color: #facc15; }
.sf-address p {
  font-size: 13px;
  color: #f3f4f6;
  margin: 0 0 15px 0;
  line-height: 1.6;
}
.sf-address span {
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
}

/* ---------- BOTTOM: copyright + badges ---------- */
.sf-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.sf-copy { flex: 0 0 auto; min-width: 0; }
.sf-copy p {
  font-size: 11px;
  color: #f3f4f6;
  margin: 0 0 5px 0;
  max-width: 800px;
}
.sf-copy p.c-bold {
  font-weight: 700;
  color: #e5e7eb;
}
.sf-badges {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}
.sf-badges img { height: 35px; object-fit: contain; }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed;
  left: 20px; bottom: 20px;
  width: 44px; height: 44px;
  background-color: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
#back-to-top.show { opacity: 1; visibility: visible; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .sf-top { align-items: flex-start; }
  .sf-top-left { flex: 1 1 100%; max-width: none; }
  .sf-top-right { flex: 1 1 100%; }
  .sf-middle { grid-template-columns: repeat(2, 1fr); }
  .sf-col-address { grid-column: span 2; }
}
@media (max-width: 768px) {
  .sobie-footer { padding: 30px 0 20px; }
  .sf-top-left h3 { font-size: 22px; }
  .sf-contact-info p.val { font-size: 18px; }
  .sf-bottom { flex-direction: column; align-items: flex-start; }
  #back-to-top { bottom: 85px; }
}
@media (max-width: 480px) {
  .sf-middle { grid-template-columns: 1fr; }
  .sf-col-address { grid-column: span 1; }
}
/* === Bỏ khoảng trống dư cuối chân trang === */
.sobie-footer { padding-bottom: 24px !important; min-height: 0 !important; }
.sf-container { padding-bottom: 0 !important; }
.sf-bottom { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.sf-bottom > *:last-child,
.sf-copy > *:last-child { margin-bottom: 0 !important; }
.sf-badges:empty { display: none !important; }
@media (max-width: 767px){
  .sobie-footer .sf-top{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .sobie-footer .sf-top-left{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
  }
  .sobie-footer .sf-logo,
  .sobie-footer .sf-logo img{
    width: 110px;
    height: auto;
  }
  .sobie-footer .sf-socials{
    justify-content: center;
    width: auto;
    gap: 12px;
  }
  .sobie-footer .sf-top-right{
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    align-items: flex-start;
    gap: 18px;
  }
  .sobie-footer .sf-contact-item{
    width: 100%;
    text-align: left;
  }
}