.header-section {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: relative;
    color: #fff;
    overflow: hidden;
    margin-bottom: 30px;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/sites/default/files/images/bam.jpg) no-repeat center center / cover;
    filter: brightness(0.45);
    z-index: -1;
}

.header-content {
    /* width: 90%; */
    text-align: center;
    margin: auto;
}

.header-content .sub-heading {
    font-size: 3.3rem;
    font-family: var(--font-primary-extra-bold);
    color: var(--primary);
}

.header-content h1 {
    font-size: 5.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
    font-family: var(--font-primary-extra-bold);
}

.header-content .sub-text {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 30px;
}

#why-choose-unb .container .form-wrapper .form-container {
    width: 100%;
}

#why-choose-unb .hero-content {
    padding-right: 2rem;
}

#news-and-events {
    background: linear-gradient(rgba(215, 46, 58, 0.8), rgba(215, 46, 58, 0.8)), url(/sites/default/files/images/news-bg-banner.png);
    background-position: center;
    background-size: cover;
    filter: brightness(1.0);
}

@media only screen and (max-width: 1380px) and (orientation : landscape) {
    #why-choose-unb .container {
        grid-template-columns: 1fr 400px;
        max-width: 1250px;
    }    
}

@media only screen and (max-width: 1180px) and (orientation : landscape) {
    #why-choose-unb .container {
        grid-template-columns: 600px 400px;
        max-width: 1100px;
    }    
}

@media only screen and (max-width: 1380px) {
    /* .header-section {
        height: 70vh;
    } */

    .header-content .sub-text {
        line-height: 3rem;
    }
}

@media only screen and (max-width: 1024px) and (orientation : landscape){
    #why-choose-unb .container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }  

    #why-choose-unb .container .form-wrapper .form-container {
        width: 60%;
    }
}
@media only screen and (max-width: 1024px) and (orientation : portrait){
    .header-section {
        /* height: 40vh; */
    }
}

@media only screen and (max-width: 1024px) {
    .header-content h1 {
      font-size: 4rem;
    }


    .header-content p {
        font-size: 16px;
    }
  
    /* .hero.bg-light .container {
        grid-template-columns: 1fr minmax(250px, 400px);
    } */
}

@media only screen and (max-width: 820px) and (orientation : portrait){
    .header-content h1 {
        font-size: 4rem;
    }
    .header-content .sub-heading {
        font-size: 2.3rem;
    }
    .header-content .sub-text {
        font-size: 1.9rem;
        line-height: 2rem;
    }
    #why-choose-unb .container .form-wrapper .form-container {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) and (orientation : portrait){
    .header-section {
        height: 55vh;
    }
    .header-content h1 {
        font-size: 3.7rem;
      }
      .header-content .sub-heading {
        font-size: 2.3rem;
      }
      #why-choose-unb .container {
        grid-template-columns: 1fr;
      }
      #why-choose-unb .container .form-wrapper {
        padding: 1rem;
      }
}

@media only screen and (max-width: 768px) {
    .header-content h1 {
        font-size: 2.5rem;
      }
      .header-content .sub-heading {
        font-size: 1.7rem;
      }
      .header-content .sub-text {
        font-size: 24px;
        font-weight: 400;
        /* line-height: 1rem; */
    }
}

@media only screen and (max-width: 480px) {

   
    
    .header-section {
        height: 320px;
    }
  
    .header-content h1 {
        font-size: 2rem;
        text-align: center;
    
        
    
    }
    #header-title{
        /* margin-bottom: -25px; */
        margin-top: -12px;
        /* line-height: 0.9; */
    }
    
    
    .header-content .sub-heading {
        font-size: 1.5rem;
    }
  
    .header-content .sub-text {
        font-size: 24px;
        font-weight: 400;
        line-height: 1rem;
    }
    #sub-title{
        font-size: 24px;
        font-weight: 400;
        line-height: 1.6rem;
    }
}