/*!
Theme Name: mhastal
Theme URI: https://underscores.me/
Author: Automattic
Author URI: https://automattic.com/
Description: Hi. I'm a starter theme called <code>mhastal</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mhastal
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* @font-face {
  font-family: "JF-Flat";
  src: url("fonts/JF-Flat-light.ttf");
  font-weight: 100;
}

@font-face {
  font-family: "JF-Flat";
  src: url("fonts/JF-Flat-Regular.ttf");
  font-weight: 400;
}

@font-face {
  font-family: "JF-Flat";
  src: url("fonts/JF-Flat-medium.ttf");
  font-weight: 600;
} */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;600;700;900&display=swap");

body {
  font-family: "Cairo", sans-serif;
  font-weight: 400;
}

a:hover {
  text-decoration: none;
  color: #6b5a4a;
}

a {
  transition: 300ms ease-out;
  color: #333;
  text-decoration: none;
}

textarea {
  max-height: 150px;
}

input[type="submit"] {
  background: #011143;
  color: #fff;
  border: 0;
  padding: 10px 50px;
  transition: 300ms ease-out;
  cursor: pointer;
  border-radius: 5px;
}

input[type="submit"]:hover {
  background: #6b5a4a;
}

.head-div {
  margin: 0 0 1.5rem;
  color: #011143;
}

.head-div h2 {
  margin: 0;
  font-weight: 800;
  position: relative;
  font-size: 28px;
  padding-top: 10px;
  letter-spacing: -1px;
}

.head-div > h2:before {
  content: "";
  position: absolute;
  right: 0;
  width: 50px;
  height: 3px;
  margin: auto;
  background: #fdb900;
  top: 0;
}

header {
  width: 100%;
  top: 0;
  transition: 300ms;
  color: #383536;
  background: #011143;
}

nav.language .menu {
  margin: 0;
  list-style-type: none;
  font-size: 18px;
}

header .container {
  position: relative;
}

header .logo {
  background: #fff;
  position: absolute;
  right: 15px;
  top: 0;
  padding: 1.8rem 7px;
  border-radius: 0 0 20px 20px;
  z-index: 9;
}

header a {
  color: #ffffff;
  text-decoration: none;
}

header a.numberphone {
  display: inline-block;
  color: #011143;
  padding: 12px 35px;
  background: #fff;
  width: 200px;
  flex: 0 0 auto;
  font-size: 18px;
  margin-right: 10px;
}

header button.menu-toggle > span,
header button.menu-toggle > span:before,
header button.menu-toggle > span:after {
  display: block;
  height: 2px;
  width: 25px;
  background: #080808;
}

header button.menu-toggle > span {
  position: relative;
}

header button.menu-toggle {
  border: 0;
  background: 0;
  min-height: 30px;
  padding: 0;
  display: none;
}

header button.menu-toggle > span:before,
header button.menu-toggle > span:after {
  content: "";
  position: absolute;
}

header button.menu-toggle > span:before {
  top: -6px;
}

header button.menu-toggle > span:after {
  bottom: -6px;
}

header a.custom-logo-link {
  display: block;
}

header a.custom-logo-link img.custom-logo {
  margin: auto;
  max-width: 115px;
  transition: 300ms;
}

header nav.main-navigation ul {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

header nav.main-navigation ul li a {
  display: block;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 700;
}

header nav.main-navigation ul li.current-menu-item a,
header nav.main-navigation ul li:hover a {
  color: #ffffff;
  background: #6b5a4a;
}

header .d-flex {
  align-items: center;
  font-size: 14px;
  text-align: center;
  justify-content: center;
}

header .d-flex .logo-info img {
  max-width: 130px;
  display: block;
  margin: auto;
  margin-bottom: 0.5rem;
  transition: 300ms;
}

header .logo-info ul {
  margin: 0;
}

header .logo-info ul li.menu-item {
  display: inline-block;
  margin-left: 0.5rem;
}

header .logo img {
  margin: auto;
  transition: 300ms;
  display: block;
  max-width: 100%;
}

/*******
						  ** Slider **
						  *******/

.primary-slider {
  margin-bottom: 8vh;
  position: relative;
}

.primary-slider:before {
  content: "";
  background-image: url(images/dec-slider.png);
  position: absolute;
  bottom: 0;
  right: 0;
  height: 40px;
  width: 80%;
  z-index: 9;
  background-size: contain;
}

.primary-slider .item {
  height: 580px;
  direction: rtl;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.primary-slider .item:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-image: linear-gradient(270deg, rgb(0 0 0 / 94%), transparent);
}

.primary-slider .item .container {
  position: relative;
  height: 100%;
}

.primary-slider .item .content {
  position: absolute;
  top: 50%;
  z-index: 9;
  color: #fff;
  max-width: 590px;
  font-size: 20px;
  line-height: 1.9;
  transform: translateY(-50%);
}

.primary-slider .owl-item.active .content h3 {
  -webkit-animation: 1.5s 0.5s fadeInUp both;
  animation: 1.5s 0.5s fadeInUp both;
}

.primary-slider .owl-item.active .content p {
  -webkit-animation: 1.5s 1s fadeInUp both;
  animation: 1.5s 1s fadeInUp both;
}

.primary-slider .item .content h3 {
  font-weight: bold;
  display: inline-block;
  margin: 0 0 20px;
  position: relative;
  font-size: 45px;
  line-height: 1.5;
}

.primary-slider .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  bottom: 10px;
  text-align: center;
}

