.services-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin-top: 40px;
margin-bottom: 60px;
}
.service__item {
position: relative;
background-size: contain;
background-position: right;
padding: 20px;
min-height: 300px;
border-radius: 12px;
overflow: hidden;
transition: transform 0.3s;
background-repeat: no-repeat;
background-color: #E9E9E9;
}
.service__item:hover .service__overlay {
opacity: 1;
visibility: visible;
}
.service__content {
position: relative;
z-index: 2;
color: #333;
max-width: 60%;
}
.service__title {
font-size: 1.5rem;
margin-bottom: 10px;
}
.service__description {
font-size: 1rem;
line-height: 1.4;
}
.service__overlay {
position: absolute;
inset: 0;
backdrop-filter: blur(8px);
background: rgb(156 193 253 / 22%);
display: flex;
justify-content: center;
align-items: center;
opacity: 0;
visibility: hidden;
transition: 0.3s;
z-index: 3;
}
.service__btn {
background: #fff;
color: #000;
padding: 10px 20px;
border-radius: 30px;
text-decoration: none;
font-weight: 600;
transition: 0.3s;
}
.service__btn:hover {
background: #f0f0f0;
}
@media (max-width: 767px) {
.service__item {
position: relative;
background-size: contain;
background-position: right;
padding: 20px;
min-height: 0;
border-radius: 12px;
overflow: hidden;
transition: transform 0.3s;
background-repeat: no-repeat;
background-color: #E9E9E9;
aspect-ratio: 20 / 12;
}
.swiper-slide.service__item {
margin-bottom: 60px;
}
.swiper.services-slider.swiper-initialized.swiper-horizontal.swiper-backface-hidden {
margin-bottom: 60px;
}
.services-slider {
width: 100%;
overflow: hidden;
}
.service__item {
padding-left: 0;
padding-right: 0;
}
.service__content {
margin-left: 20px;
}
.service__content {
max-width: 100%;
}
p.service__description {
max-width: 50%;
font-size: 12px;
}
.service__title {
font-size: 16px;
margin-bottom: 10px;
}
}