.ribbon {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 20px;
    margin: 15px auto 0;
    border-radius: 4px;
}
.ribbon h4 {
    position:relative;
    padding:3px 30px;
    margin:0 -30px 20px;
    font-size:22px;
    line-height:32px;
    font-weight:bold;
    text-align:center;
    color:#fff;
    background: #4c1864;
    /* css3 extras */
    text-shadow:0 1px 1px rgba(0,0,0,0.2);
    -webkit-box-shadow:0 1px 1px rgba(0,0,0,0.2);
    -moz-box-shadow:0 1px 1px rgba(0,0,0,0.2);
    box-shadow:0 1px 1px rgba(0,0,0,0.2);
    /* See "NOTE 1" */
    zoom:1;
}

.ribbon h4:before,
.ribbon h4:after {
    content:"";
    position:absolute;
    /* See "NOTE 2" */
    z-index:-1;
    top:100%;
    left:0;
    border-width:0 10px 10px 0;
    border-style:solid;
    border-color:transparent #0d4077;
}

.ribbon h4:after {
    left:auto;
    right:0;
    border-width:0 0 10px 10px;
}
.view{
    overflow: inherit;
}

/* Search page */
/* ------------- Search Container ------------------*/
.search-field-type-1{
    direction: rtl;
}
.search-field-type-1 .search-container{
    background-color: #f9f9f9;
    padding: 15px 15px;
    margin: 10px 0;
    border-radius: 25px;
    box-shadow: 0 .15rem 1.75rem 0 rgba(33,37,41,.15)!important;
}
@media(max-width: 576px){
    .search-field-type-1 .search-container{
        padding: 0;
    }
}
.search-field-type-1 .search-page-boxes .search-box{
    position: relative;
}
.search-field-type-1 .search-box-all input{
    padding: 10px 10px;
    width:100%;
    outline: none;
    border: none;
    height: 50px;
    border-radius: 0 15px 15px 0;
    font-size: 14px;
}

.search-field-type-1 .searchable-select .select2-container--default .select2-selection--single{
    border: 0 !important;
    border-radius: 0 !important;
    height: 50px!important;
    background-color: white !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
    ouline: none;
    margin: 0 !important;
    padding: 10px;
    font-size: 13px;
}
.search-field-type-1 .select2-container .select2-selection--single{
    border-radius: 0;
}
.search-field-type-1 .search-page-boxes{
    padding: 0;
    border-left: 1px dashed #ccc;
}
.search-field-type-1 .search-page-boxes:last-child{
    border-left: 0;
}
/* Start search box */
.search-field-type-1 .select-option-filter{
    margin: 0;
}
.search-field-type-1 .purple-button{
    margin-top: 0;
    font-size: 13px;
    width: 100%;
    height: 50px;
    border-radius: 15px 0px 0px 15px;
}
@media(max-width: 768px){
    .search-field-type-1 .green-button{
        border-radius: 0;
    }
    .search-field-type-1 .purple-button{
        border-radius: 0 0 15px 15px;
    }
    .search-field-type-1 .search-box-all input{
        border-radius: 15px 15px 0 0;
        border-bottom: 1px dashed;
        border-left: 0;
    }
    .search-field-type-1 .search-page-boxes:nth-child(3),
    .search-field-type-1 .search-page-boxes:nth-child(1){
        border-left: 0;
    }
}
.search-field-type-1 .select-option-filter{
    width: 100%;
}

/* End search box */




.comments-area .comment-form p {
    float: none;
}

.comments-area .comment-form  input {
    height: 40px;
    line-height: 6px 12px;
    padding: 10px 10px 10px 0;
    border: 1px solid #000;
    border-radius: 0;
    -webkit-border-radius: 0;
    text-transform: capitalize;
    border-width: 0 0 2px 0;
    color: #000000;
    background: transparent;
    font-size: 15px;
}
input::placeholder {
    font-size: 12px;
}
.select2-container{
    width: 100% !important;
}

