/********** skeleton start css **********************/

.search-content-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-content-skeleton .skeleton-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0px;
    padding: 0 16px 16px;
    border-bottom: 1px solid var(--cp-legacy-border-soft);
}

.search-content-skeleton .skeleton-img {
  width: 42px;
  height: 42px;
  background: var(--cp-legacy-skeleton-end);
  border-radius: 4px;
  animation: shimmer 1.2s infinite linear;
}

.search-content-skeleton .skeleton-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px; /* spacing between two text lines */
  padding-top: 2px;
}

.search-content-skeleton .skeleton-text {
  height: 14px;
  background: var(--cp-legacy-skeleton-end);
  border-radius: 4px;
  animation: shimmer 1.2s infinite linear;
}

.search-content-skeleton .skeleton-text.line1 {
  width: 96%;
}
.search-content-skeleton .skeleton-text.line2 {
  width: 66%;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.search-content-skeleton .skeleton-img,
.search-content-skeleton .skeleton-text {
  background-image: linear-gradient(
    to right,
    var(--cp-legacy-surface-soft) 0%,
    var(--cp-legacy-border-default) 50%,
    var(--cp-legacy-surface-soft) 100%
  );
  background-repeat: no-repeat;
  background-size: 400px 100%;
}


/*********** skeleton css end *******************/

/************ Posts start   ******************/
.result-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

#resource-suggestions .suggestion-item,
#resource-suggestions-mb .suggestion-item {
    overflow: hidden;
}

#resource-suggestions .result-block,
#resource-suggestions-mb .result-block {
    min-width: 0;
    width: 100%;
}

#resource-suggestions .result-details,
#resource-suggestions-mb .result-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

#resource-suggestions .result-details .post-title,
#resource-suggestions-mb .result-details .post-title {
    margin-bottom: 0;
    white-space: normal;
    word-break: break-word;
}

#resource-suggestions .result-details > a,
#resource-suggestions-mb .result-details > a {
    display: block;
    min-width: 0;
}

#resource-suggestions .result-details .post-author-meta,
#resource-suggestions-mb .result-details .post-author-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0px;
    row-gap: 15px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

#resource-suggestions .result-details .post-author-meta .post-author-label,
#resource-suggestions-mb .result-details .post-author-meta .post-author-label {
    white-space: nowrap;
}

#resource-suggestions .result-details .post-author-meta .post-author-link,
#resource-suggestions-mb .result-details .post-author-meta .post-author-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    color: var(--cp-legacy-text-muted);
    text-decoration: none;
    margin-left: 3px;
}

#resource-suggestions .result-details .post-author-meta .post-author-name,
#resource-suggestions-mb .result-details .post-author-meta .post-author-name {
    display: inline-block;
    min-width: 0;
    max-width: 100%;

}

#resource-suggestions .result-details .post-author-meta .post-published-date,
#resource-suggestions-mb .result-details .post-author-meta .post-published-date {
    min-width: 0;
    overflow-wrap: anywhere;
}

#resource-suggestions .result-details .post-author-meta .post-dot,
#resource-suggestions-mb .result-details .post-author-meta .post-dot {
    top: 0;
    margin: 0 8px;
}

@media (max-width: 480px) {
    #resource-suggestions .result-details .post-author-meta .post-dot,
    #resource-suggestions-mb .result-details .post-author-meta .post-dot {
        display: none;
    }
}

.result-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: #d4d4d4;
    color: var(--color-foreground-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
}

.result-details .post-author-meta {
    font-size: 12px;
    color: var(--cp-legacy-text-muted);
    margin-bottom: 4px;
    margin-top: 8px;
}
.post-author-meta a{
    color: var(--cp-legacy-text-muted);
}
.post-author-name{
    font-weight: 600;
    color: var(--cp-legacy-text-muted);
}
.post-author-name:hover{

    color: var(--cp-legacy-brand-primary);
}
.post-dot{
    display: inline-block;
    background: var(--cp-legacy-text-muted);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    position: relative;
    top: -2px;
    margin: 0 3px;
}

