body {
  font-family: "Cairo", sans-serif;
  font-size: 0.9rem;
  list-style: 1.8;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cairo", sans-serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: #000;
}

a:hover {
  color: #cb1e24;
}

.no-scroll {
  overflow: hidden;
}

.btn {
  border-radius: 50vmax;
  padding: 10px 20px;
  min-width: 150px;
}

.btn-primary {
  background: transparent;
  border: 1px solid #000;
  color: #000;
}

.btn-primary:hover {
  background: #cb1e24;
  border: 1px solid #cb1e24;
  color: #fff;
}

.home #page section:not(#home-slider) {
  padding-block: 5vh;
  position: relative;
}

.frame-25 {
  content: "";
  background-image: url(../images/Frame-25.svg);
  width: 96px;
  height: 177px;
  display: block;
  position: absolute;
  top: 10px;
  inset-inline-end: 0;
  z-index: -2;
}

.frame-26 {
  content: "";
  background-image: url(../images/Qemma_Logo.png);
  width: 143px;
  height: 308px;
  display: block;
  position: absolute;
  top: 110px;
  inset-inline-end: 0;
  z-index: -2;
}

.block-img {
  position: relative;
  border-radius: 10px;
  height: 360px;
  /* padding-inline-start: 16px; */
  /* padding-block-end: 16px; */
  margin-bottom: 40px;
  background-color: #d2d2d2;
}

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

.block-img::after {
  content: "";
  position: absolute;
  width: 260px;
  aspect-ratio: 1;
  background: #cb1e24;
  border-radius: 25px;
  z-index: -1;
  bottom: -20px;
  inset-inline-start: -20px;
}

.block-content {
  line-height: 1.8;
  text-align: justify;
}

.block-content h3 {
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 16px;
}

.block-content h2 {
  font-weight: 800;
  font-size: 62px;
  margin-bottom: 26px;
  color: #cb1e24;
}

.block-content h2 > span {
  display: block;
  font-size: 31px;
  font-weight: 500;
}

.swiper-pagination-bullet {
  background: rgb(217 217 217 / 48%);
  opacity: 1;
  transition: 100ms;
}

.swiper-pagination-bullet-active {
  background: #f4df23;
  width: 20px;
  border-radius: 5px;
}

/*=========================== Header ===========================*/
#masthead {
  position: fixed;
  z-index: 22;
  left: 0;
  width: 100%;
  padding: 10px 0;
  background: transparent;
  transition: 300ms;
}

#masthead.fixed {
  background: #cb1e24;
}

#masthead.fixed a.custom-logo-link img {
  filter: brightness(0) invert(1);
  width: 80px;
}

#masthead:before {
  content: "";
  position: absolute;
  inset: 0;
  height: 140px;
  z-index: -1;
  background-image: linear-gradient(180deg, #6f0004, transparent);
  pointer-events: none;
}

#masthead.fixed:before {
  opacity: 0;
}

#masthead .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

a.custom-logo-link img {
  width: 120px;
  height: auto;
  display: block;
  margin-inline: auto;
  transition: 300ms;
}

#primary-menu {
  margin: 0;
  list-style-type: none;
  position: fixed;
  width: 100%;
  background: #fff;
  left: 0;
  top: 0;
  height: 100dvh;
  padding: 40px 0;
  z-index: 9;
  transition: 300ms;
  transform: translateX(-100%);
  overflow: auto;
}

#primary-menu.active {
  transform: translateX(0);
}

#primary-menu > li > a {
  display: block;
  padding: 10px 30px;
}

#primary-menu > li > a:hover {
  background: #f6f6f6;
}

.menu-toggle {
  background: none;
  border: none;
  color: #a0b9df;
  font-size: 20px;
}

.menu-toggle:hover {
  color: #fff;
}

.menu-close {
  font-size: 30px;
  text-align: center;
  background: #a0b9df;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: 20px;
  line-height: 35px;
}

.menu-close:hover {
  background: #dbdbdb;
}

#searchBox {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: #fff;
  padding: 70px 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
}

#searchBox.active {
  display: block;
}

#searchOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

#searchOverlay.active {
  display: block;
}

.left {
  display: flex;
  justify-content: flex-end;
}

