/* ===search results page================ */
.search-results-page {
    padding-top: 16px;
}

.main-content-row {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.left-sidebar {
    flex: 1 0 0;
}

.right-sidebar {
    max-width: 418px;
    width: 100%;
    flex: 0 0 auto;
}

.search-header,
.no-results {
    display: flex;
    width: 100%;
    padding: 24px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-radius: 16px;
    border: 1px solid var(--secondary-light, #E8ECFC);
    margin-bottom: 24px;
}

.search-header .search-title {
    color: var(--secondary-primary);
    font-family: var(--family-title);
    font-size: var(--size-4xl);
    font-style: normal;
    font-weight: 700;
    line-height: var(--line-height-xl);
    letter-spacing: -0.64px;
    text-transform: capitalize;
    margin-bottom: 0;
}

.search-title span:first-child::before {
    content: '“';
}

.search-title span:first-child::after {
    content: '”';
    margin-right: 6px;
}

.search-results-grid {
    display: grid;
    gap: 16px;
}

article.search-item {
    border-radius: 16px;
    background: var(--surface-2);
    display: flex;
    flex-flow: column;
}

article.search-item figure {
    line-height: 0;
}

article.search-item .wp-post-image {
    border-radius: 16px;
    width: 100%;
    object-fit: cover;
}

.no-results {
    margin-bottom: 0;
}

.no-results h2 {
    color: var(--text-primary);
    font-family: var(--family-title);
    font-size: var(--size-4xl);
    font-style: normal;
    font-weight: 700;
    line-height: var(--line-height-xl);
    letter-spacing: -0.64px;
    text-transform: capitalize;
}

/* ===search results page ends================ */
.crypto-conclusion-box {
    border-radius: 16px;
    border: 1px solid var(--additional-divider);
    padding: 32px;
}

.crypto-conclusion-box br {
    display: none;
}

.crypto-conclusion-box .conclusion-title {
    color: var(--text-secondary, rgba(66, 66, 66, 0.80));
    font-family: var(--family-title);
    font-size: var(--size-2xl);
    font-style: normal;
    font-weight: 700;
    line-height: var(--line-height-lg);
    letter-spacing: -0.24px;
    text-transform: capitalize;
}

.conclusion-text,
.conclusion-text p {
    color: var(--text-primary, #242424);
    font-size: var(--size-md);
    line-height: var(--line-height-md);
    /* 150% */
}

/* --------------author detail page css---------- */
.author-detail-secn {
    margin-top: 16px;
}

.author-info-card {
    margin-bottom: 24px;
    padding: 24px 32px;
    border-radius: 16px;
    border: 1px solid var(--additional-divider, #E3E3E3);
}

.author-info-grid {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 24px;
}

.author-info-card .author-info {
    display: flex;
    flex-flow: column;
    word-break: break-word;
    margin-bottom: 0;
}

.author-info-card .author-role {
    margin-bottom: 4px;
    color: var(--secondary-primary);
    font-size: var(--size-xs);
    font-weight: 600;
    line-height: var(--line-height-xs);
}

.author-info-card h1, .author-heading-mobile {
    color: var(--text-primary);
    font-family: var(--family-title);
    font-size: var(--size-3xl);
    font-weight: 700;
    line-height: var(--line-height-lg);
    letter-spacing: -0.56px;
    margin-bottom: 12px;
}

.author-info-card .author-social-profile {
    margin-bottom: 1rem;
}

.author-info-card .author-info-content p {
    color: var(--text-secondary, rgba(66, 66, 66, 0.80));
    font-family: var(--family-body);
    font-size: var(--size-sm);
    font-weight: 400;
    line-height: var(--line-height-sm);
}
.author-info-card .author-info-content a{
    color: var(--secondary-primary);
}
.author-info-card .author-info-content a:hover, .author-info-card .author-info-content a:focus, .author-info-card .author-info-content a:active {
    text-decoration: underline;
}

.author-info-right {
    display: flex;
    flex-flow: column;
    gap: 8px;
}

.author-info-right .author-image {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.author-info-right .author-image img {
    width: 100%;
    height: 120px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 16px;
}

.author-info-right .author-article-info .author-role,
.author-info-right .author-article-info .author-heading-mobile {
    display: none;
}

.author-info-card .author-articles-count {
    display: flex;
    flex-flow: column;
    gap: 8px;
}

.author-info-card .author-articles-count .articles-count {
    color: var(--text-primary, #242424);
    font-family: var(--family-body);
    font-size: var(--size-xs);
    font-weight: 600;
    line-height: var(--line-height-xs);
    text-decoration: underline;
    text-decoration-color: var(--primary-primary);
    text-align: center;
    margin-bottom: 0;
    text-underline-offset: auto;
}

.author-info-card .author-articles-count span {
    color: var(--text-secondary, rgba(66, 66, 66, 0.80));
    font-size: var(--size-xs);
    font-weight: 400;
    line-height: var(--line-height-xs);
    text-align: center;
}

/* author detail page css */
/* posts tabs secn */
.posts-tabs-section .cats-tab-con {
    margin-bottom: 1rem;
}

.posts-tabs-section {
    margin-bottom: 24px;
}


/* all athor posts */
.author-all-posts .common-news-head .heading-title {
    margin-bottom: 0;
}

.author-cd-posts-list {
    display: grid;
    grid-template-columns: 1fr;
}

/* archive category page css */
.archive-detail-secn .archive-header-wrapper {
    margin-bottom: 24px;
    padding: 24px 32px;
}

.archive-detail-secn .archive-header-wrapper .crypto-archive-sub-content {
    width: 100%;
    flex: 1;
}

.archive-detail-secn .archive-header-wrapper h1 {
    color: var(--text-primary);
}

.archive-detail-secn .archive-header-wrapper .crypto-archive-sub-content p {
    color: var(--text-primary);
    font-size: var(--size-sm);
    line-height: var(--line-height-sm);
}
.archive-detail-secn .archive-header-wrapper .crypto-archive-sub-content p a {
    color: var(--secondary-primary);
}
.archive-detail-secn .archive-header-wrapper .crypto-archive-sub-content p a:hover, .archive-detail-secn .archive-header-wrapper .crypto-archive-sub-content p a:focus, .archive-detail-secn .archive-header-wrapper .crypto-archive-sub-content p a:active {
    text-decoration: underline;
}

.archive-detail-secn .archive-header-wrapper .post-count {
    position: relative;
    color: var(--text-secondary, rgba(66, 66, 66, 0.80));
    text-align: center;
    font-size: var(--size-sm);
    font-style: normal;
    font-weight: 400;
    line-height: var(--line-height-sm);
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    justify-content: center;
    align-self: anchor-center;
    margin-top: 0px;
    flex: 0 0 auto;
    margin-left: auto;
}

.category-most-popular .common-news-head .heading-title {
    margin-bottom: 0;
}

.category-most-popular-news-list {
    margin-bottom: 24px;
}
 .author-cd-posts-list .post-item-card .cd-post-time span.post-author:hover a {
    text-decoration: underline;
    text-decoration-color: var(--primary-primary, #F6CA19);
    text-underline-offset: 2px;
}

/* ============================common media=================
 */
@media (min-width:992px) {
    .search-results-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .search-results-grid .cd-post-time {
        display: none;
    }

    .author-cd-posts-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 30px;
    }

    
/* ----------------------------------
   COMMON cd-post-time animation
---------------------------------- */
/* cd-post-time smoother reveal */
.author-cd-posts-list .post-item-card {
    overflow: hidden;
    min-height:212px;
}
/* summary container */
.author-cd-posts-list .post-item-card .post-item-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
   
}

.author-cd-posts-list .post-item-card .cd-post-time {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: calc(100% - 32px);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
     column-gap: 8px;
    display: flex;
    
}

/* DATE — AUTO WIDTH BUT truncated if too long */
.author-cd-posts-list .post-item-card .cd-post-time .post-date {
    max-width: 50%;         
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
    -webkit-line-clamp:1;
}

/* AUTHOR — takes remaining space */
.author-cd-posts-list .post-item-card .cd-post-time .post-author {
    min-width: 0;
    overflow: hidden;
    flex: 1 0 0;
}

.author-cd-posts-list .post-item-card .cd-post-time .post-author a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover reveal */
.author-cd-posts-list .post-item-card:hover .cd-post-time {
    opacity: 1;
    transform: translateY(8px);
    pointer-events: auto;
}


/* ----------------------------------
   IMAGE TRANSITIONS
---------------------------------- */
.author-cd-posts-list .cd-post-time .post-date::after {
	content: ",";
	margin-left: 0px;
	display: inline-block;
}
.author-cd-posts-list .post-item-card .post-item-thumb img {
    transition: height 0.35s ease;
}
.author-cd-posts-list .post-item-card.title-3-lines:hover .post-item-thumb img {
    height: 100px;
}
/* title-2-lines → shrink to 124px */

.author-cd-posts-list .post-item-card.title-2-lines:hover .post-item-thumb img {
    height: 124px;
}
/* title-1-lines → shrink to 144px */
.author-cd-posts-list .post-item-card.title-1-line .post-item-thumb img {
    height: 164px;
}
.author-cd-posts-list .post-item-card.title-1-line:hover .post-item-thumb img {
    height: 144px;
}

}

/* ----992--ends-- */

@media (max-width:991.98px) {
    .search-header {
        padding: 16px;
        margin-bottom: 24px;
    }

    .search-results-grid .news-card:first-of-type {
        margin-bottom: 0;
        display: grid;
        grid-template-columns: 120px 1fr;
    }

    .search-results-grid .news-card:first-of-type .news-card-img img {
        height: 84px;
    }

    .search-results-grid .news-card:first-of-type .news-card-content {
        padding: 12px;
    }

    .search-results-grid .news-card:first-of-type .news-card-content .caption-title {
        overflow: hidden;
        color: var(--text-primary);
        text-overflow: ellipsis;
        font-family: var(--family-title);
        font-style: normal;
        font-weight: 500;
        line-height: var(--line-height-sm);
        font-size: var(--size-md);
        text-transform: capitalize;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        align-self: stretch;
    }

    .crypto-conclusion-box {
        padding: 16px 16px 32px;
    }

    .crypto-conclusion-box .conclusion-title {
        margin-bottom: 8px;
    }

    /* author detail page */
    .author-detail-secn {
        margin-top: 14px;
    }

    .author-info-card {
        margin-bottom: 16px;
        padding: 16px;
    }

    .author-info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .author-info-left {
        order: 1;
    }

    .author-info-right {
        order: 0;
        display: grid;
        grid-template-columns: 80px 1fr;
        align-items: flex-start;
    }

    .author-info-right .author-image img {
        height: 80px;
    }

    .author-info-right .author-article-info .author-role,
    .author-info-right .author-article-info .author-heading-mobile {
        display: block;
    }

   .author-info-card h1, .author-heading-mobile {
        margin-bottom: 4px;
    }

    .author-article-info {
        word-break: break-word;
        padding: 8px 0 0;
    }

    .author-info-card .author-articles-count {
        flex-flow: row;
    }

    .author-info-card .author-articles-count span {
        position: relative;
        order: 0;
    }

    .author-info-card .author-articles-count span::after {
        content: ",";
        margin-left: 0px;
    }

    .author-info-card .author-info .author-role,
    .author-info-card .author-info h1 {
        display: none;
    }

    .author-info-card .author-articles-count a {
        order: 1;
    }

    .archive-detail-secn .archive-header-wrapper {
        margin-bottom: 16px;
        padding: 16px;
    }

    .common-news-articles .common-news-head {
        margin-bottom: 1.5rem;
    }

    .archive-detail-secn .common-sidebar .widget_cryptodnes_experts {
        margin-bottom: 0;
    }

    .common-news-grid .news-card:first-of-type {
        display: grid;
        grid-template-columns: 120px 1fr;
        margin-bottom: 0;
    }

    .common-news-grid .news-card:first-of-type .news-card-img img {
        height: 84px;
    }

    .common-news-grid .news-card:first-of-type .news-card-content {
        padding: 12px;
    }

    .common-news-grid .news-card:first-of-type .caption-title {
        color: var(--text-primary);
        line-height: var(--line-height-sm);
        font-size: var(--size-md);
    }


}

/* -----991 ends---------- */

@media (min-width:768px) and (max-width:991.98px) {
    .search-results-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .author-cd-posts-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width:767.98px) {
    .author-cd-posts-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .common-news-grid {
        gap: 8px;
    }
}