:root {
  --font: "Tajawal";
  --font-en: "Roboto";
  --darker-primary-color: #af795c;
  --primary-color: #272727;
  --secondary-color: #A07761;
  --whatsApp-color: #29a71a;
  --offWhite-color: #e0f6ff;
  --text-color: #212121;
  --transition: 0.3s all ease;
  --shadow: 0 0px 10px rgba(0, 0, 0, 0.125);
}

/* !EN */

html[dir="ltr"] {
  *:not(i) {
    font-family: var(--font-en), sans-serif;
  }

  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.25;
  }

  #productInfo,
  nav {
    direction: ltr;
  }

  .searchEngine label {
    left: initial !important;
    right: 1rem;
  }

  nav li {
    font-size: 1rem;
  }

  .productVariants {
    direction: rtl;

  }

  #lang_changer .langs {
    font-size: 1.125rem;
  }

  .heroIntro {
    font-size: Clamp(2rem, calc(3vw + 1rem), 4rem);
  }

  input,
  textarea {
    direction: ltr;
  }

  ::placeholder {
    transform-origin: left;
  }

  .headerIntro {
    text-wrap: balance;
  }


  .filter {
    order: 1;
  }

  .filterWrapper {
    direction: ltr;
  }

  .productFilter .container {
    grid-template-columns: 73% 25% !important;
  }

  @media (max-width: 480px) {
    #lang_changer {
      left: -30px;
    }
  }

}


main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* main::before,
main::after {
  position: absolute;
  content: '';
  z-index: -1;
  width: 600px;
  height: 600px;
  border: 30px solid var(--secondary-color);
  border-radius: 50%;
  opacity: 20%;
}

main::before{
  left: 0;
  top: 25%;
  transform: translateX(-60%);

}
main::after{
  right: 0;
  top: 50%;
  transform: translateX(60%);
} */

.overlay{
    position: absolute;
  z-index: -1;
  width: 600px;
  height: 600px;
  img{
    width: 100%;
    height: 100%;
  }
}
.overlay.right{
    right: 0;
  top: 50%;
  transform: translateX(40%);
}
.overlay.left{
    left: 0;
  top: 25%;
  /* transform: translateX(-60%); */
}
/* !INTRO */

.intro {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--primary-color);
  width: fit-content;
  margin: auto;
  text-align: center;
  margin-bottom: 4rem;
}

.underline {
  position: relative;
  width: fit-content;
  isolation: isolate;

  &::after {
    content: '';
    background-color: var(--secondary-color);
    width: 60%;
    height: 6px;
    border-radius: 1rem;
    position: absolute;
    z-index: 10;
    bottom: -10px;
    left: 0;
    right: 0;
    margin: auto;
  }
}

main.innerPage header {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh !important;

}

header .intro {
  font-size: Clamp(3rem, calc(3vw + 1rem), 4rem) !important;
  margin-top: 100px;
}

/* !NAVBAR */


nav.floating_nav .logo {
  max-height: 60px;
}

nav.floating_nav .container {
  width: 100%;
}

nav {
  position: fixed;
  z-index: 999;
  display: flex;
  flex-direction: column;
  left: 0;
  right: 0;
  top: 0;
  padding-block: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  justify-content: space-between;
  color: white;
  max-height: fit-content;
  background-color: var(--primary-color);

  svg {
    width: 30px;
  }
}

nav .container {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;
}

#navigation_dropdown {
  position: absolute;
  left: 0;
  display: none;
  width: 100%;
  transform: translateY(70px);
  transition: all 700ms linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1);
  transform-origin: bottom;
  overflow: hidden;
  interpolate-size: allow-keywords;
  margin: auto;
  right: 0;
  height: 0;
  top: 25px;
  z-index: -1;

  .main_Links {
    gap: 1.5rem !important;
  }
}

#navigation_dropdown.show_dropdown {
  height: auto;
}

#navigation_dropdown .container {
  background-color: white;
  box-shadow: 0 0px 10px 0px rgba(0, 0, 0, 0.3);
  color: black;
  border-radius: 1rem;
  padding-bottom: 2rem !important;
  padding-top: 3rem !important;
  justify-content: center;

  svg path {
    fill: black;
  }

  .main_Links {
    flex-direction: column;
  }

  li:hover:not(:has(#menuDropDown)) {
    a {
      color: var(--secondary-color);
    }
  }

  a {
    color: black;
  }
}

li:has(#menuDropDown).active a.active {
  background-color: var(--secondary-color);
  color: white !important;
}

