/*------------------------------------*\
    
    Posts CSS
 
    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

\*------------------------------------*/

.blog-card-item {
    margin-top: 25px;
}

.blog-post__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    height: 100%;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(12,35,64,0.1);
    overflow: hidden;
    transition: transform .2s linear;
}

.blog-post__card-image {
    height: 144px;
    position: relative;
}

.blog-post__card-image .placeholder {
    padding: 20px;
}

.blog-post__card-tag {
    font-size: 12px;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, #0c2340 0%,#824088 60%,#ad6263 80%,#fa9e20 92%,#ffcb05 100%);
    position: absolute;
    right: 16px;
    top: 8px;
    padding: 1px 10px;
    border-radius: 12px;
}

.blog-post__card-details {
    padding: 15px 25px 5px;
}

.blog-post__card-date {
    color: #5A5D69;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 10px;
    display: flex;
    gap: 21px;
}

.blog-post__card-date span {
    position: relative;
}

.blog-post__card-date span:first-child::after {
    content: '';
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translate(0, -50%);
    width: 1px;
    height: 18px;
    background: #9194A1;
}

.blog-post__card-date span:first-child:has(+ .no-reading-time)::after {
    display: none;
}

.blog-post__card-date .no-reading-time {
    display: none;
}

.blog-post__card-title {
    font-size: 18px;
    line-height: 1.388em;
    color: #211B12 !important;
    padding: 0;
    margin: 0 0 5px 0;
}

.blog-post__card-title::after {
    display: none;
}

.blog-post__card-description {
    font-weight: 400;
    color: #5A5D69;
}

.blog-post__card-bottom {
    padding: 0 25px 25px;
}

.masthead--innerpage__content h3 { 
    &::after {
        display: none;
    }
}

@media (min-width: 768px) {    
    .card-item {
        margin-top: 35px;
    }
    
    .blog-post__card-image {
        height: 138px;
    }
    
    .blog-post__card-tag {
        right: 12px;
    }
    
    .blog-post__card-title {
        font-size: 20px;
        line-height: 1.4em;
    }
}

@media (min-width: 1200px) {
    .blog-post__card-image {
        height: 175px;
    }
    
    .blog-post__card-tag {
        top: 10px;
        right: 10px;
    }
    
    .blog-post__card-title {
        font-size: 23px;
    }

    .blog-post__card-description {
        line-height: 1.388em;
    }

    .blog-post__card:hover {
        background: #fff;
        transform: translate3d(0,-15px,0);
        transition: transform .2s linear;
    }
}

.blog-listing-container .blog-post__card-bottom .btn-tertiary {
    color: #824088;
    border: none;
    border-radius: 0;
    padding: 0 35px 0 0;
    background: transparent;
}

.blog-listing-container .blog-post__card-bottom .btn-tertiary::before {
    right: 0;
    color: #FADC6A;
    opacity: 0.5;
}

.blog-listing-container .blog-post__card-bottom .btn-tertiary::after {
    content: '\e907';
    font-family: 'alcor';
    position: absolute;
    top: 50%;
    right: 14px;
    font-size: 14px;
    font-weight: normal;
    transform: translate(0, -50%);
    width: auto;
    height: auto;
    background: transparent;
    z-index: 1;
    color: #824088;
}

@media (min-width: 768px) {
    .blog-listing-container .blog-post__card-bottom .btn-tertiary {
        padding: 8px 40px 8px 0;
    }

    .blog-listing-container .blog-post__card-bottom .btn-tertiary::before {
        font-size: 38px;
        right: 0;
    }
    
    .blog-listing-container .blog-post__card-bottom .btn-tertiary:after {
        right: 19px;
    }
}

@media (min-width: 1200px) {
    .blog-listing-container .blog-post__card-bottom .btn-tertiary {
        padding: 12px 40px 12px 0;
        transition: all ease-in-out 0.3s;
    }

    .blog-listing-container .blog-post__card-bottom .btn-tertiary:hover {
        background: transparent;
        padding-right: 50px;
        transition: all ease-in-out 0.3s;
    }

    .blog-listing-container .blog-post__card-bottom .btn-tertiary:hover::before {
        font-size: 50px;
        right: 0;
    }

    .blog-listing-container .blog-post__card-bottom .btn-tertiary:hover::after {
        right: 24px;
    }
}

/**
 * Sidebar
 */

/* Blog Sidebar */

.mobile-sidebar {
    position: relative;
    z-index: 1;
}

.page-sidebar .widget {
	margin-bottom: 35px;
}

.page-sidebar .widget:has(+ .widget_categories) {
    margin-bottom: 0;
}

.page-sidebar .widget_search,
.page-sidebar .widget:has(.wp-block-categories) {
    display: none;
}

.page-sidebar--top .widget {
    display: block;
}

.search-form {
    position: relative;
	display: flex;
    align-items: center;
}

.search-form input[type="text"] {
	width: 100%;
	height: 54px;
    font-size: 16px;
	padding: 10px 55px 10px 15px;
	border-radius: 50px;
	border: 2px solid #824088;
}

