/*-------------------------------------
#. PI: Post List Standalone Styles
---------------------------------------*/

.rt-post-list-default .rt-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
    transition: all ease 0.31s;
}
.rt-post-list-default > div:last-child .rt-item,
.rt-post-list-default .listloadmore-items > div:last-child .rt-item,
.rt-post-list-default .list-five-loadmore-items > div:last-child .rt-item {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none;
}
.rt-post-list-default .rt-item .entry-title {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 10px;
}
.rt-post-list-default .rt-item .entry-title a {
    color: #000000;
}
.rt-post-list-default ul.entry-meta {
    list-style: none;
    margin-bottom: 0;
    margin-left: 0;
    padding-left: 0;
}
.rt-post-list-default ul.entry-meta li {
    display: inline-block;
    color: #a5a6aa;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1.2;
    margin-right: 12px;
}
.rt-post-list-default ul.entry-meta li:last-child {
    margin-right: 0;
}
.rt-post-list-default ul.entry-meta li i {
    margin-right: 6px;
}
.rt-post-list-default ul.entry-meta li a {
    color: #a5a6aa;
}
.rt-post-list-default ul.entry-meta li a:hover {
    color: #2962ff !important;
}
.rt-post-list-default .rt-item .rt-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 25px;
}
.rt-post-list-default .rt-item .rt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: all 0.5s ease;
}
.rt-post-list-default .rt-item:hover .rt-image img {
    transform: scale3d(1.1,1.1,1);
}
.rt-post-list-default .rt-item .post-terms {
    margin-bottom: 14px;
    line-height: 1.2;
}
.rt-post-list-default .rt-item .post-terms.rt-cat {
    margin-bottom: 10px;
}
.rt-post-list-default .rt-item .post-terms a {
    display: inline-block;
    color: #a5a6aa;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 3px;
}
.rt-post-list-default .post-categories {
    list-style: none;
    margin-bottom: 0;
    margin-top: 5px;
    padding-left: 0;
}
.rt-post-list-default .post-categories li {
    display: inline-block;
}
.rt-post-list-default .rt-item .rt-cat-3 a {
    border: 1px solid #d7d7d7;
    border-radius: 2px;
    padding: 5px 7px 4px;
}
.rt-post-list-default .rt-item .post-terms a:hover {
    color: #2962ff;
}
.rt-post-list-default .rt-item .post-author a {
    color: #000000;
}
.rt-post-list-default .rt-item.top-post-item .post-author a {
    color: #ffffff;
}
.rt-post-list-default .rt-item .post_excerpt p {
    margin-bottom: 0;
}
.rt-post-list-default .rt-item .post-terms .category-style {
    display: inline-block;
    background-color: #2962ff;
    border-radius: 2px;
    color: #ffffff;
    padding: 6px 9px 5px;
}
.rt-post-list-default .rt-item .rt-image .rt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: #fff;
    color: #2962ff;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.rt-post-list-default.play-position-rb .rt-item .rt-image .rt-play {
    top: inherit;
    left: inherit;
    bottom: 0;
    right: 0;
    transform: none;
}
.rt-post-list-default.play-position-rt .rt-item .rt-image .rt-play {
    top: 0;
    left: inherit;
    right: 0;
    transform: none;
}
.rt-post-list-default.play-position-lt .rt-item .rt-image .rt-play {
    top: 0;
    left: 0;
    right: inherit;
    transform: none;
}
.rt-post-list-default.play-position-lb .rt-item .rt-image .rt-play {
    left: 0;
    bottom: 0;
    top: inherit;
    right: inherit;
    transform: none;
}
.rt-post-list-default .rt-item .post-read-more {
    margin-top: 20px;
}
.rt-post-list-default .rt-item.border-none {
    border: none;
}

/* Post List layout 1 */
.rt-post-list-style1 .rt-item {
    display: flex;
}
.rt-post-list-style1 .rt-item .rt-image {
    max-width: 350px;
    width: 100%;
    margin-right: 24px;
    margin-bottom: 0;
}
.rt-post-list-style1 .rt-item .entry-content {
    flex: 1;
}
.rt-post-list-style1 .rt-item .post_excerpt p {
    margin-bottom: 12px;
}
@media(max-width: 767px) {
    .rt-post-list-style1 .rt-item {
        flex-direction: column;
    }
    .rt-post-list-style1 .rt-item .rt-image {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
    }
}