li:has(#menuDropDown).active {
  a {
    color: black !important;
  }
}

li:has(#menuDropDown).active a:hover {
  color: white !important;
}

nav.floating_nav #navigation_dropdown .container {
  max-width: 92%;
}


nav .logo {
  width: 100%;
  height: 55px;
  padding-block: 4px;
  object-fit: contain;
}

nav ul,
.main_Links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  max-height: fit-content;
}

nav li,
.contact a {
  font-size: 1.125rem;
  font-weight: bold;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  align-items: center;

  a {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}




svg {
  path {
    transition: var(--transition);
  }
}

nav li:hover {
  color: var(--secondary-color);

  a {
    color: var(--secondary-color);
  }

  svg path {
    fill: var(--secondary-color) !important;
  }
}

#menu {
  font-size: 1.5rem;
  display: none;
}

li.active {
  color: var(--secondary-color) !important;

  a {
    color: var(--secondary-color) !important;
  }

  svg path {
    fill: var(--secondary-color) !important;
  }
}



nav button {
  padding-inline: 1.5rem !important;
}

nav button.active {
  background-color: var(--secondary-color);

  a {
    color: white;
  }
}

button.contact {
  background: var(--secondary-color);
  padding: 0 !important;
  border-radius: 1rem;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.075);
  display: flex;
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;

  a {
    padding: 0.65rem 2rem;
    width: 100%;
    color: white;
    text-align: center;
    justify-content: center;
  }



  &:hover {
    background-color: white;

    a {
      color: var(--primary-color);
    }


  }
}

li#lang {
  position: relative;
}

#lang_changer,
#allServices {
  position: absolute;
  z-index: 100;
  left: 0;
  top: 60px;
  transition: var(--transition);
  border-radius: 8px;
  width: 140px;
  background-color: white;
  border-radius: 12px;
  color: black;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  overflow: hidden;
}

.hide_lang_changer {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

#servicesHolder {
  position: relative;
}

li#servicesHolder.active a {
  color: black !important;
}

li#servicesHolder.active a.active {
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color)) !important;
  color: white !important;
}

#lang_changer .langs,
#allServices a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  padding: 0.75rem;
  transition: var(--transition);

  &:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  width: 100%;
  color: black;

  &:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: white !important;
  }
}

.langs img {
  width: 24px;
  height: 24px;
}

#allServices {
  min-width: 190px;
  right: 0;
  font-weight: 500;
}

li:has(#menuDropDown) {
  flex-direction: column;
  gap: 0;
}

#menuDropDown {
  flex-direction: column;
  display: flex;
  transition: all 500ms linear(0, 0.012 0.9%, 0.05 2%, 0.411 9.2%, 0.517 11.8%, 0.611 14.6%, 0.694 17.7%, 0.765 21.1%, 0.824 24.8%, 0.872 28.9%, 0.91 33.4%, 0.939 38.4%, 0.977 50.9%, 0.994 68.4%, 1);
  transform-origin: bottom;
  overflow: hidden;
  interpolate-size: allow-keywords;
  height: 0;

  a {
    padding: 0.5rem;
    text-align: center;
    scale: 0.9;
    justify-content: center;
    border-bottom: 2px solid var(--secondary-color);

    &:hover {
      background-color: var(--secondary-color);
      color: white;
    }
  }
}

#menuDropDown.show_dropdown {
  height: auto;
}

.arrowDownUp {
  rotate: 180deg;
}

/* !HERO SECTION */

.mySwiper {
  width: 100%;
  flex-grow: 1;
}

header {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: relative;
}

header::after {
  width: 100%;
  height: 8px;
  background-color: var(--primary-color);
  z-index: 10;
  left: 0;
  bottom: 0;
  content: "";
  position: absolute;
}

header .swiper {
  width: 100%;
}

header .swiper-pagination {
  bottom: 5% !important;
}

header .swiper-pagination-bullet {
  opacity: 1 !important;
  background-color: white;
  filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.5));
  scale: 1.35;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color) !important;
}

