/* === Footer === */
.footer {
  display: block;
  width: 100%;
  height: 138px;
  background: var(--bg-surface, #080D1E);
  position: relative;
  border-top: 1px solid var(--border-glow, rgba(41,121,255,0.3));
  /* Subtle top glow line */
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary, linear-gradient(135deg, #2979FF 0%, #00E5FF 100%));
  opacity: 0.5;
}

.footer > section {
  width: 1140px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.footer_top, .footer_bottom {
  display: flex;
  justify-content: space-between;
}

.footer_top {
  height: 40px;
  align-items: center;
  margin-top: 32px;
}

.footer_imgBox {
  width: 160px;
  height: 40px;
  filter: drop-shadow(0 0 8px rgba(41,121,255,0.25));
}

/* Subscribe input (hidden by default but styled) */
.footer_inputBox {
  height: 32px;
  display: flex;
}

.sub-left {
  position: relative;
  right: -1px;
}

.sub-input {
  width: 205px;
  height: 32px;
  padding: 0 21px 0 8px;
  border: 0;
  outline: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-primary);
  border-radius: 4px 0 0 4px;
}
.sub-input::placeholder {
  font-size: 14px;
  color: var(--text-muted);
}

.sub-btn {
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  padding: 7px 14px;
  background: var(--primary);
  line-height: 18px;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  transition: background 0.2s ease;
}
.sub-btn:hover {
  background: var(--primary-light);
}

.sub-right {
  position: relative;
  left: -1px;
  cursor: pointer;
}

/* Social links */
.foooter_linkBox a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.foooter_linkBox a:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.footer_bottom {
  height: 26px;
  align-items: center;
  margin-top: 27px;
}

.footer_sign {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.footer_other {
  display: flex;
  align-items: center;
}

.footerOther_item {
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}
.footerOther_item:hover,
.footerOther_item a:hover {
  color: var(--accent-cyan) !important;
}
.footerOther_item a {
  color: var(--text-secondary) !important;
  transition: color 0.2s ease;
}

.footerOther_line {
  width: 1px;
  height: 14px;
  background: var(--border-subtle);
  margin: 0 12px;
}

/* === Tablet === */
@media (min-width: 640px) and (max-width: 1139px) {
  .footer {
    width: 100vw;
    height: 210px;
  }
  .footer > section {
    width: 100%;
    padding: 0 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer_top {
    flex-direction: column;
    width: 100%;
    margin-top: 40px;
    height: 112px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .footer_inputBox {
    width: 100%;
    margin-top: 40px;
  }
  .sub-middle { flex: 1; }
  .sub-input { width: 100%; }
  .footer_bottom {
    width: 100%;
    margin-top: 24px;
    height: 60px;
    align-items: flex-start;
  }
  .footer_sign { font-size: 12px; }
  .footerOther_item { font-size: 12px; }
}

/* === Mobile === */
@media (min-width: 320px) and (max-width: 639px) {
  .footer {
    width: 100vw;
    height: 316px;
  }
  .footer > section {
    width: 100vw;
    padding: 0 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer_top, .footer_bottom {
    flex-direction: column;
  }
  .footer_top {
    width: 100%;
    margin-top: 40px;
    height: 152px;
    align-items: flex-start;
  }
  .footer_inputBox { width: 100%; }
  .sub-middle { flex: 1; }
  .sub-input { width: 100%; }
  .footer_bottom {
    margin-top: 40px;
    height: 60px;
    align-items: flex-start;
  }
  .footer_sign { font-size: 14px; }
  .footerOther_item { font-size: 14px; }
}
