.box-head{
  position: relative;
}
.box-head{
  border: 1px solid var(--gold);
  border-radius: 0.9rem;
}
.box-head .title{
  text-align: center;
  margin-bottom: 2.4rem;
}
.box-head .title .h2{
  display: inline-block;
  padding: 0 3.2rem;
  margin-top: -1.8rem;
  background: var(--dark-black);
  position: relative;
}
.box-head .title .h2::before,
.box-head .title .h2::after{
  position: absolute;
  content: "";
  top: 1.4rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid var(--gold);
  background: var(--dark-black);
  border-radius: 0.2rem 0 0.2rem 0;
  transform: rotate(45deg);
}
.box-head .title .h2::before{
  left: -0.8rem;
}
.box-head .title .h2::after{
  right: -0.8rem;
}
.box-head-btn{
  position: absolute;
  bottom: -2.3rem;
  right: 3.8rem;
  z-index: 1;
}
.box-head-btn.top{
  right: auto;
  bottom: auto;
  top: -2.3rem;
  left: 3.9rem;
}
section:has(.box-head) .square-shape-outer {
  position: absolute;
  bottom: -1.3rem;
}
@media(min-width:1200px) and (max-width:1215.98px){
  .box-head .title {
    margin-bottom: 2rem;
  }
}
@media(min-width:992px) and (max-width:1199.98px){
  .box-head .title {
    margin-bottom: 1.4rem;
  }
  .box-head .title .h2::before, 
  .box-head .title .h2::after {
    top: 1rem;
  }
  .box-head-btn {
    right: 2.8rem;
  }
}
@media(min-width:768px) and (max-width:991.98px){
  .box-head .title {
    margin-bottom: 1.2rem;
  }
  .box-head .title .h2::before, 
  .box-head .title .h2::after {
    top: 1.1rem;
  }
  .box-head-btn {
    right: 2.4rem;
  }
}
@media(max-width:767.98px){
  .sec-box-head::after{
    position: absolute;
    content: "";
    left: 0;
    top: -9rem;
    width: 100%;
    height: 28.6rem;
    background: linear-gradient(178.48deg, rgba(15, 25, 39, 0) 30.84%, #0A1626 49.79%);
    -webkit-transform: rotate(-180deg);
    -moz-transform: rotate(-180deg);
    transform: rotate(-180deg);
  }
  .box-head {
    border: 0;
    border-radius: 0;
  }
  .box-head .title {
    margin-bottom: 1.7rem;
  }
  .box-head .title .h2::before, 
  .box-head .title .h2::after{
    content: none;
  }
  .box-head .title .h2 {
    padding: 0;
    margin-top: 0;
    background: transparent;
  }
  .box-head-btn {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 3.4rem;
    text-align: center;
  }
  .sec-box-head .square-shape-outer{
    display: none;
  }
  
  .sec-filter .square-shape-outer,
  .sec-info-top .square-shape-outer{
    display: block;
  }
  .sec-filter .box-head,
  .sec-info-top .box-head{
    border: 1px solid var(--gold);
    border-radius: 0.9rem;
    position: relative;
    z-index: 1;
  }
  .sec-filter .box-head .title,
  .sec-info-top .box-head .title{
    margin-top: -18px;
  }
  .sec-filter .box-head .title .h2,
  .sec-info-top .box-head .title .h2{
    background: var(--dark-black);
    padding: 0 1rem;
  }
  .sec-filter .box-head .title .h2::before, 
  .sec-filter .box-head .title .h2::after,
  .sec-info-top .box-head .title .h2::before,
  .sec-info-top .box-head .title .h2::after{
    content: "";
  }
  .sec-filter .box-head-btn,
  .sec-info-top .box-head-btn{
    position: absolute;
    bottom: -2.3rem;
    margin-top: 0;
  }
  .box-head-btn.top {
    left: 2rem;
    bottom: auto;
  }
  .box-head-btn.top .btn{
    background: #0A1626;
  }
  .box-head-btn.top .btn:hover{
    background: var(--gold);
  }
}