@charset "UTF-8";

/* =========================================================
   IMASCits - Services Section
   ========================================================= */

/*Start Services*/
.services {
  padding-top: var(--Section-Padding);
  padding-bottom: var(--Section-Padding);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(222 0 125 / 4%), rgb(159 159 159 / 6%));
  z-index: -1;
}

.services .services-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 24px);
  align-items: stretch;
}

.services .services-container .box {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  background-color: var(--General-color-W);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--main-box-shadow);
  isolation: isolate;
  transition: border-color var(--main-transition),
              box-shadow var(--main-transition);
}

.services .services-container .box::before {
  content: none;
}

.services .services-container .box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgb(222 0 125 / 0%);
  pointer-events: none;
  transition: border-color var(--main-transition);
}

.services .services-container .box:hover {
  transform: none;
  box-shadow: var(--main-box-shadow);
}

.services .services-container .box:hover::before {
  width: 0;
}

.services .services-container .box:hover::after {
  border-color: transparent;
}

.services .services-container .box .image {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 164px;
  max-height: 218px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--General-color-W);
  overflow: hidden;
}

.services .services-container .box img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: var(--managed-image-fit, fill);
  object-position: center;
  margin: auto;
  transition: transform var(--slow-transition),
              filter var(--slow-transition);
}

.services .services-container .box:hover img {
  transform: none;
  filter: none;
}

.services .services-container .box .text {
  padding: 13px 15px 10px;
  flex-grow: 1;
  text-align: right;
  direction: rtl;
}

.services .services-container .box .text h4 {
  margin: 0;
  color: var(--main-color);

  /* تصغير الخط بشكل متناسق */
  font-size: 17px;

  font-weight: 800;
  line-height: 1.5;
}

.services .services-container .box .text p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--Secondary-color);
  font-size: 14px;
  line-height: 1.65;
}

.services .services-container .box .info {
  min-height: 46px;
  padding: 8px 14px;
  border-top: 1px solid rgb(222 0 125 / 12%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  cursor: pointer;
  direction: rtl;
}

.services .services-container .box .info a {
  color: var(--main-color);
  font-size: 14px;
  font-weight: 800;
  transition: color var(--main-transition);
}

.services .services-container .box .info .more {
  width: 100%;
  min-height: 38px;
}

.services .services-container .box .info a:hover,
.services .services-container .box .info button:hover {
  color: var(--main-color);
}

.services .services-container .box .info button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--main-color);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: color var(--main-transition);
}

.services .services-container .box .info .service-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
}

.services .services-container .box .info i {
  color: var(--main-color);
  font-size: clamp(16px, 1.8vw, 18px);
  transition: transform var(--main-transition);
}

.services .services-container .box:hover .info i {
  animation: none;
}

@media (max-width: 991px) {
  .services .services-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services .services-container .box img {
    max-width: none;
    max-height: none;
  }
}

@media (max-width: 767px) {
  .services {
    padding-top: var(--Section-Padding-Mobile, 60px);
    padding-bottom: var(--Section-Padding-Mobile, 60px);
  }

  .services .services-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .services .services-container .box .image {
    min-height: 145px;
    max-height: 190px;
  }

  .services .services-container .box img {
    max-width: none;
    max-height: none;
  }

  .services .services-container .box:hover {
    transform: none;
  }
}

@media (max-width: 520px) {
  .services .services-container {
    grid-template-columns: 1fr;
  }
}
/*End Services*/

/*Start Service Modal*/
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 34px);
  background-color: rgb(222 0 125 / 62%);
  backdrop-filter: blur(8px);
}

.service-modal.is-open {
  display: flex;
}

.service-modal-dialog {
  position: relative;
  width: min(960px, 100%);
  max-height: min(86vh, 760px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: var(--main-radius, 12px);
  background-color: var(--General-color-W);
  box-shadow: 0 26px 80px rgb(222 0 125 / 22%);
  animation: service-modal-in 0.25s ease both;
}

.service-modal-header,
.service-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(18px, 3vw, 26px);
}

