body {
  background-color: #f3f3f3;
}

html {
  scroll-behavior: smooth;
}

.home-section {
  min-height: 300px !important;
  height: 325px !important;
  background-position: top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  position: relative;
  z-index: 0;
  padding: 0 0 60px;
  overflow: hidden;
}

@media screen and (max-width: 991px) {
  .home-section {
    height: 385px !important;
  }
}
@media screen and (max-width: 400px) {
  .home-section {
    height: 395px !important;
  }
}

.home-section::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.144);
  z-index: -1;
}
html[lang="ar"] .background-pattern::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: 244px;
  width: 76%;
  height: 155px;
  z-index: -1;
  background-image: url("../assets/services-back1.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
html[lang="en"] .background-pattern::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 300px;
  width: 73.5%;
  height: 155px;
  z-index: -1;
  background-image: url("../assets/services-back1.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.nav {
  padding: 10px 0 !important;
}

.service__header {
  padding-bottom: 50px;

  h2 {
    color: white;
  }
  p,
  p a {
    color: #ffffff7e;
    text-decoration: none;
    margin-top: 5px;
  }
}

.services {
  background-color: #f3f3f3;
  display: flex;
  flex-flow: row nowrap;
  gap: 20px;
}

.tap_service__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* background: linear-gradient(180deg, #fff 0%, #f3f3f3 100%); */
  background-color: #f3f3f3;
  min-width: 390px;
  width: 390px;
  position: sticky;
  top: 0;
  z-index: 1;
  &:lang(ar) {
    padding: 44px 80px 44px 37px;
  }
  &:lang(en) {
    padding: 44px 37px 44px 80px;
  }
}

.tap_service {
  width: 100%;
  cursor: pointer;
}
.tap_service .card-content {
  border-radius: 150px;
  background: rgba(207, 207, 207, 0.35);

  box-shadow: 0px 4px 15.8px 0px rgba(255, 255, 255, 0.07) inset;
  backdrop-filter: blur(43.5px);
  color: black;
}

.tab-content,
.tab-content-image {
  /* position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding-left: 0px !important;
  height: auto !important; */
}

.services__cards__content {
  background-color: #f3f3f3;
  width: calc(100% - 390px);
  padding: 40px 0;
  .tab-content.tab-content-text h2 {
    margin-top: 0;
  }
}

.collection__items__cards__content {
  background-color: #f3f3f3;
  width: calc(100% + 50px);
  padding: 40px 0;

  &:lang(ar) {
    margin-right: 100px;
  }
  &:lang(en) {
    margin-left: 100px;
  }
  .tab-content.tab-content-text h2 {
    margin-top: 0;
  }
}

@media screen and (max-width: 1199.5px) {
  .services__cards__content {
    width: 100%;
  }

  .services {
    display: block;
  }
}

.services__cards__content .tab-content:last-of-type {
  margin-bottom: 50px;
  border-radius: 0 10px 10px 0;
}
.services__cards__content .tab-content:first-of-type {
  border-radius: 0 0 10px 0;
}

.services .services__cards__content__card {
  width: 100%;
  /* padding: 43px 61px 0; */
  border: 1px solid #e6e6e6;
  position: relative;
  background: #fff;
  overflow: hidden;
  background-color: white;
}

.services__cards__content__card__title {
  color: #111;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 156.7%; /* 62.68px */
  margin-bottom: 13px;
}

.services__cards__content__card__text {
  color: #111;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 180.7%; /* 32.526px */
  letter-spacing: 0.144px;
  margin-bottom: 13px;
}

.services__cards__content__card ul li,
.group__content__title {
  color: #111;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;

  position: relative;
  list-style: none;
  margin-bottom: 16px;

  &:lang(ar) {
    padding-right: 30px;
  }
  &:lang(en) {
    padding-left: 30px;
  }
}

.group__content:not(:first-of-type) {
  margin-top: 33px;
}
.group__content__title {
  font-weight: 700;
  color: #111111;
  opacity: 0.8;
}

.services__cards__content__card ul {
  padding: 0;
}

.services__cards__content__card ul li p {
  line-height: 30px;
}

html[lang="ar"]
  .services__cards__content__card
  ul
  li:not(.group__content__list li)::after,
html[lang="ar"] .group__content__title::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background-image: url("../assets/check.png");
}