.search-form button[type="submit"] {
	position: absolute;
	right: 6px;
	background: #824088;
	color: #fff;
	border: none;
	border-radius: 50px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.search-form button[type="submit"]:hover {
    background: #734477;
}

.page-sidebar .widget_block .container {
	padding: 0;
}

.page-sidebar .widget_block .wp-block-categories .choices[data-type*="select-one"] {
    margin: 0;
}

.page-sidebar .widget_block .wp-block-categories .choices[data-type*="select-one"] .choices__input,
.page-sidebar .widget_block .choices[data-type*="select-one"] .choices__input {
	height: auto;
	border: none;
	border-bottom: 1px solid #dddddd;
	box-shadow: none;
}

@media (min-width: 768px) {
    .search-form input[type="text"] {
        font-size: 18px;
    }
}

@media (min-width: 1025px) {
    .page-sidebar .widget_search,
    .page-sidebar .widget:has(.wp-block-categories) {
        display: block;
    }
}

@media (min-width: 1200px) {
    .page-sidebar .widget {
        margin-bottom: 50px;
    }
}

/**
* FX Load More
*/

/* Load More Progress Bar */

.load-more {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin: 32px 0;
}

.load-more__progress {
    margin-top: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 250px;
    height: 10px;
    border: 0;
    border-radius: 0;
    background-color: #E3E3E3;
}

/* WebKit browsers (Chrome, Safari) */
.load-more__progress::-webkit-progress-bar {
    background-color: #E3E3E3;
}

.load-more__progress::-webkit-progress-value {
    background-color: #824088;
}

/* Firefox */
.load-more__progress::-moz-progress-bar {
    background-color: #824088;
}

/* Loading Indicator */

.is-loading:before  {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 50px;
    height: 50px;
    border: 5px solid;
    border-color: #E3E3E3 #E3E3E3 transparent;
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: simpleSpin 1.5s linear infinite;
    animation: simpleSpin 1.5s linear infinite;
}

/* Load More Button */

.load-more__btn {
    border: 0;
    display: block;
    margin-top: 20px;
}

.load-more__btn.is-loading {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more__btn.is-loading:before {
    width: 20px;
    height: 20px;
}

.load-more__btn.is-disabled {
    cursor: not-allowed;
    background-color: #4a4a4a;
}

@media (min-width: 1025px) {
    .load-more {
        margin: 50px 0 0;
    }
}

/* Placeholder Space */

.placeholder-block {
    position: relative;
    display: flex;
}

.placeholder-block__inner {
    flex-grow: 1;
    background-color: #fafafa;
}

.placeholder-block.is-loading:before {
    width: 50px;
    height: 50px;
}

@-webkit-keyframes simpleSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes simpleSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

/* Single Post */

.blog-single-container img {
    max-width: 600px;
}

.blog-single-container .post-content{
    margin-bottom: 30px;
}

/* Single Post Pagination */

.post-pagination {
    display: flex;
    justify-content: space-between;
    align-content: center;
    margin-top: 50px;
}

.btn-post-pagination {
    background:  #dadada;
    font-size:  15px;
    padding:  10px 20px;
    color:  #747474;
    position: relative;
}

.post-pagination-text {
    display: none;
}

.btn-post-pagination:hover {
    background: #ebebeb;
    color: #824088;
}

.btn-post-pagination strong {
    display: block;
    font-size: 12px;
}

.btn-previous-post,
.btn-next-post {
    max-width:  48%;
    flex:  0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align:  center;
}

.btn-previous-post {
    padding-left:  40px;
}

.btn-next-post {
    padding-right:  40px;
}

.mobile-arrow:after {
    content: '';
    display: block;
    width: 0; 
    height: 0; 
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #747474;
}

.mobile-arrow {
    position: absolute;
}

.btn-previous-post .mobile-arrow {
    left:  19px;
}

.btn-next-post .mobile-arrow {
    right:  19px;
}

.btn-previous-post .mobile-arrow:after { 
    transform:  rotate(180deg);
}

@media (min-width: 768px) {
    .post-pagination-text {
        display: block;
    }

    .btn-previous-post,
    .btn-next-post {
        text-align:  inherit;
    }
}

/* Search Results */

.search-result {
    display: flex;
    flex-flow: column-reverse;
    font-weight: 400;
    text-decoration: none;
    background: none;
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #E3E3E3;
}

.search-result:hover {
    background: none;
}

.search-result__title {
    margin-bottom: 16px;
}

.search-result__excerpt {
    margin-bottom: 20px;
}

.search-result__excerpt p {
    color: #4F4F50;
}

.search-result__img-container {
	width: 100%;
	max-width: 300px;
	margin-bottom: 20px;
}

.search-result__img-container img {
    width: 100%;
    height: auto;
}

.blog-single-container .newsletter-form,
.blog-single-container .newsletter-form .container {
    background: none;
    padding: 0;
}

.blog-single-container .newsletter-form + h1,
.blog-single-container .newsletter-form + h2,
.blog-single-container .newsletter-form + h3,
.blog-single-container .newsletter-form + h4,
.blog-single-container .newsletter-form + h5,
.blog-single-container .newsletter-form + h6,
.blog-single-container .newsletter-form + p {
	margin-top: 35px;
}