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;
  }
}

.social__media {
  background-color: #f3f3f3;
  overflow: hidden;
}

.social__media__cards {
  /* padding: 40px 0; */
  margin: 20px 0;
  width: 120%;
  display: flex;
  flex-flow: column wrap;
  /* gap: 40px; */
  gap: 10px;
  position: relative;

  &:lang(ar) {
    margin-left: -100px;
  }

  &:lang(en) {
    margin-right: -100px;
  }

  @media screen and (max-width: 767px) {
    margin-left: 0px;
    width: 100%;
  }
}

html[lang="ar"] .social__media__cards::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 30px;
  width: 1px;
  height: 100%;
  background-color: #0169c2;
  z-index: 1;
}

html[lang="en"] .social__media__cards::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 30px;
  width: 1px;
  height: 100%;
  background-color: #0169c2;
  z-index: 1;
}

.social__media__card {
  &:lang(ar) {
    padding-right: 20px;
  }

  &:lang(en) {
    padding-left: 20px;
  }

  position: relative;
}

/* .social__media__card:not(:last-child) {
  
} */


/* this is because the two days appear */
html[lang="ar"] .social__media__card:nth-of-type(1)::after,
html[lang="ar"] .social__media__card:nth-of-type(2)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #0169c2 !important;
  z-index: 1;
}

/* this is because the two days appear */
html[lang="en"] .social__media__card:nth-of-type(1)::after,
html[lang="en"] .social__media__card:nth-of-type(2)::after {
  content: "" !important;
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #0169c2 !important;
  z-index: 1;
}

/* this is because the two days appear */
html[lang="en"] .social__media__card:nth-of-type(2)::after,
html[lang="ar"] .social__media__card:nth-of-type(2)::after {
  height: 110%;
  transform: translateY(-10%);
}

.social__media__card:not(:first-of-type):after {
  content: "";
  /* display: none; */
}

/* html[lang="ar"] .social__media__card:first-of-type::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #0169c2;
  z-index: 1;
}

html[lang="en"] .social__media__card:first-of-type::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background-color: #0169c2;
  z-index: 1;
} */

@media screen and (max-width: 767px) {
  .social__media__card::after {
    top: 30px !important;
  }
}

.social__media__card__content {
  background-color: white;
  border: 3px solid #e6e6e6;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;

  &:lang(ar) {
    /* padding: 20px 43px 20px 185px; */
    padding: 15px 43px 15px 185px;
    /* padding: 15px 185px 15px 43px; */
  }

  &:lang(en) {
    /* padding: 20px 185px 20px 43px; */
    padding: 15px 185px 15px 43px;
  }

  @media screen and (max-width: 767px) {
    flex-flow: column wrap;
    align-items: start;

    /* padding: 0; */
    &:lang(ar) {
      padding: 20px 43px 20px 20px;
    }

    &:lang(en) {
      padding: 20px 20px 20px 43px;
    }
  }
}

.social__media__card__content__date {
  color: #0169c2;
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
  min-width: 140px;
  position: relative;

  p {
    text-transform: capitalize;
  }
}

.social__media__card__content__date__day {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 88px;
  height: 106px;
  /* background-color: #0169c2; */
  z-index: 2;
  color: white;
  display: flex;
  align-items: start;
  padding: 8px 14px;
  font-size: 48px;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  &:lang(ar) {
    left: 106%;
  }

  &:lang(en) {
    right: 106%;
  }
}

/* First .social__media__card__content__date__day gets active background */
.social__media__card:nth-of-type(1),
.social__media__card:nth-of-type(2) {
  .social__media__card__content__date__day {
    background-image: url("../assets/socialMedia/background-data.svg") !important;
  }

  .social__media__card__content__date {
    color: #0169c2 !important;
  }
}

/* .social__media__card:first-of-type {
  .social__media__card__content__date__day {
    background-image: url("../assets/socialMedia/background-data.svg");
  }

  .social__media__card__content__date {
    color: #0169c2;
  }
} */