html[lang="en"]
  .services__cards__content__card
  ul
  li:not(.group__content__list li)::after,
html[lang="en"] .group__content__title::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  background-image: url("../assets/check.png");
}

.group__content__list li {
  &:lang(ar) {
    list-style: disc;
    list-style-position: outside;
    padding-right: 0 !important;
  }
  &:lang(en) {
    list-style: disc;
    list-style-position: outside;
    padding-left: 0 !important;
  }
}

.group__content__list {
  &:lang(ar) {
    padding-right: 50px !important;
  }
  &:lang(en) {
    padding-left: 50px !important;
  }
}

/* html[lang="en"]
  .services__cards__content__card
  .group__content__list
  li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  background-image: url("../assets/check.png");
}
html[lang="ar"]
  .services__cards__content__card
  .group__content__list
  li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background-image: url("../assets/check.png");
} */

.services .back-img {
  width: 100%;
  height: 300px;
  z-index: 1;
  transform: rotate(50deg);
  top: 40%;
  opacity: 0.5;
  &:lang(ar) {
    left: -180px;
  }
  &:lang(en) {
    left: calc(100% - 370px);
    transform: rotate(0deg);
  }
}

.tap_service .card-content.active {
  background-image: url("../assets/button-back.png");
  background-color: rgb(56 152 213) !important;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid transparent;
  font-weight: bold;
  filter: none;
  box-shadow: none;
  color: white;
}

.service__content__responsive img {
  width: 80px;
  object-fit: cover;
}

.service__content__responsive__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  h2 {
    font-size: 20px;
    line-height: 30px;
  }
}

.service__content__responsive {
  display: flex;
  flex-direction: column;
  gap: 20px;
  p {
    font-size: 16px;
    line-height: 27px;
  }
  li {
    font-size: 14px;
    line-height: 27px;
  }
}

.tab-content.tab-content-text h2 {
  margin-top: 30px;
}
.collections__content__wrapper {
  height: auto !important;
  padding: 20px 38px;
}

.collection__items__cards {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Default to 3 columns */
  gap: 20px; /* Gap between the grid items */
  align-items: center; /* Aligns items vertically */
}

