/* Post  */

.slider-posts .blog-post,
.slider-posts .blog-post .content,
.slider-posts .blog-post .featured-post {
    position: relative;
}

.slider-posts .blog-post .featured-post {
    z-index: 2;
}

.tf-posts-wrap .tf-posts.grid,
.iyi-posts-content .iyi_elements_row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    position: relative;
}

.iyi-posts-content .iyi_elements_row>div {
    -ms-flex: 1;
    flex: 1;
}

.tf-posts-wrap.column-1 .tf-posts.grid .column {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.tf-posts-wrap.column-2 .tf-posts.grid .column {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.tf-posts-wrap.column-3 .tf-posts.grid .column {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.tf-posts-wrap.column-4 .tf-posts.grid .column {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}

.tf-posts-wrap.column-5 .tf-posts.grid .column {
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
}

.tf-posts-wrap.column-6 .tf-posts.grid .column {
    -ms-flex: 0 0 16.67%;
    flex: 0 0 16.67%;
    max-width: 16.67%;
}

.tf-posts-wrap .tf-posts .blog-post a,
.tf-posts-wrap .tf-posts .blog-post .featured-post .overlay,
.tf-posts-wrap .tf-posts .blog-post i,
.tf-posts-wrap .tf-posts .blog-post svg,
.tf-posts-wrap.has-carousel .owl-nav .owl-prev,
.tf-posts-wrap.has-carousel .owl-nav .owl-next,
.tf-posts-wrap .tf-posts .column,
.tf-posts-wrap .pagination a,
.tf-posts-wrap .pagination span,
.tf-posts-wrap .box-time a,
.tf-posts-wrap .tf-posts a.slider-link,
.tf-posts-wrap .owl-dots .owl-dot {
    -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;
}

.tf-posts-wrap .post-meta {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tf-posts-wrap .post-meta li {
    display: inline-block;
    text-transform: capitalize;
}


.tf-posts-wrap .tf-posts .blog-post .featured-post {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
}

.tf-posts-wrap .tf-posts .blog-post .grid-layout-style-2 .featured-post {
    background-position: top center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 250px;
    overflow: hidden;
}

.tf-posts-wrap.list-img-top .tf-posts .blog-post .featured-post {
    align-items: flex-start;
}

.tf-posts-wrap.list-img-bottom .tf-posts .blog-post .featured-post {
    align-items: flex-end;
}

.tf-posts-wrap .tf-posts.list .blog-post .featured-post .inner-featured-post {
    position: relative;
    display: flex;
}

.tf-posts-wrap .tf-posts .blog-post .featured-post .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 10;
}

.tf-posts-wrap .owl-item.center.active .blog-post .featured-post .overlay {
    opacity: 0;
    visibility: visible;
}

.tf-posts-wrap .owl-item.center.active .blog-post:hover .featured-post .overlay {
    opacity: 0.3;
    visibility: visible;
}

.tf-posts-wrap .tf-posts .blog-post .featured-post .overlay i,
.tf-posts-wrap .tf-posts .blog-post .featured-post .overlay svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tf-posts-wrap .tf-posts .blog-post .slider-content span.slider-title {
    font-size: 18px;
    display: block;
}

.tf-posts-wrap .tf-posts .blog-post .content-post {
    font-size: 15px;
    margin-bottom: 15px;
}

.tf-posts-wrap .tf-posts .blog-post .tf-button-container a {
    font-size: 15px;
    display: inline-block;
}

.tf-posts-wrap .tf-posts .blog-post .tf-button-container a i,
.tf-posts-wrap .tf-posts .blog-post .tf-button-container a svg {
    vertical-align: middle;
}

.tf-posts-wrap .tf-posts .blog-post .tf-button-container.left {
    text-align: left;
}

.tf-posts-wrap .tf-posts .blog-post .tf-button-container.center {
    text-align: center;
}

.tf-posts-wrap .tf-posts .blog-post .tf-button-container.right {
    text-align: right;
}

.tf-posts-wrap .tf-posts .blog-post .tf-button-container.justify .tf-button {
    text-align: center;
    width: 100%;
}

.tf-posts-wrap .tf-posts .blog-post .post-meta>li:last-child {
    margin-right: 0 !important;
}

.tf-posts-wrap .tf-posts .blog-post .post-meta>li:first-child {
    margin-left: 0 !important;
}

.tf-posts-wrap .tf-posts .slider-content {
    background-position: top center;
    background-attachment: scroll;
    background-size: cover;
    position: absolute;
    display: none;
    bottom: 0;
    width: 100%;
    height: auto;
    content: "";
    overflow: hidden;
    z-index: 5;
    padding: 10px 20px 10px 20px;
    background-color: #FF9600;
    margin: 0;
    border-radius: 0;
}

.slider-description {
    font-size: 16px;
    line-height: 1.3em;
    color: #000000;
}

.tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item.active.center .slider-content {
    display: block;
}

.tf-posts-wrap .tf-posts .blog-post .slider-explore-link {
    font-family: primary-heavy;
}

.tf-posts-wrap .tf-posts .blog-post .slider-content span {
    display: inline-block;
    text-align: left;
}


/* Thumbs */
#thumbSlider .column {
    text-align: center;
}

#thumbSlider .column span {
    display: inline-block;
    vertical-align: middle;
}

#thumbSlider .owl-item {
    cursor: pointer;
}