/* Post List layout 2 */
.rt-post-list-style2 .rt-item.bottom-post-item .entry-title {
    font-size: 16px;
}
.rt-post-list-style2 .rt-item .terms-position {
    position: absolute;
    top: 20px;
    left: 20px;
}
.rt-post-list-style2 .rt-item .post_excerpt {
    margin-top: 12px;
}
.rt-post-list-style2 .rt-item .title-wrap {
    display: inline-flex;
    gap: 10px;
}
.rt-post-list-style2 .rt-item .title-wrap .icon-box {
    color: #b5b5b5;
}
.rt-post-list-style2 .rt-item:hover .title-wrap .icon-box i {
    animation: toRightFromLeft 0.5s forwards;
}

/* Post Grid layout 3 */
.rt-post-list-style3 .rt-item {
    display: flex;
    align-items: center;
}
.rt-post-list-style3 .rt-item .rt-image {
    max-width: 100px;
    width: 100%;
    margin-right: 24px;
    margin-bottom: 0;
    overflow: unset;
}
.rt-post-list-style3 .rt-item .entry-content {
    flex: 1;
}
.rt-post-list-style3 .count-on .rt-image::after {
    right: 0;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: #555555;
    font-size: 0.75rem;
    color: #fff;
    counter-increment: post-counter;
    content: counter(post-counter);
    font-weight: 500;
    position: absolute;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 2;
}
.rt-post-list-style3 .count-on:hover .rt-image::after {
    background-color: #2962ff;
}
.rt-post-list-style3 .rt-item .rt-image a {
    position: relative;
    overflow: hidden;
    display: flex;
    border-radius: 50%;
}

/* Post List layout 4 */
.rt-post-list-style4 {
    border-radius: 4px;
    padding-bottom: 20px;
}
.rt-post-list-style4.box-border {
    border: 1px solid #e5e5e5;
}
.rt-post-list-style4 .top-post-item.rt-item {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none;
}
.rt-post-list-style4 .top-post-item .entry-content {
    position: absolute;
    left: 20px;
    right: 60px;
    bottom: 20px;
    z-index: 1;
}
.rt-post-list-style4 .top-post-item.rt-item .entry-title a {
    color: #ffffff;
}
.rt-post-list-style4 .top-post-item.rt-item ul.entry-meta li {
    color: #d0d0d0;
}
.rt-post-list-style4 .top-post-item.rt-item .rt-image .rt-play {
    top: inherit;
    left: inherit;
    right: 20px;
    bottom: 25px;
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    transform: inherit;
}
.rt-post-list-style4.box-border  .bottom-post-item {
    padding-left: 20px;
    padding-right: 20px;
}
.rt-post-list-style4 .rt-item .rt-image::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 59%, rgba(0, 0, 0, 0.8) 100%);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.rt-post-list-style4 .rt-item .terms-position {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
}
.rt-post-list-style4 .bottom-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.rt-post-list-style4 .bottom-post-item .entry-title {
    font-size: 16px;
}
.rt-post-list-style4 .bottom-post-item .rt-video {
    margin-left: 15px;
}

/*Post list style 6*/
.rt-post-list-style6 .rt-item.border-none {
    border: none;
}
.rt-post-list-default.rt-post-list-style6 ul.entry-meta {
    margin-bottom: 5px;
}
.rt-post-list-default.rt-post-list-style6 .rt-item .title-wrap {
    display: flex;
}
.rt-post-list-default.rt-post-list-style6 .rt-item .title-wrap .icon-box {
    color: #b5b5b5;
    padding-left: 15px;
}
.rt-post-list-default.rt-post-list-style6 .rt-item:hover .title-wrap .icon-box i {
    animation: toRightFromLeft 0.5s forwards;
}

