/* 
  ملف تنسيقات الفوتر لصفحات الأخبار
  يحتوي على جميع أنماط الفوتر المستخدمة في news.html و news-detail.html
*/

/************************************* Enhanced Footer **************************************/
.footer {
  background: linear-gradient(135deg, #1a2a3a 0%, #274060 100%);
  color: white;
  padding: 0;
  position: relative;
  overflow: hidden;
  font-family: "fr", sans-serif;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 40px 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 50px;
}

/* Newsletter column takes full width */
.footer-col:last-child {
  grid-column: 1 / -1;
  margin: 30px 0 0;
  text-align: center;
}

.footer-col:last-child .footer-title {
  justify-content: center;
}

.footer-col:last-child .footer-newsletter-text {
  text-align: center;
}

.footer-col:last-child .newsletter-form {
  max-width: 600px;
  margin: 0 auto;
}

.footer-main {
  padding-right: 30px;
}

.footer-logo-box {
  margin-bottom: 25px;
}

.footer-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-about-text {
  font-family: "fl";
  line-height: 1.9;
  margin-bottom: 30px;
  opacity: 0.85;
  font-size: 1.05rem;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "fbb";
}

.footer-title1 {
  font-size: 1.5rem;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "fbb";
  justify-content: center;
}

.footer-title i {
  color: #3d8fd6;
  font-size: 1.3rem;
}

.footer-title1 i {
  color: #3d8fd6;
  font-size: 1.3rem;
}

.title-footer {
  font-family: "fbb";
}

.footer-links {
  list-style: none;
  padding-right: 0;
}

.footer-links li {
  margin-bottom: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-links li::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 8px;
  height: 8px;
  background: #3d8fd6;
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-links li:hover::before {
  opacity: 1;
  right: -10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-family: "fr";
  padding: 8px 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.footer-links a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(61, 143, 214, 0.2), rgba(39, 64, 96, 0.2));
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.footer-links a i {
  font-size: 1rem;
  color: #3d8fd6;
  transition: all 0.3s ease;
  min-width: 20px;
  text-align: center;
}

.footer-links a:hover {
  color: white;
  transform: translateX(-10px);
  background: rgba(255, 255, 255, 0.05);
}

.footer-links a:hover::before {
  transform: translateX(0);
}

.footer-links a:hover i {
  color: white;
  transform: scale(1.2);
}

/* أيقونات خاصة لكل رابط */
.footer-links li:nth-child(1) i {
  color: #3d8fd6;
} /* الرئيسية */
.footer-links li:nth-child(2) i {
  color: #6ba8e2;
} /* أعمالنا */
.footer-links li:nth-child(3) i {
  color: #94c4f4;
} /* انجازاتنا */
.footer-links li:nth-child(4) i {
  color: #b8d6f9;
} /* شركائنا */
.footer-links li:nth-child(5) i {
  color: #d1e4fb;
} /* تواصل معنا */
.footer-links li:nth-child(6) i {
  color: white;
} /* تواصل معنا */

/* Footer Social Links - Redesigned to match footer identity */
.social-links-footer {
  display: flex;
  flex-direction: column;
  gap: 13.3px;
  list-style: none;
  padding-right: 0;
}

.social-link-footer {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-family: "fr";
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(61, 143, 214, 0.2), rgba(39, 64, 96, 0.2));
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.social-link-footer i {
  font-size: 1.2rem;
  color: #3d8fd6;
  transition: all 0.3s ease;
  min-width: 24px;
  text-align: center;
}

.social-link-footer span {
  font-family: "fm";
}

.social-link-footer:hover {
  color: white;
  transform: translateX(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(61, 143, 214, 0.3);
  box-shadow: 0 4px 15px rgba(61, 143, 214, 0.2);
}

.social-link-footer:hover::before {
  transform: translateX(0);
}

.social-link-footer:hover i {
  color: white;
  transform: scale(1.15) rotate(-5deg);
}

/* Footer Newsletter Text */
.footer-newsletter-text {
  font-family: 'fl', sans-serif;
  line-height: 1.8;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  font-size: 0.95rem;
  opacity: 0.8;
  font-family: "fl";
}

.footer-legal {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  font-family: "fr";
}

.footer-legal a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 0;
  height: 1px;
  background: #3d8fd6;
  transition: width 0.3s ease;
}

.footer-legal a:hover {
  color: white;
}

.footer-legal a:hover::after {
  width: 100%;
}

.footer-back-top {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

#back-to-top {
  background: linear-gradient(90deg, #3d8fd6, #6ba8e2);
  border: none;
  color: white;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(61, 143, 214, 0.3);
  font-family: "fr";
}

#back-to-top:hover {
  background: linear-gradient(90deg, #2a7bc8, #3d8fd6);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(61, 143, 214, 0.4);
}

.back-to-top {
  font-family: "fr";
}

.footer-badges {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-badge {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: "fm";
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.footer-badge:hover {
  background: rgba(61, 143, 214, 0.3);
  transform: translateY(-2px);
}

/* تأثيرات إضافية للشارات */
.footer-badge:nth-child(1) {
  background: rgba(61, 143, 214, 0.2);
  border-color: #3d8fd6;
}

.footer-badge:nth-child(2) {
  background: rgba(39, 64, 96, 0.2);
  border-color: #274060;
}

/* Newsletter Form */
.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  margin-bottom: 20px;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.input-group:focus-within {
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.3);
}

.input-group input {
  flex: 1;
  padding: 18px 25px;
  border: none;
  font-family: "fr";
  font-size: 1.1rem;
  background: transparent;
  color: white;
  transition: all 0.3s ease;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.input-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
}

.input-group button {
  padding: 0 30px;
  background: white;
  color: #3d8fd6;
  border: none;
  font-family: "fbb";
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.input-group button span {
  font-family: "fbb";
}

.input-group button:hover {
  background: #f1f5f9;
  transform: scale(1.05);
}

.input-group button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3d8fd6, #274060);
  z-index: 0;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.input-group button i {
  transition: transform 0.3s ease;
}

.input-group button:hover i {
  transform: translateX(5px);
}

.input-group button:hover {
  color: white;
  transform: scale(1.05);
}

.input-group button:hover::before {
  transform: translateX(0);
}

.input-group button span,
.input-group button i {
  position: relative;
  z-index: 1;
}

.agreement {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0.9;
  font-family: "fr";
}

.agreement input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #3d8fd6;
}

.agreement label {
  cursor: pointer;
  user-select: none;
}

/* تأثيرات للهواتف */
@media (max-width: 1200px) {
  .footer-container {
    padding: 60px 30px 0;
  }

  .footer-grid {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-column: span 2;
    text-align: center;
    padding-right: 0;
  }
  
  .footer-col:last-child {
    grid-column: 1 / -1;
  }

  .footer-logo-box {
    justify-content: center;
  }

  .footer-title {
    justify-content: center;
  }

    .footer-title1 {
    justify-content: center;
  }

  .footer-title::after {
    right: 50%;
    transform: translateX(50%);
  }

    .footer-title1::after {
    right: 50%;
    transform: translateX(50%);
  }
  
  .footer-badges {
    justify-content: center;
  }

  .footer-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-main {
    grid-column: span 1;
  }
  
  .footer-col:last-child {
    grid-column: 1;
    margin-top: 20px;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-links a {
    font-size: 1rem;
    padding: 10px 15px;
    gap: 12px;
  }

  .footer-links li {
    margin-bottom: 15px;
  }
  
  .social-links-footer {
    gap: 12px;
  }
  
  .social-link-footer {
    padding: 10px 15px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .footer-container {
    padding: 50px 20px 0;
  }

  .footer-title {
    font-size: 1.4rem;
  }

    .footer-title1 {
    font-size: 1.4rem;
  }

  .footer-links a,
  .footer-newsletter-text {
    font-size: 1rem;
  }
  
  .input-group {
    flex-direction: column;
    border-radius: 12px;
  }
  
  .input-group input {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .input-group button {
    padding: 15px;
    display: flex;
    justify-content: center;
  }
}