.tf-posts-wrap .thumb-title {
    font-size: 16px;
    font-weight: normal;
    color: #0d1528;
}

#thumbSlider .owl-item:hover .thumb-title {
    color: #ad0922;
}


/* Carousel  */

.tf-posts-wrap.column-2.has-carousel .tf-posts .column,
.tf-posts-wrap.column-3.has-carousel .tf-posts .column,
.tf-posts-wrap.column-4.has-carousel .tf-posts .column,
.tf-posts-wrap.column-5.has-carousel .tf-posts .column,
.tf-posts-wrap.column-6.has-carousel .tf-posts .column {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.tf-posts-wrap.has-carousel .tf-posts .column .blog-post {
    padding: 0 !important;
    margin: 0 !important;
}

.tf-posts-wrap.has-carousel .tf-posts {
    display: block;
    -ms-flex-wrap: unset;
    flex-wrap: unset;
}

.tf-posts-wrap.has-carousel #thumbSlider.owl-carousel .owl-stage {
    margin: 0 auto;
}

.slider-posts .layout_style_slider {
    height: auto !important;
    overflow: visible;
}

.tf-posts-wrap.has-carousel .owl-nav .owl-prev,
.tf-posts-wrap.has-carousel .owl-nav .owl-next {
    width: 50px;
    height: 50px;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    color: #fff;
    text-align: center;
    line-height: 50px;
}

.tf-posts-wrap.has-carousel .owl-nav button.owl-prev,
.tf-posts-wrap.has-carousel .owl-nav button.owl-next,
.tf-posts-wrap.has-carousel .owl-nav button.owl-prev:hover,
.tf-posts-wrap.has-carousel .owl-nav button.owl-next:hover {
    box-shadow: none;
}

.tf-posts-wrap.has-carousel .owl-nav .owl-next {
    left: unset;
    right: 0;
}

.tf-posts-wrap.has-carousel .owl-nav .owl-prev.disabled,
.tf-posts-wrap.has-carousel .owl-nav .owl-next.disabled {
    display: none !important;
}

.tf-posts-wrap.has-carousel.no-arrow .owl-nav .owl-prev,
.tf-posts-wrap.has-carousel.no-arrow .owl-nav .owl-next {
    display: none;
}

.tf-posts-wrap.has-carousel.has-arrow .owl-nav .owl-prev,
.tf-posts-wrap.has-carousel.has-arrow .owl-nav .owl-next {
    display: block;
}

.tf-posts-wrap .owl-dots {
    display: inline-block;
    position: absolute;
    text-align: right;
    right: 0;
}

.tf-posts-wrap .owl-dots .owl-dot {
    width: 20px;
    height: 8px;
    background: #172550;
    display: inline-block;
    margin: 0;
}

.tf-posts-wrap .owl-dots .owl-dot.active {
    background: #149740;
}

.tf-posts-wrap.has-carousel.no-bullets .owl-dots,
.tf-posts-wrap.has-carousel .owl-dots .owl-dot span {
    display: none;
}

.tf-posts-wrap.has-carousel.has-bullets .owl-dots {
    display: block;
}

.tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item.big.active.center {
    z-index: 9;
}

.tf-posts-wrap.has-carousel #mainSlider.owl-carousel .column .feature-image img {
    width: 100%;
    margin: auto;
    height: 431px;
    object-fit: cover;
    object-position: top center;
    /* -moz-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease; */

}

.tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item {
    padding: 70px 0;
    transition: all 0.5s;
}

