@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --font: "Cairo";
  --font-en: "Roboto";
  --primary-color: #4d7e92;
  --darker-primary-color: #034248;
  --secondary-color: #dfb480;
  --whatsApp-color: #29a71a;
  --offWhite-color: #e0f6ff;
  --text-color: #212121;
  --transition: 0.3s all ease;
  --shadow: 0 0px 10px rgba(0, 0, 0, 0.35);
}

/* !EN */
body[dir="ltr"] {
  *:not(i) {
    font-family: var(--font-en), sans-serif;
  }

  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.25;
  }

  nav li {
    font-size: 1rem;
  }

  #lang_changer .langs {
    font-size: 1.125rem;
  }

  .heroIntro {
    font-size: Clamp(2rem, calc(3vw + 1rem), 4rem);
  }
  .service .container article h4 {
    font-size: 1.25rem;
  }

  .doctor .container article p {
    font-size: 1rem;
  }
  .seeAllDoctors {
    flex-direction: row-reverse;
  }
  input,
  textarea {
    direction: ltr;
  }
  ::placeholder {
    transform-origin: left;
  }
  .headerIntro {
    text-wrap: balance;
  }
  main:not(.innerPage) .heroOverlay::after {
    background: linear-gradient(to left, transparent, var(--primary-color) 70%);
  }
  .whatsApp {
    padding-block: 0.5rem !important;
  }
  .allServices .container article p {
    margin-left: 3rem;
    margin-right: initial !important;
  }

  @media (max-width: 768px) {
    .allServices .container article p {
      margin-left: 0rem;
    }
  }
  @media (max-width: 480px) {
    #lang_changer {
      left: -30px;
    }
  }
}

/* !INTRO */
.intro {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  width: fit-content;
  margin: auto;
  text-align: center;
  margin-bottom: 3rem;
}

nav {
  position: absolute;
  z-index: 999;
  display: flex;
  flex-direction: column;
  left: 0;
  right: 0;
  top: 0;
  margin: auto;
  justify-content: space-between;
  background-color: var(--primary-color);
  box-shadow: var(--shadow);

  color: white;
  max-height: fit-content;
}

nav .container {
  display: flex;
  align-items: center;
  padding-block: 0.75rem;
  border-radius: 1.5rem;
  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;

  z-index: -1;
  .main_Links {
    gap: 1.5rem !important;
  }
}

#navigation_dropdown.show_dropdown {
  height: auto;
}
#navigation_dropdown .container {
  border-top-right-radius: 0;
  background-color: var(--primary-color);
  border-top-left-radius: 0;
  box-shadow: 0 10px 10px -8px rgba(0, 0, 0, 0.5);
  color: black;
  width: 100%;
  padding-bottom: 2rem !important;
  padding-top: 3rem !important;

  justify-content: center;

  .main_Links {
    flex-direction: column;
  }
  li:hover:not(:has(#menuDropDown)) {
    a {
      color: var(--secondary-color);
    }
  }
  a {
    color: white;
  }
  .formOpener {
    color: white;
    &:hover {
      color: var(--secondary-color);
    }
  }
}

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 .logo {
  width: 100%;
  height: 75px;
  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 {
  font-size: 0.9rem;
  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;
  }
}

nav button {
  color: var(--primary-color);
  &:hover {
    color: white;
  }
}

nav li:hover {
  color: var(--secondary-color);
  a {
    color: var(--secondary-color);
  }
}

#menu {
  font-size: 1.5rem;
  display: none;
}

li.active {
  color: var(--secondary-color) !important;
  a {
    color: var(--secondary-color) !important;
  }
}

nav button {
  padding-inline: 1.5rem !important;
}

button.contact {
  background: white;
  padding: 0.85rem 2rem;
  border-radius: 1.1rem;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.075);

  a {
    color: var(--primary-color);
  }

  &:hover {
    background-color: var(--darker-primary-color);
    a {
      color: white;
    }
  }
}

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;
}

