/*** 

====================================================================
	Timeline Section
====================================================================

***/

.timeline-section {
    position: relative;
    padding: 530px 0 110px;
    .flower-3 {
        position: absolute;
        bottom: 270px;
        left: 0;
        z-index: 2;
        @include media-breakpoint-down(sm){opacity: .1;}
    }
    .flower-4 {
        position: absolute;
        bottom: 320px;
        right: 0;
        z-index: 2;
        @include media-breakpoint-down(sm){opacity: .1;}
    }
    .carousel-outer {
        position: relative;
        margin-left: -20px;
        margin-right: 0px;
        @include media-breakpoint-down(xxl){
            margin-left: 0;
        }
        &:before {
            content: '';
            position: absolute;
            top: 40px;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: #d7d7d7;
            z-index: 1;
        }
    }
}

.timeline-block {
    margin-bottom: 30px;
    .inner-box {
        position: relative;
        text-align: center;
        padding-top: 10px;
        &:hover {
            .icon {
                transform: scaleX(-1);
                background-color: var(--theme-color-dark);
            }
        }
        .icon {
            position: relative;
            display: block;
            width: 58px;
            height: 58px;
            @include flex-center;
            font-size: 30px;
            text-align: center;
            border-radius: 50%;
            background-color: var(--bg-theme-color4);
            color: var(--theme-color-light);
            margin: 0 auto 30px;
            transition: all 300ms ease;
        }
        .time {
            line-height: 1em;
            font-size: 14px;
            color: var(--theme-color4);
            text-transform: uppercase;
            margin-bottom: 15px;
        }
        .designation {
            color: var(--theme-color-dark);
            font-size: 24px;
            line-height: 1em;
            margin-bottom: 15px;
        }
    }
}

/*** 

====================================================================
    Timeline Section Two
====================================================================

***/

.timeline-section-two {
    position: relative;
    padding: 120px 0 ;
    background-color: var(--bg-theme-color3);
    &.pull-down{
        padding: 0 0 10px;
        z-index: 2;
        .outer-box{
            margin-bottom: -100px;
        }
    }
    .flower-5 {
        position: absolute;
        top: 265px;
        left: 0;
    }
    .flower-6 {
        position: absolute;
        top: 165px;
        right: 0;
    }
    .outer-box {
        position: relative;
        background-color: #f5eee8;
        padding: 120px 60px;
        @include media-breakpoint-down(sm){
            padding: 120px 20px 80px;
        }
        &:before {
            content: '';
            position: absolute;
            top: 32px;
            left: 35px;
            right: 35px;
            bottom: 32px;
            border: 1px solid var(--bg-theme-color4);
            z-index: 2;
            pointer-events: none;
            @include media-breakpoint-down(md){
                display: none;
            }
        }
        .icon-flower-17 {
            position: absolute;
            top: 0;
            left: 0;
        }
    }
}

.timeline-block-two {
    margin-bottom: 45px;
    .inner-box {
        position: relative;
        display: flex;
        text-align: right;
        @include media-breakpoint-down(md){
            text-align: center;
            justify-content: center;
            flex-direction: column;
        }
        @include media-breakpoint-down(lg){
            padding: 0 30px;
        }
        @include media-breakpoint-down(sm){
            padding: 0;
        }
        &:hover{
            .icon-box{
                .icon{
                    background-color: var(--theme-color-light);
                    color: var(--theme-color4);
                    transform: scaleX(-1);
                }
            }   
        }
        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            width: 1px;
            height: 100%;
            background-color: #e1d8d1;
            @include media-breakpoint-down(md){
                display: none;
            } 
        }
        .icon-box {
            position: relative;
            left: -28px;
            order: 2;
            @include media-breakpoint-down(md){
                left: 0;
                order: 1;
                margin: 0 auto 10px;
            }
            .icon {
                width: 58px;
                height: 58px;
                line-height: 58px;
                @include flex-center;
                display: inline-flex;
                border-radius: 50%;
                font-size: 35px;
                background-color: var(--bg-theme-color4);
                color: var(--theme-color-light);
                transition: all 300ms ease;
            }
        }
        .content-box {
            margin-bottom: 15px;
            max-width: 50%;
            width: 100%;
            padding-right: 75px;
            @include media-breakpoint-down(lg){
                padding-right: 40px;
            }
            @include media-breakpoint-down(md){
                max-width: 100%;
                padding-right: 0;
                order: 3;
                margin: 0 auto;
            }
            .time {
                color: var(--theme-color4);
                font-size: 14px;
                margin-left: 0;
                margin-bottom: 0;
                text-transform: uppercase;
            }
            .title {
                position: relative;
                margin-bottom: 10px;
                a:hover {
                    color: var(--theme-color1);
                }
            }
            .text {
                margin-bottom: 0;
                @include media-breakpoint-down(lg){
                    br {
                        display: none;
                    }
                }
            }
        }
    }
    &.style-two {
        .inner-box {
            text-align: left;
            justify-content: flex-end;
            @include media-breakpoint-down(md){
                text-align: center;
                justify-content: center;
            }
        }
        .icon-box {
            order: 1;
            left: auto;
            right: -28px;
            @include media-breakpoint-down(md){
                right: 0;
            }
        }
        .content-box {
            order: 3;
            padding-right: 0;
            padding-left: 75px;
            @include media-breakpoint-down(lg){
                padding-left: 40px;
            }
            @include media-breakpoint-down(md){
                padding-left: 0;
            }
        }
    }
}

