:root {
  --footer-bg: #333;
  --accent-red: #cd1417;
  --accent-blue: #025afc;
}

/* ---------- Footer 548px ---------- */
.ft {
  background: var(--footer-bg);
  color: #fff;
}
.ft__in {
  width: 100%;
  padding: 61px 90px 0;
}
.ft__cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.ft__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ft__col--apps {
  gap: 13px;
  margin-left: auto;
}
.ft__h {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
}
.ft__i {
  font-size: 14px;
  line-height: normal;
  color: #fff;
  text-decoration: none;
}
a.ft__i:hover {
  text-decoration: underline;
}
.ft__mail {
  color: var(--accent-blue);
  text-decoration: none;
}
.lang {
  align-self: flex-start;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 8px 5px;
  display: flex;
  align-items: center;
  gap: 29px;
  background: none;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  text-decoration: none;
}
/* Dropdown chon ngon ngu (views/site/footer.php): menu trang duoi nut, kieu menu V4 */
.lang-dd {
  position: relative;
  align-self: flex-start;
}
.lang-dd__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  min-width: 100%;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}
.lang-dd__menu[hidden] {
  display: none;
}
.lang-dd__item {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 21px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}
.lang-dd__item:hover {
  background: #f0f5f8;
}
.lang-dd__item.is-active {
  color: #025afc;
  font-weight: 600;
}
.lang__l {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang img {
  width: 20px;
  height: 20px;
}
.lang span {
  font-size: 14px;
}
.badges {
  display: flex;
  gap: 10px;
}
.badges img {
  width: 130px;
  height: 42px;
  object-fit: contain;
}
.ft__fb {
  width: 40px;
  height: 40px;
}
.ft__hr {
  margin: 40px 0 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.ft__legal {
  display: flex;
  gap: 40px;
  padding: 22px 0 40px;
  align-items: flex-start;
}
.ft__legal p {
  margin: 0;
  max-width: 815px;
  font-size: 14px;
  line-height: 24px;
}
.ft__bct {
  width: 221px;
  height: 84px;
  flex: 0 0 auto;
  object-fit: contain;
  margin-left: auto;
}

@media (max-width: 1100px) {
  .ft__in {
    padding: 48px 24px 0;
  }
  .ft__cols {
    gap: 32px;
  }
  .ft__col--apps {
    margin-left: 0;
  }
  .ft__legal {
    flex-direction: column;
  }
  .ft__bct {
    margin-left: 0;
  }
}

/* ===== Footer theo METADATA Figma (Frame 629, node 14985:14253) =====
   4 cot o x=90/399/699/998 trong khung 1366 -> noi dung gom trong 1186px can giua,
   cot cach ~300px. Trang that dang space-between tran toan man hinh -> cot dat ra 2 mep.
   Nen toi #333 van full-bleed; chi phan CHU duoc gom lai. */
.ft__in {
  max-width: 1186px !important;
  margin: 0 auto !important;
  padding: 61px 24px 0 !important;
}
.ft__cols {
  display: grid !important;
  grid-template-columns: 309px 300px 299px 270px !important;
  justify-content: start !important;
  gap: 0 !important;
}
.ft__col {
  max-width: none;
}
.ft__h {
  font-size: 16px !important;
  line-height: 19px !important;
  margin: 0 0 8px !important;
  font-weight: 600;
}
.ft__i {
  display: block;
  font-size: 14px !important;
  line-height: 16px !important;
  margin: 0 0 8px !important;
}
/* Badge tai ung dung 130x42, cach nhau 10 (image4 x=0, image5 x=140) */
.badges {
  display: flex;
  gap: 10px;
}
.badges img {
  width: 130px !important;
  height: 42px !important;
}
.ft__fb {
  width: 40px;
  height: 40px;
}
/* Duong ke y=232 chay het be ngang khung (Line 53 x=0 w=1366) -> full-bleed */
.ft__hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100vw;
  margin: 26px calc(50% - 50vw) 0;
}
/* Legal: chu rong 815 (x=90), logo BCT 221x84 o x=1001 -> cach chu 96px, KHONG day sat mep */
.ft__legal {
  display: flex !important;
  align-items: flex-start;
  justify-content: flex-start !important;
  margin: 22px 0 0 !important;
  padding-bottom: 30px;
}
.ft__legal p {
  width: 815px;
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 24px;
  margin: 0;
}
.ft__bct {
  width: 221px !important;
  height: 84px !important;
  margin-left: 96px !important;
}
@media (max-width: 1240px) {
  .ft__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px 24px !important;
  }
  .ft__legal {
    flex-wrap: wrap;
    gap: 24px;
  }
  .ft__bct {
    margin-left: 0 !important;
  }
}
/* p co san margin-phai 40 tu style goc -> bu de khoang chu->logo BCT dung 96 nhu Figma */
.ft__bct {
  margin-left: 56px !important;
}

/* Footer: .ft__in dang co padding ngang 24 -> 4 cot bat dau x=114, thiet ke la x=90
   (Frame 589/590/591/595 = 90/399/699/998). Bo padding ngang. */
.ft__in {
  padding: 61px 0 0 !important;
}

/* Footer - do lai theo Frame 629 (14985:14253). Goc toa do = mep tren footer (y=2152):
   cot 1-3 o +61, cot "TAI UNG DUNG" o +53, vach ke +232, khoi phap ly +254 (cao 264),
   day footer +548. Cac muc trong cot cach nhau dung 8px (19/16 + 8). */
.ft__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ft__col .ft__h {
  margin: 0 !important;
  line-height: 19px;
}
.ft__col .ft__i {
  margin: 0 !important;
  line-height: 16px;
}
.ft__col .lang {
  height: 36px;
}
.ft__col--apps {
  margin-top: -8px;
}
/* Chi doi margin-top: giu margin ngang calc(50% - 50vw) de hr (width 100vw) full-bleed tu giua .ft__in. Truoc day
   shorthand "20px 0 0" xoa margin ngang -> hr bat dau o mep trai .ft__in va tran ngang trang (scroll ngang). */
.ft__hr {
  margin: 20px calc(50% - 50vw) 0 !important;
}
/* 100vw gom ca thanh cuon doc nen hr dai hon vung hien thi vai px; cat phan thua ngay trong footer. */
.ft {
  overflow-x: clip;
}
.ft__legal {
  margin: 0 !important;
  padding: 22px 0 30px !important;
}
.ft__cols .ft__col--apps {
  margin-top: -8px !important;
  gap: 13px !important;
}

/* Link "Cai dat Cookie" (Figma 117:41269, Frame 629): chu Roboto 14 mau #8ED0FF, nam duoi o chon ngon ngu
   cach 16 (gap cot 8 + them 8). Mo popup cookie qua data-fck-open (web/js/cookie-consent.js). */
.ft__col a.ft__cookie {
  align-self: flex-start;
  margin-top: 8px !important;
  color: #8ed0ff;
}
