/* ─── FOOTER ─────────────────────────────── */
#mp365-custom-footer {
  font-family: 'Nunito', sans-serif;
  width: 100%;
  max-width: 1200px;
  background: #3aabcb; /* matches MP-365 brand blue */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  margin: 40px auto;
  color: #fff;
}

#mp365-custom-footer *,
#mp365-custom-footer *::before,
#mp365-custom-footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Top main area */
#mp365-custom-footer .footer-main {
  display: grid;
  grid-template-columns: 320px 1fr 1fr 1fr;
  gap: 0;
  padding: 56px 56px 48px;
}

/* ─── LEFT COLUMN ─── */
#mp365-custom-footer .footer-brand {
  padding-right: 40px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

#mp365-custom-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

#mp365-custom-footer .logo-mark {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 900;
  color: #3aabcb;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-align: center;
}

#mp365-custom-footer .logo-text {
  display: flex;
  flex-direction: column;
}

#mp365-custom-footer .logo-text strong {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

#mp365-custom-footer .logo-text span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#mp365-custom-footer .brand-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  margin-bottom: 28px;
}

/* Contact details */
#mp365-custom-footer .contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 28px;
}

#mp365-custom-footer .contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
}

#mp365-custom-footer .contact-list li .icon {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.15);
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mp365-custom-footer .contact-list li .icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

#mp365-custom-footer .contact-list li .detail strong {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Social */
#mp365-custom-footer .social-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

#mp365-custom-footer .social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
}

#mp365-custom-footer .social-btn:hover {
  background: rgba(255,255,255,0.3);
}

#mp365-custom-footer .social-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* ─── LINK COLUMNS ─── */
#mp365-custom-footer .footer-col {
  padding: 0 32px;
  border-right: 1px solid rgba(255,255,255,0.2);
}

#mp365-custom-footer .footer-col:last-child {
  border-right: none;
}

#mp365-custom-footer .col-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,0.25);
  margin-top: 0;
}

#mp365-custom-footer .col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

#mp365-custom-footer .col-links li {
    margin: 0;
    padding: 0;
}

#mp365-custom-footer .col-links li a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.2s;
}

#mp365-custom-footer .col-links li a:hover {
  color: #fff;
}

#mp365-custom-footer .col-links li a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* ─── BOTTOM BAR ─── */
#mp365-custom-footer .footer-bottom {
  background: rgba(0,0,0,0.12);
  padding: 18px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

#mp365-custom-footer .footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

#mp365-custom-footer .footer-bottom p strong {
  color: rgba(255,255,255,0.95);
}

#mp365-custom-footer .microsoft-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  padding: 6px 14px 6px 10px;
  border-radius: 8px;
}

#mp365-custom-footer .ms-logo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5px;
  width: 18px;
  height: 18px;
}

#mp365-custom-footer .ms-logo span {
  display: block;
  border-radius: 1px;
}

#mp365-custom-footer .ms-logo span:nth-child(1) { background: #f25022; }
#mp365-custom-footer .ms-logo span:nth-child(2) { background: #7fba00; }
#mp365-custom-footer .ms-logo span:nth-child(3) { background: #00a4ef; }
#mp365-custom-footer .ms-logo span:nth-child(4) { background: #ffb900; }

#mp365-custom-footer .microsoft-badge span.badge-text {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  #mp365-custom-footer .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
  }
  #mp365-custom-footer .footer-brand {
    grid-column: 1 / -1;
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 40px;
  }
  #mp365-custom-footer .footer-col {
    padding: 0;
    border-right: none;
  }
}

@media (max-width: 576px) {
  #mp365-custom-footer .footer-main {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 30px;
  }
  #mp365-custom-footer .footer-bottom {
    padding: 18px 24px;
    flex-direction: column;
    text-align: center;
  }
  #mp365-custom-footer .microsoft-badge {
    justify-content: center;
  }
}