#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(--primary-color),
      var(--darker-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(--primary-color);
    &:hover {
      background-color: var(--primary-color);
      color: white;
    }
  }
}

#menuDropDown.show_dropdown {
  height: auto;
}

.arrowDownUp {
  rotate: 180deg;
}

/* !HERO SECTION */

.mySwiper {
  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;
}

.swiper {
  padding-bottom: 4rem !important;
  padding-top: 3rem !important;
}
.swiper-pagination {
  bottom: 0 !important;
}

.swiper-pagination-bullet {
  scale: 1.25;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color) !important;
}

.heroOverlay {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
  }
}

header .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  isolation: isolate;
}

.whatsApp {
  position: fixed;
  bottom: 5.5rem;
  right: 3rem;
  color: white;
  font-size: 1.1rem;
  background-color: var(--whatsApp-color);
  padding-block: 0.25rem !important;
  padding-left: 1rem;
  padding-right: 2rem;
  z-index: 100;
  text-align: end;
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  scale: 0;
  opacity: 0;
  animation: whatsApp 0.7s ease 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, -5px);
  background-color: inherit;
}

/*! SERVICE SECTION */
section.service {
  background-color: var(--offWhite-color);
}

.service .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1rem;
  direction: ltr;
}

.service .container article {
  border-radius: 1.5rem;
  background-color: var(--primary-color);
  box-shadow: var(--shadow);
  a {
    width: 100%;
    padding: 2rem;
    height: 100%;
    color: white;
    border-radius: inherit;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  img {
    height: 70px;
    width: 70px;
    object-fit: contain;
  }
  p {
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.75;
  }
  &:hover {
    background-color: var(--primary-color);
    transition: var(--transition) !important;
    transition-delay: 0s !important;
  }
}

.equipmentIntro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 200px;
  flex: 1;
  h2 {
    color: var(--primary-color);
  }
  p {
    color: var(--text-color);
    /* text-wrap: balance; */
  }
  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  button {
    background-color: var(--secondary-color);
  }
}

.readMore {
  max-width: fit-content;
  background-color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  a {
    font-size: 1rem;
    color: white;
  }
  &:hover {
    background-color: white;
    border-color: var(--primary-color);
    a {
      color: var(--primary-color);
    }
  }
}

/* !MEDICAL EQUIPMENT SECTION */

section.medicalEquipment .container {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  article {
    flex: 1 1 300px;
    max-height: none;
    img {
      width: 100%;
      height: 100%;
      max-height: 400px;
      object-fit: contain;
    }
  }
}

.readMore {
  min-width: 200px;
  font-weight: bold;
  font-size: 1rem;
  a {
    padding-block: 0.25rem;
    justify-content: center;
    align-items: center;
  }
}

/* !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.75rem;
    width: fit-content;
    border-bottom: 5px solid white;
  }
}

footer .container article {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: auto;
  max-width: 400px;
  img {
    max-height: 90px;
    max-width: 180px;
    width: 100%;
    height: 100%;
  }
}

.contactIcon {
  min-width: 35px;
  min-height: 35px;
  color: var(--primary-color);
  background-color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: inherit;
}

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;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--primary-color);
    &: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: 0.85rem;
  a {
    display: flex;
    align-items: center;
    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 - 91px);
  min-height: calc(60dvh - 91px);
}

.headerIntro {
  display: flex;
  flex-direction: column;
  margin-bottom: -5rem;
  gap: 1rem;
  text-wrap: balance;
  h2 {
    color: white;
    font-size: 3rem;
  }
  p {
    color: var(--primary-color);
    font-size: 1.75rem;
  }
}

main .heroOverlay::after {
  content: "";
  background: var(--primary-color) !important;
  width: 100%;
  height: 100%;
  z-index: 0;
  position: absolute;
  left: 0;
  top: 0;
}
/* !WHO WE viewMessage SECTION */
section#viewMessage .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  article {
    display: flex;
    flex-direction: column;
    height: 100%;
    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%;
      }
    }
  }
}
section#viewMessage .container article:has(img) {
  max-width: 400px;
  img {
    width: 100%;
    height: 100%;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    border-radius: 2rem;
  }
}