.tf-posts-wrap.has-carousel #mainSlider.owl-carousel .slide-title {
    margin: 12px 0 6px 0;
}

.tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item .feature-image {
    height: 431px;
    width: 100%;
    position: relative;
    overflow: hidden;
    -webkit-transition: .4s ease all;
    transition: .4s ease all;
    z-index: 1;
    /* Prevent background color leak outs */
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
}

/* Departments */
.department-tabs {
    margin-bottom: 30px;
}

.department-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.department-nav li {
    margin: 0;
}

.department-tab {
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.department-tab.active {
    background-color: #333;
    color: #fff;
}

.department-nav a {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.department-tab:hover {
    background-color: #e5e5e5;
}

.department-tab.active:hover {
    background-color: #444;
}

/* @media (max-width: 768px) {
    .tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item .feature-image {
        height: 431px;
    }
}

@media (max-width: 380px) {
    .tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item .feature-image {
        height: 370px;
    }
} */

/* .tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item.big .feature-image {
    transform: scale(1);
    -ms-transform: scale(1);
    z-index: 3;
}

.tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item.medium .feature-image {
    transform: scale(0.71);
    -ms-transform: scale(0.71);
    /* z-index: 2; */
/* } */

/* .tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item.smallRight.active .feature-image {
    transform: scale(0.71);
    -ms-transform: scale(0.71);
    position: relative;
    /* left: -30px; */
/* }  */

/* .tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item.smallLeft.active .feature-image {
    transform: scale(0.71);
    -ms-transform: scale(0.71);
    position: relative; */
/* right: -30px; */
/* }  */

/* .tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item.big.center.active .feature-image {
    transform: scale(0.8);
    -ms-transform: scale(0.8);
    position: relative;
    top: -20px
} */

/* @media (min-width: 767px) { */
.tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item.big.center.active {
    transform: scale(1.3);
    -ms-transform: scale(1.3);
    transition: all 0.5s;
    /* right: -20px; */
}

/* } */

/* Section Header */
.slider_header_wrap {
    text-align: center;
}

.default-header-image {
    width: 100%;
    height: 260px;
    background-position: 50% -310px;
    background-repeat: no-repeat;
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    display: inline-block;
    margin: 0 auto !important;
}

@media (max-width: 1024px) {
    .default-header-image {
        height: 134px;
        background-position: 50% -580px;
    }

    .tf-posts-wrap .tf-posts .slider-content {
        width: 100%;
    }

}

@media (max-width: 768px) {
    .tf-posts-wrap .tf-posts .slider-content {
        top: auto;
        left: 0;
        bottom: 0;
        position: relative;
        margin: 0 auto;
        padding: 10px 15px 15px 15px;
    }

    .tf-posts-wrap.has-carousel #mainSlider.owl-carousel .owl-item {
        padding: 100px 0;
    }
}

@media (max-width: 480px) {
    .default-header-image {
        height: 104px;
        background-position: 50% -720px;
    }
}

@media (min-width: 768px) {

    #mainSlider,
    #thumbSlider,
    .department-nav {
        max-width: 1640px;
        margin: 0 auto;
    }
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.iyi-slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

.iyi-slider-popup {
    position: fixed;
    top: 0;
    right: -60%;
    width: 40%;
    height: 100%;
    max-width: 600px;
    background-color: #fff;
    z-index: 9999;
    padding: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}

.iyi-slider-popup.active {
    right: 0;
}

.iyi-slider-popup .popup-content {
    padding: 5px 15px 15px 15px;
}

.iyi-slider-popup .popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    z-index: 15566555655;
    cursor: pointer;
    padding: 15px;
    background: #643535;
    border-radius: 50px;
    height: 10px;
    width: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    cursor: pointer;
}

.iyi-slider-popup .popup-image {
    height: 400px;
    /* Set the height of the popup-image area */
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: flex-start;
    /* Align image to the top */
    overflow: hidden;
    /* Hide any overflow */
}

.iyi-slider-popup .popup-image img {
    height: 100%;
    /* Make the image cover the full height */
    width: auto;
    /* Preserve the aspect ratio */
    object-fit: cover;
    /* Ensure the image covers the entire area */
    object-position: top center;
    /* Align the image to the top center */
}

.iyi-slider-popup .popup-title {
    margin-bottom: 15px;
}

.iyi-slider-popup .popup-description {
    line-height: 1.6;
}

@media (max-width: 768px) {
    .iyi-slider-popup {
        width: 100%;
        right: -100%;
    }
}