.alghaf-services {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 100px clamp(24px, 6vw, 92px) 112px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(185, 140, 62, 0.13), transparent 27%),
    linear-gradient(145deg, #f8f6ef 0%, #ffffff 55%, #f2f6f2 100%);
}

.alghaf-services::before {
  position: absolute;
  top: 0;
  left: clamp(24px, 6vw, 92px);
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: #b98c3e;
  content: "";
}

.alghaf-services .title-block {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 790px;
  margin: 0 0 46px;
  padding: 0;
}

.alghaf-services .title-block .inner,
.alghaf-services .sec-title {
  padding: 0;
}

.alghaf-services .sec-title h2 {
  margin-bottom: 16px;
  color: #153f36;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.alghaf-services .sec-title .lower-text {
  max-width: 720px;
  color: #65716c;
  font-size: 17px;
  line-height: 1.8;
}

.alghaf-services__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1440px;
  margin: 0 auto;
}

.alghaf-services__grid .item,
.alghaf-services__grid .portfolio-horizontal-two__item {
  height: 100%;
}

.alghaf-services__grid .portfolio-horizontal-two__item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 63, 54, 0.1);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(21, 63, 54, 0.09);
  transition: transform 350ms ease, box-shadow 350ms ease, border-color 350ms ease;
}

.alghaf-services__grid .portfolio-horizontal-two__item:hover {
  transform: translateY(-8px);
  border-color: rgba(185, 140, 62, 0.5);
  box-shadow: 0 26px 60px rgba(21, 63, 54, 0.15);
}

.alghaf-services__grid .portfolio-horizontal-two__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #153f36;
}

.alghaf-services__grid .portfolio-horizontal-two__image::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 41, 34, 0.32), transparent);
  content: "";
}

.alghaf-services__grid .portfolio-horizontal-two__image a {
  display: block;
  width: 100%;
  height: 100%;
}

.alghaf-services__grid .portfolio-horizontal-two__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 350ms ease;
}

.alghaf-services__grid .portfolio-horizontal-two__item:hover .portfolio-horizontal-two__image img {
  opacity: 1;
  transform: scale(1.045);
}

.alghaf-services__grid .portfolio-horizontal-two__content {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 22px 24px;
}

.alghaf-services__grid .portfolio-horizontal-two__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  color: #153f36;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: color 250ms ease;
}

.alghaf-services__grid .portfolio-horizontal-two__category::after {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  margin-inline-start: 18px;
  place-items: center;
  border-radius: 50%;
  background: #f2eadb;
  color: #9a6d25;
  content: "\2192";
  font-size: 17px;
  font-weight: 400;
  transition: color 250ms ease, background-color 250ms ease, transform 250ms ease;
}

[dir="rtl"] .alghaf-services__grid .portfolio-horizontal-two__category {
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

[dir="rtl"] .alghaf-services__grid .portfolio-horizontal-two__category::after {
  content: "\2190";
}

.alghaf-services__grid .portfolio-horizontal-two__item:hover .portfolio-horizontal-two__category {
  color: #9a6d25;
}

.alghaf-services__grid .portfolio-horizontal-two__item:hover .portfolio-horizontal-two__category::after {
  color: #ffffff;
  background: #153f36;
  transform: translateX(3px);
}

[dir="rtl"] .alghaf-services__grid .portfolio-horizontal-two__item:hover .portfolio-horizontal-two__category::after {
  transform: translateX(-3px);
}

@media (min-width: 992px) {
  .alghaf-services {
    width: calc(100vw - 100px);
    margin-left: 100px;
  }

  [dir="rtl"] .alghaf-services {
    margin-right: 100px;
    margin-left: 0;
  }
}

@media (max-width: 1199px) {
  .alghaf-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .alghaf-services {
    padding-top: 72px;
    padding-bottom: 76px;
  }

  .alghaf-services .title-block {
    margin-bottom: 32px;
  }

  .alghaf-services .sec-title .lower-text {
    font-size: 15px;
    line-height: 1.7;
  }

  .alghaf-services__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .alghaf-services__grid .portfolio-horizontal-two__content {
    min-height: 82px;
    padding: 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alghaf-services__grid .portfolio-horizontal-two__item,
  .alghaf-services__grid .portfolio-horizontal-two__image img,
  .alghaf-services__grid .portfolio-horizontal-two__category::after {
    transition: none;
  }
}
