.page-ab-box1 {
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-position: center center;
}

.page-ab-box1:before {
  position: absolute;
  top: 0;
  transition: all 0.5s;
  content: "";
  z-index: 1;
  border-right: 330px solid rgba(247, 247, 247, 0.9);
  border-bottom: 70px solid rgba(0, 97, 227, 0.8);
  left: 50%;
  transform: rotate(90deg) translate(130px, 165px);
  width: 0;
  height: 0;
}

.page-ab-box1:after {
  content: "";
  display: block;
  clear: both;
}

.page-ab-box1 .item {
  position: relative;
  z-index: 2;
  width: 50%;
  float: left;
  height: 330px;
  text-align: center;
  cursor: pointer;
}

.page-ab-box1 .item .txt {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 33;
  width: 80%;
  margin: 0 auto;
}

.page-ab-box1 .item .txt h3 {
  display: block;
  position: relative;
  font-weight: bold;
  font-size: 1.5rem;
  padding-bottom: 0.5em;
}

.page-ab-box1 .item .txt h3:after {
  position: absolute;
  content: "";
  bottom: 0;
  width: 1.6em;
  height: 2px;
  background: #0061e3;
  left: 50%;
  transform: translateX(-50%);
}

.page-ab-box1 .item .txt p {
  padding-top: 10px;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.7);
}

.page-ab-box1 .item:first-child:before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  bottom: 0;
  right: 35px;
  background: rgba(0, 97, 227, 0.8);
  transition: all 0.5s;
}

.page-ab-box1 .item:last-child:before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 35px;
  background: rgba(247, 247, 247, 0.9);
  transition: all 0.5s;
  z-index: 1;
}

.page-ab-box1 .item:first-child .txt {
  color: #fff;
}

.page-ab-box1 .item:first-child .txt h3:after {
  background: #fff;
}

.page-ab-box1 .item:first-child .txt p {
  color: rgba(255, 255, 255, 0.8);
}

.page-ab-box1.active:before {
  border-right: 140px solid rgba(0, 97, 227, 0.8);
  border-bottom: 70px solid rgba(247, 247, 247, 0.9);
}

.page-ab-box1.active .item:first-child:before {
  background: rgba(247, 247, 247, 0.9);
}

.page-ab-box1.active .item:last-child:before {
  background: rgba(0, 97, 227, 0.8);
}

.page-ab-box1.active .item:first-child .txt {
  color: #000;
}

.page-ab-box1.active .item:first-child .txt h3:after {
  background: #0061e3;
}

.page-ab-box1.active .item:first-child p {
  color: rgba(0, 0, 0, 0.7);
}

.page-ab-box1.active .item:last-child .txt {
  color: #fff;
}

.page-ab-box1.active .item:last-child .txt h3:after {
  background: #fff;
}

.page-ab-box1.active .item:last-child p {
  color: rgba(255, 255, 255, 0.8);
}

@media screen and (min-width: 992px) {
  .page-ab-box1 .item .txt {
    width: 100%;
  }
  .page-ab-box1:before {
    border-right: 400px solid rgba(247, 247, 247, 0.9);
    border-bottom: 200px solid rgba(0, 97, 227, 0.8);
    transform: rotate(90deg) translate(100px, 200px);
  }
  .page-ab-box1 .item:first-child:before {
    right: 100px;
  }
  .page-ab-box1 .item:last-child:before {
    left: 100px;
  }
  .page-ab-box1.active:before {
    border-right: 400px solid rgba(0, 97, 227, 0.8);
    border-bottom: 200px solid rgba(247, 247, 247, 0.9);
  }
  .page-ab-box1 .item {
    height: 400px;
  }
}

@media screen and (min-width: 1200px) {
  .page-ab-box1:before {
    border-right: 600px solid rgba(247, 247, 247, 0.9);
    border-bottom: 300px solid rgba(0, 97, 227, 0.8);
    transform: rotate(90deg) translate(150px, 300px);
  }
  .page-ab-box1 .item:first-child:before {
    right: 150px;
  }
  .page-ab-box1 .item:last-child:before {
    left: 150px;
  }
  .page-ab-box1.active:before {
    border-right: 600px solid rgba(0, 97, 227, 0.8);
    border-bottom: 300px solid rgba(247, 247, 247, 0.9);
  }
  .page-ab-box1 .item {
    height: 600px;
  }
}