/* Tablet devices: 2 columns layout */
@media (min-width: 1024px) and (max-width: 1300px) {
  .collection__items__cards {
    grid-template-columns: repeat(3, 1fr); /* 2 columns on tablets */
  }
}
/* Tablet devices: 2 columns layout */
@media (min-width: 600px) and (max-width: 1024px) {
  .collection__items__cards {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}
/* Mobile devices: 1 column layout */
@media (max-width: 600px) {
  .collection__items__cards {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
  .collections__content__wrapper {
    padding: 0;
  }
}

.collections__cards__card {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  .collections__cards__card__img__container,
  .collections__cards__card__video__container {
    height: 200px;
  }
  img,
  video {
    border-radius: 10px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .collections__cards__card__details {
    background: linear-gradient(
      25deg,
      rgba(41, 139, 208, 0.2) 0%,
      rgba(1, 105, 194, 0.2) 100%
    );

    border-radius: 5px;
    position: absolute;
    bottom: 8px;
    right: 8px;
    left: 8px;
    height: 80px;
    color: white;
    padding-right: 32px;
    display: flex;
    align-items: center;
    h3 {
      font-size: 16px;
      font-weight: 500;
    }
  }

  .collections__cards__card__details::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: 6px;
    height: 60px;
    background-color: #0169c2;
  }
}

.video-card .collections__cards__card__video__container {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.video-card .collections__cards__card__video__container::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 0;
}
.video-card .collections__cards__card__video__container::before {
  content: "";
  background-image: url("../assets/play-video.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75px;
  height: 75px;
  z-index: 1;
}

@media screen and (max-width: 767px) {
  .collections__content__wrapper {
    height: auto !important;
    /* padding: 30px 0 50px; */
  }

  .services .services__cards__content__card {
    padding: 30px;
  }

  .services__cards__content {
    padding: 0 0 40px 0;
  }
}

.slid-Wrapper {
  position: sticky;
  top: 45px;
  z-index: 999; /* تأكد من أن العنصر سيكون في الأعلى */
  /* background-color: #fff; إذا كنت بحاجة لجعل الخلفية بيضاء لتجنب التأثيرات العائمة */
  /* margin-bottom: 20px; إضافة بعض الهوامش لتجنب تغطية العناصر */
}

.services__cards__content__card .tab-content h2 {
  margin-bottom: 20px;
  line-height: 55px;
  color: #0169c2;
}

.services__cards__content .img-container {
  width: 611.11px;
  height: 315px;
  border-radius: 20px;
  object-fit: cover;
  margin: auto;
}

.services__cards__content .tab-content-image {
  position: relative !important;
  width: 100%;
  top: 0;
  left: -50px;
  padding-left: 50px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  /* height: 60%; */
  /* margin: 100px 0 0; */
}

@media screen and (max-width: 767px) {
  .services__cards__content .tab-content-image {
    left: -10%;
  }
}
.services__cards__content .img-container::after {
  content: "";
  width: 125%;
  height: 375px;
  position: absolute;
  left: -100px;
  top: -30px;
  background-color: #f6f6f6;
  z-index: -1;
  transform: skewX(-15deg);
  border-radius: 50px;
}

/* Start services large */

.services__cards__content__card .tab-content {
  width: 100%;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  position: relative;
  z-index: 10;
}

.tab-content,
.tab-content-image {
  width: 100%;
  top: 0%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.tab-content .img-container {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.tab-content.active {
  visibility: visible;
  opacity: 1;
  max-height: max-content;
  height: 100%;
  width: 100%;
  &:lang(ar) {
    /* padding-left: 30px; */
  }
  &:lang(en) {
    /* padding-right: 30px; */
  }
}
html[lang="ar"] .tab-content .img-container::after {
  content: "";
  width: calc(100% + 80px);
  height: 125%;
  height: calc(100% + 60px);
  /* height: calc(100% + 18px); */

  position: absolute;
  top: -30px;
  background-color: #f6f6f6;
  z-index: -2;
  transform: skewX(-15deg);
  border-radius: 50px;
  /* left: 100px; */
}
html[lang="en"] .tab-content .img-container::after {
  content: "";
  width: calc(100% + 80px);
  height: 125%;
  height: calc(100% + 60px);
  /* height: calc(100% + 18px); */

  position: absolute;
  top: -30px;
  background-color: #f6f6f6;
  z-index: -2;
  transform: skewX(15deg);
  border-radius: 50px;
  left: calc(30% - 70px);
}

.tab-content.tab-content-image {
  height: 400px;
}

@media screen and (max-width: 1200px) {
  .collection__items__cards__content {
    padding: 40px !important;
    margin: 0 !important;
    width: 100% !important;
  }
}

@media screen and (max-width: 991px) {
  html[lang="en"] .tab-content .img-container::after {
    transform: skewX(15deg);
    left: 50px;
    width: calc(700px + 60px);
  }

  .tab-content.tab-content-image {
    height: 300px;
    &:lang(ar) {
      left: -200px;
    }
    &:lang(en) {
      left: 200px;
    }
  }
}
@media screen and (max-width: 660px) {
  .tab-content.tab-content-text h2 {
    font-size: 20px;
    line-height: 35px;
  }

  .tab-content.tab-content-image {
    height: 300px;
    &:lang(en) {
      left: 0;
    }
  }

  .collections__content__wrapper {
    padding: 0;
  }

  .collection__items__cards__content {
    padding: 20px !important;
  }
}
@media screen and (max-width: 500px) {
  .img-container img {
    width: 500px;
  }
}
@media screen and (max-width: 400px) {
  .img-container img {
    width: 400px;
  }
}