/* !DOCTOR INNER PAGES */

button:not(nav button) {
  min-width: 200px;
  max-width: fit-content;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.75rem !important;
  font-weight: bold;
}

.intro {
  color: var(--primary-color);
  margin-bottom: 3rem !important;
}
nav {
  width: 100% !important;
  position: fixed;
  top: 0;
  margin: 0;
  .container {
    border-radius: 0;
  }
  #navigation_dropdown .container {
    background-color: var(--primary-color);
    color: white;
    a {
      color: white;
    }
  }
}
main:not(.innerPage),
main:has(.advicePage) {
  header {
    border-bottom-left-radius: 10rem;
    border-bottom-right-radius: 10rem;
    overflow: hidden;
    .container {
      flex-direction: row;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      padding-top: 8.5rem;
      padding-bottom: 7rem;
      column-gap: 4rem;
      row-gap: 8rem;
      article {
        width: fit-content;
        padding-top: 2rem;
        flex: 1 1 350px;
      }
      button {
        color: var(--primary-color);
        &:hover {
          color: white;
        }
      }
      h2 {
        font-size: 2rem;
        font-weight: 300;
        span {
          font-weight: bold;
        }
      }
    }
  }
}

header::after {
  display: none;
}
header .heroOverlay::after {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color)
  );
  opacity: 0.9;
}

footer {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color)
  );
}

.drImg {
  aspect-ratio: 1;
  padding: 0.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 400px;
  img {
    width: 100%;
    height: 100%;

    border-radius: 50%;
    outline: 4px solid white;
    outline-offset: 5px;
  }
}
.drImg:nth-child(odd) {
  img {
    outline-color: var(--primary-color);
  }
}
/* ! DR RAAD PAGE */

#drService .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1rem;
  height: fit-content;
}

#drService .container article {
  display: flex;
  justify-content: center;
  padding: 3.5rem 2rem;
  flex-wrap: wrap;
  background-color: var(--secondary-color);
  gap: 2rem;
  align-items: center;
  border-radius: 2.5rem;

  img {
    width: 100%;
    height: 100%;
    flex: 1;
    max-height: 150px;
    object-fit: contain;
  }
  .contact {
    a {
      color: var(--secondary-color);
    }
    &:hover {
      a {
        color: white !important;
      }
    }
  }
}

.biggerGrid {
  background-color: var(--primary-color) !important;
}

article.biggerGrid button.contact {
  a {
    color: var(--primary-color) !important;
  }
}
.drServceDetails {
  display: flex;
  flex-direction: column;
  flex: 2;
  gap: 1rem;
  font-size: 1.5rem;
  min-width: 230px;
  color: white;
  p {
    font-size: 1rem;
    font-weight: 400;
  }
}

/* ! DOCTOR ADVICE SECTION DR.RAAD */
section.drAdvice .intro {
  margin-bottom: 0 !important;
}
section.drAdvice button {
  margin: auto;
  margin-top: 3rem;
}
.drAdvice .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  column-gap: 2rem;
  row-gap: 6rem;
}

.drAdvice .container article {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 500px;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.125rem;
  iframe {
    border-radius: 1.5rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
  }
}

/* DOCTOR PAGE MACHINE SECTION */
main {
  section.medicalEquipment:nth-child(even) .container {
    flex-direction: row-reverse;
  }
  section.medicalEquipment h2 {
    color: var(--primary-color);
  }
  button.readMore {
    color: white;
    &:hover {
      color: var(--primary-color);
    }
  }
}

/* BOOKING FORM */
.floatingForm {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  position: fixed;
  inset: 0;
  flex-direction: column;
  gap: 3rem;
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  h1 {
    margin-bottom: 2rem;
  }
}

