/* widget title */

.widget-title .title-section {
    font-weight: 600;
    font-size: 48px;
    line-height: 1.3333333333333333em;
    color: #B31E25;
    position: relative;
    display: inline-block;
}

.widget-title .title-section span {
    font-weight: 200;
}

.widget-title .description {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #A8071A;
    margin-bottom: 0;
    margin-top: 24px;
}

.widget-title .title-section::after {
    content: '';
    width: 193px;
    height: 1px;
    background: currentColor;
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
}

.widget-title .title-section::before {
    content: '';
    width: 17px;
    height: 1px;
    background: #fff;
    position: absolute;
    bottom: -7px;
    left: 65%;
    transform: translateX(-50%);
    z-index: 1;
}

.widget-title.center {
    text-align: center;
}

.widget-title.left {
    text-align: left;
}

.widget-title.right {
    text-align: right;
}

.widget-title.left .title-section::after {
    position: absolute;
    left: 0;
    transform: unset;
}

.widget-title.left .title-section::before {
    left: 140px;
}

.widget-title.right .title-section::after {
    position: absolute;
    left: unset;
    right: 0;
    transform: unset;
}

.widget-title.right .title-section::before {
    left: unset;
    right: 40px;
    transform: unset;
}

/* widget title */

/* widget button */

.prescrire-button {
background: #B31E25;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    line-height: 26px;
    padding: 13px 28px;
    border-radius: 8px;
    display: inline-block;
}

.prescrire-button i {
        margin-left: 9px;
    font-size: 12px;
    vertical-align: middle;
}

.prescrire-button:hover {
        background: #141414;
    color: #fff;
}

/* widget button */

/* widget member */

.prescrire-member-widget .member-item {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0px 0px 1px 0px #091E424F;
    overflow: hidden;
    box-shadow: 0px 0px 1px 0px #091E424F;

box-shadow: 0px 8px 12px 0px #091E4226;
    display: flex
;
    align-items: center;
    justify-content: center;
    padding: 35px;
    position: relative;
}

.prescrire-member-widget .member-item .btn-readmore {
    width: 50px;
    height: 50px;
    background: #A8071A;
    color: #fff;
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    visibility: hidden;
}

.prescrire-member-widget .member-item:hover .btn-readmore {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    transition-delay: 0.2s;
}

.prescrire-member-widget .member-item:hover .member-image {
    filter: blur(2px);
    transition: filter 0.2s ease-in-out;
}

.prescrire-member-widget .member-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.prescrire-member-widget .tf-nav-left {
    color: #fff;
    font-size: 20px;
    left: -7%;
        top: 41%;
    display: block;
}

.prescrire-member-widget .tf-nav-right {
    color: #fff;
    font-size: 20px;
    right: -7.5%;
        top: 41%;
    display: block;
}

.prescrire-member-widget .swiper-pagination {
    position: unset;
        padding-top: 30px;
}

.prescrire-member-widget .swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #fff;
    opacity: 1;
    border: 2px solid transparent;
    padding: 4px;
    margin: 0 8px;
}

.prescrire-member-widget .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
    border-color: #fff;
    background: transparent;
}

/* widget member */

/* widget post */

.wg-post {
    border: 2px solid #A8A8A880;
    border-radius: 10px;
    overflow: hidden;
}

.wg-post .post-thumbnail {
    position: relative;
}

.wg-post .post-thumbnail .post-meta {
    font-weight: 500;
    font-size: 11px;
    line-height: 120%;
    color: #fff;
    background: #00000080;
    border-radius: 20px;
    padding: 8px 12px;
    position: absolute;
    top: 15px;
    left: 20px;
}

.wg-post .post-category {
    display: flex
    ;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
    width: max-content;
    margin-top: 12px;
    margin-bottom: 15px;
}

.wg-post .post-category a:first-child {
    background: #B31E25;
    color: #fff;
}

.wg-post .post-category a {
    background: #FFDBDB;
    color: #B31E25;
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0.1px;
    padding: 2px 12px;
}

.wg-post .post-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 6px;
}

.wg-post .post-category {
    max-width: 80%;
    overflow-x: scroll;
    flex-wrap: nowrap;
    justify-content: left;
}

.wg-post .post-category a {
    width: max-content;
    white-space: nowrap;
}

.wg-post .post-category::-webkit-scrollbar {
  width: 6px;  
  height: 0px;
}

.wg-post .post-category::-webkit-scrollbar-thumb {
  background: #888;   
  border-radius: 4px;    
}

.wg-post .post-category::-webkit-scrollbar-thumb:hover {
  background: #555;     
}

.wg-post .post-category::-webkit-scrollbar-track {
  background: #f1f1f1;   
}

.wg-post .post-title a {
    color: #B31E25;
        -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    display: -webkit-box !important;
}

.wg-post .post-title a:hover {
    color: #141414;
}

.wg-post .post-excerpt {
font-weight: 400;
font-size: 16px;
line-height: 24px;
color: #1F1F1F;
    margin-bottom: 17px;
}

.wg-post .content {
    padding: 0 20px 16px 20px;
}

.wg-post .count-building {
    font-weight: 500;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wg-post .count-building i {
    flex-shrink: 0;
    font-size: 20px;
}


/* widget post */

/* widget list icon */
.tf-list-icon .wrap-icon {
    display: flex;
    gap: 26px;
    align-items: center;
}

.tf-list-icon .wrap-icon i {
    font-size: 30px;
    flex-shrink: 0;
}

.tf-list-icon .wrap-icon {
font-weight: 400;
font-size: 16px;
line-height: 24px;
color: #000000;
    margin-bottom: 27px;
}

/* widget list icon */

.event-gallery {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.event-gallery .features-post a {
    position: relative;
}

.event-gallery .features-post img {
    width: 100%;
    height: 411px;
    object-fit: cover;
}

.event-gallery .features-post a::after {
    content: "";
    width: 100%;
    height: 30%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
    transition: 0.3s ease-in-out;
}

.event-gallery:hover a::after {
    height: 100%;
}

.event-gallery .content {
    position: absolute;
    bottom: -70px;
    height: 160px;
    left: 0px;
    right: 0px;
    padding: 32px;
    transition: 0.3s ease-in-out;
    overflow: hidden;
}

.event-gallery .content .description {
        font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #fff;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    min-height: 50px;
}

.event-gallery:hover .content .description {
    transform: translateY(0px);
    opacity: 1;
    visibility: visible;
    transition-delay: 0.3s;
}

.event-gallery .content .title a,
.event-gallery .content .title {
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    color: #fff;
    font-weight: 400;
}

.event-gallery:hover .content  {
    bottom: 0;
    height: unset;
}

.event-gallery .content .title a:hover {
    text-decoration: underline;
}

.prescrire-post-widget .swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.prescrire-post-widget .swiper-pagination-bullet-active {
    background: #B31E25;
}

.prescrire-post-widget .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 8px !important;
    position: relative;
}

.prescrire-post-widget .swiper-pagination-bullet::after {
    content: '';
    width: 20px;
    height: 20px;
    padding: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
    .prescrire-member-widget .member-item {
        width: 130px;
        height: 130px;
    }
}