.result-details .post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-details .post-tags a.post-tag {
    text-decoration: none;
    background: #f0f2fc;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 11px !important;
    line-height: 15px;
    color: #4d4c4c;
    border: 0;
    margin: 6px 6px 0 0;
}

/********* Post end ***********************/

/********* events start ******************/


.event-date-box {
    width: 56px;
    height: 58px;
    text-align: center;
    background-color: #ed3a3d;
    color: var(--color-foreground-inverse);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 56px;
    display: inline-block;
    align-items: center;
}

.event-month {
    font-size: 12px;
    font-weight: 700;
    margin-top: 9px;
}

.event-day {
    font-size: 21px;
    font-weight: 700;
    margin-top: 22px;
}

.event-info {
  flex: 1;
}

.event-title {
  margin: 0 !important;
  font-size: 14px;
  font-weight: 600;
}

.event-venue {
  font-size: 12px;
  color: #666;
}

.event-tag {
    display: inline-block;
    margin-top: 4px;
    background-color: #E0E7FF;
    color: var(--cp-legacy-brand-bright);
    font-size: 10px;
    padding: 10px 8px 10px;
    border-radius: 12px;
    font-weight: 500;
}


/********** events ends ***************/

.suggestion-item h6 {
    white-space: break-spaces;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.searchbar_menu {
    width: 35%;
}
.custom-search-container:focus-within {
    border: 1px solid #e8e6e67a;
}
.search-bar #search-submit {
    background: 0 0;
    padding: 9px 2px;
    line-height: 0;
    float: right
}

.search-bar #search-input {
    width: 84%
}

.search-bar #search-input::placeholder {
    color: #fafAFA99
}

.custom-search-container {
    position: relative;
    width: 100%;
    padding: 0.8px 8px;
    z-index: 999;
    background: rgb(26 26 73);
    border-radius: 8px;
    border: 1px solid rgb(26 26 73);
}

.custom-search-design {
    width: 50%
}

#searchform{
    display: flex;
    align-items: center;
    white-space: initial;
}
#searchform img{
   position: relative;
    top: -1px;
    margin-right: 2px;
    width: 14px;
}
/* .suggestion-item a  */
#searchform input[type=text] {
    padding: 8px 4px 8px 10px;
    border: 0;
    border-radius: 0;
    width: 100%;
    background: 0 0;
    font-weight: 300;
    font-size: 14px;
    line-height: 21px;
    color: var(--color-foreground-inverse);
    outline: 0
}

#searchform input[type=text]::placeholder {
   color: rgba(250, 250, 250, .6);
}

#searchform button {
    background-color: transparent;
    border: 0;
    outline: 0
}

.suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e7e7e7;
    color: #0e1b1b
}

#resource-suggestions .suggestion-item:last-child,
.tab-content .suggestion-item:last-child {
    border-bottom: none
}

.suggestions-box .view-btn-link a {
     font-weight: 600;
    font-size: 14px;
    color: var(--cp-legacy-brand-primary);
}

.suggestions-box .view-btn-link a img {
    vertical-align: middle;
    margin-left: 4px;
    width: 18px
}

.suggestion-item h6 {
    display: -webkit-box;
    text-transform: capitalize
}

.suggestion-item ul {
    padding-left: 2px;
    list-style-type: none
}

.suggestion-item ul li {
    color: #787f7f;
    display: inline-block;
    font-weight: 400;
    font-size: 12px;
    border-right: 1px solid var(--cp-legacy-surface-soft);
    padding-right: 10px;
    margin-right: 6px;
    line-height: 18px
}

.suggestion-item ul li:last-child {
    border-right: 0;
    padding-right: 0;
    margin-right: 0
}

.suggestion-item p {
    font-size: 14px;
    line-height: 22px;
    margin: 6px 0
}

