.ribbon-box {
    position: relative;
    /* Ribbon two */
}
.ribbon-box .ribbon {
    padding: 5px 12px;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    position: absolute;
    left: -1px;
    top: 5px;
}
.ribbon-box .ribbon.round-shape {
    border-radius: 0 30px 30px 0;
}
.ribbon-box .ribbon.ribbon-shape {
    display: inline-block;
}
.ribbon-box .ribbon.ribbon-shape::before {
    content: "";
    position: absolute;
    right: -17px;
    top: 0;
    border: 14px solid transparent;
}
.ribbon-box .ribbon.ribbon-shape::after {
    content: "";
    position: absolute;
    right: -17px;
    bottom: 0;
    border: 14px solid transparent;
}
.ribbon-box.ribbon-circle .ribbon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 20px;
    top: 20px;
}
.ribbon-box.ribbon-fill {
    overflow: hidden;
}
.ribbon-box.ribbon-fill .ribbon {
    transform: rotate(-45deg);
    width: 93px;
    height: 52px;
    left: -36px;
    top: -16px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.ribbon-box.ribbon-fill.ribbon-sm .ribbon {
    padding: 2px 12px;
    width: 78px;
    height: 42px;
    font-size: 12px;
    box-shadow: none;
}
.ribbon-box.right .ribbon {
    position: absolute;
    left: auto;
    right: 0;
}
.ribbon-box.right .ribbon.round-shape {
    border-radius: 30px 0 0 30px;
}
.ribbon-box.right .ribbon.ribbon-shape {
    text-align: right;
}
.ribbon-box.right .ribbon.ribbon-shape::before, .ribbon-box.right .ribbon.ribbon-shape::after {
    right: auto;
    left: -17px;
    border-left-color: transparent;
}
.ribbon-box.right.ribbon-circle .ribbon {
    left: auto;
    right: 20px;
}
.ribbon-box.right .icon-ribbon {
    right: 24px;
    left: auto;
}
.ribbon-box.right.ribbon-fill .ribbon {
    transform: rotate(45deg);
    right: -38px;
    left: auto;
}
.ribbon-box.right.ribbon-box .ribbon-two {
    left: auto;
    right: -5px;
}
.ribbon-box.right.ribbon-box .ribbon-two span {
    left: auto;
    right: -21px;
    transform: rotate(45deg);
}
.ribbon-box .ribbon-content {
    clear: both;
}
.ribbon-box .ribbon-primary {
    background: #6691e7;
}
.ribbon-box .ribbon-primary:before {
    border-color: #5c83d0 transparent transparent;
}
.ribbon-box .ribbon-primary.ribbon-shape::before {
    border-left-color: #6691e7;
    border-top-color: #6691e7;
}
.ribbon-box .ribbon-primary.ribbon-shape::after {
    border-left-color: #6691e7;
    border-bottom-color: #6691e7;
}
.ribbon-box.right .ribbon-primary {
    background: #6691e7;
}
.ribbon-box.right .ribbon-primary.ribbon-shape::before {
    border-right-color: #6691e7;
    border-top-color: #6691e7;
}
.ribbon-box.right .ribbon-primary.ribbon-shape::after {
    border-right-color: #6691e7;
    border-bottom-color: #6691e7;
}
.ribbon-box .ribbon-success {
    background: #45cb85;
}
.ribbon-box .ribbon-success:before {
    border-color: #3eb778 transparent transparent;
}
.ribbon-box .ribbon-success.ribbon-shape::before {
    border-left-color: #45cb85;
    border-top-color: #45cb85;
}
.ribbon-box .ribbon-success.ribbon-shape::after {
    border-left-color: #45cb85;
    border-bottom-color: #45cb85;
}
.ribbon-box.right .ribbon-success {
    background: #45cb85;
}
.ribbon-box.right .ribbon-success.ribbon-shape::before {
    border-right-color: #45cb85;
    border-top-color: #45cb85;
}
.ribbon-box.right .ribbon-success.ribbon-shape::after {
    border-right-color: #45cb85;
    border-bottom-color: #45cb85;
}
.ribbon-box .ribbon-info {
    background: #0ab39c;
}
.ribbon-box .ribbon-info:before {
    border-color: #09a18c transparent transparent;
}
.ribbon-box .ribbon-info.ribbon-shape::before {
    border-left-color: #0ab39c;
    border-top-color: #0ab39c;
}
.ribbon-box .ribbon-info.ribbon-shape::after {
    border-left-color: #0ab39c;
    border-bottom-color: #0ab39c;
}
.ribbon-box.right .ribbon-info {
    background: #0ab39c;
}
.ribbon-box.right .ribbon-info.ribbon-shape::before {
    border-right-color: #0ab39c;
    border-top-color: #0ab39c;
}
.ribbon-box.right .ribbon-info.ribbon-shape::after {
    border-right-color: #0ab39c;
    border-bottom-color: #0ab39c;
}
.ribbon-box .ribbon-warning {
    background: #e1d05e;
}
.ribbon-box .ribbon-warning:before {
    border-color: #cbbb55 transparent transparent;
}
.ribbon-box .ribbon-warning.ribbon-shape::before {
    border-left-color: #e1d05e;
    border-top-color: #e1d05e;
}
.ribbon-box .ribbon-warning.ribbon-shape::after {
    border-left-color: #e1d05e;
    border-bottom-color: #e1d05e;
}
.ribbon-box.right .ribbon-warning {
    background: #e1d05e;
}
.ribbon-box.right .ribbon-warning.ribbon-shape::before {
    border-right-color: #e1d05e;
    border-top-color: #e1d05e;
}
.ribbon-box.right .ribbon-warning.ribbon-shape::after {
    border-right-color: #e1d05e;
    border-bottom-color: #e1d05e;
}
.ribbon-box .ribbon-danger {
    background: #f06548;
}
.ribbon-box .ribbon-danger:before {
    border-color: #d85b41 transparent transparent;
}
.ribbon-box .ribbon-danger.ribbon-shape::before {
    border-left-color: #f06548;
    border-top-color: #f06548;
}
.ribbon-box .ribbon-danger.ribbon-shape::after {
    border-left-color: #f06548;
    border-bottom-color: #f06548;
}
.ribbon-box.right .ribbon-danger {
    background: #f06548;
}
.ribbon-box.right .ribbon-danger.ribbon-shape::before {
    border-right-color: #f06548;
    border-top-color: #f06548;
}
.ribbon-box.right .ribbon-danger.ribbon-shape::after {
    border-right-color: #f06548;
    border-bottom-color: #f06548;
}
.ribbon-box .ribbon-dark {
    background: #212529;
}
.ribbon-box .ribbon-dark:before {
    border-color: #1e2125 transparent transparent;
}
.ribbon-box .ribbon-dark.ribbon-shape::before {
    border-left-color: #212529;
    border-top-color: #212529;
}
.ribbon-box .ribbon-dark.ribbon-shape::after {
    border-left-color: #212529;
    border-bottom-color: #212529;
}
.ribbon-box.right .ribbon-dark {
    background: #212529;
}
.ribbon-box.right .ribbon-dark.ribbon-shape::before {
    border-right-color: #212529;
    border-top-color: #212529;
}
.ribbon-box.right .ribbon-dark.ribbon-shape::after {
    border-right-color: #212529;
    border-bottom-color: #212529;
}
.ribbon-box .icon-ribbon {
    box-shadow: none;
    left: 24px;
    top: -12px;
    font-size: 40px;
    padding: 0;
}
.ribbon-box .ribbon-two {
    position: absolute;
    left: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}
.ribbon-box .ribbon-two span {
    font-size: 13px;
    color: #ffffff;
    text-align: center;
    line-height: 20px;
    transform: rotate(-45deg);
    width: 100px;
    display: block;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.06), 0 1px 0 0 rgba(0, 0, 0, 0.02);
    position: absolute;
    top: 19px;
    left: -21px;
    font-weight: 700;
}
.ribbon-box .ribbon-two span:before {
    content: "";
    position: absolute;
    left: 0;
    top: 100%;
    z-index: -1;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
}
.ribbon-box .ribbon-two span:after {
    content: "";
    position: absolute;
    right: 0;
    top: 100%;
    z-index: -1;
    border-left: 3px solid transparent;
    border-bottom: 3px solid transparent;
}
.ribbon-box .ribbon-two-primary span {
    background: #6691e7;
}
.ribbon-box .ribbon-two-primary span:before {
    border-left: 3px solid #577bc4;
    border-top: 3px solid #577bc4;
}
.ribbon-box .ribbon-two-primary span:after {
    border-right: 3px solid #577bc4;
    border-top: 3px solid #577bc4;
}
.ribbon-box .ribbon-two-success span {
    background: #45cb85;
}
.ribbon-box .ribbon-two-success span:before {
    border-left: 3px solid #3bad71;
    border-top: 3px solid #3bad71;
}
.ribbon-box .ribbon-two-success span:after {
    border-right: 3px solid #3bad71;
    border-top: 3px solid #3bad71;
}
.ribbon-box .ribbon-two-info span {
    background: #0ab39c;
}
.ribbon-box .ribbon-two-info span:before {
    border-left: 3px solid #099885;
    border-top: 3px solid #099885;
}
.ribbon-box .ribbon-two-info span:after {
    border-right: 3px solid #099885;
    border-top: 3px solid #099885;
}
.ribbon-box .ribbon-two-warning span {
    background: #e1d05e;
}
.ribbon-box .ribbon-two-warning span:before {
    border-left: 3px solid #bfb150;
    border-top: 3px solid #bfb150;
}
.ribbon-box .ribbon-two-warning span:after {
    border-right: 3px solid #bfb150;
    border-top: 3px solid #bfb150;
}
.ribbon-box .ribbon-two-danger span {
    background: #f06548;
}
.ribbon-box .ribbon-two-danger span:before {
    border-left: 3px solid #cc563d;
    border-top: 3px solid #cc563d;
}
.ribbon-box .ribbon-two-danger span:after {
    border-right: 3px solid #cc563d;
    border-top: 3px solid #cc563d;
}
.ribbon-box .ribbon-two-dark span {
    background: #212529;
}
.ribbon-box .ribbon-two-dark span:before {
    border-left: 3px solid #1c1f23;
    border-top: 3px solid #1c1f23;
}
.ribbon-box .ribbon-two-dark span:after {
    border-right: 3px solid #1c1f23;
    border-top: 3px solid #1c1f23;
}