header .swiper-slide {
  min-height: 85vh;
  min-height: 85dvh;
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.heroOverlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: -1;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

header .container {
  padding-block: 10rem;
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

.heroIntro {
  width: fit-content;
  display: flex;
  gap: 1rem;
  flex-direction: column;

  img {
    width: 100%;
    height: 100%;
    /* scale: 0.9; */
    filter: drop-shadow(2px 4px 0px white);
    max-width: 400px;
  }

  h1 {
    font-size: Clamp(2rem, calc(3vw + 1rem), 3rem);
    color: var(--primary-color);
    text-shadow: 2px 0 white, -2px 0 white, 0 2px white, 0 -2px white;
    text-wrap: balance;
    font-weight: bold;
    width: 80%;
  }

  button.contact {
    width: fit-content;
    background-color: var(--primary-color);

    a {
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
    }

    svg path {
      fill: white;
    }

    &:hover {
      background-color: white;

      a {
        color: var(--primary-color);
      }

      svg path {
        fill: var(--primary-color);
      }
    }
  }
}

.whatsApp {
  position: fixed;
  bottom: 3rem;
  right: 5rem;
  color: white;
  font-size: 1.1rem;
  background-color: var(--whatsApp-color);
  padding-block: 0.5rem;
  padding-left: 1rem;
  padding-right: 2rem;
  z-index: 1000;
  text-align: end;
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  scale: 0;
  opacity: 0;
  animation: whatsApp 0.6s ease-out forwards;
  will-change: transform, opacity;

  &:hover {
    background-color: white;
    color: var(--whatsApp-color);
  }
}

.WhatsAppIcon {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  right: 0;
  box-shadow: 6px 0px 10px -4px rgba(0, 0, 0, 0.3);
  top: 0;
  transform: translate(25px, -7.5px);
  background-color: inherit;
}

/*! SERVICE SECTION */


/*! WHO WE SECTION */

section.whoWe .container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  column-gap: 4rem;
  row-gap: 2rem;

  article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 2;
    text-wrap: balance;
    justify-content: center;
    border-radius: 1.5rem;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    h2 {
      font-size: 1.75rem;
      width: fit-content;
      text-transform: uppercase;
      border-bottom: 5px solid var(--secondary-color);
      padding-bottom: 0.25rem;
    }

    p {
      font-size: 1.25rem;
      max-width: 60ch;
      text-wrap: pretty;
      line-height: 1.75;
    }

    .contact {
      font-size: 1rem !important;
      text-transform: uppercase !important;
      font-weight: bold;
      background-color: var(--secondary-color);

      &:hover {
        background-color: var(--primary-color);

        a {
          color: white;
        }
      }
    }
  }
}

.whoWeBanner {
  border-radius: 1.5rem;
  overflow: hidden;

  img {
    min-height: 350px;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.whoWe .container article:has(img) {
  flex: 1;
  overflow: hidden;

  img {
    transition: 0.5s all ease;
  }

  &:hover {
    img {
      scale: 1.25;
      filter: brightness(1.25);
    }
  }
}

.whoWeImg {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  isolation: isolate;
}

#mapLocation {
  margin-top: 1rem;
  display: block;
  /* margin-inline: auto; */
  background-color: var(--primary-color);
  width: 100%;
  border-radius: 0.5rem;
  max-width: 200px;

  &:hover {
    background-color: transparent;

    a {
      color: var(--primary-color);
    }
  }

  a {
    color: white;
  }
}

.readMore {
  max-width: fit-content;
  background-color: var(--secondary-color);
  border-radius: 0.5rem;
  min-height: 40px;
  border: 2px solid transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    color: white;
  }

  &:hover {
    background-color: white;
    border-color: var(--secondary-color);

    a {
      color: var(--secondary-color);
    }
color: var(--secondary-color) !important;
    svg path {
      fill: var(--secondary-color);
    }
  }
}

/*! DOCTORS SECTIONS */
section.products {

  >.readMore {
    display: block;
    margin-inline: auto;
    margin-top: 1rem;
    width: 100%;
    max-width: 250px;
  }
}

.readMore:has(.seeAllProducts) {
  background-color: var(--secondary-color);

  &:hover {
    a {
      color: var(--secondary-color);
    }

    background-color: white;
    border-color: var(--secondary-color);
  }

}

.products .intro {
  margin-bottom: 0;
}

.products .container {
  padding-block: 50px;

}

.products .swiper-wrapper {
  align-items: stretch;

  .swiper-slide {
    height: auto;
  }
}

.products .container a,
#allProducts article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  color: var(--text-color);
  font-weight: bold;

  &:hover {
    img {
      scale: 1.05;
    }
  }

  img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    object-fit: contain;
    min-height: 200px;
    max-height: 250px;
    background-color: #FCEFDC;
    width: 100%;
    transition: var(--transition);

  }

  p {
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 400;
  }

  button {
    width: 100%;
    max-width: none;

    a {
      font-size: 0.9rem;
    }

  }
}

.productName,
.productDesc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: fit-content;
}