.primary-slider .owl-dots > button span {
  background: #fff;
  display: block;
  height: 4px;
  width: 30px;
  margin: 0 3px 0;
  border-radius: 2px;
  transition: 300ms;
}

.primary-slider .owl-dots > button.active span,
.primary-slider .owl-dots > button:hover span {
  background: #560c63;
}

/* about */

.home .about {
  margin-bottom: 8vh;
}

.about .item .caption {
  font-size: 15px;
  line-height: 2;
  background: #011143;
  padding: 3rem;
  color: #fff;
  width: 130%;
  padding-left: 34%;
  text-align: justify;
}

.item.master .caption {
  padding: 2rem;
  margin-bottom: 30px;
  width: 100%;
  background: #6b5a4a;
}

.item.master .caption h2 {
  width: auto !important;
}

.about .item .caption h2 {
  font-weight: 800;
  font-size: 28px;
  margin: 0 0 20px;
  position: relative;
  padding-top: 5px;
  width: 260px;
  line-height: 1.5;
  text-align: right;
}

.about .item .caption h2:before {
  content: "";
  background: #fdb900;
  height: 2px;
  width: 40px;
  position: absolute;
  top: 0;
  right: 0;
}

.about .col-md-5 figure {
  margin: 0;
  height: 340px;
  overflow: hidden;
}

.about .col-md-5 figure img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

.about .item-left {
  padding: 1rem;
  line-height: 2;
  background-size: cover;
  background-repeat: no-repeat;
}

.about .item-left .caption h2 {
  font-weight: 800;
  color: #011143;
  letter-spacing: -1px;
}

.about .item-left .caption a.more {
  border: 2px solid #011143;
  padding: 4px 40px;
  position: relative;
}

.about .item .caption a.more {
  position: relative;
  border: 2px solid;
  color: #fff;
  padding: 4px 40px;
}

.about .item-left .caption a.more:before,
.about .item .caption a.more:before {
  content: "";
  position: absolute;
  height: 2px;
  background: #fdb900;
  bottom: 7px;
  left: 0;
  right: 0;
}

/*service*/
.home .service {
  margin-bottom: 8vh;
}

.service .item figure {
  margin: 0;
  width: 120px;
  flex: 0 0 auto;
  height: 120px;
}

.service .item {
  margin: 0 0 30px;
  box-shadow: 0 5px 20px rgb(0 0 0 / 15%);
  padding: 1rem;
  border: 1px solid #e6e6f1;
}

.service .item figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.service .item .caption {
  line-height: 1.8;
  font-size: 15px;
  flex-basis: 100%;
}

.service .item .caption h2 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 600;
}

.service .item .caption p {
  margin-bottom: 5px;
}

/*product*/

.home .product {
  margin-bottom: 8vh;
}

.product .item {
  border: 1px solid transparent;
  padding: 1rem;
  border-radius: 5px;
  direction: rtl;
  font-size: 14px;
  text-align: center;
  transition: 300ms;
  line-height: 1.7;
  margin-bottom: 30px;
}

.product .slider .item {
  margin: 0 5px;
}

.product .item figure a {
  height: 220px;
  width: 100%;
  display: block;
}

.product .item figure img {
  width: 100%;
  height: 100%;
  transition: 300ms;
  object-fit: scale-down;
}

.product .item figure {
  position: relative;
  overflow: hidden;
}

.product .item figure span {
  position: absolute;
  display: block;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-size: cover;
  z-index: -1;
  filter: blur(13px);
  transform: scale(1.1);
}

.product .item .caption a:not(.more) {
  font-weight: 700;
  margin: 0 0 6px;
  font-size: 17px;
  color: #011143;
  display: inline-block;
}

.more {
  border-bottom: 2px solid #fdb900;
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
}

/*ss*/
.counter {
  background: #011143;
  padding: 2rem 0;
  color: #fff;
  margin-bottom: 8vh;
}

.counter .item {
  margin: 0 0 30px;
}