.ribbon-box.right .ribbon-three {
    position: absolute;
    top: -6.1px;
    right: 10px;
    left: auto;
}

.ribbon-three {
    position: absolute;
    top: -6.1px;
    left: 10px;
}
.ribbon-three span {
    position: relative;
    display: block;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    padding: 12px 8px 10px;
    border-top-right-radius: 8px;
    width: 90px;
}
.ribbon-three span::after, .ribbon-three span::before {
    position: absolute;
    content: "";
}
.ribbon-three span::before {
    height: 6px;
    width: 6px;
    left: -6px;
    top: 0;
}
.ribbon-three span::after {
    height: 6px;
    width: 8px;
    left: -8px;
    top: 0;
    border-radius: 8px 8px 0 0;
}
.ribbon-three::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-left: 44px solid transparent;
    border-right: 44px solid transparent;
    border-top: 10px solid;
}

.ribbon-three-primary span {
    background: #6691e7;
}
.ribbon-three-primary span:before {
    background: #6691e7;
}
.ribbon-three-primary span:after {
    background: #5c83d0;
}
.ribbon-three-primary::after {
    border-top-color: #6691e7;
}

.ribbon-three-success span {
    background: #45cb85;
}
.ribbon-three-success span:before {
    background: #45cb85;
}
.ribbon-three-success span:after {
    background: #3eb778;
}
.ribbon-three-success::after {
    border-top-color: #45cb85;
}