.productName {
  font-weight: bold;
  font-size: 1.5rem;
}

.seeAllProducts {
  width: fit-content;
  margin: auto;
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);

  i {
    margin-top: 4px;
    transition: inherit;
  }

  &:hover {
    color: var(--secondary-color);

    i {
      transform: translateX(6px);
    }
  }
}

/* !CONTACT SECTION */

section.contact .container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;

  .readMore {
    background-color: var(--secondary-color);

    &:hover {
      background-color: transparent;

      a {
        color: var(--secondary-color);
      }

      border-color: var(--secondary-color);
    }

  }
}

::placeholder {
  transform-origin: right;
  transition: var(--transition);
}

input:focus::placeholder,
textarea:focus::placeholder {
  scale: 0.85;
  transform: translateY(-12px);
}

.contact .container form,
.contact .container .contactInfo {
  flex: 1 1 400px;
}

.contact .container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  .readMore {
    min-width: 200px;
    font-weight: bold;
    font-size: 1rem;

    a {
      padding-block: 0.25rem;
      justify-content: center;
      align-items: center;

    }
  }
}

.inputHolder {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  gap: 0.65rem;

  input,
  select,
  textarea {
    padding: 0.75rem 2rem;
    border-radius: 6px;
    resize: none;
    font-size: 1rem;
    border: 2px solid var(--secondary-color);
    direction: rtl;
  }

  textarea {
    height: 200px;
  }

  select {
    color: var(--secondary-color);
  }
select option:not(:checked){
  color: var(--primary-color) !important;
}
}

.selectArrow{
  position: absolute;
  z-index: 10;
  cursor: pointer;
  top: 2.75rem;
  width: 16px;
  height: 16px;
  left: 1rem;
}

::placeholder {
  color: var(--secondary-color);
  opacity: 0.75;
  min-height: 24px;
}

.contactInfo {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.contactHandle {
  background-color: var(--secondary-color);
  padding: 1rem 2rem;
  color: white;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  gap: 1rem !important;
  text-transform: none;
  border: 2px solid transparent;
  transition: var(--transition);
  display: flex;
  align-items: center;

  i.fa-whatsapp {
    scale: 125%;
  }

  svg{
    width: 36px;
  }
  .jobName{
    font-size: 1.25rem;
    font-weight: bold;
  }

  &:hover {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);

    .contactIcon {
      background-color: var(--secondary-color);
      color: white;
    }
  }
}

.contactIcon {
  min-width: 35px;
  min-height: 35px;
  color: var(--secondary-color);
  background-color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: inherit;
}

.map {
  height: 250px;
  border-radius: 1.125rem;
  border: 2px solid var(--secondary-color);
  overflow: hidden;

  iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ! GALLERY */
section.productGallery .container {
  display: grid;
  direction: ltr;
  grid-template-columns: repeat(4, 1fr);
  /* grid-template-rows: 1fr 1fr; */
  gap: 1rem;

  a {
    position: relative;
    isolation: isolate;
    border-radius: 2rem;
    overflow: hidden;
    grid-column: span 2;

    /* grid-row: span 1; */
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: 0.5s all ease;
    }

    &:hover {
      img {
        scale: 1.125;
        filter: brightness(1.25);
      }

      .gridOverlay {
        clip-path: ellipse(100% 120% at 50% 0%);
        transform: scale(1);

        h2 {
          transform: none;
        }
      }
    }
  }
}


.gridOverlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), black);
  display: flex;
  z-index: 100;
  transition: 0.5s all ease;
  clip-path: ellipse(100% 0% at -50% 0);
  transform: scale(1.05);
  justify-content: end;
  align-items: center;
  flex-direction: column;
  padding: 1.5rem;
  white-space: nowrap;
  font-size: 1.25rem;
  color: white;
  font-weight: bold;

  h2 {
    transition: inherit;
    transition-delay: 0.1s;
    transform: translateY(50px) scale(0.75);
  }

}


/* !FOOTER */

footer {
  background-color: var(--primary-color);
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 5rem;
  color: white;

  h3 {
    padding-bottom: 0.25rem;
    width: fit-content;
    border-bottom: 5px solid var(--secondary-color);
  }
}

footer .container article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-inline: auto;
  max-width: 400px;

  img {
    max-height: 90px;
    width: 100%;
    height: 100%;
  }
}

footer .container article:has(img) {
  justify-content: center;
  align-items: center;
  text-align: center;

  button {
    width: 100%;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: bold;

    &:hover {
      color: white;
    }

  }
}

