footer {
  color: #ffffff;
  background: url(img/pattern/tactile_noise.webp);
}

[data-theme="dark"] footer {
  /*border-top: 2px solid rgba(255,255,255,.01);*/
}

.footer_back {
  background: rgba(0, 0, 0, 0.7);
}

.footer-content {
  padding-top: 50px;
  padding-bottom: 20px;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.8);
  padding-top: 25px;
  padding-bottom: 20px;
  text-align: center;
  z-index: 1;
}

.footer-bottom p {
  margin: 0;
  font-size: 15px;
}

.footer_logo {
  display: block;
  margin-bottom: 20px;
  text-align: center;
}

.footer_logo img {
  display: block;
  max-width: 300px;
}

.footer_title {
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer_title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--color-primary);
}

html[dir="rtl"] .footer_title::after {
  left: auto;
  right: 0;
}

.footer_list_flex .footer_list {
  float: left;
  width: 100%;
}

html[dir="rtl"] .footer_list_flex .footer_list {
  float: right;
}

.footer-section .footer_list a {
  display: block;
  position: relative;
  padding: 8px 0;
  padding-inline-start: 15px; /* مساحة للسهم */
  color: #ffffff;
  text-decoration: none;
  line-height: 1.4;
  transition: color .2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, .02);
  margin-right: 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
}

html[dir="rtl"] .footer-section .footer_list a {
  margin-left: 20px;
  margin-right: 0;
}

.footer-section .footer_list a:hover {
  color: var(--color-primary);
}

.footer-section .footer_list a::before {
  content: "\f054";
  font-family: "FontAwesome";
  font-weight: 900;
  position: absolute;
  top: 50%;
  inset-inline-start: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--color-primary);
  opacity: 1;
}

html[dir="rtl"] .footer-section .footer_list a::before {
  content: "\f053";
}

.footer-section {
  margin-bottom: 15px;
}

.footer_about {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .7);
  transition: color 0.3s;
}

.contact-info p {
  display: flex;
  align-items: start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, .7);
  font-size: 16px;
}

.contact-info p a:hover {
  color: var(--color-primary);
}

.contact-info i {
  color: var(--color-primary);
  margin-top: 5px;
  width: 20px;
  font-size: 20px;
}

.social-footer {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.social-footer a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-footer a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.go-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: #c0392b;
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

html[dir="rtl"] .go-to-top {
  right: auto;
  left: 30px;
}

.go-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.go-to-top:hover {
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .footer-section {
    padding-right: 15px;
    padding-left: 25px;
    margin-bottom: 30px;
  }
  html[dir="rtl"] .footer-section {
    padding-right: 25px;
    padding-left: 15px;
    margin-bottom: 30px;
  }
  .footer_logo img {
    margin: auto;
  }
}

@media (max-width: 480px) {
  .footer-section .footer_list a {
    margin-right: 10px;
    font-size: 14px;
  }
  html[dir="rtl"] .footer-section .footer_list a {
    margin-left: 10px;
    margin-right: 0;
    font-size: 15px;
  }
}

.info-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.info-card .icon-wrapper {
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.info-card:hover .icon-wrapper i {
  transform: scale(1.1);
  color: var(--color-primary) !important;
}