/*====== Basics ======*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    overflow-x: hidden;
}

/*====== Carousel ======*/

.slideshow-container {

    max-width: 120%;
    height: 700px;
}

.slideshow-container>div {
    width: 100%;
    height: 700px;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(2, 2, 146, 0.3);
}

.slide3 {
    background-image: url('../img/slider/3.jpg');
}

.slide2 {
    background-image: url('../img/slider/2.jpg');
    animation: fade 20s 5s infinite ease-in-out;
}

.slide1 {
    background-image: url('../img/slider/1.jpg');
    animation: fade 20s infinite ease-in-out;
}

@keyframes fade {
    0% {
        opacity: 1;
    }

    30% {
        opacity: 0;
    }

    60% {
        opacity: 0;
    }

    90% {
        opacity: 1;
    }

}

.overlay {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
    padding-top: 220px;
    width: 100%;
}

.main-text>h2 {
    color: white;
    font-family: EffraStdHeavy;
    font-size: 50px;
}

.main-text>p {
    color: white;
    font-family: Muli;
    font-size: 24px;
    text-align: center;
    padding-bottom: 25px;
}

.main-expert-search {
    display: flex;
    align-items: center;
    border-style: solid;
    background-color: rgba(117, 117, 117, 0.5);
    border-color: rgba(117, 117, 117, 0.1);
    border-width: 7px;
    border-radius: 5px;
    width: 90%;
    justify-content: space-between;
}



::placeholder {
    font-family: Muli;
    font-size: 18px;
}

.search{
    width: 80%;
}

.job-list {
    font-family: Muli;
    padding-left: 20px;
    font-size: 18px;
    border-style: none;
    border-radius: 5px;
    width: 80%;
    height: 60px;
}

.all-list{
    position: absolute;
    overflow-y: scroll;
    height: 300px;
}

.location {
    width: 30%;
    height: 60px;
}

.submit {
    width: 19%;
    height: 60px;
    background-color: #5091ff;
    font-family: Muli;
    color: white;
    border-style: none;
    font-size: 15px;
    border-radius: 5px;


}

/*====== How it works ======*/

.how-it-work {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.main-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
}

.main-heading>p {
    font-family: Muli;
    font-size: 18px;
    color: #707C88;
    margin: 20px 0;
    text-align: center
}

.main-heading>h2 {
    font-family: EffraStdHeavy;
    font-size: 36px;
    color: #252D40;
}

.span {
    font-family: EffraStdHeavy;
    font-size: 36px;
    color: #5091ff;
}

.main-process {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 80%;
    justify-content: space-between;
    margin-top: 25px;
}

.process {
    text-align: center;
    width: 30%;
    font-family: Muli;
    font-size: 18px;
    color: #667488;
}

.process>h4 {
    font-size: 20px;
    color: #272f46;
}

.process>img {
    width: 80px;
}

/*====== Premium Experts ======*/

.premium-experts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 50px;
    background-color: #F5F6F7;
}

.best-prem-experts {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 60px;
}

.expert {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 30%;
    background-color: white;
    margin-bottom: 25px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 15px;
    transition: transform .2s;
    cursor: pointer;
    border-radius: 8px;
}

.expert:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.expert-container {
    height: 680px;
    padding: 20px;
}

.expert-thumb>img {
    width: 95%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.expert-info {
    font-family: Muli;
    margin: 10px 0;
    font-size: 15px;
    text-align: center;
    color: #677484;
}

.expert-info>h4 {
    font-size: 20px;
    color: #272f46;
}

.expert-areas {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

}

.area {
    display: inline-block;
    list-style: none;
    padding: 3px 15px;
    border: 1px solid #b9c5ce;
    border-radius: 50px;
    margin: 5px;
    font-weight: 500;
    color: #657180;
}

.expert-profile {
    border: none;
    background-color: #1194F7;
    font-family: Muli;
    font-size: 16px;
    color: white;
    height: 60px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    transition: background-color 0.5s ease;
}

.expert-profile:hover {
    background-color: #BC0C19;
}


/*====== Call to action ======*/


.call-action {
    background-color: #F5F6F7;
    padding-top: 50px;
}

.action-info {
    display: flex;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
}

.left-action,
.right-action {
    width: 50%;
    position: relative;
}

.left-action>img {
    height: 550px;
    width: 100%;
    border: none;
}

.right-action>img {
    height: 550px;
    width: 100%;
    border: none;
}

.overlay-left {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 0;
    width: 100%;
    height: 550px;
    text-align: center;
}

.overlay-left>* {
    width: 80%;

}

.overlay-left>h2 {
    font-family: EffraStdHeavy;
    font-size: 36px;
    color: white;
}

.overlay-left>h4 {
    font-family: Muli;
    font-size: 20px;
    color: white;
}


/*  */
.overlay-right {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 0;
    width: 100%;
    height: 550px;
    text-align: center;
}

.overlay-right>* {
    width: 80%;

}

.overlay-right>h2 {
    font-family: EffraStdHeavy;
    font-size: 36px;
    color: white;
}

.overlay-right>h4 {
    font-family: Muli;
    font-size: 20px;
    color: white;
}



.action-button {
    display: flex;
    font-family: Muli;

    font-size: 17px;

    color: white;
    justify-content: center;
    align-items: center;


    background-color: #BC0C19;
    border-radius: 5px;
    border: none;
    margin-top: 25px;

    width: 40%;
    height: 60px;
    transition: 0.3s;

}

.action-button:hover {
    background-color: white;
    color: #BC0C19;

}

/*====== Sucess ======*/

.testimonial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}