footer li:not(.socials) .contactIcon {
  font-size: 0.8rem;
  min-height: 24px;
  min-width: 24px;
}

footer .contactIcon {
  color: var(--primary-color);
  transition: inherit;
}

footer ul,
.calender {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 295px;

  p {
    font-weight: 300;
  }

  span {
    font-weight: bold;
  }
}

footer ul li {
  cursor: pointer;
  line-height: 1.5;
  font-weight: 400;
  transition: var(--transition);
  font-size: 1rem;

  a {
    display: flex;
    align-items: center;
    text-transform: none !important;

    gap: 4px;
    color: white;
  }
}

footer ul li:not(.socials):hover {
  a {
    color: var(--secondary-color);
  }

  .contactIcon {
    background-color: var(--secondary-color);
    color: white;
  }
}

.socials {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;

  .contactIcon:hover {
    background-color: var(--secondary-color);
    color: white;
  }
}

.calender div {
  display: flex;
  margin-block: 0.25rem;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 400;
}

/* ! INNER PAGES HERO*/

main.innerPage header .container {
  min-height: calc(60vh - 3rem);
  min-height: calc(60dvh - 3rem);
  display: flex;
  justify-content: end;
  align-items: center;
  padding-block: 6rem;

  .intro {
    margin-bottom: 0;
    margin-top: 4rem;
    font-size: Clamp(2.25rem, calc(4vw + 1rem), 3rem);
  }
}

.headerIntro {
  display: flex;
  flex-direction: column;
  margin-bottom: -5rem;
  gap: 1rem;

  h2 {
    color: white;
    font-size: 3rem;
  }

  p {
    color: var(--primary-color);
    font-size: 1.75rem;
  }
}



/* !WHO WE viewMessage SECTION */

section#viewMessage .container {
  display: flex;
  align-items: stretch;
  justify-content: center;
  column-gap: 4rem;
  row-gap: 2rem;
  flex-wrap: wrap;

  article {
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: center;
    flex: 1 1 400px;
    gap: 3rem;

    div {
      display: flex;
      flex-direction: column;
      gap: 1rem;

      h3 {
        font-size: 1.5rem;
        color: var(--primary-color);

      }

      p {
        text-wrap: balance;
        max-width: 90%;
        line-height: 2;

      }
    }
  }
}

section#viewMessage .container article:has(img) {
  max-width: 400px;
  height: auto;

  img {
    width: 100%;
    height: 100%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    object-position: center;
    border-radius: 2rem;
  }
}

/* !VALUES SECTION */


button.contact.active{
  background-color: white;
  color: var(--primary-color) !important;
  a{
  color: var(--primary-color) !important;
  }
}

main.innerPage section.service .container {
  grid-template-rows: initial;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

main.innerPage section.service .container article {
  grid-column: initial;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
  color: white;
  flex-direction: column;

  p {
    font-size: 0.8rem;
  }

  img {
    max-width: 54px;
  }
}

.specialIntro {
  color: var(--secondary-color);
  margin-top: 5rem;

  span {
    color: var(--primary-color);
  }
}

.subIntro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.25rem;

  h2 {
    color: var(--secondary-color);
  }

  p {
    text-wrap: balance;
  }
}


section.productFilter {
  overflow: initial;
}

section.productFilter .container {
  display: grid;
  grid-template-columns: 25% 73%;
  column-gap: 2%;
  row-gap: 2rem;
  position: relative;

  article {
    height: fit-content;
  }

  .filter {
    position: sticky;
    background-color: white;
    top: 120px;
  }

  .readMore {
    color: white;
    font-weight: bold;

    &:hover {
      color: var(--primary-color);
    }
  }

  .inputHolder {
    position: relative;
    isolation: isolate;

    label {
      width: fit-content;
      height: fit-content;
      color: var(--darker-primary-color);
      position: absolute;
      z-index: 1000;
      left: 1rem;
      top: 0;
      bottom: 0;
      margin: auto;
      font-size: 1.25rem;
    }
  }
}

.filterOptions {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  .filterWrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--secondary-color);
    overflow: hidden;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    li {
      color: var(--secondary-color);
      display: flex;
      gap: 0.5rem;
    }

    input {
      accent-color: var(--darker-primary-color);
      scale: 1.25;
    }
  }

  .readMore {
    max-width: 100%;
  }

}

.searchEngine {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;

  .inputHolder {
    flex-grow: 1;
  }

  button {
    max-width: 100%;
    height: auto;
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }
}

