header {
  background-image: url("../images/about-us.jpg");
}

section.about,
.qonorar {
  background-color: #f5f7f8;
}

.about__inner {
  width: 80%;
  margin: 0 auto;
  padding: 50px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.qonorar__inner{
  width: 80%;
  margin: 0 auto;
  padding: 50px 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
}

.about__inner-content{
  width: 55%;
}

.qonorar__inner h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.qonorar__inner p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.about__inner-content h2 {
  font-size: 2.5rem;
  text-align: center;
  color: #333;
  margin-bottom: 20px;
}

.about__inner-text {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.about__inner-image {
  width: 40%;
}

.about__inner-image img {
  width: 100%;
  max-height: 550px;
  object-fit: cover;
}

.about__inner-add-text {
  width: 100%;
  margin-bottom: 20px;
}

/** Why choose us section  */

.why-me {
  background-image: url("../images/why-us.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  padding: 50px 0;
  color: #ffffff;
}

.why-me::before {
  content: "";
  display: block;
  position: absolute;
  opacity: 0.9;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
}

.why-me__inner {
  width: 80%;
  margin: 0 auto;
  position: relative;
}

.why-me__inner-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.why-me__inner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 30px;
}

.why-me__inner-content {
  width: 50%;
}

.why-me__inner-frame {
  width: 45%;
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
}

.why-me__inner-frame-item {
  width: 50%;
  padding: 20px;
  border: 1px solid #ffffff1f;
  text-align: center;
  padding: 32px;
}

.why-me__inner-frame-item:nth-child(3){
  flex: 1;
}

.why-me__inner-frame-item:hover {
  background-color: #ffffff1f;
}

.why-me__inner-frame-item h3 {
  font-size: 2em;
  font-weight: 600;
  font-family: "Source Serif Pro", serif;
  line-height: 1.3em;
  margin-bottom: 10px;
}

.why-me__inner-frame-item p {
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  line-height: 1.5em;
  color: #b1976b;
}

.why-me__inner-content-item {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.content-item-image span {
  display: block;
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 1.5em;
  color: #1a1a1a;
}

.content-item-text h3 {
  font-size: 1.5em;
  line-height: 1.2em;
  margin-bottom: 8px;
  color: #be8c27;
}

.content-item-text p {
  font-size: 1.2em;
  line-height: 1.5em;
  color: #f5f5f5;
}

/** services  */
main.services {
  background-color: #f5f7f8;
}

.services__inner {
  width: 80%;
  margin: 0 auto;
  padding: 50px 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.services__inner > h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.services__inner-container {
  display: flex;
  flex-wrap: wrap;
}

.services__inner-card {
  width: 33%;
  min-height: 300px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #eaeaea;
}

.services__inner-card:hover {
  border: 1px solid #be8c27;
  background-color: white;
}

.services__inner-card-image {
  width: 50px;
  height: 50px;
  margin-bottom: 15px;
}

.services__inner-card-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  margin-top: 10px;
  color: #1a1a1a;
  line-height: 1;
}

.services__inner-card-content p {
  font-size: 16px;
  color: #5a5a5a;
  font-family: "Poppins", sans-serif;
  margin-bottom: 10px;
}

.services__inner-card-link {
  font-size: 16px;
  color: #be8c27;
  font-family: "Poppins", sans-serif;
  border: 1px solid #be8c27;
  padding: 5px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
  display: flex;
  align-items: center;
  width: fit-content;
}

.services__inner-card-link img {
  width: 20px;
  margin-left: 5px;
}

@media (max-width: 576px) {
  /* about inner side */
  .about__inner,
  .qonorar {
    display: block;
  }

  .about__inner-content {
    width: 100%;
  }

  .about__inner-image {
    width: 100%;
  }

  .why-me__inner {
    width: 95%;
  }

  /* why-me__inner-container */
  .why-me__inner-container {
    display: block;
  }

  .why-me__inner-content {
    width: 100%;
  }

  .why-me__inner-title {
    font-size: 30px;
  }

  .why-me__inner-frame {
    width: 100%;
  }

  /* services__inner-container */
  .services__inner-container {
    display: block;
  }

  .services__inner {
    width: 95%;
  }

  .services__inner > h2 {
    font-size: 2rem;
  }

  .services__inner-card {
    width: 100%;
  }

  .services__inner-card-image {
    margin: auto;
  }

  .services__inner-card-link {
    margin: auto;
  }

  .services__inner-card-content {
    text-align: center;
  }
}

@media ((min-width: 577px) and (max-width: 768px)) {
  .about__inner {
    display: block;
  }

  .about__inner-content {
    width: 100%;
  }

  .about__inner-image {
    width: 100%;
  }

  .about__inner-image img {
    object-fit: contain;
  }

  /* why-me__inner-container */
  .why-me__inner-container {
    display: block;
  }

  .why-me__inner-content {
    width: 100%;
  }

  .why-me__inner-frame {
    width: 100%;
  }

  /* services__inner-container */
  .services__inner-container {
    display: block;
  }

  .services__inner-card {
    width: 100% !important;
  }

  .services__inner-card-image {
    margin: auto;
  }

  .services__inner-card-link {
    margin: auto;
  }

  .services__inner-card-content {
    text-align: center;
  }

  .footer__inner-logo .divider {
    margin: auto;
  }
}

@media ((min-width: 767px) and (max-width: 992px)) {
  /* why-me__inner-container */
  .why-me__inner-container {
    display: block;
  }

  .why-me__inner-content {
    width: 100%;
  }

  .why-me__inner-frame {
    width: 100%;
  }

  /* services__inner-card */
  .services__inner-card {
    width: 50%;
  }
}