.search-form {
  display: flex;
  gap: 13px;
}

.search-submit {
  padding: 0 20px;
  background: #cb1e24;
  color: #fff;
  border: 1px solid #cb1e24;
  border-radius: 50px;
  flex: 1;
  min-width: 100px;
}

.search-submit:hover {
  background: #fff;
  color: #a3080e;
  border: 1px solid #a3070e;
  cursor: pointer;
}

.search-form label {
  display: block;
  width: 90%;
}

input.search-field {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 50vmax;
  padding: 10px 20px;
}

button#closeSearch {
  position: absolute;
  top: 15px;
  inset-inline-end: 20px;
  background: transparent;
  border: none;
  font-size: 20px;
}

/* =======================Slider ===========================*/

#home-slider .caption-swiper img {
  height: 510px;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

#home-slider .caption-swiper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #9a0005;
}

#home-slider .caption-swiper .slider-caption {
  position: absolute;
  z-index: 2;
  top: 50%;
  color: #f0f0f0;
  padding-inline: 16px;
  transform: translateY(-40%);
}

#home-slider .caption-swiper .slider-caption h5 {
  color: #fff;
  font-weight: 200;
  font-size: 0.8rem;
}

#home-slider .caption-swiper .slider-caption h5 > span {
  display: block;
  font-size: 40px;
  font-weight: 500;
  margin-top: 16px;
  line-height: 1;
  margin-bottom: 16px;
}

#home-slider .caption-swiper .slider-caption h5 > span > span {
  font-family: "Poppins";
  font-weight: 300;
  font-size: 60px;
}

#home-slider .caption-swiper .slider-caption .btn-primary {
  background: #fff;
  border: #fff;
  color: #000;
  margin-top: 30px;
}

/* ============== Vision, Mission, Goals ============== */

#vision-mission-goals .items {
  display: grid;
  gap: 60px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

#vision-mission-goals .items .box {
  display: flex;
  gap: 16px;
}

#vision-mission-goals .items .box .icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  text-align: center;
}

#vision-mission-goals .items .box .icon img {
  border-inline-end: 1px solid #000;
  padding-inline-end: 10px;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

#vision-mission-goals .items .box .content {
  flex: 1;
}

#vision-mission-goals .items .box .content h4 {
  font-size: 18px;
  margin-block-end: 16px;
  padding-top: 30px;
  color: #cb1e24;
}

#vision-mission-goals .items .box .content p {
  margin: 0;
  text-align: justify;
}

.block-img.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 11fr));
  gap: 16px;
  min-height: 370px;
  padding-inline-start: 0;
  padding-inline-end: 16px;
}

.block-img.gallery {
  height: 150px;
}

.block-img.gallery::after {
  width: 120px;
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.block-img.gallery img {
  width: 100%;
  height: 170px;
}

/* =================== Company History ======================== */
#company-history {
  background: #cd2027;
  color: #f6f6f6;
}

#company-history h3,
#company-history h2,
#company-history strong {
  color: #f4df23;
}

#company-history .block-content {
  margin-bottom: 30px;
}

#company-history .block-img::after {
  background: #f4df23;
}

#company-history .frame-25 {
  opacity: 30%;
  inset-inline-start: 0;
  inset-inline-end: auto;
}

/* ===================== Services ======================= */
#services {
  background: #fafafa;
}

#services .block-img {
  display: none;
}

.service-item {
  box-shadow: 0 0 17px -3px #00000012;
  padding: 16px;
  background: #fff;
}

.service-item .service-thumbnail {
  margin-inline-start: auto;
  text-align: end;
}

.service-item .service-thumbnail img {
  height: 80px;
  object-fit: scale-down;
  width: 80px;
}

h3.service-title {
  font-weight: 700;
  font-size: 18px;
}

/* ==================== Testimonial Section ======================= */

#testimonials {
  background-image: url("../images/testimonial.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #eeeeee;
}

#testimonials .head-section {
  color: #fff;
}

#testimonials .head-section small {
  color: #e6e6e6;
}

#testimonials .head-section h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

#testimonials .head-section p {
  font-size: 18px;
  margin-bottom: 40px;
}