.floatingForm.show {
  display: flex;
  pointer-events: all;
  visibility: visible;
}

.floatingForm form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  border: 1px solid var(--primary-color);
  padding: 2rem;
  color: white;
  max-width: 850px;
  max-height: fit-content;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), var(--primary-color));
  gap: 1rem;
  scale: 0;
  user-select: none;
  animation: formAnim 1s ease forwards;
  .readMore {
    font-weight: bold;
    font-size: 1rem;
    a {
      padding-block: 0.25rem;
      justify-content: center;
      align-items: center;
    }
  }
}

.floatingForm form div:not(:has(.inputHolder)) {
  display: flex;
  flex-wrap: wrap;
  button {
    min-width: none;
  }
}

.floatingForm form button {
  margin-inline: 0.25rem;
  margin-top: 1rem;
  color: white;
  &:hover {
    color: var(--primary-color);
  }
}
.inputHolder {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  input,
  textarea {
    padding: 1rem 2rem;
    border-radius: 6px;
    text-transform: none !important;
    resize: none;
    font-size: 1.125rem;
    border: 1px solid var(--primary-color);
    direction: rtl;
  }
  textarea {
    height: 200px;
  }
}

::placeholder {
  color: var(--primary-color);
  opacity: 0.75;
  min-height: 24px;
}

/* INNER PAGES */
main.innerPage {
  background-color: #f9f8f3;
  header {
    min-height: calc(60vh);
    min-height: calc(60dvh);
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    position: relative;
  }
  header::before {
    background-color: var(--primary-color);
    height: 8px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10;
    content: "";
  }

  .heroOverlay img {
    object-position: 25%;
  }
  .heroOverlay:not(.advicePage)::after {
    display: none;
  }
  .headerIntro {
    width: fit-content;
    max-width: 600px;
  }
  .headerIntro h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    span {
      font-weight: bold;
    }
  }
}

.drAdvice:has(.myCertificates) {
  article {
    height: 300px;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 1.5rem;
      border: 2px solid var(--primary-color);
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    }
    p {
      min-height: 54px;
    }
  }
}

header:has(.advicePage) {
  .container {
    justify-content: space-between !important;
  }
  .container article {
    max-height: 350px;
  }
  .drImg {
    max-width: 350px;
  }
  .headerIntro {
    h2,
    p {
      color: white !important;
    }
  }
}

main.innerPage .drAdvice:not(:has(.myCertificates)) {
  .intro {
    margin-bottom: 3rem !important;
  }
  .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    article {
      display: none;
      max-width: 300px;
      margin: auto;
    }
  }
}

main.innerPage .drAdvice .container article.show {
  display: flex !important; /* only show when .show is applied */
}
.navBtns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 3rem 1rem;
  direction: ltr;
}
.navBtn {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
  &:hover {
    background-color: var(--primary-color);
    color: white;
  }
}

.navBtn.active,
.navBtn.arrow {
  background-color: var(--primary-color);
  color: white;
}
.navBtn.arrow:hover,
.navBtn.active:hover {
  background-color: transparent;
  color: var(--primary-color);
}
/* ALLSERVICES PAGE */
section.allServices .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  max-width: 1024px;
  width: 100%;
}
.allServices .container article {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  width: 100%;
  padding: 0 1rem;
  border-radius: 1rem;
  font-weight: bold;
  font-size: 1.35rem;
  color: white;
  background-color: var(--primary-color);
  p {
    margin-right: 3rem;
  }
  a {
    display: flex;
    gap: 1rem;
    background-color: white;
    padding: 0.75rem 2rem;
    white-space: nowrap;
    border-radius: 1rem;
    align-items: center;
    margin-block: 0.5rem;
    color: var(--primary-color);
    transition: var(--transition);
    &:hover {
      color: white;
      background-color: var(--darker-primary-color);
    }
  }
  img {
    width: 40px;
    height: 40px;
  }
}

