﻿@import url('https://fonts.googleapis.com/css?family=Oswald:300,400,500,700');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800');

:root {
    --gr-0: linear-gradient(170deg, rgb(1, 228, 248, 0.3) 0%, rgb(29, 62, 222, 0.3) 100%);
    --gr-1: linear-gradient(170deg, rgb(180, 236, 81, 0.3) 0%, rgb(66, 147, 33, 0.3) 100%);
    --gr-2: linear-gradient(170deg, rgb(200, 109, 215, 0.3) 0%, rgb(48, 35, 174, 0.3) 100%);
}

.navbar-brand img {
    height: 80px;
    margin-top: 0;
}

/**************** Scroll Bar *******************/

.invisible-scroll {
    background-color: #eee;
    height: 700px;
    overflow-y: scroll; 
}

    .invisible-scroll::-webkit-scrollbar {
        display: none;
    }

.invisible-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/******************** Titles ****************/

@import url(//fonts.googleapis.com/css?family=Cinzel+Decorative:400,900);

.fancy {
    line-height: 0.5;
    text-align: center;
    overflow: hidden;
}

.title h1{
    font: 900 1.5em 'Cinzel Decorative', cursive;
}

a.button {
    font-size: 20px;
}

.arrow {
    color: #0c5449;
    background-color: #f6f3ed;
    margin: 1em 0;
}

    .arrow::after {
        display: inline-block;
        padding-left: 8px;
        content: "➞";
        transition: transform 0.3s ease-out;
    }

    .arrow:hover {
        color: #0c5449;
        background-color: #f6f3ed;
    }

        .arrow:hover::after {
            transform: translateX(4px);
        }

/************* Slider **********************/

.slider img{
    aspect-ratio: 5/3;
    object-fit:cover;
}

/************* Service Cards **********************/

.service-container {
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    aspect-ratio: 16/13;
    padding: 10px;
}

    .service-container .card {
        /*max-width: 380px;*/
        height: 70%;
        width: 100%;
        background: #fff;
        margin: 10px;
        padding: 5%;
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        transition: 0.3s ease-in-out;
    }

        .service-container .card:hover {
            height: 95%;
        }

            .service-container .card:hover .content {
                height: 4.5rem;
                opacity: 1;
                transition-delay: 0.2s;
            }

        .service-container .card .image-wrapper {
            position: relative;
            width: 100%;
            top: -3rem;
            z-index: 1;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        }

            .service-container .card .image-wrapper img {
                width: 100%;
                border-radius: 4px;
            }

        .service-container .card .content {
            position: relative;
            height: 0px;
            padding: 10px;
            color: #111;
            opacity: 0;
            transition: 0.3s ease-in-out;
        }

            .service-container .card .content .truncated-text {
                margin-top: -3rem;
                overflow: hidden;
                line-clamp: 2;
                -webkit-line-clamp: 2;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                text-overflow: ellipsis;
            }

    /***************** Blog Cards ********************/

    .blog-card {
        display: flex;
        flex-direction: column;
        box-shadow: 0 3px 7px -1px rgba(0, 0, 0, 0.1);
        margin-bottom: 1.6%;
        background: #fff;
        line-height: 1.4;
        font-family: sans-serif;
        border-radius: 5px;
        overflow: hidden;
        z-index: 0;
    }

        .blog-card a {
            color: inherit;
        }

            .blog-card a:hover {
                color: #3b70fc;
            }

        .blog-card:hover .photo {
            transform: scale(1.3) rotate(3deg);
        }

        .blog-card .meta {
            position: relative;
            z-index: 0;
            height: 210px;
        }

        .blog-card .photo {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            width: 100%;
            transition: transform 0.2s;
        }

        .blog-card .description {
            padding: 1rem;
            background: #fff;
            position: relative;
            z-index: 1;
        }

            .blog-card .description h1,
            .blog-card .description h2 {
                font-family: Poppins, sans-serif;
            }

            .blog-card .description h1 {
                line-height: 1;
                margin: 0;
                font-size: 1.7rem;
            }

            .blog-card .description h2 {
                font-size: 1rem;
                font-weight: 300;
                text-transform: uppercase;
                color: #a2a2a2;
                margin-top: 5px;
            }

            .blog-card .description .text {
                height: 5.5rem;
                overflow: hidden
            }

            .blog-card .description .read-more {
                text-align: right;
            }

                .blog-card .description .read-more a {
                    color: #3b70fc;
                    position: relative;
                }

                    .blog-card .description .read-more a:after {
                        content: "?";
                        font-family: FontAwesome;
                        margin-left: -10px;
                        opacity: 0;
                        vertical-align: middle;
                        transition: margin 0.3s, opacity 0.3s;
                    }

                    .blog-card .description .read-more a:hover:after {
                        margin-left: 5px;
                        opacity: 1;
                    }

        .blog-card p {
            position: relative;
            margin: 1rem 0 0;
        }

            .blog-card p:first-of-type {
                margin-top: 1.25rem;
            }

                .blog-card p:first-of-type:before {
                    content: "";
                    position: absolute;
                    height: 5px;
                    background: #3b70fc;
                    width: 35px;
                    top: -0.75rem;
                    border-radius: 3px;
                }

    @media (min-width: 640px) {
        .slider img {
            aspect-ratio: 32/11;
            object-fit: fill;
        }

        .blog-card {
            flex-direction: row;
            max-width: 700px;
            margin-inline: auto
        }

            .blog-card .meta {
                flex-basis: 40%;
                height: auto;
            }

            .blog-card .description {
                flex-basis: 60%;
            }

                .blog-card .description:before {
                    transform: skewX(-3deg);
                    content: "";
                    background: #fff;
                    width: 30px;
                    position: absolute;
                    left: -10px;
                    top: 0;
                    bottom: 0;
                    z-index: -1;
                }

            .blog-card.alt {
                flex-direction: row-reverse;
            }

                .blog-card.alt .description:before {
                    left: inherit;
                    right: -10px;
                    transform: skew(3deg);
                }

        .scroolbox {
            transition: transform 0.4s ease;
        }
    }

    .scroolbox {
        /*transform: translateX(400%);*/
        opacity: 0;
        transition: transform 0.6s ease;
    }

        .scroolbox:nth-of-type(even) {
            /*transform: translateX(-400%);*/
            opacity: 1;
        }

        .scroolbox.show {
            opacity: 1;
            /*transform: translateX(0);*/
        }