.select2-container--default .select2-selection--single{
    height: 37px !important;
    border: 1px solid #ced4da;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 33px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    left: 5px;
    right: unset;
}
.select2-container--default .select2-results>.select2-results__options{
    text-align:right;
}
.select2-container{
    width: 100% !important;
}
.primary-color {
    border: 1px solid var(--primary);
    background-color: var(--primary);
    color: #fff;
}


/* videos page */
.videos-elements h1, .videos-elements h2, .videos-elements h3, .videos-elements h4, .videos-elements h5, .videos-elements h6 {
    color: var(--primary);
}

.videos-elements .linking{
    color: #3e4555;
}
.videos-elements .linking:hover{
    color: #316ce8;
}
.videos-elements .font-weight-medium {
    font-weight: 500;
}
.videos-elements .bg-light {
    background-color: #f4f8fa !important;
}
.videos-elements .subtitle {
    color: var(--blue);
    line-height: 24px;
}
.videos-elements .card.card-shadow {
    -webkit-box-shadow: 0px 0px 15px #d9d9d9;
    box-shadow: 0px 0px 15px #d9d9d9;
    border-radius: 10px;
    overflow: hidden;
    transition: all .2s ease-out;
    cursor: pointer;
}
.videos-elements .card.card-shadow:hover{
    margin-top: -10px;
}
.videos-elements .wrap-service5-box .card-body {
    padding: 0 !important;
    background:#fffff9;
    border-radius: 10px;
}
.videos-elements .card-content{
    padding: 20px;
    text-align: center;
}
.videos-elements .grade{
    background: linear-gradient(to top, #5688d5 0%, var(--primary) 100%);
    text-align: center;
    padding-left:5px;
    padding-right: 5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #fff;
    font-weight: bold;
}

.videos-elements .wrap-service5-box .icon-size{
    font-size: 18px;
}
.which-grade{
    font-size: 20px;
    font-family: 'iransans-bold';
}

.videos-elements .grade-view {
    font-family: 'iransans-medium';
    padding: 10px 25px;
    font-size: 15px;
    border: 2px solid var(--primary);
    color:var(--primary);
    background-color:  #ffffff ;
    box-shadow: none;
    transition: all .2s ease-in;
}
.videos-elements .grade-view:hover{
    background-color: var(--primary);
    color: #fff;
}
@media (max-width:768px){
    .videos-elements .card.card-shadow{
        width: 270px;
        margin: 0 auto;
    }
}




.subject-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
            inset 0 0 8px rgba(255, 255, 255, 0.5),
            0 8px 20px rgba(0, 0, 0, 0.1);
    /*background-color: #e5dff8;*/
    background-color: ghostwhite;
    border-bottom: 4px dashed #754de3;
}

.subject-circle .card-body {
    width: 100%;
    height: 100%;
    position: relative;
}


.subject-circle .grade-ribbon {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 70px;
    border-bottom-left-radius: 100% 80%;
    border-bottom-right-radius: 100% 80%;
    background: linear-gradient(to right, var(--primary), #4f5bd5);
    color: white;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    font-family: 'iransans-bold';
    z-index: 2;
    writing-mode:horizontal-tb;
}

.circle-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;

}

.subject-text {
    font-size: 20px;
    color: var(--primary);
    font-family: 'iransans-bold';
    transition: all 0.3s ease;
}

.subject-link {
    display: none;
    font-size: 15px;
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    font-family: 'iransans-medium';
    transition: all 0.3s ease;
}

.subject-circle:hover .subject-text {
    display: none;
}

.subject-circle:hover .subject-link {
    display: inline-block;
    background-color: var(--primary);
    color: white;
}

.subject-circle {
    box-sizing: border-box;

}

