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

.about>div {
  width: 80%;
  margin: auto;
  padding: 50px 0;
}

.about__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about__content {
  width: 60%;
  padding-right: 50px;
}

.about__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.about__text {
  font-size: 1.3rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__image {
  width: 40%;
  height: 550px;
  margin: auto;
}

.about__image-inner {
  width: 100%;
  height: 100%;
  background-image: url(../images/me.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* shadow orange */
  box-shadow: 50px -40px 0px #cba557;
}

/* main section */
main.practice-areas {
  background-color: #f5f7f8;
}

main.practice-areas>div {
  width: 80%;
  margin: auto;
  padding: 50px 0;
}

.practice-areas__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.practice-areas__header {
  width: 50%;
  padding-right: 50px;
}

.practice-areas__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.practice-areas__image img {
  width: 100%;
  margin-top: 50px;
  box-shadow: 30px 30px 0px #cba557;
  object-fit: contain;
}

.practice-areas__content {
  width: 50%;
  padding-left: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.practice-areas__item {
  width: 45%;
  min-height: 280px;
  overflow: hidden;
  margin-bottom: 20px;
}

/*! how it works */
.how-it-works__inner {
  width: 80%;
  margin: auto;
  padding: 50px 0;
}

.how-it-works__inner>h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.how-it-works__inner>p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
  max-width: 700px;
  margin: auto;
}

.how-it-works__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 20px;
}

.how-it-works__item {
  max-width: 49%;
  min-height: 150px;
  text-align: center;
  background-color: #f5f7f8;
  padding: 20px;
  border-radius: 10px;
}


.how-it-works__btn {
  width: 100%;
  margin-top: 30px;
  text-align: center;
}

.how-it-works__btn a {
  background-color: #be8c27;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1rem;
}

.how-it-works__btn a:hover {
  background-color: #cba557;
}

/** Blogs section  */
.blogs {
  background-color: #f8f9fa;
  padding: 50px 0;
}

.blogs__inner {
  width: 80%;
  margin: auto;
}

.blogs__title {
  font-size: 40px;
  font-weight: 700;
  color: #000000cc;
}

.blog__item {
  padding: 15px;
  max-width: 33.33%;
  flex: 0 0 33.33333%;
}

.blogs__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 30px;
}

.blog__item-image {
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  display: block;
  width: 100%;
  height: 270px;
}

.blog__item-image {
  overflow: hidden;
  background-image: url("../images/blog_image_1.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  display: block;
  width: 100%;
  height: 270px;
}

.blog__item:nth-child(n) .blog__item-image {
  background-image: url("../images/blog_image_1.jpg") !important;
}

.blog__item:nth-child(2n) .blog__item-image {
  background-image: url("../images/blog_image_2.jpg") !important;
}

.blog__item:nth-child(3n) .blog__item-image {
  background-image: url("../images/blog_image_3.jpg") !important;
}

.blog__item:nth-child(4n) .blog__item-image {
  background-image: url("../images/blog_image_4.jpg") !important;
}

.blog__item:nth-child(5n) .blog__item-image {
  background-image: url("../images/blog_image_5.jpg") !important;
}

.blog__item:nth-child(6n) .blog__item-image {
  background-image: url("../images/blog_image_6.jpg") !important;
}

.blog__item-content {
  position: relative;
  background: #fff;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem !important;
}

.blog__item-date {
  margin-top: -74px;
  position: absolute;
  top: 0;
  left: 0;
  background: #eac15a;
  display: flex;
  color: white;
}

.blog__item-date-day {
  width: 80px;
  padding: 8px;
  align-self: stretch !important;
}

.blog__item-date-day span {
  font-size: 58px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  font-family: "Poppins", sans-serif;
}

.blog__item-date-year {
  width: calc(100% - 80px);
  padding-top: 8px;
  padding-bottom: 8px;
  padding-right: 1rem;
  align-self: stretch !important;
}

.blog__item-date-year span.yr,
.blog__item-date-year span.mos {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Poppins", sans-serif;
  line-height: 1.8;
}

.blog__item-date-year::after {
  position: absolute;
  bottom: -10px;
  left: 20px;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 0 10px;
  border-color: #eac15a transparent transparent transparent;
}

.blog__item-title {
  margin-bottom: 16px;
  font-weight: 400;
  margin-top: 0.5rem !important;
  color: #000000cc;
  line-height: 1.5;
}

.blog__item-title a {
  color: #000000;
  font-size: 22px;
  transition: all 0.2s ease-in-out;
}

.blog__item-title a:hover {
  color: #be8c27;
}

.blog__item-description {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #999999;
  line-height: 1.8;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}

/* responsive design */


@media (max-width: 992px) {
  .how-it-works__item{
    max-width: 100%;
    height: 100%;
  }
}

@media (max-width: 768px) {

  .about>div,
  main.practice-areas>div {
    width: 96%;
  }

  .about__inner {
    flex-direction: column;
    align-items: center;
  }

  .about__content {
    width: 100%;
    padding-right: 0;
    margin-bottom: 30px;

    >h2 {
      font-size: 28px;
    }

    >p {
      font-size: 16px;
    }
  }

  .about__image {
    width: 100% !important;
    height: 450px;
  }

  .practice-areas__item{
    margin-bottom: 25px;
  }

  .practice-areas__item-title{
    margin-bottom: 10px;
  }
}