.dept-content{
width: 100%;
height: auto;
display: flex;
flex-direction: column;
margin: 0 auto;
align-items: center;
gap: 3rem;
position: relative;
z-index: 1;
background-color: var(--white);
}
.art-lists{
display: flex;
flex-direction: column;
gap: 3rem;
margin: 3rem 0;
}
.dept-content .art-list{
display: flex;
gap: 4rem;
}
.img-wraper{
position: relative;
transition: transform 0.3s ease-out;
overflow: hidden;
max-width: 652px;
height: 400px;
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;
}
.text-wraper{
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
gap: 1rem;
}
.text-wraper p {
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: bold;
line-height: 32px;
}
.enroll-btn {
width: 173px;
height: 48px;
font-size: 14px;
font-family: 'Poppins', sans-serif;
font-weight: 600;
letter-spacing: 0.6%;
line-height: 20px;
border-radius: 120px;
padding: 14px 16px;
background-color: var(--primary);
color: var(--white);
border: none;
cursor: pointer;
margin-bottom: 3rem;
}
.btn-wraper {
text-align: center;
}
@media (max-width: 768px) {
.dept-content .art-list{
display: flex;
flex-direction: column;
gap: 3rem;
}
.img-wraper{
width: 100%;
max-width: 100%;
order: -1;
}
.text-wraper{
order: 2;
}
.description-text {
width: auto;
padding: 0 30px;
}
}