/* Post List layout 7 */
.rt-post-list-style7 ul.entry-meta {
    margin-bottom: 10px;
}
.rt-post-list-style7 .rt-item .entry-title {
    margin-bottom: 0;
}
.rt-post-list-style7 .top-post-item.rt-item {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none;
}
.rt-post-list-style7 .top-post-item .entry-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 30px;
    z-index: 1;
}
.rt-post-list-style7 .bottom-post-item .entry-title {
    font-size: 18px;
}
.rt-post-list-style7 .top-post-item.rt-item .entry-title a {
    color: #ffffff;
}
.rt-post-list-style7 .top-post-item.rt-item ul.entry-meta li {
    color: #d0d0d0;
}
.rt-post-list-style7 .top-post-item.rt-item .rt-play {
    position: relative;
    left: 0;
    bottom: 30px;
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
    transform: inherit;
}
.rt-post-list-style7.box-border  .bottom-post-item {
    padding-left: 20px;
    padding-right: 20px;
}
.rt-post-list-style7 .rt-item .rt-image::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 59%, rgba(0, 0, 0, 0.8) 100%);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
.rt-post-list-style7 .rt-item .title-wrap {
    display: inline-flex;
    gap: 15px;
}
.rt-post-list-style7 .rt-item .title-wrap .icon-box {
    color: #b5b5b5;
}
.rt-post-list-style7 .rt-item:hover .title-wrap .icon-box i {
    animation: toRightFromLeft 0.5s forwards;
}

/*Post list style 8*/
.rt-post-list-style8 .rt-item.border-none {
    border: none;
}
.rt-post-list-default.rt-post-list-style8 ul.entry-meta {
    margin-bottom: 5px;
}
.rt-post-list-default.rt-post-list-style8 .rt-item .title-wrap {
    display: flex;
}
.rt-post-list-default.rt-post-list-style8 .rt-item .title-wrap .icon-box {
    color: #b5b5b5;
    padding-left: 15px;
}
.rt-post-list-default.rt-post-list-style8 .rt-item:hover .title-wrap .icon-box i {
    animation: toRightFromLeft 0.5s forwards;
}

/* Post List box layout */
.rt-post-list-style1.list-box-layout .rt-item {
    background-color: #fff;
    box-shadow: 0px 0 16px 0px rgb(0 0 0 / 5%);
    border: none;
    padding-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.rt-post-list-style1.list-box-layout .rt-item .entry-content {
    padding: 24px;
}
.rt-post-list-style1.list-box-layout .rt-item .rt-image {
    margin: 0;
}
.rt-post-list-style2.list-box-layout {
    background-color: #fff;
    box-shadow: 0px 0 16px 0px rgb(0 0 0 / 5%);
    padding-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.rt-post-list-style2.list-box-layout .rt-item .entry-content {
    margin-left: 24px;
    margin-right: 24px;
}
.rt-post-list-style4.list-box-layout {
    background-color: #fff;
    box-shadow: 0px 0 16px 0px rgb(0 0 0 / 5%);
    padding-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.rt-post-list-style7.list-box-layout {
    background-color: #fff;
    box-shadow: 0px 0 16px 0px rgb(0 0 0 / 5%);
    padding-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.rt-post-list-style7.list-box-layout .rt-item .entry-content {
    margin-left: 24px;
    margin-right: 24px;
}

/* Dark Mode Support */
[data-theme="dark-mode"] .rt-post-list-default .rt-item .entry-title a,
[data-theme="dark-mode"] .rt-post-list-default .rt-item .post-author a {
    color: #ffffff;
}
[data-theme="dark-mode"] .rt-post-list-default .rt-item .post_excerpt p {
    color: #d0d0d0;
}
[data-theme="dark-mode"] .rt-post-list-default .rt-item {
    border-bottom: 1px solid #333;
}
[data-theme="dark-mode"] .rt-post-list-style1.list-box-layout .rt-item,
[data-theme="dark-mode"] .rt-post-list-style2.list-box-layout,
[data-theme="dark-mode"] .rt-post-list-style4.list-box-layout,
[data-theme="dark-mode"] .rt-post-list-style7.list-box-layout {
    background-color: #1a1a1a;
    box-shadow: 0px 0 16px 0px rgb(0 0 0 / 20%);
}

/* Animations */
@keyframes toRightFromLeft {
  49% {
    transform: translateX(100%);
  }
  50% {
    opacity: 0;
    transform: translateX(-100%);
  }
  51% {
    opacity: 1;
  }
}

.rt-animation-out {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Button styles used in templates */
.button-style-1 {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2962ff;
    color: #fff;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}
.button-style-1:hover {
    background-color: #000;
    color: #fff;
}