#productAmount.emptyState {
  font-size: 1.5rem;
  font-weight: bold;
  color: #d00;            /* red text */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;      /* centers it automatically */
  gap: 0.5rem;
}

#productAmount.emptyState::before {
  content: "✖";           /* red X */
  color: #d00;
  font-size: 1.8rem;
}


#allProducts {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  column-gap: 2rem;
  row-gap: 2rem;

  article img {
    height: 350px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    max-height: 350px;
    border: 3px solid var(--darker-primary-color);
  }
}



#productPagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  border: 2px solid var(--secondary-color);
  padding: 1rem;
  border-radius: 0.25rem;
  align-items: center;
}

#productAmount {
  color: rgba(0, 0, 0, 0.65);
  flex-grow: 1;
  text-align: end;
  pointer-events: none;
}

#next,
#prev {
  font-size: 1.5rem;
  background-color: transparent;
  color: rgba(0, 0, 0, 0.5);
  transition: var(--transition);

  &:hover {
    color: var(--darker-primary-color);
  }
}

#paginationBtns {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

#paginationNumbers {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.paginationNumber {
  width: 40px;
  height: 40px;

  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  border-radius: 50%;
  font-size: 0.9rem;
  background-color: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.75);

  &:hover {
    background-color: var(--darker-primary-color);
    color: white;
  }

}

.paginationNumber.dots {
  pointer-events: none;
}

.paginationNumber.active {
  background-color: var(--darker-primary-color);
  color: white;
}

#otherProducts {
  .intro {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding-block: 3rem;
  }
}

section#productInfo {
  overflow-x: hidden;
  overflow: initial !important;
  /* padding-inline: 25px; */
}

#productInfo .container {
  background-color: white;
  display: flex;
  gap: 2rem;
  padding-block: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  border: 2px solid var(--primary-color);
  border-radius: 1.5rem;
  margin-top: -200px;

  article {
    flex: 1 1 300px;
    display: flex;
    gap: 1rem;
    padding-inline: 2rem;
    flex-direction: column;
    justify-content: space-between;

    .readMore {
      margin-top: auto;
      max-width: 100%;
      width: 100%;
      display: block;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      min-height: 200px;
      max-height: 500px;
    }
  }
}


#productInfo .swiper {
  width: 400px;

  .swiper-slide {
    cursor: pointer !important;
  }
}

.productImage {
  min-width: 500px;
  justify-content: center !important;
  align-items: center;
}

#currentProductImage {
  display: flex;

  img {
    min-width: 0;
  }
}

.otherImages {
  display: flex;
  align-items: center;
  width: fit-content;
  max-height: fit-content;
  overflow: hidden;
  width: 100%;
  min-width: 75px;
  border-radius: 0.25rem;
  max-width: 450px;

  border: 1px solid var(--darker-primary-color);

  img {
    width: 75px !important;
    height: 75px !important;
    object-fit: cover;
    cursor: pointer;
    background-color: transparent;
    mix-blend-mode: multiply;
    min-height: 0px !important;
    transition: inherit;
  }
}

.otherImg {
  overflow: hidden;
  transition: var(--transition);
  border: 4px solid transparent;
}

.otherImg.active {
  background-color: whitesmoke;
  border-color: var(--darker-primary-color);
}

.otherImg:hover {
  background-color: whitesmoke;

  img {
    scale: 1.05;
  }
}

#selectedProductName {
  color: var(--darker-primary-color);
}

#selectedProductDesc {
  color: var(--primary-color);
}

.productVariants {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  width: 100%;
  max-width: 450px;
  gap: 0.5rem;
  margin: auto;
}

#variantButtons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hidden {
  display: none;
}

.swipeVariant {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 0.25rem;
  transition: var(--transition);

  /* min-width: 367px; */
  &:hover {
    background-color: var(--primary-color);
    color: white;
  }
}

.swiper-next,
.swiper-prev {
  min-width: 0px !important;
  max-width: 60px;

  i {
    scale: 1.5;
  }

}

.swipeVariant.active {
  background-color: var(--primary-color);
  color: white;
}


#variantButtons,
#variantButtons button {
  width: 100%;
  max-width: 450px;
}


#imagePopup {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 5rem;
  position: fixed;
  z-index: 1000;
  inset: 0;
  transition: 0.5s all ease;
  opacity: 0;
  pointer-events: none;
  visibility: none;
  overflow-y: auto;
}

#zoomedImage {
  max-height: 800px;
  min-height: 300px;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  scale: 0.9;
  transition: 0.5s all ease;
  background-color: white;

  img {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }
}