.subject-circle:hover {
    /*border-top: 3px dashed  #ffcc00;*/
    border-right: 3px dashed #cc66ff ;
    border-left: 2px dashed #3399ff;
    border-bottom: 3px dashed #e886b7;

    transform: rotate(360deg) scale(1.05);
    background-image: url('../images/icon/rainbow-dots.svg');
    background-color: #e8e3f6;
    animation: fall-rainbow 3s linear infinite;

}
@keyframes fall-rainbow {
    0%   { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}
.subject-circle:hover .subject-name {
    opacity: 0;
}

.subject-circle:hover .grade-view {
    opacity: 1;
    pointer-events: auto;
    background-color: var(--primary);
    color: #fff;
}



.bullet-sm {
    height: 10px;
    background-size: 100px 10px;
}
.bullet-md {
    height: 20px;
    background-size: 100px 20px;
}
.bullet-lg {
    height: 25px;
    background-size: 100px 25px;
}
.rainbow-container {
    width: 100%;
    height: 20px;
    background-color: transparent;
    position: relative;
}

.rainbow-line {
    width: 30%;
    background-image: url('../images/icon/rainbow-dots.svg');
    background-repeat: repeat-x;
    background-size: 100px 20px;
    animation: scrollDots 4s linear infinite;
    margin: 0 auto;
    height: 20px;
    margin-bottom: 1rem;

}


.bullet-33 { width: 33% ; }
.bullet-50 { width: 50%; }
.bullet-70 { width: 70%; }

@keyframes scrollDots {
    0% { background-position-x: 0; }
    100% { background-position-x: -100px; }
}

.book-card {
    position: relative;
    background: #fefefe;
    overflow: hidden;
    border-left: 20px solid #d6ccc2;
    border-radius: 5px;
}

.book-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background-image: repeating-linear-gradient(
            to right,
            #aaa 0,
            #aaa 1px,
            transparent 1px,
            transparent 4px
    );
    opacity: 0.2;
    z-index: 1;
}

.book-card::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(0,0,0,0.15), transparent 60%),
    radial-gradient(circle at bottom left, rgba(0,0,0,0.15), transparent 60%);
    z-index: 2;
}
/* branches */
.map-holder{
    padding: 30px 0;
    /* background-image: url(../img/earth.png);
    background-position: bottom left;
    background-repeat: no-repeat; */
}
.map-holder #map{
    height: 350px;
    border: 6px solid var(--primary);
    border-radius: 5px;
    padding-bottom: 100px;
}
.map-holder img{
    margin: 45px auto;
}


/* video */
.video-sec{
    padding: 25px 35px;
    background-image: url(../img/teacher-bg.jpg);
    background-attachment: fixed;
}
.videos-list-container ul {
    padding: 0;
    list-style: none;
}
.videos-list-container ul li {
    margin-bottom: 10px;
}
.videos-list-container ul li a {
    display: inline-flex;
    background-color: transparent;
    /* box-shadow: 0px 0px 20px 5px rgb(0 0 0 / 20%); */
    padding: 10px;
    border-radius: 7px;
    width: 100%;
    border: 2px solid #ccc1b0;
    transition: all 0.3s ease-in;
}
.videos-list-container ul li a:hover, .videos-list-container ul li a:active, .videos-list-container ul li a:focus{
    background: linear-gradient(45deg, #fff6e7, #e2edf1);
    transition: all 0.3s ease-in;
}
.videos-list-container ul li a:hover .content h4{
    padding-right: 5px;
    transition: all 0.2s ease-in;
}
.videos-list-container .img-container {
    margin: 5px;
}
.videos-list-container .img-container img {
    width: 40px;
    margin: auto;
    display: block;
}
.videos-list-container .img-container .duration {
    padding-top: 2px;
    font-size: 12px;
    color: dimgrey;
    margin-bottom: 0;
    text-align: center;
}
.videos-list-container .content {
    padding-right: 10px;
}
.videos-list-container .content h4 {
    font-size: 15px;
    letter-spacing: -0.5px;
    color: #3b3b3b;
    line-height: 25px;
    margin-bottom: 0px;
    height: 50px;
    font-weight: bold;
    text-align: right;
}
.videos-list-container .content .category {
    margin-bottom: 0;
    color: #585858;
    font-size: 12px;
}
.general-video-player {
    width: 100%;
    height: auto;
    border-radius: 15px;
}
.ttr-user-avatar {
    display: inline-table;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    overflow: hidden;
}