.events-suggestions .suggestion-item p,
.professional-suggestions .suggestion-item ul li,
.companies-suggestions .suggestion-item p,
.cryptocurrency-suggestions .suggestion-item p,
.markets-exchange-suggestions .suggestion-item p , .search-not-found p{
    margin-top: 0;
    font-size: 12px;
    line-height: 22px;
    font-weight: 400;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    color: var(--cp-legacy-text-muted);
}
.search-not-found p{
    white-space: pre-wrap;
    display: block;
}

.no_searched_keywords {
    color: var(--cp-legacy-text-muted);
    text-align: center;
    font-weight: 500;
    max-width: 90%;
    white-space: break-spaces;
    margin: auto;
}

.professional-suggestions .suggestion-item ul li:last-child {
    margin-left: 0;
}
.suggestion-lists {
    min-height: 50px;
}

#course-suggestions {
    position: relative;
    min-height: 40px;
}

.suggestions-box .suggestion-lists h5 {
    margin-top: 14px;
}

.highlight {
    font-weight: 700;
}

#suggestions.showSuggestionWithTransition {
    opacity: 1;
    transform: translateY(0);
}

#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width:350px;
    right: 0;
    background: var(--cp-legacy-surface-base);
    display: none;
    z-index: 999999;
    padding: 0;
    max-height: 480px;
    border: 1px solid var(--cp-legacy-brand-bright);
    border-radius: 5px;
    margin: 6px 0 0;
    box-shadow: 0 2px 5px var(--cp-legacy-shadow-10);
    min-height: 440px;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}



.result-image {
    border-radius: 8px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 46px;
    height: 46px;
    margin-right: 0px;
    min-width: 46px;
}

.suggestions-box .view-btn-link {
    font-weight: 600;
    font-size: 15px;
    line-height: 21px;
    color: #0e1b1b;
    margin-bottom: 10px;
    padding: 10px;
    margin-top: 4px;
    text-align: center;
    position: fixed;
    width: 100%;
}

.suggestion-item h6, .cryptocurrency-suggestions .price-text-right .font-semibold{
    color: #0e1b1b;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}
 .search-not-found h6{
      color: #0e1b1b;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    margin-top: 16px;
    margin-bottom: 4px;
 }
.suggestion-item h6.post-title{
  margin-bottom: 10px;
}
.suggestions .tab-menu {
    display: flex;
    border-bottom: 1px solid var(--cp-legacy-text-alpha-10);
    margin-bottom: 0px;
    white-space: nowrap;
    overflow: auto;
    user-select: none;
}

.suggestions .tab-menu::-webkit-scrollbar-thumb, .suggestions-height::-webkit-scrollbar-thumb ,  .suggestions-height::-webkit-scrollbar{
    height: 0;
    width: 0;

}

.suggestions .tab-item {
    padding: 17px 16px 15px;
    font-weight: 600;
    color: var(--cp-legacy-text-muted);
    cursor: pointer;
}

.suggestions .tab-item:hover{
        background: linear-gradient(0deg, var(--cp-legacy-brand-alpha-26) -26.92%, var(--cp-legacy-brand-alpha-10) -26.91%, transparent 75.15%);
}

.suggestions .tab-item.active {
    border-bottom: 2px solid var(--cp-legacy-brand-primary);
    background: linear-gradient(0deg, var(--cp-legacy-brand-alpha-26) -26.92%, var(--cp-legacy-brand-alpha-10) -26.91%, transparent 75.15%);
    color: var(--cp-legacy-brand-primary);
    font-weight: 600;

}

.suggestions .tab-content {
    display: none;
    text-align: left;
}

.suggestions .tab-content.active {
    display: block;
    padding: 14px 0 0;
}
.search-not-found{
  text-align: center;
    padding: 20px;
}

.suggestion-item:hover{
    background-color: var(--bg-page);
}
#cryptocurrency-suggestions .result-image,
#markets-exchange-suggestions .result-image,
#wallet-address-suggestions .result-image {
    min-width: 40px;
    height: 40px;
    width: 40px;
}