#closeBtn {
  position: absolute;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom-left-radius: 0.25rem;
  font-size: 2rem;
  background: var(--darker-primary-color);
  padding: 0.5rem;
  top: 0;
  right: 0;
  transition: var(--transition);

  &:hover {
    background-color: red;
  }
}


#imagePopup.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

#imagePopup.active #zoomedImage {
  scale: 1;
}


/* ! OUR VISION */
section.ourVision {
  padding-top: 0;
}

section.ourVision .container {
  .intro {
    margin: 0 !important;
  }

  article {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    p {
      font-size: 1.25rem;
      text-wrap: pretty;
      line-height: 1.75;
    }
  }
}

/* ! OUR MISSION */
section.ourMission .container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;

  article {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    grid-column: span 2;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    min-height: 250px;
    box-shadow: var(--shadow);
    border-radius: 2rem;
    background-color:white;
    transition: var(--transition);

    h2 {
      color: var(--secondary-color);
      font-size: 2rem;
      transition: inherit;
    }

    &:hover {
      background-color: var(--darker-primary-color);
      color: white;
      transform: translateY(-10px) scale(1.025);

      h2 {
        color: white;
      }
    }
  }
}





    #otherProducts{
      .intro{
        width: 100%;
        background-color: var(--primary-color);
        color: white;
        text-align: center;
        padding-block: 3rem;
      }
    }

/*! KEYFRAMES */

@keyframes navSlide {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(20%);
    opacity: 1;
  }
}

@keyframes whatsApp {
  to {
    scale: 1;
    opacity: 1;
  }
}

/* ?MEDIA QUERIES */
/* ! HEIGHT */

@media (min-height: 1024px) {

  header .container,
  header .swiper-slide {
    min-height: 1024px !important;
  }

  header {
    max-height: 1024px;
  }
}

/* ! WIDTH */

@media (min-width: 1280px) {

  nav .contact,
  .logo {
    min-width: 200px;
  }

  .service .container {
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(2, 1fr);

    article {
      grid-column: span 4;
    }
  }

  nav .container {
    padding-inline: 3rem;
  }

  article.bigger {
    grid-column: span 5 !important;
  }

  .products .container article img,
  #allProducts .container article img {
    max-height: 200px;
  }

  .biggerGrid {
    grid-column: span 6 !important;
  }
}

@media (min-width: 1024px) {
  #side_menu {
    display: none;
  }

  .tallGrid {
    grid-row: span 2 !important;
    grid-column: span 3 !important;

    .gridOverlay {
      font-size: 2rem;
      padding-block: 4rem;

    }
  }

  .widerGrid {
    grid-column: span 4 !important;

    .gridOverlay {
      font-size: 2rem;
      padding-block: 4rem;
    }
  }

  .productGallery .container {
    grid-template-columns: repeat(7, 1fr) !important;
  }

  .longerGrid {
    grid-column: span 3 !important;
  }


}


@media(max-width:1280px) {
  .whatsApp {
    bottom: 1rem !important;
    right: 2rem;
  }

  .heroOverlay img {
    object-position: 65%;
  }
}

@media (max-width: 1024px) {
  .productGallery .container {
    grid-template-rows: 1fr 1fr;

  }

    .filter {
        position: static !important;
      }

  *[data-aos-delay] {
    transition-delay: 0s !important;
  }

  .heroOverlay img {
    object-position: 80%;
  }

  section.whoWe .container article {
    flex: 1 !important;
  }

  #navigation_dropdown {
    display: flex;
  }

  nav>.container .main_Links {
    display: none;
  }

  nav ul {
    gap: 0.5rem;
  }

  #menu,
  #side_menu {
    display: block;
  }

  nav ul {
    flex-direction: row-reverse;
  }

  section#eachDoctor .container article {
    flex-direction: column;
  }

  .products .swiper-slide img,
  #allProducts article img {
    height: 100%;
    aspect-ratio: 1/1;
  }

  .productFilter .container {
    grid-template-columns: 1fr !important;
  }

  .filter {
    position: static !important;
  }

  .whoWe .container {
    column-gap: 2rem !important;

    article {
      p {
        font-size: 1rem;
      }
    }
  }


  .ourMission .container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;

    article {
      grid-column: span 1 !important;
      width: 100%;
    }
  }
}