.service-modal-header {
  border-bottom: 1px solid rgb(222 0 125 / 14%);
  background: linear-gradient(135deg, rgb(222 0 125 / 8%), rgb(159 159 159 / 7%));
}

.service-modal-header span {
  display: block;
  color: var(--Secondary-color);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}

.service-modal-header h3 {
  margin: 4px 0 0;
  color: var(--main-color);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.4;
}

.service-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--small-radius, 6px);
  background-color: var(--main-color);
  color: var(--General-color-W);
  cursor: pointer;
  transition: transform var(--main-transition),
              background-color var(--main-transition);
}

.service-modal-close i {
  color: currentColor;
}

.service-modal-close:hover {
  background-color: var(--main-color-alt);
  transform: rotate(90deg);
}

.service-modal-body {
  overflow: auto;
  padding: clamp(18px, 3vw, 28px);
}

.help-modal-dialog {
  width: min(1180px, 100%);
  max-height: 92vh;
}

.help-modal-body {
  padding: 0;
  overscroll-behavior: contain;
}

.help-modal .guides-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(18px, 3vw, 30px);
}

.help-modal .guides-section > .main-heading {
  display: none;
}

.help-modal-footer {
  justify-content: flex-start;
}

.help-modal-dismiss {
  border: 1px solid rgb(222 0 125 / 24%);
  background: var(--General-color-W);
  cursor: pointer;
}

.service-modal-body p {
  margin: 0 0 18px;
  color: var(--Secondary-color);
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
}

.service-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.service-modal-stats span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--small-radius, 6px);
  background-color: var(--main-color);
  color: var(--General-color-W);
  font-size: 14px;
  font-weight: 900;
  box-shadow: var(--main-box-shadow);
}

.service-modal-stats i {
  margin-inline-end: 8px;
  color: inherit;
}

.service-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-modal-point {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgb(222 0 125 / 14%);
  border-radius: var(--small-radius, 6px);
  background-color: rgb(222 0 125 / 5%);
  transition: transform var(--main-transition),
              box-shadow var(--main-transition);
}

.service-modal-point > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--small-radius, 6px);
  background-color: var(--main-color);
  color: var(--General-color-W);
  font-size: 18px;
}

.service-modal-point:hover {
  transform: translateY(-4px);
  box-shadow: var(--secondary-box-shadow);
}

.service-modal-point strong {
  display: block;
  color: var(--main-color);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.7;
}

.service-modal-point span {
  display: block;
  margin-top: 4px;
  color: var(--Secondary-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
}

.service-modal-footer {
  border-top: 1px solid rgb(222 0 125 / 14%);
  background-color: rgb(250 250 250 / 90%);
}

.service-modal-whatsapp,
.service-modal-offers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--small-radius, 6px);
  font-size: 15px;
  font-weight: 900;
  transition: transform var(--main-transition),
              background-color var(--main-transition),
              color var(--main-transition);
}

.service-modal-whatsapp {
  gap: 10px;
  background-color: var(--main-color);
  color: var(--General-color-W);
  box-shadow: var(--main-box-shadow);
}

.service-modal-whatsapp i {
  color: currentColor;
}

.service-modal-offers {
  border: 1px solid rgb(222 0 125 / 24%);
  color: var(--main-color);
}

.service-modal-whatsapp:hover,
.service-modal-offers:hover {
  transform: translateY(-3px);
}

.service-modal-whatsapp:hover {
  background-color: var(--main-color-alt);
}

.service-modal-offers:hover {
  background-color: rgb(222 0 125 / 7%);
}

@media (max-width: 767px) {
  .service-modal-dialog {
    max-height: 90vh;
  }

  .service-modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .service-modal-header {
    padding-inline-start: 70px;
  }

  .service-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
  }

  .service-modal-grid {
    grid-template-columns: 1fr;
  }

  .service-modal-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-modal-whatsapp,
  .service-modal-offers {
    width: 100%;
  }
}

@keyframes service-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.services .box .service-fallback-icon {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--main-color);
  background: rgba(222, 0, 125, 0.08);
  font-size: 56px;
}
/*End Service Modal*/