.ribbon-three-info span {
    background: #0ab39c;
}
.ribbon-three-info span:before {
    background: #0ab39c;
}
.ribbon-three-info span:after {
    background: #09a18c;
}
.ribbon-three-info::after {
    border-top-color: #0ab39c;
}

.ribbon-three-warning span {
    background: #e1d05e;
}
.ribbon-three-warning span:before {
    background: #e1d05e;
}
.ribbon-three-warning span:after {
    background: #cbbb55;
}
.ribbon-three-warning::after {
    border-top-color: #e1d05e;
}

.ribbon-three-danger span {
    background: #f06548;
}
.ribbon-three-danger span:before {
    background: #f06548;
}
.ribbon-three-danger span:after {
    background: #d85b41;
}
.ribbon-three-danger::after {
    border-top-color: #f06548;
}

.ribbon-three-dark span {
    background: #212529;
}
.ribbon-three-dark span:before {
    background: #212529;
}
.ribbon-three-dark span:after {
    background: #1e2125;
}
.ribbon-three-dark::after {
    border-top-color: #212529;
}

.ribbon-box .trending-ribbon {
    transform: translateX(-50px);
    transition: all 0.5s ease;
}
.ribbon-box .trending-ribbon .trending-ribbon-text {
    transition: all 0.5s ease;
    opacity: 0;
}
.ribbon-box:hover .trending-ribbon {
    transform: translateX(0);
}
.ribbon-box:hover .trending-ribbon .trending-ribbon-text {
    opacity: 1;
}
.ribbon-box.right .trending-ribbon {
    transform: translateX(50px);
    transition: all 0.5s ease;
}
.ribbon-box.right .trending-ribbon .trending-ribbon-text {
    transition: all 0.5s ease;
    opacity: 0;
}
.ribbon-box.right:hover .trending-ribbon {
    transform: translateX(0);
}
.ribbon-box.right:hover .trending-ribbon .trending-ribbon-text {
    opacity: 1;
}