.description {
width: 100%;
position: relative;
padding: 40px 0 30px;
background: var(--white);
}
.description::before {
content: '';
position: absolute;
inset: 0;
background-image: url(//taxila.staging-sc.com/wp-content/themes/taxila/assets/icons/Group 12.svg);
background-position: top left, bottom right;
background-repeat: no-repeat, no-repeat;
opacity: 0.8;
pointer-events: none;
z-index: 0;
}
.description > * {
position: relative;
z-index: 1;
}
.description-text {
max-width: 792px;
margin: 0 auto;
height: auto;
display: flex;
flex-direction: column;
gap: 1rem;
}
.description-text p {
font-size: 16px;
font-weight: 400;
font-family: 'Poppins',sans-serif;
color: var(--text-sub);
line-height: 24px;
text-align: left;
letter-spacing: -1.1%;
}
.description-image-wrapper {
position: relative;
margin-top: 30px;
}
.description-image-wrapper > img {
width: 100%;
height: 670px ;
object-fit: cover;
}
.desc-decor-top {
position: absolute;
top: -20px;
left: 20px;
opacity: 0.1;
z-index: 2;
pointer-events: none;
} .main-content{
height: auto;
display: flex;
flex-direction: column;
margin: 0 auto;
align-items: center;
gap: 3rem;
padding: 2rem 0 3rem;
}
.main-content .container{
display: flex;
width: 100%;
height: auto;
gap: 4rem;
}
.img-wraper{
position: relative;
transition: transform 0.3s ease-out;
overflow: hidden;
height: 100%;
width: 50.5%;
border-radius: 12px;
}
.img-wraper::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.5) 81%);
pointer-events: none;
}
.img-wraper img{
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.text-wraper{
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
gap: 1rem;
}
.text-wraper .text-desc {
color: var(--text-sub);
font-family: 'Poppins', sans-serif;
font-size: 16px;
font-weight: 400;
letter-spacing: -1.1%;
line-height: 24px;
}
.text-wraper h2{
color: var(--primary);
font-size: 24px;
font-weight: 700;
line-height: 32px;
}
@media (max-width: 768px) {
.main-content .container{
width: 100%;
display: flex;
flex-direction: column;
gap: 3rem;
}
.img-wraper{
width: 100%;
order: -1;
}
.text-wraper{
order: 2;
}
.description-text {
width: auto;
padding: 0 30px;
}
}
@media (min-width: 769px) and (max-width: 1279px) {
.description-text{
width: auto;
padding: 0 40px;
}
}