/* General Footer Styling */
footer {
  background-color: #1a1d21;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  font-family: 'Cairo', 'Roboto', sans-serif;
}

input, button, textarea, input[type="submit"] {
  font-family: 'Cairo', 'Roboto', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  margin: 20px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-section h3 img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

/* Social Icons in Bottom */
/* Facebook Icon */
.social-icons-bottom .facebook {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #4267B2;
  padding: 10px;
  transition: transform 0.3s ease;
}

.social-icons-bottom .facebook:hover {
  transform: scale(1.2);
}

/* Twitter Icon */
.social-icons-bottom .twitter {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #1DA1F2;
  padding: 10px;
  transition: transform 0.3s ease;
}

.social-icons-bottom .twitter:hover {
  transform: scale(1.2);
}

/* Telegram Icon */
.social-icons-bottom .telegram {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0088cc;
  padding: 10px;
  transition: transform 0.3s ease;
}

.social-icons-bottom .telegram:hover {
  transform: scale(1.2);
}

/* YouTube Icon */
.social-icons-bottom .youtube {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FF0000;
  padding: 10px;
  transition: transform 0.3s ease;
}

.social-icons-bottom .youtube:hover {
  transform: scale(1.2);
}

/* Newsletter Form Styling */
form {
  display: flex;
  justify-content: center;
}

form input[type="email"] {
  padding: 10px;
  border: none;
  border-radius: 5px 0 0 5px;
}

form button {
  padding: 10px 20px;
  background-color: #f39c12;
  border: none;
  border-radius: 0 5px 5px 0;
  color: #fff;
  cursor: pointer;
}

form button:hover {
  background-color: #e67e22;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr; /* تحويل الشبكة إلى عمود واحد */
    gap: 10px; /* تقليل المسافات بين العناصر */
  }

  .footer-section {
    margin: 10px;
  }

  .footer-section h3 {
    font-size: 16px; /* تقليل حجم الخط للعناوين */
    margin-bottom: 10px;
  }

  .footer-section h3 img {
    width: 20px;
    height: 20px;
  }

  .social-icons-bottom .facebook,
  .social-icons-bottom .twitter,
  .social-icons-bottom .telegram,
  .social-icons-bottom .youtube {
    width: 50px;
    height: 50px;
    padding: 8px;
  }

  form {
    flex-direction: column; /* ترتيب المدخلات عموديًا */
    align-items: center;
  }

  form input[type="email"] {
    width: 80%; /* عرض المدخل 80% من عرض الشاشة */
    margin-bottom: 10px;
  }

  form button {
    width: 80%;
  }

  /* إخفاء أقسام الروابط السريعة والنشرة الإخبارية ومن نحن */
  .footer-section.quick-links,
  .footer-section.newsletter,
  .footer-section.about-us {
    display: none !important;
  }
}