/* The rest get the inactive background */
.social__media__card:not(:first-of-type) {
  .social__media__card__content__date__day {
    background-image: url("../assets/socialMedia/background-data-inactive.svg");
  }

  .social__media__card__content__date {
    color: #b7b7b7;
  }
}

.social__media__card__content__date__day span {
  z-index: 100;
}

.social__media__card__content__details {
  background-color: #f3f3f380;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  gap: 20px;
  /* grid-template-columns: 1fr 1fr; */
  min-width: calc(100% - 164px);

  @media screen and (max-width: 1200px) {
    flex-flow: column-reverse wrap;
    align-items: start;
    justify-content: center;
  }

  @media screen and (max-width: 1200px) {

    .social__media__card__content__details__postContent,
    .social__media__card__content__details__postImage {
      width: 100% !important;
      max-height: 200px !important;
      height: 200px !important;
    }
  }

  @media screen and (max-width: 500px) {
    padding: 10px;
  }

  .social__media__card__content__details__postContent {
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 20px;
    flex-flow: row nowrap;
    width: 45%;
    padding: 15px 0;

    .social__media__card__content__details__postContent__logo {
      min-width: 72px;
      min-height: 72px;
      border-radius: 10px;
      /* background-color: #f3f3f3; */
      display: flex;
      align-items: center;
      justify-content: center;

      img {
        width: 100%;
        height: 100%;
      }

      @media screen and (max-width: 500px) {
        min-width: 40px;
        min-height: 40px;
        max-width: 40px;
        max-height: 40px;
      }
    }

    .social__media__card__content__details__postContent__text {
      display: flex;
      flex-flow: column wrap;
      gap: 20px;

      @media screen and (max-width: 500px) {
        gap: 10px;
      }

      .social__media__card__content__details__postContent__text__title {
        color: #111111;
        font-size: 20px;
        font-weight: 700;
        line-height: 35px;
        text-decoration: none;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;

        /* display: -webkit-box; */
        /* -webkit-line-clamp: 2; */
        -webkit-box-orient: vertical;
        max-width: 300px;

        @media screen and (max-width: 1024px) {}

        @media screen and (max-width: 500px) {
          font-size: 16px;
          max-width: 125px;
        }
      }

      .social__media__card__content__details__postContent__text__description {
        color: #111111;
        font-size: 14px;
        font-weight: 700;
        line-height: 26px;
        text-decoration: none;
        opacity: 0.8;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;

        @media screen and (max-width: 500px) {
          font-size: 12px;
        }
      }

      .social__media__card__content__details__postContent__original {
        display: flex;
        align-items: start;
        gap: 8px;
        border: 1px solid #d0d5dd;
        padding: 8px;
        width: 100%;
        width: fit-content;
        border-radius: 8px;

        .social__media__card__content__details__postContent__original__logo {
          min-width: 24px;
          min-height: 24px;

          @media screen and (max-width: 500px) {
            min-width: 15px;
            min-height: 15px;
          }

          img {
            width: 100%;
            height: 100%;
          }
        }

        .social__media__card__content__details__postContent__original__link {
          color: #0169c2;
          font-size: 14px;
          font-weight: 500;
          line-height: 20px;

          @media screen and (max-width: 500px) {
            font-size: 12px;
          }

          @media screen and (max-width: 400px) {
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            width: 100px;
          }
        }
      }
    }
  }

  .social__media__card__content__details__postImage {
    width: 45%;
    /* max-width: 500px; */
    /* min-width: 300px; */
    max-height: 200px;
    height: 200px;
    /* width: 100%; */
    overflow: hidden;
    border-radius: 10px;

    img,
    video {
      /* max-width: 550px;
      max-height: 300px; */
      height: 100%;
      width: 100%;
      margin: auto;
      object-fit: cover;
      object-position: top;
    }
  }
}

@media screen and (max-width: 600px) {
  .social__media__card__content__date {
    font-size: 16px;
  }

  .social__media__card__content__date__day {
    font-size: 30px;
    width: 69px;
    height: 88px;
  }
}