.counter .item figure {
  height: 70px;
}

.counter .item figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.counter .item p {
  font-size: 38px;
  font-family: fantasy;
  letter-spacing: 3px;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #ffffff;
  color: transparent;
  margin: 0 0 5px;
}

.counter .item h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.counter .head-div {
  color: #fff;
}

.home .project {
  background: #6b5a4a;
  margin-bottom: 8vh;
  padding: 4rem 0;
}

.home .project .head-div {
  color: #fff;
}

.project .item {
  overflow: hidden;
  position: relative;
}

.project .item a {
  overflow: hidden;
  display: block;
  position: relative;
}

.project .item a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project .item a figure {
  height: 300px;
  overflow: hidden;
}

.project .item a .caption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(100%);
  background: #6b5a4a;
  color: #fff;
  padding: 17px 20px;
  opacity: 0;
  transition: 300ms;
}

.project .item a .caption h2 {
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}

.project .item:hover a .caption {
  transform: translateY(-50%) translateX(0%);
  opacity: 1;
}

.certificate .item figure.m-0 {
  height: 150px;
  overflow: hidden;
}

.certificate .item figure.m-0 img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

/* testimonial */

.home .testimonial {
  margin-bottom: 8vh;
}

.testimonial .item {
  direction: rtl;
  padding: 1rem;
  font-size: 15px;
  line-height: 2;
}

.testimonial .item.d-flex > figure {
  width: 120px;
  height: 120px;
  flex: 0 0 auto;
  overflow: hidden;
  margin-left: 10px;
  margin-bottom: 0;
  border-left: double #fdb900;
  padding-left: 10px;
  border-width: 7px;
}

.testimonial .item.d-flex > figure > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial .item.d-flex {
  align-items: center;
}

.testimonial .item.d-flex .content-test {
  flex-basis: 100%;
  color: #6d6d6d;
}

.testimonial .item.d-flex .content-test h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #040e56;
}

.home .client {
  margin-bottom: 8vh;
}

.client .item {
  margin: 0 0 30px;
}

.client .item figure {
  margin: 0;
  background: #fff;
  height: 130px;
  padding: 1rem;
  border-radius: 7px;
  border: 1px solid #ececec;
}

.client .item figure img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

footer .bottom {
  background: #6b5a4a;
  color: #dcdcdc;
  padding: 25px 0;
  font-size: 14px;
}

.page-header {
  min-height: 150px;
  color: #fff;
  margin: 0 0 1.5rem;
  background-color: rgb(4 4 4 / 15%);
  background-position: center;
  background-size: cover;
  background-blend-mode: overlay;
  background: #6b5a4a !important;
  position: relative;
}

div#particles-js {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.page-header h1 {
  padding-top: 57px;
  font-size: 30px;
  font-weight: 600;
}

.post-thumbnail {
  height: 400px;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 5px;
}

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

.entry-content {
  font-size: 18px;
  line-height: 1.8;
  text-align: justify;
}

.single .caption h1 {
  font-size: 30px;
}

.owl-nav {
  position: absolute;
  bottom: 0;
  direction: rtl;
  display: flex;
  left: 0;
}

.owl-nav > button {
  background: #ffffff !important;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 300ms;
  color: #000 !important;
}

.owl-nav > button:hover {
  background: #011143 !important;
  color: #fff !important;
}

.pagination > a,
.pagination > span {
  display: flex;
  padding: 7px;
  margin: 0 2px 0;
  width: 35px;
  align-items: center;
  justify-content: center;
  height: 35px;
  border-radius: 2px;
  border: 1px solid #011143;
}

.pagination {
  margin-bottom: 1rem;
  padding: 0;
  justify-content: center;
}

.pagination > span,
.pagination > a:hover {
  background: #011143;
  color: white;
}

.pagination li a {
  margin: 0 5px 0;
  border-radius: 5px !important;
  height: 40px;
  width: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: #011143;
  border: 0;
  color: #fff;
}

.pagination li.active a,
.pagination li:hover a {
  background: #231f20 !important;
  color: #fff !important;
}

a.sc-7dvmpp-1.fprIlH {
  display: none !important;
}

.blog .item {
  margin: 0 0 30px;
  border-bottom: 2px solid #ddd;
  transition: 300ms;
  position: relative;
  overflow: hidden;
}

.blog .item > a {
  display: block;
  position: relative;
  color: #fff;
  overflow: hidden;
}

.blog .item > a:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  min-height: 90px;
  bottom: 0;
  background-image: linear-gradient(0deg, black, transparent);
}

.blog .item > a > figure {
  overflow: hidden;
  height: 300px;
  border-radius: 6px;
}

.blog .item > a > figure > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.blog .item figure a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 300ms;
}

