/* ==========================================================================
   Footer Parent Component (mc-footer)
   ========================================================================== */

.mc-footer {
  position: relative;
  width: 100%;
  background: #04090e; /* Đen xanh rất đậm */
  color: #a1a1aa;
  font-size: 14.5px;
  line-height: 1.6;
}

.mc-footer a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.mc-footer a:hover {
  color: #ffffff;
}

/* Containers */
.mc-footer__container--boxed {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.mc-footer__container--fluid {
  max-width: 100%;
  padding: 0 150px;
}

/* 1. Main Footer Grid */
.mc-footer__main {
  padding: 70px 0 50px;
}

.mc-footer__inner {
  display: grid;
  gap: 40px;
}

.mc-footer--cols-4 .mc-footer__inner {
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
}

.mc-footer--cols-3 .mc-footer__inner {
  grid-template-columns: 1.5fr 1fr 1.2fr;
}

.mc-footer--cols-2 .mc-footer__inner {
  grid-template-columns: 1.5fr 1fr;
}

.mc-footer--cols-1 .mc-footer__inner {
  grid-template-columns: 1fr;
}

/* Columns */
.mc-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mc-footer__title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px 0;
  position: relative;
  padding-bottom: 10px;
}

.mc-footer__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px;
}

.mc-footer__desc {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.65;
}

.mc-footer__social {
  margin-top: 8px;
}

.mc-footer__subtext {
  margin: 0 0 12px 0;
  font-size: 13.5px;
  color: #94a3b8;
}

/* Newsletter Form */
.mc-footer__newsletter-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.mc-footer__newsletter-input {
  width: 100%;
  height: 44px;
  padding: 8px 48px 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s ease;
}

.mc-footer__newsletter-input:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.mc-footer__newsletter-btn {
  position: absolute;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mc-footer__newsletter-btn:hover {
  background: #7dd3fc;
  transform: translateX(2px);
}

.mc-footer__newsletter-btn svg {
  width: 15px;
  height: 15px;
}

/* Contact List */
.mc-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mc-footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
}

.mc-footer__contact-icon {
  color: #38bdf8;
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 3px;
}

.mc-footer__contact-icon svg {
  width: 15px;
  height: 15px;
}

/* 2. Bottom Copyright Bar */
.mc-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 13px;
  color: #64748b;
}

.mc-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.mc-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mc-footer__bottom-links a {
  color: #64748b;
}

.mc-footer__bottom-links a:hover {
  color: #cbd5e1;
}

/* Back to top button */
.mc-footer__back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mc-footer__back-to-top:hover {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.mc-footer__back-to-top svg {
  width: 14px;
  height: 14px;
}

/* Light Variant */
.mc-footer--light {
  background: #f8fafc;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}

.mc-footer--light .mc-footer__title {
  color: #0f172a;
}

.mc-footer--light a {
  color: #475569;
}

.mc-footer--light a:hover {
  color: #2f5eff;
}

.mc-footer--light .mc-footer__newsletter-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.mc-footer--light .mc-footer__bottom {
  border-top-color: #e2e8f0;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 991px) {
  .mc-footer--cols-4 .mc-footer__inner,
  .mc-footer--cols-3 .mc-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .mc-footer--cols-4 .mc-footer__inner,
  .mc-footer--cols-3 .mc-footer__inner,
  .mc-footer--cols-2 .mc-footer__inner {
    grid-template-columns: 1fr;
  }

  .mc-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Back to Top Button */
.mc-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--mc-primary-color, #17c0eb);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(23, 192, 235, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 9999;
}

.mc-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mc-back-to-top:hover {
  background: #0ea5e9;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.5);
  transform: translateY(-3px);
}

.mc-back-to-top:active {
  transform: translateY(0);
}