.sucess-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 80px;
}

.carousel {
    display: flex;
    align-items: center;
    width: fit-content;
    /* width: 100%; */
    animation: carouselAnim 30s infinite alternate linear;
}

.expert-testimonial {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    position: relative;
    width: 500px;
    background: #fff;
    margin: 1em;
    padding: 0.5em;
    border-radius: 10px;
    box-shadow: 0px -4px 5px -1px rgba(0, 0, 0, 0.27);
}

.expert-card>p {
    font-family: Muli;
    font-size: 14px;
    color: #707C88;
    text-align: center;
    margin-top: 45px;
}

.expert-pic>img {
    width: 25%;
    border-radius: 50%;
    border-bottom: solid red 2px;
    top: -90px;
    left: 38%;
    position: absolute;
    /* position: fixed;ds */

}

.name {
    font-family: EffraStdHeavy;
    font-weight: bold;
}

.expert-rating {
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.expert-rating>li {
    color: #ff9800;
}

@keyframes carouselAnim {
    from {
        transform: translate(800, 0);
    }

    to {
        transform: translate(calc(-100% + (5 * 300px)));
    }
}

.container .faders {
    width: 100%;
    position: absolute;
    height: 100%;
}

/* .faders .right,
.faders .left {
    background: linear-gradient(to right,
            rgba(245, 245, 245, 1) 0%,
            rgba(255, 255, 255, 0) 100%);
    width: 15%;
    height: 100%;
    position: absolute;
    z-index: 200;
}

.right {
    right: 0;
    background: linear-gradient(to left,
            rgba(245, 245, 245, 1) 0%,
            rgba(255, 255, 255, 0) 100%);
} */

.all-numbers {
    background-color: #011023;
    display: flex;
    justify-content: center;
    width: 100%;
}


#counter {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80%;

}

.fact {
    font-family: Muli;
    text-align: center;
    font-size: 18px;
    color: #667488;
}

.counter-value {
    color: white;
    font-weight: 500;
    margin: 10px 0 0 0;
    font-size: 22px;
}




@media (max-width: 769px) {

    /*====== Carousel ======*/

    .slideshow-container,
    .slideshow-container>div {
        height: 500px;

    }

    .overlay {
        padding-top: 150px;
    }

    .main-text>h2 {
        font-size: 40px;
    }

    .main-text>p {
        font-size: 14px;

    }

    .main-expert-search {
        width: 70%;
    }


    .expert-container {
        height: 580px;
    }

    .left-action>img {
        height: 550px;
        width: 200%;
    }

    .right-action>img {
        height: 550px;
        width: 200%;
    }

}

@media (max-width: 650px) {

    .main-heading>h2 {
        text-align: center;
    }

    .span {
        width: 50%;
        align-items: center;
        text-align: center;
    }

    .expert {
        width: 45%;
    }
}

@media (max-width: 495px) {


    .overlay {
        padding-top: 140px;
    }

    .main-text>h2 {
        font-size: 40px;
        text-align: center;
    }

    .main-text>p {
        font-size: 12px;

    }

    #second::before {
        content: "\a";
        white-space: pre;
    }

    .main-expert-search {
        width: 70%;
    }

    .slide3 {
        background-position-x: 50%;
    }

    .main-expert-search {
        flex-direction: column;
    }

    .job-list,
    .submit {
        margin-bottom: 15px;
        width: 100%;
    }




    .best-prem-experts {
        justify-content: center;
    }

    .expert {
        width: 80%;
    }

    .left-action,
    .right-action {
        width: 100%;
    }

    .left-action>img {
        height: 550px;
        width: 100%;
    }

    .right-action>img {
        height: 550px;
        width: 100%;
    }

    ::placeholder,
    .main-expert-search>input {
        font-size: 15px;
    }

    .submit {
        font-size: 15px;
    }

    .main-process {
        justify-content: space-around;
    }

    .process {
        width: 100%;
        margin-bottom: 25px;
    }

    .main-heading>h2 {
        font-size: 32px;
    }

    .span {
        font-size: 29px;
    }


}

@media (max-width: 360px) {
    .main-text>h2 {
        font-size: 25px;
    }

 
}