#testimonials .block {
  background: rgba(160, 185, 223, 11%);
  padding: 20px;
  border-radius: 20px;
  height: 100%;
  text-align: center;
  margin-block: 80px;
  line-height: 1.6;
}

#testimonials .block .image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-inline: auto;
  margin-top: -85px;
  margin-bottom: 25px;
}

#testimonials .block .image img {
  width: 100%;
  height: 100%;
}

#testimonials .block h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  margin-bottom: 16px;
  position: relative;
  background-image: url(../images/quto.svg);
  background-repeat: no-repeat;
  background-position: right;
}

.partner-logo {
  height: 100px;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

#partners svg path {
  fill: #cb1e24;
}

/* ==================== Contact ======================= */
#contact {
  background: rgb(217, 217, 217, 13%);
}

.wpcf7-form-control {
  border-radius: 50vmax;
  border: none;
  padding: 10px 20px;
  width: 100%;
  background: rgb(241 241 241);
  min-height: 43px;
  direction: rtl !important;
  outline: none;
  position: relative;
  z-index: 12;
}

.wpcf7-form-control:focus {
  box-shadow: 0 0 0 2px #208bcb;
  background: #fff;
  border: 1px solid #a0060c;
}

.wpcf7-textarea {
  border-radius: 20px;
  min-height: 170px;
}

.wpcf7-submit {
  border: 1px solid #bebebe;
  background-color: #fff;
  margin-inline-start: auto;
  width: fit-content;
  display: block;
  padding: 11px 60px;
}

.wpcf7-submit:hover {
  background: #cb1d23;
  border: 1px solid #cb1d23;
  color: #fff;
}

.wpcf7 form .wpcf7-response-output {
  position: fixed;
  bottom: 0;
  z-index: 1;
  width: 100%;
  left: 0;
  right: 0;
  margin: 0;
  background: #fff;
  padding: 10px 20px;
  z-index: 899;
}

#contact .frame-25 + .frame-25 {
  bottom: 20px;
  inset-inline-start: 0;
  top: auto;
}

#google-map iframe {
  width: 100%;
  height: 310px;
  border-radius: 20px;
  filter: grayscale(1);
}

/* =================== footer ======================= */
footer .top {
  background-image: linear-gradient(316deg, #960006, #cd2027);
  padding: 50px 0;
  color: #fff;
  font-weight: 100;
}

footer .top figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

footer .top ul {
  margin: 0;
  list-style: none;
  padding: 0;
}

footer .top a {
  color: #fff;
}

footer .copyright {
  background: #f4df23;
  color: #000000;
  padding: 16px 0;
}

footer .top .row {
  gap: 16px;
}

footer .top ul li a:before {
  content: ".";
  font-size: 44px;
  line-height: 0;
  padding-inline-end: 10px;
}

footer .top h3 {
  font-size: 18px;
}

.social-icons {
  margin-top: 30px;
}

.social-icons a {
  opacity: 54%;
}

.social-icons a:hover {
  opacity: 100%;
}

.contact-link {
  display: none;
}

.wpml-ls-slot-7 {
  list-style: none;
  width: max-content;
}

.wpml-ls-slot-7 a {
  background: #a2070d;
  color: #fff;
  display: block;
  padding: 10px 15px;
  border-radius: 50vmax;
  font-size: 12px;
  border: 1px solid #a2070e;
}

.wpml-ls-slot-7 a:hover {
  background: #fff;
  color: #c91e25;
  border: 1px solid #c61c23;
}

.last-word-light h2 {
  font-size: 48px;
  font-weight: 500;
  color: #cb1d23;
}

.last-word-light strong {
  font-size: 36px;
  font-weight: 500;
}

#testimonials .head-section h2 {
  font-weight: 500;
  font-size: 50px;
  color: #f4df23;
}

#testimonials .head-section p {
  font-size: 31px;
}

.entry-header-image {
  min-height: 260px;
  position: relative;
  background-color: #a2070d;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: grid;
  place-content: center;
  color: #fff;
}

.entry-header-image .entry-title {
  margin: 0;
  margin-top: 40px;
  font-weight: 500;
  font-size: 32px;
  position: relative;
  z-index: 1;
}

