/*
    Hero Section
*/

#hero {
    margin-top: 20px;
}

#hero>div {
    justify-content: space-between;
    align-items: center;
    display: flex;
    background-color: rgb(var(--gray-color));
    border-radius: 24px;
}

#hero .left {
    padding-left: 60px;
    width: 38%;
    flex-shrink: 0;
}

#hero h1 {
    margin-bottom: 24px;
}

.subp {
    font-size: 24px;
}

#hero .right {
    width: 55%;
    padding-top: 100px;
}

#hero #images {
    aspect-ratio: 896 / 615;
    width: 100%;
    position: relative;
}

#hero #images * {
    position: absolute;
    width: 100%;
    height: 100%;
    object-position: right bottom;
}

h2 {
    margin-bottom: 24px;
}

/*
    Our Services Section
*/

#our-services {
    margin-top: 100px;
}

#our-services h2 {
    margin-bottom: 12px;
}

#our-services .underline {
    height: 4px;
    width: 60%;
    max-width: 180px;
    background-color: rgb(var(--blue-color-second));
    border-radius: 4px;
    margin: 0 auto;
    margin-bottom: 16px;
}

#services {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}

#services .service {
    width: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#services .icon {
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: center;
    background-color: rgb(var(--blue-color-second));
    border-radius: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#services .icon img {
    width: 50%;
    height: 50%;
}

#services h3 {
    font-size: 18px;
    line-height: 1.5em;
    font-weight: 600;
    color: rgb(var(--blue-color-main));
    text-align: center;
}

/* 
    About Us Section
*/

#about-us,
#giving-smile {
    margin-top: 100px;
    padding: 0 120px;
}

#about-us>div,
#giving-smile>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1680px;
    height: 100%;
    min-height: 500px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 10px 20px 10px 40px;
    background-color: rgb(var(--gray-color));
}

#giving-smile>div {
    padding: 10px 40px 10px 20px;
}

#about-us p,
#giving-smile p {
    font-size: 18px;
}

#about-us .left,
#giving-smile .right {
    width: 35%;
    flex-shrink: 0;
}

#about-us h2,
#giving-smile h2 {
    text-align: left;
}

#about-us .right,
#giving-smile .left {
    width: 50%;
    border-radius: 24px;
    overflow: hidden;
}

#about-us .right img,
#giving-smile .left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#about-us button {
    margin-top: 24px;
}

/* 
    Responsive
*/

@media screen and (max-width: 1024px) {
    
    h1 {
        font-size: 40px;
        line-height: 1.2em;
    }

    .subp {
        font-size: 20px;
    }

    #hero .right {
        padding-top: 150px;
    }
    
    #services {
        flex-wrap: wrap;
        justify-content: center;
    }

    #services .service {
        width: 30%;
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 768px) {

    section {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    #hero>div {
        flex-direction: column;
        align-items: center;
        padding: 80px 0 0 0;
        overflow: hidden;
    }

    #hero .left {
        width: 100%;
        margin-bottom: 60px;
        padding: 0 12px;
    }

    #hero h1 {
        font-size: 24px;
        line-height: 1.5em;
        text-align: center;
        margin-bottom: 12px;
    }

    .subp {
        font-size: 14px;
        text-align: center;
    }

    #hero .subp {
        margin: 0 40px;
    }

    #hero .right {
        width: 100%;
        padding-top: 0;
    }

    #hero #images {
        overflow: hidden;
    }

    #hero #images * {
        position: absolute;
        width: 110%;
        height: 107%;
        object-position: right bottom;
        right: 0;
        top: 0;
    }

    #hero #hero-ellipse-illustration {
        width: 80%;
        height: 80%;
        right: 12%;
        top: 10%;
    }

    h2 {
        font-size: 24px;
        line-height: 1.5em;
        text-align: center;
        margin-bottom: 12px;
    }

    #about-us > div {
        flex-direction: column-reverse;
        padding: 18px 14px;
        min-height: 0;
    }

    #about-us .left {
        width: 100%;
        margin-bottom: 0;
        text-align: center;
    }

    #about-us .left p {
        font-size: 14px;
        line-height: 1.5em;
    }

    #about-us button {
        width: 100%;
    }

    #about-us h2 {
        text-align: center;
    }

    #about-us .right {
        width: 100%;
        border-radius: 0;
        margin-bottom: 24px;
    }

    #about-us .right img {
        max-width: 500px;
        height: auto;
        border-radius: 12px;
        margin: 0 auto;
        display: block;    
    }

    #giving-smile > div {
        flex-direction: column;
        padding: 18px 14px;
        min-height: 0;
    }

    #giving-smile .right {
        width: 100%;
        margin-bottom: 0;
        text-align: center;
    }

    #giving-smile .right p {
        font-size: 14px;
        line-height: 1.5em;
    }

    #giving-smile button {
        width: 100%;
    }

    #giving-smile h2 {
        text-align: center;
    }

    #giving-smile .left {
        width: 100%;
        border-radius: 0;
        margin-bottom: 24px;
    }

    #giving-smile .left img {
        max-width: 500px;
        height: auto;
        border-radius: 12px;
        margin: 0 auto;
        display: block;    
    }

    #services {
        justify-content: space-between;
        margin-top: 40px;
    }

    #services .service {
        width: 48%;
    }

    #services .icon {
        width: 120px;
        height: 120px;
    }

    #services h3 {
        font-size: 16px;
    }

    #our-services, #about-us, #giving-smile {
        margin-top: 40px;
    }

    #our-services .underline {
        height: 3px;
        margin-bottom: 8px;
        width: 40%;
    }
}

@media screen and (max-width: 500px) {
    #services .icon {
        width: 100px;
        height: 100px;
    }

    #services h3 {
        font-size: 16px;
    }
}