/*speeches----------------------------*/

#speeches{
    overflow: visible;
    position: relative;
    z-index: 2;
}
.speeches{
    padding-top: 5%;
    padding-bottom: 15%;
    max-width: 930px;
    margin: 0 auto;
}

.speeches .btn,
.speeches .btn:active,
.speeches .btn:visited,
.speeches .btn:focus{
    position: relative;
    float: left;
    width: calc(33.3% - 30px);
    margin: 0 15px;
    height: auto;
    padding-bottom: 25%;
    color: #233771;
    background: #fff;
    background: -moz-linear-gradient(left, #fff 0%, #fff 27%, #fff 100%);
    background: -webkit-linear-gradient(left, #fff 0%,#fff 27%,#fff 100%);
    background: linear-gradient(to right, #fff 0%,#fff 27%,#fff 100%);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
       -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
            box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
}
.speeches .btn:hover,
.speeches .btn.active{
    color: #fff;
    background: #253b6f;
    background: -moz-linear-gradient(left, #253b6f 0%, #2f655a 27%, #3ea739 100%);
    background: -webkit-linear-gradient(left, #253b6f 0%,#2f655a 27%,#3ea739 100%);
    background: linear-gradient(to right, #253b6f 0%,#2f655a 27%,#3ea739 100%);
}
.speeches .btn:before,
.speeches .btn:after{
    content: '';
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0;
    -webkit-transition: all 0.1s ease-out;
       -moz-transition: all 0.1s ease-out;
         -o-transition: all 0.1s ease-out;
            transition: all 0.1s ease-out;
    -webkit-transform: translateX(-50%);
       -moz-transform: translateX(-50%);
         -o-transform: translateX(-50%);
            transform: translateX(-50%);
}

.speeches .btn:before{
    bottom: 18px;
    border-width: 21px 13.5px 0 13.5px;
    border-color: #ffffff transparent transparent transparent;

}
.speeches .btn:after{
    bottom: 22px;
    border-width: 15px 9.5px 0 9.5px;
    border-color: #347a4f transparent transparent transparent;
}
.speeches .btn:hover:before,
.speeches .btn.active:before,
.speeches .btn:hover:after,
.speeches .btn.active:after{
    opacity: 1;
}

.speeches .btn.active{
    z-index: 1;
}
.speeches .btn span{
    position: absolute;
    width: 100px;
    left: 50%;
    top: 45%;
    font-size: 20px;
    line-height: 20px;
    -webkit-transform: translate(-50%, -50%);
       -moz-transform: translate(-50%, -50%);
         -o-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}

.speeches .btn span:before{
    content: '';
    display: block;
    margin: 0 auto;
    width: 100px;
    height: 120px;
    background-size: 200px;
}

.speeches #ar-speech span:before{ background-image: url('../img/speeches-arabic.png');  }
.speeches #en-speech span:before{ background-image: url('../img/speeches-english.png'); }
.speeches #fr-speech span:before{ background-image: url('../img/speeches-french.png');  }

.speeches .btn:hover span:before,
.speeches .btn.active span:before{
    background-position: -100px 0;
}

.speeches ul{
    overflow: hidden;
    position: absolute;
    width: 100%;
    left: 0;
    top: 110%;
    margin: 0;
    padding: 20px 20px 10px;
    line-height: 21px;
    font-size: 16px;
    border-radius: 5px;
    max-height: 0;
    opacity: 0;
    background: #fff;
    text-align: left;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
       -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
            box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.3);
    -webkit-transition: max-height 0.5s ease-out, opacity 0.5s ease-out, overflow 0s linear;
       -moz-transition: max-height 0.5s ease-out, opacity 0.5s ease-out, overflow 0s linear;
         -o-transition: max-height 0.5s ease-out, opacity 0.5s ease-out, overflow 0s linear;
            transition: max-height 0.5s ease-out, opacity 0.5s ease-out, overflow 0s linear;
}
.speeches .active ul{
    max-height: 300px;
    opacity: 1;
    -webkit-transition: max-height 0.5s ease-out, opacity 0.5s ease-out, overflow 0s linear 0.5s;
       -moz-transition: max-height 0.5s ease-out, opacity 0.5s ease-out, overflow 0s linear 0.5s;
         -o-transition: max-height 0.5s ease-out, opacity 0.5s ease-out, overflow 0s linear 0.5s;
            transition: max-height 0.5s ease-out, opacity 0.5s ease-out, overflow 0s linear 0.5s;
}
.speeches .scroll ul{
    overflow: auto;
}
.speeches ul li{
    position: relative;
    display: block;
    padding-bottom: 10px;
    padding-left: 10px;
}
.speeches ul li:before{
    content: '';
    position: absolute;
    left: -4px;
    top: 5px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4.5px 0 4.5px 8px;
    border-color: transparent transparent transparent #3fab37;

}
.speeches li a,
.speeches li a:active,
.speeches li a:focus,
.speeches li a:visited{
    color: #000;
}
.speeches li a:hover{
    text-decoration: underline;
}

.speeches .close{
    position: absolute;
    display: block;
    width: 12px;
    height: 12px;
    top: 10px;
    right: 12px;
    cursor: pointer;
}

.speeches .close:before,
.speeches .close:after{
    position: absolute;
    display: block;
    content: '';
    background: #acabb1;
    left: 50%;
    top: 50%;
    opacity: 0.7;
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
       -moz-transform: translate(-50%, -50%) rotate(45deg);
         -o-transform: translate(-50%, -50%) rotate(45deg);
            transform: translate(-50%, -50%) rotate(45deg);
    -webkit-transition: background ease-out 0.1s;
       -moz-transition: background ease-out 0.1s;
         -o-transition: background ease-out 0.1s;
            transition: background ease-out 0.1s;
}
.speeches .close:before{
    width: 100%;
    height: 2px;
}
.speeches .close:after{
    width: 2px;
    height: 100%;
}
.speeches .close:hover:before,
.speeches .close:hover:after{
    opacity: 1;
}

.speeches .simplebar-track .simplebar-scrollbar.simplebar-visible:before{
    opacity: 1;
}
.speeches .simplebar-scrollbar:before{
    background: #233771;
}

/* Responsive ----------------------------------------------------------*/


@media (max-width: 800px){
    .speeches .btn span{
        font-size: 18px;
    }
    .speeches .btn span:before{
        width: 70px;
        height: 80px;
        background-size: 140px;
    }
    .speeches .btn:hover span:before,
    .speeches .btn.active span:before{
        background-position: -70px 0;
    }
    .speeches ul{
        left: 0;
        width: 100%;
        font-size: 15px;
    }
}


@media (max-width: 550px){
    .speeches{
        margin: 0;
    }
    .speeches .btn,
    .speeches .btn:active,
    .speeches .btn:visited,
    .speeches .btn:focus{
        width: 100%;
        margin: 0 0 20px;
        padding-bottom: 100px;
    }
    .speeches .btn span{
        font-size: 16px;
    }
    .speeches .btn span:before{
        width: 60px;
        height: 60px;
        background-size: 120px;
    }
    .speeches .btn:hover span:before,
    .speeches .btn.active span:before{
        background-position: -60px 0;
    }
}