/* =========================================================
 * MUSKIS FOOTER
 * Nội dung theo Row/Column Flatsome, nền tràn full width
 * ========================================================= */

.absolute-footer {
  display: none !important;
}

.musk-site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #ffffff;
}

.musk-site-footer a {
  color: inherit;
  text-decoration: none;
}

/* =========================================================
 * KHỐI CHÍNH
 * ========================================================= */

.musk-site-footer__main {
  position: relative;
  z-index: 1;
  width: 100%;
}

.musk-site-footer__main-background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  background-image: url(/wp-content/uploads/2026/09/bg-footer-scaled-1.webp);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  pointer-events: none;
}

.musk-site-footer__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 70px 0px 50px 0px;
}

/* =========================================================
 * MARQUEE DỊCH VỤ
 * ========================================================= */

.musk-site-footer__tags-viewport {
  position: relative;
  width: 100%;
  margin-bottom: 50px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000000 3%,
    #000000 97%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000000 3%,
    #000000 97%,
    transparent 100%
  );
}

.musk-site-footer__tags-track {
  display: flex;
  align-items: center;
  width: max-content;
  transform: translate3d(0, 0, 0);
  animation: musk-footer-marquee 52s linear infinite;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

.musk-site-footer__tags-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-right: 20px;
  gap: 20px;
}

.musk-site-footer__tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 58px;
  padding: 8px 28px 8px 9px;
  border: 1px solid rgba(104, 133, 255, 0.2);
  border-radius: 999px;
  background: rgba(4, 12, 83, 0.58);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.musk-site-footer__tag-check {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 14px;
  border-radius: 50%;
  background: rgba(119, 149, 255, 0.18);
  color: #ffffff;
}

.musk-site-footer__tag-check svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.musk-site-footer__tag-text {
  display: block;
}

.musk-site-footer__tags-viewport:hover .musk-site-footer__tags-track {
  animation-play-state: paused;
}

.musk-site-footer.is-paused .musk-site-footer__tags-track {
  animation-play-state: paused;
}

@keyframes musk-footer-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* =========================================================
 * GRID HÀNG TRÊN
 * ========================================================= */

.musk-site-footer__primary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 30px;
}

/* =========================================================
 * CARD CHUNG
 * ========================================================= */

.musk-site-footer__brand-card,
.musk-site-footer__office-card,
.musk-site-footer__links-card {
  min-width: 0;
  width: 100%;
  height: 100%;
  border-radius: 7px;
}

.musk-site-footer__brand-card,
.musk-site-footer__office-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* =========================================================
 * BRAND
 * ========================================================= */

.musk-site-footer__brand-content {
  min-width: 0;
}

.musk-site-footer__logo {
  display: block;
  width: 100%;
  max-width: 260px;
}

.musk-site-footer__logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: left center;
}

.musk-site-footer__introduction {
  font-size: 14px !important;
  text-align: justify;
  margin: 31px 0 27px;
  color: rgba(255, 255, 255, 0.93);
  font-weight: 500;
  line-height: 1.75;
}

/* =========================================================
 * SOCIAL ICONS
 * ========================================================= */

.musk-site-footer__socials {
  display: flex;
  align-items: center;
  gap: 11px;
}

.musk-site-footer__socials a {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.88);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.musk-site-footer__socials a:hover {
  border-color: #1b5cff;
  background: #1b5cff;
  color: #ffffff;
  transform: translateY(-3px);
}

.musk-site-footer__socials a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.3);
  outline-offset: 3px;
}

.musk-site-footer__socials svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.musk-site-footer__socials .musk-site-footer__youtube-play {
  fill: #020650;
  stroke: none;
}

/* =========================================================
 * TITLE CARD
 * ========================================================= */

.musk-site-footer__card-title {
  margin: 0 0 23px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.35;
  text-transform: capitalize;
}

/* =========================================================
 * OFFICE
 * ========================================================= */

.musk-site-footer__office-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 17px;
}

.musk-site-footer__office-row {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: start;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  gap: 13px;
}

.musk-site-footer__office-row > span:last-child,
.musk-site-footer__office-row > a {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.musk-site-footer__office-row a {
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.25s ease;
}

.musk-site-footer__office-row a:hover {
  color: #7caaff;
}

.musk-site-footer__office-row a:focus-visible {
  outline: 2px solid rgba(124, 170, 255, 0.7);
  outline-offset: 3px;
}

.musk-site-footer__office-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.91);
}

