footer {
  background: #0B192C;
  border-top: 1px solid rgba(212, 163, 89, 0.15);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 54px 5% 32px;
}

/* Centered Logo above the tagline text */
.footer-brand {
  flex: 1.3;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.25s ease;
}

.footer-logo:hover {
  transform: scale(1.04);
}

.footer-tagline {
  font-size: 14px;
  color: #94A3B8;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}

.footer-links, .footer-contact {
  flex: 1;
  min-width: 160px;
  text-align: right;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links h4, .footer-contact h4 {
  font-size: 14px;
  font-weight: 700;
  color: #D4A359;
  margin-bottom: 18px;
  letter-spacing: 0.6px;
  text-align: right;
  width: 100%;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #94A3B8 !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  margin-bottom: 10px;
  text-align: right;
}

.footer-contact a {
  color: #94A3B8 !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  width: fit-content;
  text-align: right;
  direction: rtl;
}

.footer-contact a svg {
  width: 16px;
  height: 16px;
  color: #D4A359;
  stroke: #D4A359;
  flex-shrink: 0;
  transition: transform 0.25s ease, stroke 0.25s ease, color 0.25s ease;
}

.footer-contact a span[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
  color: #D4A359 !important;
  transform: translateX(-4px);
}

.footer-contact a:hover svg {
  transform: scale(1.15);
  color: #e8b96a;
  stroke: #e8b96a;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  padding: 18px 20px;
}

.footer-bottom p {
  color: #64748B;
  font-size: 13px;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding: 40px 24px 24px;
  }
  .footer-links, .footer-contact {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .footer-links h4, .footer-contact h4 {
    text-align: center;
  }
  .footer-links ul {
    text-align: center;
  }
  .footer-links ul li a {
    text-align: center;
  }
  .footer-contact a {
    justify-content: center;
  }
}