.blog .item .caption {
  padding: 1rem;
  font-size: 16px;
  line-height: 1.8;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 14px;
}

.blog .item .caption h2 {
  font-size: 16px;
}

i.fas.fa-phone {
  transform: scaleX(-1);
}

.page-template-template-contact {
  font-size: 15px;
}

.page-template-template-contact .page h2 {
  margin: 0 0 20px;
  padding: 0 0 5px;
  border-bottom: 1px solid #ddd;
  font-size: 22px;
  color: #011143;
}

.page-template-template-contact .col-lg-4 ul.list-unstyled {
  margin: 0;
  font-size: 17px;
}

.page-template-template-contact .col-lg-4 ul.list-unstyled li {
  display: flex;
  align-items: center;
  margin: 0 0 11px;
}

.page-template-template-contact .col-lg-4 ul.list-unstyled li i {
  width: 40px;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  height: 40px;
  background: #011143;
  margin-left: 10px;
  color: #fff;
  align-items: center;
  border-radius: 50%;
}

.page .client {
  min-height: 400px;
}

svg.phoneicon {
  transform: scaleX(-1);
}

.single a[data-fancybox="gallery"] {
  display: block;
  height: 220px;
  margin: 0 0 30px;
}

.single a[data-fancybox="gallery"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-product .post-thumbnail {
  width: 300px;
  margin: auto;
  border: 1px solid #ddd;
  height: 300px;
}

.single-product .post-thumbnail img {
  object-fit: scale-down;
}

.single-product .entry-content h1,
.single-product .entry-content h2,
.single-product .entry-content h3,
.single-product .entry-content h4,
.single-product .entry-content h5,
.single-product .entry-content h6 {
  color: #011143 !important;
  font-weight: 800;
  font-size: 16px;
}

a[data-fancybox="gallery1"] {
  margin: 0 0 30px;
  display: block;
  border: 1px solid #ccc;
  height: 250px;
  background: #6b5a4a;
}

a[data-fancybox="gallery1"] img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  filter: brightness(0)invert(1);
}

@media (max-width: 768px) {
  header .d-flex {
    justify-content: space-between;
    flex-direction: row-reverse;
  }

  .about .item .caption {
    padding: 1rem;
    width: 100%;
  }
  .product .item .caption p,
  .project .item .caption p,
  .service .item .caption p,
  .service .item .caption a.more {
    display: none;
  }

  .page-header {
    margin: 0 0 30px;
  }

  header .logo .telmobile i {
    transform: scaleX(-1);
  }

  header nav.main-navigation ul {
    display: none !important;
  }

  header .d-sm-none nav.main-navigation ul {
    display: flex !important;
  }

  header .d-sm-none nav.main-navigation ul {
    position: fixed;
    top: 0;
    min-width: 250px;
    flex-direction: column;
    right: 0;
    background: #010b2b;
    min-height: 100vh;
    justify-content: flex-start;
    transition: 300ms ease-out;
    transform: translateX(250px);
    z-index: 12;
  }

  header .d-sm-none nav.main-navigation ul li a {
    border: 0;
    background: transparent;
    padding: 15px 10px;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
  }

  header nav.main-navigation ul li.current-menu-item a,
  header nav.main-navigation ul li:hover a {
    color: #ffffff;
    background: #6b5a4a;
  }

  header .logo button.menu-toggle {
    display: block;
    margin-top: 5px;
  }

  #close {
    position: fixed;
    background: rgb(0 0 0 / 36%);
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transition: 300ms ease-out;
  }

  body.active #close {
    visibility: visible;
    opacity: 1;
  }

  body.active header .d-sm-none nav.main-navigation ul {
    transform: translateX(0);
  }

  body.active {
    overflow: hidden;
  }

  header {
    position: static !important;
    background: #fff;
  }
  header .logo {
    position: static;
    border-radius: 0;
    padding: 8px 0;
  }

  header .logo img {
    max-width: 110px;
  }

  .primary-slider .item {
    height: 300px;
  }

  .primary-slider {
    padding: 0;
    background: #fff;
  }

  .product .item figure a,
  .project .item figure a {
    height: 180px;
  }

  .product .item .caption,
  .project .item .caption {
    min-height: auto;
  }

  .product .item,
  .project .item {
    min-height: auto;
  }

  header .d-flex a.d-block.d-sm-none {
    width: 130px;
    flex: 0 0 auto;
  }

  header .d-flex a.d-block.d-sm-none img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
  }

  .primary-slider .item .content h3 {
    font-size: 22px;
  }

  .primary-slider .item .content {
    font-size: 14px;
    max-width: 100%;
    left: 0;
    right: 0;
    margin: 0 15px;
  }

  .about figure {
    display: none;
  }
}