.musk-site-footer__office-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
 * GRID HÀNG DƯỚI
 * ========================================================= */

.musk-site-footer__link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  margin-top: 10px;
  gap: 30px;
}

.musk-site-footer__links-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 25px 28px;
}

/* =========================================================
 * LINK LIST
 * ========================================================= */

.musk-site-footer__link-list {
  display: grid;
  flex: 1;
  align-content: start;
  margin: 0;
  padding: 0;
  gap: 11px;
  list-style: none;
}

.musk-site-footer__link-list--two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 28px;
}

.musk-site-footer__link-list li {
  position: relative;
  min-width: 0;
  margin: 0;
  margin-left: 0px !important;
  padding: 0 0 0 14px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.musk-site-footer__link-list li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
}

.musk-site-footer__link-list a {
  display: inline-block;
  min-width: 0;
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.musk-site-footer__link-list a:hover {
  color: #78a8ff;
  transform: translateX(4px);
}

.musk-site-footer__link-list a:focus-visible {
  outline: 2px solid rgba(120, 168, 255, 0.7);
  outline-offset: 3px;
}

/* =========================================================
 * THANH CUỐI
 * ========================================================= */

.musk-site-footer__bottom-wrap {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.musk-site-footer__bottom-background {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  margin-left: -50vw;
  background: #001d4a;
  pointer-events: none;
}

.musk-site-footer__bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 9px 52px;
  background: #deedff;
  color: #020842;
  clip-path: polygon(2.7% 0, 97.3% 0, 100% 100%, 0 100%);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  gap: 25px;
}

.musk-site-footer__copyright {
  text-align: left;
}

.musk-site-footer__business {
  text-align: center;
}

.musk-site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  gap: 4px;
}

.musk-site-footer__legal a {
  color: #111a36;
  transition: color 0.25s ease;
}

.musk-site-footer__legal a:hover {
  color: #1b5cff;
}

/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 767px) {
  .musk-site-footer__inner {
    padding-top: 43px;
    padding: 36px 0 39px;
  }

  .musk-site-footer__primary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .musk-site-footer__brand-card {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .musk-site-footer__introduction {
    max-width: 600px;
    margin-top: 24px;
  }

  .musk-site-footer__link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .musk-site-footer__links-card:last-child {
    grid-column: 1 / -1;
  }

  .musk-site-footer__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
    text-align: center;
    gap: 8px;
    padding: 17px 25px;
    clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
    font-size: 9px;
  }

  .musk-site-footer__copyright,
  .musk-site-footer__business {
    text-align: center;
  }

  .musk-site-footer__legal {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .musk-site-footer__tags-viewport {
    margin-bottom: 26px;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000000 7%,
      #000000 93%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000000 7%,
      #000000 93%,
      transparent 100%
    );
  }

  .musk-site-footer__tags-track {
    animation-duration: 42s;
  }

  .musk-site-footer__tag {
    min-height: 48px;
    padding-right: 20px;
    font-size: 13px;
  }

  .musk-site-footer__tag-check {
    flex-basis: 33px;
    width: 33px;
    height: 33px;
    margin-right: 10px;
  }

  .musk-site-footer__primary-grid,
  .musk-site-footer__link-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    align-items: start;
    gap: 10px;
  }

  .musk-site-footer__brand-card,
  .musk-site-footer__office-card,
  .musk-site-footer__links-card {
    min-height: 0;
    height: auto;
    padding: 24px 21px;
  }

  .musk-site-footer__office-list,
  .musk-site-footer__link-list {
    flex: none;
  }

  .musk-site-footer__brand-card,
  .musk-site-footer__links-card:last-child {
    grid-column: auto;
  }

  .musk-site-footer__logo {
    width: 100%;
    max-width: 230px;
  }

  .musk-site-footer__card-title {
    margin-bottom: 19px;
  }

  .musk-site-footer__office-row {
    font-size: 12px;
  }

  .musk-site-footer__link-list li {
    font-size: 12px;
  }

  .musk-site-footer__link-list--two-columns {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .musk-site-footer__tags-viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: none;
  }

  .musk-site-footer__tags-viewport::-webkit-scrollbar {
    display: none;
  }

  .musk-site-footer__tags-track {
    transform: none;
    animation: none;
  }

  .musk-site-footer__tags-group[aria-hidden="true"] {
    display: none;
  }

  .musk-site-footer__socials a,
  .musk-site-footer__link-list a,
  .musk-site-footer__office-row a,
  .musk-site-footer__legal a {
    transition: none !important;
  }
}
