/*
Theme Name: Mellowlife Child
Template: mellowlife
Version: 1.0
*/


#menu-header-menu-1>.menu-item:first-child>a {
    background: transparent !important;
    color: #293718 !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;

    @media(width <=480px) {
        grid-template-columns: repeat(1, 1fr);
    }
}

.project-item {
    border-radius: 20px;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: box-shadow 1s;
    min-height: 200px;
    cursor: pointer;

    &:first-child {
        grid-row: 1 / 3;

        & .project-image img {
            height: 100%
        }
    }

    &:hover {
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

        & .project-image img {
            scale: 1.1;
        }

        & .project-title {
            top: -40px;

            @media(width <=480px) {
                top: 15px;
            }
        }

        & .project-content {
            bottom: -100px;

            @media(width <=480px) {
                bottom: 0;
            }
        }
    }

    & .project-title {
        font-size: clamp(12px, 3vw, 18px);
        margin-bottom: 10px;
        color: #333;
        font-weight: bold;
        color: #fff;
        position: absolute;
        top: 20px;
        left: 20px;
        background: var(--accent-color);
        border-radius: 5px;
        padding: 5px 10px;
        line-height: 1;
        z-index: 1;
        transition: all .5s;

        @media(width <=480px) {
            top: 15px;
            left: 15px;
        }
    }

    & .project-image {
        height: 100%;

        & img {
            width: 100%;
            height: 230px;
            object-fit: cover;
            display: block;
            transition: all .5s;
        }
    }

    & .project-content {
        padding: 20px;
        padding-top: 45px;
        position: absolute;
        bottom: 0px;
        background: linear-gradient(0deg, rgba(250, 245, 245, 1) -5%, rgb(255 255 255 / 0%) 100%);
        width: 100%;
        transition: all .5s;

        & .project-details {
            font-size: 0.9em;
            color: #555;
            line-height: 1.4;
            justify-content: space-between;
        }

        & .project-details {

            & .project-details_item {
                /* margin-bottom: 6px; */
                filter: brightness(0);
                font-family: 'Roboto';
                font-size: clamp(12px, 1vw, 16px);
                display: flex;
                align-items: center;
                gap: 5px;

                & .detail-icon {
                    max-width: 24px;

                    @media(width <=480px) {
                        max-width: 18px;
                    }
                }
            }
        }

        @media(width <=480px) {
            padding: 10px 15px;
            width: fit-content;
            inset: 0 0 0 auto;
            background: linear-gradient(269deg, rgba(250, 245, 245, 1) -5%, rgb(255 255 255 / 20%) 100%);
            max-width: 200px;

            & .project-details {
                flex-direction: column;
                height: 100%;
                justify-content: center;

                & & .detail-icon {
                    max-width: 20px;
                }
            }
        }
    }

    & .project-link {
        position: absolute;
        inset: 0;
    }
}

.project-section {

    & .box-container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px 0px;

        & .project-images {
            flex-basis: calc(35% - 10px);
            width: 100%;

            & img {
                width: 100%;
            }
        }

        & .project-description {
            flex-basis: calc(65% - 10px);
            width: 100%;
        }

        & .project-options {
            flex-basis: 100%;

            & tr {

                & td {
                    padding: 10px;
                    border: none;
                    border-collapse: collapse;

                    @media(width <=375px) {
                        font-size: 14px;
                        word-break: break-word;
                    }

                }


                &:nth-child(odd) {
                    background-color: #ffffff57;
                }

                &:hover {
                    background-color: #ffffffa6
                }
            }
        }

        & p {
            margin-bottom: 10px;
        }

        & h3 {
            margin-bottom: 10px;
            font-size: clamp(12px, 3vw, 27px);
            font-weight: 600;
        }

        @media(width <=900px) {
            flex-direction: column;
        }

        @media(width <=375px) {
            padding: 10px;
        }
    }
}

.hero {
    min-height: 600px;
}

.enroll-button {
    color: #fff;
    line-height: 1;
    padding: 10px 15px;
    border-radius: 20px;
    background: var(--accent-color);
    font-weight: 400;
    white-space: nowrap;
}

.case-info {
    gap: 20px;

    & .case-prop {
        flex-basis: 40%;
        padding: 0;

        ul {
            li {
                color: #404040;
            }
        }
    }

    & .text_wrapper {
        flex-basis: 60%;
    }

    @media(width <= 480px) { 
        display: flex;
        flex-direction: column;
     }
}

.case-title a {
    -webkit-line-clamp: 2 !important;
}

#cases {

    & .owl-stage-outer {

        & .owl-stage {
            display: flex;
            align-items: stretch;

            & .owl-item {
                height: auto;

                & .case_card {
                    height: 100%;

                    & .case-details {
                        height: inherit;

                        & .case-title {
                            flex: 1 0;

                            @media(width <=480px) {
                                flex: none;
                            }
                        }

                        & p {
                            @media(width <=480px) {
                                flex: 1;
                            }
                        }
                    }

                    & .single-case_thumb {
                        max-height: 258px;

                        @media(width <=1440px) {
                            max-height: 223px;
                        }

                        @media(width <=480px) {
                            max-height: 331px;
                            height: 100%;
                        }
                    }
                }

                @media(width <=480px) {
                    /* height: fit-content; */
                }
            }
        }
    }
}

#mobile__menu span {
    background: #fff !important;
}

.header__logo img {
    margin: auto;
    transform: scale(1.1);
}

.frame {

    & iframe {
        display: block;
        margin: auto;
        height: auto;
        aspect-ratio: 1/0.561;
    }
}