.page .post-thumbnail {
  border-radius: 10px;
  overflow: hidden;
  height: 370px;
  margin-bottom: 16px;
}

.page .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =================== Responsive ======================= */
@media (min-width: 576px) {
  #home-slider .caption-swiper .slider-caption {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    position: static;
    transform: unset;
    margin-inline-start: 50%;
    padding-inline-end: 210px;
    width: 550px;
  }

  #home-slider .caption-swiper img {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .caption-swiper {
    display: grid;
    place-items: center;
  }
}

@media screen and (min-width: 768px) {
  #services .block-img {
    display: block;
  }

  footer .copyright .container p {
    margin: 0;
  }
}

@media screen and (min-width: 992px) {
  body {
    font-size: 1rem;
  }
  ul#language-menu {
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
  }
  #primary-menu {
    position: static;
    height: auto;
    background: rgb(255 121 121 / 10%);
    transform: translateX(0);
    display: flex;
    gap: 24px;
    padding: 0 35px;
    border-radius: 50vmax;
    width: max-content;
    margin-inline: 40px;
  }

  #primary-menu > li > a {
    padding: 10px 0;
    color: #e0e0e0;
    position: relative;
  }

  #primary-menu > li > a::before {
    content: "";
    width: 0;
    height: 1px;
    background: #fff;
    position: absolute;
    bottom: 0;
    transition: 300ms;
  }

  #primary-menu > li > a:hover::before,
  #primary-menu > li.current_page_item > a::before {
    width: 15px;
  }

  #primary-menu > li.current-menu-item > a,
  #primary-menu > li:hover a {
    color: #fff;
    background: transparent;
  }

  .menu-toggle,
  .menu-close {
    display: none;
  }

  #home-slider .caption-swiper .slider-caption {
    padding-inline-end: 40px;
    padding-inline-start: 40px;
  }

  #home-slider .caption-swiper .slider-caption h5 > span {
    font-size: 72px;
  }

  #home-slider .caption-swiper .slider-caption h5 > span > span {
    font-size: 109px;
  }

  .home #page section:not(#home-slider) {
    padding-block: 7vw;
  }

  .contact-link {
    color: #ffffff;
    border-color: #ffffff;
    display: inline-block;
  }

  #masthead .container {
    grid-template-columns: 10% 52% 38%;
  }

  .btn-mobile {
    display: none;
  }

  .left {
    gap: 9px;
  }

  .wpml-ls-slot-7 a {
    height: 46px;
    padding: 10px 40px;
    font-size: 1rem;
  }

  #home-slider .caption-swiper img {
    height: 650px;
  }

  .block-img.gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 11fr));
  }

  .wpcf7-textarea {
    height: 150px;
    min-height: auto;
  }

  #google-map iframe {
    height: 400px;
  }

  footer .top .row {
    gap: 0;
  }

  footer .top figure img {
    max-width: 390px;
  }

  .block-img {
    margin: 0;
    height: 510px;
  }

  .block-content .btn.btn-primary {
    margin-top: 30px;
  }

  h3.service-title {
    font-size: 17px;
  }

  footer .top {
    padding-block: 5vw;
    line-height: 1.9;
  }

  footer .top h3 {
    margin-bottom: 30px;
  }

  #home-slider .caption-swiper .slider-caption h5 {
    font-size: 16px;
  }

  .block-content h2 {
    margin-bottom: 36px;
  }

  #masthead:before {
    height: 320px;
  }

  .entry-header-image {
    min-height: 460px;
  }

  #partners .swiper-button-prev {
    inset-inline-start: -50px;
  }

  #partners .swiper-button-next {
    inset-inline-end: -50px;
  }
}

@media screen and (min-width: 1200px) {
  #home-slider .caption-swiper img {
    height: 810px;
  }

  .block-img.gallery {
    grid-template-columns: repeat(auto-fit, minmax(220px, 11fr));
    height: 500px;
  }

  .block-img.gallery img {
    height: 234px;
  }
}

@media (max-width: 992px) {
  ul#language-menu {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }

  ul#language-menu a {
    width: 100%;
    display: block;
  }

  ul#language-menu li {
    width: 100%;
    text-align: center;
  }
}