/***

==================================================================
	Timeline Section Three
==================================================================

***/

.timeline-section-three {
    position: relative;
    padding: 120px 0 90px;
}

.timeline-block-three {
    margin-bottom: 30px;
    .inner-box{
        position: relative;
        text-align: center;
        padding: 40px 30px 30px;
        transition: all 300ms ease;
        &:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(0,0,0,.10);
            background-color: var(--bg-theme-color3);
            .icon-box {
                .icon {
                    transform: scaleX(-1);
                }
            }
        }
        .icon-box{
            position: relative;
            margin-bottom: 20px;
            .icon{
                position: relative;
                display: block;
                font-size: 90px;
                line-height: 1em;
                z-index: 2;
                color: var(--theme-color4);
                transition: all 300ms ease;
            }
            .icon-flower-18{
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -55%);
            }
        }
        .content-box{
            position: relative;
            .title{
                margin-bottom: 0;
                a:hover {
                    color: var(--theme-color4);
                }
            }
            .time {
                color: var(--theme-color4);
                margin-bottom: 20px;
                text-transform: uppercase;
            }
            .text{
                max-width: 280px;
                margin: 0 auto;
            }
        }
    }
}


/*** 

====================================================================
    Timeline Section Four
====================================================================

***/

.timeline-section-four {
    position: relative;
    padding: 120px 0 30px;
    .sec-title {
        margin-bottom: 55px;
    }
    .outer-box {
        position: relative;
        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            height: 100%;
            width: 1px;
            background-color: #e1d8d1;
            @include media-breakpoint-down(sm){
                display: none;
            }
        }
    }
}

.timeline-block-four {
    margin-bottom: 90px;
    @include media-breakpoint-down(md){
        margin-bottom: 50px;
    }
    &:last-child {
        .inner-box {
            .content-box {
                margin-bottom: 0;
                padding-bottom: 50px;
            }
        }
    }
    .inner-box {
        position: relative;
        display: flex;
        text-align: right;
        @include media-breakpoint-down(sm){
            flex-direction: column;
        }
        &:hover {
            .icon-box {
                .icon {
                    transform: scaleX(-1);
                }
            }
        }
        &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background-color: #cccccc;
            transform: translateX(-50%);
            @include media-breakpoint-down(md){
                display: none;
            }
        }
        .icon-box {
            position: relative;
            order: 2;
            padding-top: 45px;
            padding-left: 140px;
            @include media-breakpoint-down(md){
                padding-left: 20px;
            }
            @include media-breakpoint-down(sm){
                padding-left: 0;
                text-align: center;
            }
            .icon {
                position: relative;
                display: block;
                font-size: 90px;
                line-height: 1em;
                color: var(--theme-color4);
                transition: all 300ms ease;
            }
            .icon-flower-18 {
                position: absolute;
                top: 0px;
                left: 100px;
                z-index: -1;
                @include media-breakpoint-down(md){
                    left: 0;
                }
                @include media-breakpoint-down(sm){
                    left: 50%;
                    transform: translateX(-50%);
                }
            }
        }
        .content-box {
            max-width: 50%;
            width: 100%;
            padding-right: 80px;
            @include media-breakpoint-down(md){
                padding-right: 20px;
            }
            @include media-breakpoint-down(sm){
                max-width: 100%;
                text-align: center;
                padding-right: 0;
                margin-bottom: 0;
                order: 2;
            }
            .time {
                color: var(--theme-color4);
                font-size: 14px;
                margin-bottom: 0;
                text-transform: uppercase;
            }
            .title {
                position: relative;
                margin-bottom: 8px;
                font-size: 24px;
                line-height: 36px;
                a:hover {
                    color: var(--theme-color1);
                }
            }
        }
    }
    &.style-two {
        .inner-box {
            text-align: left;
            justify-content: flex-end;
            @include media-breakpoint-down(sm){
                justify-content: center;
            }
        }
        .icon-box {
            order: 1;
            padding-left: 0;
            padding-right: 115px;
            @include media-breakpoint-down(md){
                padding-right: 20px;
            }
            @include media-breakpoint-down(sm){
                padding-right: 0;
            }
            .icon-flower-18 {
                position: absolute;
                left: auto;
                right: 85px;
                @include media-breakpoint-down(md){
                    right: 0px;
                }
            }
        }
        .content-box {
            order: 3;
            padding-right: 0;
            padding-left: 110px;
            @include media-breakpoint-down(md){
                padding-left: 20px;
            }
            @include media-breakpoint-down(sm){
                order: 1;
                padding-left: 0;
            }
        }
    }
}