#s-details {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 50px;
    position: relative;
    background-color: rgb(var(--background));
}

#s-details .main {
    grid-column: span 5 / span 7;
}

#s-details aside {
    grid-column: span 2 / span 7;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 80px;
    height: max-content;
}

#s-details .main .title {
    font-size: 2rem;
    margin: 30px 0;
}

#s-details .main img {
    width: 100%;
    height: auto;
}

#s-details .main .description {
    line-height: 2;
}

#s-details .main .details {
    margin: 20px 0;
    line-height: 2;
}

#s-details .main .details h3 {
    margin-bottom: 16px;
}

#s-details .main .details ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#s-details .main .details ul li {
    display: flex;
    align-items: start;
    gap: 12px;
}

#s-details .main .details ul li i {
    color: rgb(var(--primary));
    font-size: larger;
    margin-top: 8px;
}

#s-details .main .details ul li span {
    line-height: 2;
}

#s-details .main .details ul li span:first-child {
    font-weight: 600;
}

#s-details .main .details .why_choose {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

#s-details .main .details .why_choose img {
    width: 100%;
}

#s-details .main .details .why_choose h4 {
    margin-bottom: 10px;
}

#s-details .main .details .why_choose ol {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#s-details .main .details .why_choose ol li span:first-child {
    font-weight: 600;
}

#s-details .main .details .why_choose ol li span {
    line-height: 1.5;
}

#s-details aside .other-services {
    background-color: rgb(var(--foreground));
    padding: 2rem;
}

#s-details aside .other-services h3 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#s-details aside .other-services h3::before {
    position: absolute;
    content: "";
    width: 50px;
    height: 3px;
    border-radius: 30px;
    background-color: rgb(var(--primary));
    bottom: -5px;
}

#s-details aside .other-services ul li {
    padding: 20px;
    border-bottom: 1px solid rgba(var(--border_color), 0.2);
}

#s-details aside .other-services ul li a {
    display: flex;
    gap: 20px;
    align-items: center;
    color: rgb(var(--text_color));
    transition: all 0.3s;
}

#s-details aside .other-services ul li i {
    font-size: 0.8rem;
}

#s-details aside .other-services ul li a:hover {
    color: rgb(var(--primary));
}

#s-details aside .contact-card {
    width: 100%;
    height: 500px;
    position: relative;
}

#s-details aside .contact-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#s-details aside .contact-card .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 3rem;
    background: rgba(var(--overlay), 0.8);
    color: rgb(var(--overlay_text));
}

#s-details aside .contact-card .title {
    font-size: 1.8rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

#s-details aside .contact-card .contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#s-details aside .contact-card .contact .contact-btn {
    position: absolute;
    bottom: 3rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    background-color: rgb(var(--primary));
    color: rgb(var(--secondary));
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border-radius: 3px;
}

#s-details aside .contact-card .contact .contact-btn:hover {
    background-color: rgb(var(--secondary));
    color: rgb(var(--primary));
    font-weight: 700;
}

@media only screen and (max-width: 1536px) {
    section#s-details {
        padding: 60px 4%;
    }
}

@media only screen and (max-width: 1280px) {
    #s-details {
        gap: 30px;
    }

    #s-details aside .contact-card {
        height: 400px;
    }
    #s-details aside .contact-card .content {
        padding: 2rem;
    }
}

@media only screen and (max-width: 1024px) {
    #s-details {
        display: flex;
        flex-direction: column;
    }

    #s-details aside .contact-card {
        height: 250px;
    }
}

@media only screen and (max-width: 768px) {
    #s-details .main .details .why_choose {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