/*! KEYFRAMES */
@keyframes navSlide {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(20%);
    opacity: 1;
  }
}

@keyframes whatsApp {
  to {
    scale: 1;
    opacity: 1;
  }
}
@keyframes formAnim {
  from {
    scale: 0;
    opacity: 0;
  }

  to {
    scale: 1;
    opacity: 1;
  }
}

/* ?MEDIA QUERIES */

/* ! WIDTH */
@media (min-width: 1280px) {
  #drService .container {
    grid-template-columns: repeat(11, 1fr);
  }
  #drService .container article {
    grid-column: span 5;
  }
  .biggerGrid {
    grid-column: span 6 !important;
  }
}

@media (max-width: 1280px) and (min-width: 1024px) {
  nav .container {
    width: 95%;
  }
  nav li a,
  nav .contact a {
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  #side_menu {
    display: none;
  }
  .medicalEquipment .intro {
    margin-bottom: 0;
  }
}

@media (max-width: 1024px) {
  *[data-aos-delay] {
    transition-delay: 0s !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;
  }
  header:has(.advicePage) .container {
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  nav .container {
    width: 95%;
  }
  .allServices .container article {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding-block: 1rem;
    p {
      margin-right: 0rem;
    }
    a {
      padding-block: 0.5rem;
    }
  }
}

@media (max-width: 480px) {
  nav {
    button {
      display: none !important;
    }
  }

  #navigation_dropdown {
    transform: translateY(60px);
  }
  button.contact a {
    font-size: 0.75rem;
  }
  .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;
  }
  .whatsApp {
    bottom: 2rem;
  }

  footer .container {
    display: flex;
    flex-direction: column;
  }

  main.doctorPage header {
    border-radius: 0;
  }

  #drService .container {
    grid-template-columns: 1fr;
    article {
      padding: 2rem 1rem;
      flex-direction: column;
      img {
        max-height: 120px;
      }
    }
  }
  .drServceDetails {
    flex: 1;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .floatingForm {
    h1 {
      font-size: 1.5rem;
      text-align: center;
      margin-bottom: 1rem;
    }
    form {
      padding-inline: 1rem;
    }
  }

  main.innerHeader .heroIntro h2 {
    font-size: 1.5rem;
  }
  .allServices .container article {
    font-size: 1.25rem;
    a {
      padding-inline: 1.25rem;
      font-size: 1rem;
      img {
        width: 30px;
        height: 30px;
      }
    }
  }

  main.innerPage header:not(:has(.advicePage)) {
    min-height: 320px !important;
    .headerIntro {
      display: none;
    }
  }
}

.newserv {
  width: 100%;
}
.srvtitle {
    width: 100%;
    padding: 20px 25px;
    background: #4d7e92;
    color: #fff;
    border-radius: 11px;
    margin-bottom: 15px;
}

.sevdis {
    padding: 20px 25px;
    background: #457082;
    color: #fff;
    border-radius: 11px;
    margin-bottom: 24px;
}

/* إخفاء الوصف افتراضياً */
.sevdis { display: none; }

/* إظهار الوصف عند فتح البطاقة */
.svrvCard.open .sevdis { display: block; }

/* زر السهم داخل العنوان */
.srvtitle { position: relative; display: flex; align-items: center; justify-content: space-between; }
.srvArrow{
  width: 5px; min-width: 40px;  height: 22px; border: none; background: transparent; cursor: pointer; position: relative;
}
.srvArrow::before, .srvArrow::after{
  content:""; position:absolute; inset:0; margin:auto; width:10px; height:2px; background:#fff; border-radius:2px;
}
.srvArrow::before{ transform: translateX(3px) rotate(45deg); }
.srvArrow::after { transform: translateX(-3px) rotate(-45deg); }

/* دوران السهم عند الفتح */
.svrvCard.open .srvArrow{ transform: rotate(180deg); }