@media (max-width: 768px) {
  .heroOverlay img {
    object-position: 80%;
  }

  nav .container {
    width: 95%;
  }



  .whoWe .container {
    flex-direction: column;
  }

  .whoWe .container article {
    justify-content: center;
    align-items: center;
    text-align: center;

    h2 {
      font-size: 2rem !important;
    }

    p {
      font-size: 0.9rem;
    }
  }

  header#home .swiper-slide,
  header#home .container {
    min-height: 70dvh !important;
    max-height: 700px;
  }

  header#home .container {
    justify-content: end;
    padding-block: 4rem;
  }

  header#home .heroIntro button {
    scale: 0.9;
  }

  section#productInfo {
    padding-inline: 15px;
  }

  #productInfo .swiper {
    width: 300px;
  }

  #imagePopup {
    padding-inline: 1rem;
  }

}

@media (max-width: 640px) {

  header#home .swiper-slide,
  header#home .container {
    min-height: 60vh !important;
  }

  nav {
    width: 100%;


  }



  #productAmount {
    text-align: center;
  }

  main.innerPage header .container {
    padding-block: 4rem;
    min-height: 300px !important;
  }

  .productVariants,
  .otherImages {
    white-space: nowrap;
    max-width: 400px;
  }

  .productImage {
    min-width: 100% !important;
    padding: 0 !important;
  }

  .otherImages img {
    width: 60px !important;
    height: 60px !important;
  }

  main.innerPage header {
    min-height: 40vh !important;
  }

  main::after,main::before{
    width: 350px;
    height: 350px;
    border-width: 20px;
  }
  main::before{
    top: 15%;
  }
    main::after{
    top: 40%;
  }

  .contactHandle
  {
    padding-inline: 1rem;
    p{
    span{
      font-size: 1.125rem !important;
    }
    font-size: 0.9rem;
  }}


  #allProducts{
    column-gap: 1rem !important;
    grid-template-columns: repeat(auto-fit,minmax(140px,1fr)) !important;

  }
}

@media (max-width: 480px) {
  #allProducts article{
    .productName{
      font-size: 1.125rem;
    }
    img{
      min-height: 225px;
  }
}
  .whoWe .container article {
    min-width: 250px !important;
  }

  .whoWe .container article h2 {
    font-size: 1.5rem !important;
  }

  nav {
    min-width: 280px;

    button {
      display: none;
    }

  }

  nav {
    padding-block: 0.75rem;
  }

  .map_mask {
    scale: 0.85;
  }


  nav .container {
    width: 95%;
  }

  nav.floating_nav {
    padding: 0;
  }

  #navigation_dropdown {
    transform: translateY(60px);
  }

  body[dir='rtl'] {

    button.contact a {
      font-size: 0.75rem;
    }
  }

  header#home .container {
    justify-content: center;
    padding-block: 10rem;
  }

  .heroIntro h1 {
    width: 100%;
  }

  .headerIntro {
    h2 {
      font-size: 2.25rem;
    }

    p {
      font-size: 1.5rem;
    }

    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .heroIntro {
    justify-content: center;
    align-items: center;
    text-align: center;
  }



  footer .container {
    display: flex;
    flex-direction: column;
  }


  section.productGallery .container {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(4, 300px) !important;
  }



  #drService .container {
    grid-template-columns: 1fr;

    article {
      padding: 2rem 1rem;
      flex-direction: column;

      img {
        max-height: 120px;
      }
    }
  }


  .products article
   {
    h3 {
      font-size: 1rem;
    }

    img {
      min-height: 200px !important;
      height: 200px !important;
    }

    button a {
      font-size: 0.75rem !important;
    }
  }


  .searchEngine .readMore {
    width: 100%;
    max-width: 100%;
    display: block;
  }


  .intro {
    font-size: 1.5rem;
  }

  #variantButtons {
    max-width: 100%;
    width: 100% !important;
    flex-direction: column;
  }

  .swipeVariant {
    width: 100%;
  }

  #prevVariant,
  #nextVariant {
    max-width: 100px;
  }

  #productInfo .container article {
    padding-inline: 0;
  }



  .swipeVariant {
    font-size: 0.75rem;
  }



  #productInfo .swiper {
    width: 225px;
  }

  #zoomedImage {
    max-height: 500px;
  }

  #closeBtn {
    font-size: 1.5rem;
  }

  .otherImages img {
    width: 40px !important;
    height: 40px !important;
  }

  .otherImg {
    border-width: 3px;
  }

  nav .contact {
    display: none;
  }

  #productInfo .container {
    padding-inline: 0.5rem;
  }

  .productVariants,
  .otherImages {
    max-width: 270px;
  }
}



@media (max-width: 400px){
  #allProducts article img{
    min-height: 200px !important;
  }
}
