/* ==========================================================================
   HK79 Footer Stylesheet
   Cloned from https://hk79.org/
   ========================================================================== */

@font-face {
  font-family: "fl-icons";
  font-display: block;
  src: url("../fonts/fl-icons.woff2") format("woff2");
}

/* Icon glyphs */
.footer-wrapper [class*=" icon-"],
.footer-wrapper [class^="icon-"],
#top-link [class*=" icon-"],
#top-link [class^="icon-"] {
  display: inline-block;
  font-family: "fl-icons" !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-weight: 400 !important;
  line-height: 1;
  speak: none !important;
  text-transform: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-angle-right:before { content: "\f105"; }
.icon-angle-up:before    { content: "\f106"; }
.icon-facebook:before    { content: "\e002"; }
.icon-instagram:before   { content: "\e00e"; }
.icon-twitter:before     { content: "\e001"; }
.icon-pinterest:before   { content: "\e010"; }
.icon-linkedin:before    { content: "\e016"; }
.icon-youtube:before     { content: "\e018"; }

/* Footer wrapper */
.footer-wrapper {
  position: relative;
  width: 100%;
  color: #ffffff;
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif);
  line-height: 1.5;
  box-sizing: border-box;
}

.footer-wrapper *,
.footer-wrapper *::before,
.footer-wrapper *::after {
  box-sizing: border-box;
}

/* Main section (#c72626) */
.footer-wrapper .footer-main {
  background-color: #c72626;
  padding-top: 30px;
  padding-bottom: 30px;
  position: relative;
}

.footer-wrapper .footer-container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.footer-wrapper .row {
  display: flex;
  flex-flow: row wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.footer-wrapper .col {
  padding: 0 15px 30px;
  position: relative;
  width: 100%;
}

.footer-wrapper .col-inner {
  position: relative;
  width: 100%;
}

/* Grid breakpoints (Flatsome responsive system) */
/* Small (Mobile < 550px) */
.footer-wrapper .col.small-12 {
  flex-basis: 100%;
  max-width: 100%;
}
.footer-wrapper .col.small-6 {
  flex-basis: 50%;
  max-width: 50%;
}

/* Medium (Tablet 550px - 849px) */
@media screen and (min-width: 550px) {
  .footer-wrapper .col.medium-3 {
    flex-basis: 25%;
    max-width: 25%;
  }
  .footer-wrapper .col.medium-7 {
    flex-basis: 58.3333333333%;
    max-width: 58.3333333333%;
  }
  .footer-wrapper .col.medium-5 {
    flex-basis: 41.6666666667%;
    max-width: 41.6666666667%;
  }
}

/* Large (Desktop >= 850px) */
@media screen and (min-width: 850px) {
  .footer-wrapper .col.large-3 {
    flex-basis: 25%;
    max-width: 25%;
  }
  .footer-wrapper .col.large-7 {
    flex-basis: 58.3333333333%;
    max-width: 58.3333333333%;
  }
  .footer-wrapper .col.large-5 {
    flex-basis: 41.6666666667%;
    max-width: 41.6666666667%;
  }
}

/* Logo: ảnh vuông + tên (như header). Viền sáng tách ô logo nền đỏ khỏi nền footer cùng tông */
.footer-wrapper .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #ffffff;
  text-decoration: none;
}

.footer-wrapper .footer-brand__logo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.footer-wrapper .footer-brand__name {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

/* Intro text */
.footer-wrapper .footer-intro {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-wrapper .footer-intro p {
  margin: 0 0 10px 0;
  color: #ffffff;
}

.footer-wrapper .footer-intro strong {
  font-weight: 700;
}

/* DMCA Badge */
.footer-wrapper .dmca-badge {
  display: inline-block;
  margin-top: 5px;
}

.footer-wrapper .dmca-badge img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Column titles */
.footer-wrapper .col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}

.footer-wrapper .col-title.text-center {
  text-align: center;
}

@media screen and (max-width: 549px) {
  .footer-wrapper .col-title.text-center {
    text-align: left;
  }
}

/* Menus */
.footer-wrapper .ux-menu {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-wrapper .ux-menu-link {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-wrapper .ux-menu-link__link {
  display: flex;
  align-items: center;
  width: 100%;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 2.3em;
  padding: 5px 0;
  font-size: 0.88rem;
}

.footer-wrapper .ux-menu-link:last-child .ux-menu-link__link {
  border-bottom: none;
}

.footer-wrapper .ux-menu-link__icon {
  width: 14px;
  text-align: center;
  margin-right: 8px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.footer-wrapper .ux-menu-link__text {
  flex: 1;
}

/* About Section */
.footer-wrapper .about-title {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-align: left;
}

.footer-wrapper .divider {
  height: 3px;
  width: 50px;
  background-color: #fdda88;
  margin: 8px 0 14px 0;
}

.footer-wrapper .about-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-wrapper .about-list li {
  margin-bottom: 6px;
  color: #ffffff;
}

.footer-wrapper .about-list strong {
  font-weight: 700;
}

/* Social icons */
.footer-wrapper .social-icons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.footer-wrapper .social-icons span {
  font-weight: 700;
  color: #ffffff;
  margin-right: 4px;
  font-size: 0.9rem;
}

.footer-wrapper .social-icons .button.circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.footer-wrapper .social-icons .button.circle i {
  font-size: 15px;
}

.footer-wrapper .social-icons .facebook  { background-color: #3b5998 !important; }
.footer-wrapper .social-icons .instagram { background-color: #e1306c !important; }
.footer-wrapper .social-icons .twitter   { background-color: #1da1f2 !important; }
.footer-wrapper .social-icons .pinterest { background-color: #cb2027 !important; }
.footer-wrapper .social-icons .linkedin  { background-color: #0077b5 !important; }
.footer-wrapper .social-icons .youtube   { background-color: #ff0000 !important; }

/* Map iframe */
.footer-wrapper .map-container {
  width: 100%;
  height: 300px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-wrapper .map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Absolute footer (copyright bar) */
.footer-wrapper .absolute-footer {
  background-color: #5b5b5b;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 12px 15px;
}

.footer-wrapper .absolute-footer .copyright-footer {
  text-align: left;
}

.footer-wrapper .absolute-footer strong {
  font-weight: 700;
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  .footer-wrapper .absolute-footer .copyright-footer {
    text-align: center;
  }
}

/* Back to Top button */
#top-link.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #c72626;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

#top-link.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#top-link.back-to-top:hover {
  background-color: #a51b1b;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

#top-link.back-to-top i {
  font-size: 20px;
}
