html {
  scroll-behavior: smooth;
}

.title-head {

  padding-bottom: 1px !important;
  gap: 8px;
}

.services-title {
  display: flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
  max-width: 100%;
}

.word-1,
.word-2 {
  display: inline;
}

.title-head .word-1 {
  color: #8e1837;
  /* Maroon or your primary color */
}

.title-head .word-2 {
  color: #221f20;
  /* Example: teal or any other accent color */
}

.services-container {
  margin-bottom: 70px;
}

#FAQ-section {
  margin-bottom: 70px;
  background-color: #f9f9f9;
  padding-bottom: 30px;
  padding-top: 30px;

}

.faicons {
  font-size: calc(1rem + 0.5vw) !important;
  color: #8e1837;
}

.title-text {
  white-space: nowrap;
}

.horizontal-line-title {
  height: 2px;
  background-color: #575658;
  margin-left: 15px;
  position: relative;
  transition: width 2.5s ease-in-out;
  width: 0%;
}

.horizontal-line-title.animate {
  width: 95%;
}

.horizontal-line-title::after {
  content: "⭘";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 20px;
  color: #575658;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}


/* Arabic (RTL) */
.lang-ar .horizontal-line-title::after {
  right: auto;
  /* reset right */
  left: -16px;
  /* dot on the left for RTL */
}

.horizontal-line-title.animate::after {
  opacity: 1;
}

.social-section {
  padding: 6rem !important;
}



.buttons-container {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  margin-top: 100px;
}



.horizontal-line {
  top: 60%;
  width: 70%;
}

.horizontal-line-links {
  top: 92%;
  width: 80%;
  left: 10%;
}

*/ .button-wrapper {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80%;
}

.custom-btn,
.custom-btn:link,
.custom-btn:visited,
.links-btn {
  background-color: #8e1837;
  color: white !important;
  border: none;
  font-size: calc(1rem + 0.5vw) !important;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  display: inline-block;
  text-decoration: none !important;
  transition: color 0.25s ease, background-color 0.3s ease;
  position: relative;
  z-index: 1;
  width: 70% !important;
  min-width: 90% !important;
}



.custom-btn:hover,
.links-btn:hover {
  color: #fff !important;
  background-color: #c23b4e;
}

.custom-btn::before,
.custom-btn::after {
  content: '';
  position: absolute;
  box-sizing: border-box;
  width: 0;
  height: 0;
  border: 2px solid transparent;
  transition: none;
  pointer-events: none;
}

.custom-btn::before {
  top: -4px;
  left: -4px;
}

.custom-btn::after {
  bottom: -4px;
  right: -4px;
}

.custom-btn:hover::before,
.custom-btn:hover::after {
  width: calc(100% + 8px);
  height: calc(100% + 8px);
}

.custom-btn:hover::before {
  border-top-color: #8e1837;
  border-right-color: #8e1837;
  transition: width 0.25s ease-out, height 0.25s ease-out 0.25s;
}

.custom-btn:hover::after {
  border-bottom-color: #8e1837;
  border-left-color: #8e1837;
  transition: border-color 0s ease-out 0.5s, width 0.25s ease-out 0.5s, height 0.25s ease-out 0.75s;
}

.flex-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.flex-buttons .btn-item {
  flex: 1 1 calc(20% - 20px);
  max-width: calc(20% - 20px);
}

.link-icon {
  width: 90%;
  height: auto;
  margin-bottom: 10px;
  overflow: hidden;
  transform-origin: 50% 10%;
}

.link-icon.shake {
  animation: shake 0.8s;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }

  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }

  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }

  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }

  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
}

.service-box {
  margin-bottom: 30px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  transition: all 0.3s ease-in-out;
}

.service-box:hover {
  transform: translateY(-15px);
}

.service-icon {
  font-size: 40px;
  color: #005f87;
  margin-bottom: 15px;
}

.service-icon img {
  width: 90%;
  display: block;
  margin: 0 auto;
}

.service-text {
  font-size: calc(1rem + 0.5vw) !important;
  color: #333;
  text-align: center;
  font-weight: bold !important;
}

.horizontal-line,
.horizontal-line-links {
  display: none;
}

.flex-buttons .btn-item {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
}

.flex-buttons .btn-item:nth-child(n+4) {
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
}

.service-text {
  font-weight: bold;
  color: #333;
  text-align: center;
}

@media (max-width: 600px) {
  .services-container {
    padding: 0;
  }


}

@media (max-width: 576px) {
  .flex-buttons .btn-item {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .buttons-container {
    height: 30vh;
    margin-bottom: 60px;
  }


  .services-title {
    width: 95% !important;

  }

  .title-head {
    font-size: 1.4rem !important;
  }



}