#wallet-address-suggestions h6 {
    width: 100%
}

#wallet-address-suggestions .float-right {
    color: #58667e;
    float: right;
    font-weight: 500;
    font-size: 13px;
    margin-top: 1px;
}



.clear-btn {
    cursor: pointer;
    font-weight: 300;
}

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

.suggestions-height {
    min-height: 340px;
    overflow-y: auto;
    max-height: 340px;
    overflow-x: hidden;
}

.suggestions .tab-menu::-webkit-scrollbar-thumb, .suggestions .tab-menu::-webkit-scrollbar {
    height: 0px;
    width: 0;
}

.price-text-right{
       margin-left: auto;
       text-align: right;
}
.price-text-right .text-red{
      color: rgb(177, 10, 10) !important;
    font-weight: 500 !important;
}
.price-text-right .text-green{
    color: #198e19 !important;
        font-weight: 500 !important;
}
.professional-suggestions .result-icon, .cryptocurrency-suggestion .result-icon, .markets-exchange-suggestions .result-icon{
    border-radius: 50%;
}
.price-text-right .font-semibold{
    white-space: pre-wrap;
    word-break: break-all !important;
    display: inline-block !important;
}
.follow-user-btn, .follow-user-login-btn, .follow-company-btn{
    display: none;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    margin-left: auto;
    min-height: 28px;
    min-width: 69px;
}
.bg-follow{
    background-color: var(--cp-legacy-brand-bright);
     color: var(--color-foreground-inverse);
}
.bg-following{
    background-color: var(--cp-legacy-surface-soft);
     color: #282a2c;
}
@media(max-width:1024px) {
    #resource-suggestions-mb .result-details .post-author-meta{
        row-gap: 0px;
    }
    #loginModal, #OTPPopModal{
            z-index: 999999;
    }
    #global-search-modal .custom-search-container {
        border-radius: 8px;
        max-height: 42px;
        border: 1px solid var(--cp-legacy-brand-border-30);
        margin-bottom: 18px;
        margin-top: 14px;
        background: transparent;
    }

    #global-search-modal .custom-search-container #searchform input[type=text] {
        font-size: 14px;
        cursor: pointer;
        font-weight: 600;
        color: #2c2f34;
    }

    #global-search-modal .custom-search-container .searchform input[type=text]::placeholder {
        color: #2c2f34;
        font-weight: 400;
    }

    #global-search-modal .modal-content {
        min-height: 550px;
    }

    #modal-suggestions {
        margin-left: -30px;
        margin-right: -30px;
        position: relative;
        margin-top: 14px;
    }

    .closemobile {
        float: right;
        position: relative;
        top: 2px;
        width: 12px;
    }

    #global-search-modal h2 {
        font-size: 18px;
        font-weight: 700;
        text-align: left;
    }

    .tab-content .suggestion-item:last-child {
        border-bottom: 0;
    }

    .suggestion-item {
        padding: 11px 16px;
    }

    .suggestion-item p {
        margin-bottom: 0 !important;
    }

    #searchsubmit img {
        margin-top: 6px;
    }

    #global-search-modal .loader {
        top: 70%
    }

    .result-image {
        width: 37px;
        height: 37px;
        min-width: 37px;
    }

    .clear-btn {
        font-weight: 300;
        color: #b2b2b2;
    }

    .suggestions .tab-item {
        padding: 6px 16px;
    }

    p.suggestion-item.text-center-align {
        font-size: 14px !important;
    }
    .event-tag{
        padding: 11px 8px 10px;
        line-height: 0;
    }
    .event-date-box{
      padding: 8px 0;
    }
    .event-day{
        font-size: 19px;
        margin-top: 0px;
    }
    .event-month{
        font-size: 10px;
        margin-top: 0px;
    }

}

@media(max-width:580px) {

    #global-search-modal .modal-dialog::-webkit-scrollbar-thumb,
    #global-search-modal .modal-dialog::-webkit-scrollbar{
        width: 0;
        height: 0;
    }
}
