.site-footer {
  background: linear-gradient(120deg, var(--primary-color) 80%, #038187 100%);
  border-top: 2px solid rgba(3,129,135,0.13);
  padding: 3rem 1.5rem 1.5rem 1.5rem;
  margin-top: 3rem;
  color: #fff !important;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -8px 32px rgba(3,129,135,0.08);
  position: relative;
  overflow: hidden;
  display: block;
}

.site-footer .footer-content-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 0;
}

.site-footer .footer-brand {
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  border-radius: 18px;
  padding: 0 0.5rem;
  margin-bottom: 0;
  order: 1;
}

.site-footer .footer-logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(3,129,135,0.10);
  margin: 0 0.7rem 0.5rem 0.7rem;
  display: inline-block;
}

.site-footer .footer-logo-text {
  color: #fff;
  font-weight: bold;
  font-size: 1.15rem;
  margin: 0.2rem 0;
  letter-spacing: 0.5px;
  display: inline-block;
  vertical-align: middle;
}

.site-footer .footer-logo-divider {
  display: block;
  width: 60%;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 2px;
  margin: 0.7rem auto 0.7rem auto;
}

.site-footer .footer-brand-desc {
  color: #e0e0e0;
  font-size: 1rem;
  margin-top: 0.7rem;
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: 0.1px;
}

.site-footer .footer-links {
  flex: 1 1 180px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding: 0 0.5rem;
  margin-bottom: 0;
  order: 2;
}

.site-footer .footer-contact {
  flex: 1 1 180px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0 0.5rem;
  margin-bottom: 0;
  order: 3;
}

.site-footer .footer-follow {
  flex: 1 1 180px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  margin-bottom: 0;
  order: 4; /* اجعلها دائماً آخر عمود */
}

.site-footer .footer-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.site-footer .footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .footer-list li {
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  color: #fff;
}

.site-footer .footer-list li i {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-left: 0.5rem;
}

.site-footer-link,
.site-footer .footer-list a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.site-footer-link:hover,
.site-footer .footer-list a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* السوشيال في صف مستقل أسفل الأعمدة */
.site-footer .footer-social-row {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 0;
  order: 4;
}

.site-footer .social-icon {
  display: flex;
  gap: 0.7rem;
  margin: 0;
  justify-content: center;
}

/* إزالة النقاط الصغيرة من أيقونات السوشيال */
.site-footer .social-icon,
.social-icon {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
}

.site-footer .social-icon li,
.social-icon li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
}

.site-footer .social-icon-link {
  background: #fff;
  color: var(--primary-color); /* تأكد أن اللون ظاهر */
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.18s;
  box-shadow: 0 2px 8px rgba(3,129,135,0.07);
}

.site-footer .social-icon-link:hover {
  background: var(--secondary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-3px) scale(1.08);
}

.site-footer .footer-bottom {
  background: #02525a;  
  color: #222 !important; /* أو استخدم var(--primary-color) إذا رغبت */
  border-radius: 0 0 18px 18px;
  text-align: center !important;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 1.02rem;
  padding: 1rem 0 0.5rem 0;
  margin-bottom: 0;
  letter-spacing: 0.2px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #fff;
  z-index: 100;
  padding: 1rem 0;
  box-shadow: 0 -2px 16px rgba(3,129,135,0.07);
}

@media (max-width: 991px) {
  .site-footer {
    padding: 2rem 0.5rem 1rem 0.5rem;
    border-radius: 18px 18px 0 0;
  }
  .site-footer .footer-content-row {
    gap: 1.2rem;
  }
  .site-footer .footer-brand,
  .site-footer .footer-links,
  .site-footer .footer-contact,
  .site-footer .footer-follow {
    min-width: 0;
    padding: 0;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 1.2rem;
    order: unset;
  }
  .site-footer .footer-follow {
    order: 4 !important; /* يبقى الأخير حتى في الموبايل */
  }
  .site-footer .footer-social-row {
    margin-top: 1.2rem;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 1.2rem 0.2rem 0.7rem 0.2rem;
    border-radius: 10px 10px 0 0;
  }
  .site-footer .footer-content-row {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0;
  }
  .site-footer .footer-brand,
  .site-footer .footer-links,
  .site-footer .footer-contact {
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 1.2rem;
    padding: 0;
    width: 100%;
    order: unset;
  }
  .site-footer .footer-logo-img {
    width: 38px;
    height: 38px;
    margin: 0 0.3rem 0.5rem 0.3rem;
  }
  .site-footer .footer-logo-divider {
    height: 2px;
    width: 60%;
    margin: 0.7rem auto;
    display: block;
  }
  .site-footer .footer-logo-text {
    font-size: 1rem;
    margin: 0.2rem 0;
  }
  .site-footer .footer-bottom {
    font-size: 0.95rem;
    padding: 0.7rem 0;
    border-radius: 0 0 8px 8px;
  }
  .site-footer .footer-social-row {
    margin-top: 0.7rem;
  }
  .site-footer .social-icon {
    gap: 0.5rem !important;
  }
}
