/*------------------------------ transport-service Page ------------------------------*/ .transport-service-area{ padding: 130px 0px 130px; background: var(--secondary-color); &.style-03{ padding: 130px 0px 100px; background: var(--button-color); .single-service-item{ margin-bottom: 30px; h3{ margin-top: 30px; color: var(--secondary-color); } p{ color: var(--bg-color); } } } } .transport-service-single{ margin-bottom: 70px; display: flex; &:hover{ .transport-service-content:before{ background: var(--active-color); } .btn-wrapper .boxed-btn.blank { background-color: var(--active-color); color: var(--secondary-color); border: 1px solid var(--active-color); } } .transport-service-content{ margin: auto; padding-left: 25px; &:before{ content:""; position: absolute; height: 245px; z-index: 9; width: 5px; top: auto; left: 0px; background: var(--button-color); display:block; } h3{ margin-bottom: 20px; } p{ margin-bottom: 30px; } span{ font-weight: 600; color: var(--heading-color); } } } .transport-service-image { position: relative; display: inline-block; .transport-service-item-hover { position: absolute; top: 0; left: 0; display: flex; width: 100%; height: 100%; overflow: hidden; a { display: block; width: 100%; height: 100%; } .transport-service-link { position: absolute; left: 0; right: 0; text-align: center; top: calc(50% - 15px); transform: translateY(-50%); transition: all .5s ease; // visibility: hidden; opacity: 0; z-index: 9; width: 30px; height: 30px; // left: calc(50% - 15px); left: calc(50% - 0px); transition-delay: 0.3s; span { color: #fff; width: 100%; height: 100%; line-height: 50px; display: block; font-size: 18px; &::before { font-size: 30px; } } } &:before { position: absolute; left: -50%; top: -50%; width: 100%; height: 100%; content: ''; background-color: rgba(0, 0, 0, 0.2); z-index: 1; opacity: 0; transition: all .5s ease; } &:after { position: absolute; right: -50%; bottom: -50%; width: 100%; height: 100%; content: ''; background-color: rgba(0, 0, 0, 0.2); z-index: 1; opacity: 0; transition: all .5s ease; } } &:hover .transport-service-item-hover:before { opacity: 1; left: 0; top: 0; } &:hover .transport-service-item-hover:after { opacity: 1; right: 0; bottom: 0; } &:hover .transport-service-link { opacity: 1; left: calc(50% - 15px); } }