/* HERO CSS */ .hero_area { width: 100%; overflow: hidden; margin-top: 70px; } .hero_slide { background-position: center; background-size: cover; padding-top: 100px; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; z-index: 1; @media #{$sm} { height: auto; padding-bottom: 80px; } &::after { position: absolute; content: ""; width: 100%; height: 100%; left: 0; top: 0; background-color: rgba(0, 0, 0, 0.7); z-index: -1; } h2 { max-width: 60%; text-align: center; margin: 0 auto; font-size: 36px; color: var(--white); padding: 30px 0 20px; @media #{$sm} { max-width: 100%; font-size: 24px; padding: 30px 30px 20px; } } p { text-transform: capitalize; font-size: 16px; margin-bottom: 40px; color: var(--white); } } .slider-btn { position: absolute; width: 60px; height: 60px; background: #000; top: 50%; z-index: 9; color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: all 0.3s; @media #{$sm} { width: 35px; height: 35px; font-size: 18px; } &:hover { color: var(--primary); } } .swiper-btn { &-next.slider-btn { left: 0; } &-prev.slider-btn { right: 0; } }