/* ===== FOOTER ===== */
.footer {
  background: #f6fbf8;
  gap: 4rem;
  padding: 3rem 1rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.footer.animated {
  opacity: 1;
  transform: translateY(0);
}

.footer-start {
  flex-shrink: 0;
}

.footer-sub-title {
  font-family: MadaniArabic-Medium;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  leading-trim: NONE;
  line-height: 40px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: var(--gray-80, rgba(103, 103, 103, 1));
}

.fast-links-small-title {
  font-family: MadaniArabic-Medium;
  font-weight: 400;
  font-style: Regular;
  font-size: 22px;
  leading-trim: NONE;
  line-height: 50px;
  letter-spacing: 0%;
  text-align: right;
  color: var(--gray-100, rgba(65, 65, 65, 1));
}

.fast-links-sub-title {
  font-family: MadaniArabic-Regular;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  leading-trim: NONE;
  line-height: 50px;
  letter-spacing: 0%;
  margin-bottom: 0;
  color: var(--Colors-Secondary-Alpha-50, rgba(34, 48, 62, 0.5));
}

.created-by-section {
  background: var(--primary-colors-10, rgba(233, 246, 238, 1));
}

/* Large screens (desktops, 992px and up) */
@media (min-width: 992px) {
  .footer-start {
    width: 29.75rem;
  }

  footer hr {
    width: 73.5rem;
  }
}

/* 1500px and below */
@media (max-width: 1500px) {
  .footer {
    gap: 2.5rem;
    padding: 2rem 1rem;
  }

  .footer-sub-title {
    font-size: 14px;
    line-height: 32px;
  }

  .fast-links-small-title {
    font-size: 15px;
    line-height: 32px;
  }

  .fast-links-sub-title {
    font-size: 12px;
    line-height: 32px;
  }

  .footer-start {
    width: 24rem;
  }

  .footer-start img[alt="Logo"] {
    max-height: 42px;
  }

  .footer-start .d-flex.gap-3 img {
    width: 32px;
    height: 32px;
  }
}

/* iPad (992px and below) */
@media (max-width: 992px) {
  .footer {
    gap: 2rem;
    padding: 1.5rem 1rem;
  }

  .footer-sub-title {
    font-size: 13px;
    line-height: 28px;
  }

  .fast-links-small-title {
    font-size: 15px;
    line-height: 32px;
  }

  .fast-links-sub-title {
    font-size: 13px;
    line-height: 32px;
  }

  /* Force wrap at this size */
  .footer .container > div > div {
    flex-wrap: wrap !important;
  }

  /* First element - full width */
  .footer-start {
    width: 100% !important;
    flex: 0 0 100%;
  }

  /* Second & third elements - 50% each side by side */
  .footer .container > div > div > div:nth-child(2),
  .footer .container > div > div > div:nth-child(3) {
    flex: 0 0 calc(50% - 0.5rem);
    width: calc(50% - 0.5rem);
  }
}
