:root {
  --primary: #a50044;
  --primary-light: #F7E8EB;
  --primary-dark: #8a2338;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --white: #ffffff;
  --gray: #f5f5f5;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

body {
  background-color: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Footer Styles */
.footer-top {
  background-color: var(--primary-light);
  padding: 20px 0;
  margin-top: -70px;
}

footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 60px 0 20px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  margin-right: 60px;
}

.footer-about {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--white);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-link a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-link:hover {
  transform: translateX(-5px);
}

.footer-link:hover a {
  color: var(--white);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter-input {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transition: var(--transition);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
  background: var(--white);
  color: var(--primary);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* تحسينات الفوتر للجوال */
/* تحسينات الفوتر للجوال */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
    text-align: center; /* كل النصوص في النص */
  }

  .footer-col {
    min-width: 100%;
  }

  .footer-logo {
    margin: 0 auto 20px; /* يخلي الشعار في النص */
    display: block;
  }

  .footer-about {
    margin: 0 auto 20px;
  }

  .social-links {
    justify-content: center; /* الايقونات بالنص */
  }

  .footer-title {
    margin: 0 auto 20px; /* العنوان بالنص */
  }

  .footer-title::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%); /* الخط تحت العنوان بالنص */
  }

  .footer-links {
    padding: 0;
    margin: 0 auto;
  }

  .footer-links li {
    text-align: center; /* الروابط بالنص */
  }

  .newsletter-form {
    align-items: center; /* فورم الاشتراك بالنص */
  }

  .newsletter-input {
    width: 100%;
    max-width: 300px; /* عشان ما تكون عريضة زيادة */
  }

  .newsletter-btn {
    width: 100%;
    max-width: 200px; /* يخلي الزر مناسب */
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

