/* =========================================================
   Stock / Market logo overrides
   Works with SVG logos without relying on generated thumbs
   ========================================================= */


/* Category page / Search results stock logos - compact SVG friendly */
.category-list .item-list {
    padding: 12px 0 !important;
    min-height: 88px !important;
}

.category-list .item-list .row {
    align-items: center;
}

.category-list .item-list .photobox {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-list .item-list .photobox .add-image {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f7fb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.category-list .item-list .photobox .add-image a {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.category-list .item-list .photobox .add-image img,
.category-list .item-list .photobox .add-image img.thumbnail,
.category-list .item-list .photobox .add-image img.stock-list-logo {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    object-position: center center !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

.category-list .item-list .add-desc-box,
.category-list .item-list .items-details {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.category-list .item-list .add-title {
    margin-bottom: 6px !important;
}


/* Homepage market category cards */
.home-market-card__link {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-market-card__logo {
    width: 82px !important;
    height: 44px !important;
    max-width: 82px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
    margin: 0 auto 10px;
}

.home-market-card__name {
    text-align: center;
    line-height: 1.35;
}


/* Mobile tuning */
@media (max-width: 575.98px) {
    .category-list .item-list {
        padding: 10px 0 !important;
        min-height: 76px !important;
    }

    .category-list .item-list .photobox .add-image {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        min-height: 58px !important;
    }

    .category-list .item-list .photobox .add-image img,
    .category-list .item-list .photobox .add-image img.thumbnail,
    .category-list .item-list .photobox .add-image img.stock-list-logo {
        width: 42px !important;
        height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }

    .home-market-card__logo {
        width: 72px !important;
        height: 38px !important;
        max-width: 72px !important;
        max-height: 38px !important;
    }
}
/* =========================================================
   PriceToWorth Featured-in badges: unified screener-style palette
   Used in Search / Category / Sector / Industry stock lists.
   ========================================================= */
.category-list .post-types,
.home-random-posts .post-types {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.category-list .post-types a.post-type-badge,
.category-list .post-types .post-type-badge,
.home-random-posts .post-types a.post-type-badge,
.home-random-posts .post-types .post-type-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 24px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.category-list .post-types a.post-type-badge:hover,
.category-list .post-types .post-type-badge:hover,
.home-random-posts .post-types a.post-type-badge:hover,
.home-random-posts .post-types .post-type-badge:hover {
    filter: brightness(.98) !important;
    transform: translateY(-1px);
}

.category-list .post-types .chip-icon,
.home-random-posts .post-types .chip-icon {
    font-size: 13px !important;
    line-height: 1 !important;
}

/* Same semantic tones used by the Dynamic Screeners table */
.category-list .post-types .chip-strong-positive,
.home-random-posts .post-types .chip-strong-positive {
    color: #064e2e !important;
    background: #d8f3e4 !important;
    border-color: #8bd3ab !important;
}

.category-list .post-types .chip-positive,
.home-random-posts .post-types .chip-positive {
    color: #126437 !important;
    background: #e8f7ef !important;
    border-color: #bde7cf !important;
}

.category-list .post-types .chip-negative,
.home-random-posts .post-types .chip-negative {
    color: #a52121 !important;
    background: #fdecec !important;
    border-color: #f3c1c1 !important;
}

.category-list .post-types .chip-warning,
.home-random-posts .post-types .chip-warning {
    color: #8a5200 !important;
    background: #fff4df !important;
    border-color: #f4d49e !important;
}

.category-list .post-types .chip-info,
.home-random-posts .post-types .chip-info {
    color: #0d5f91 !important;
    background: #eaf5fb !important;
    border-color: #c8e3f2 !important;
}

.category-list .post-types .chip-info-positive,
.home-random-posts .post-types .chip-info-positive {
    color: #147a8a !important;
    background: #f1fdff !important;
    border-color: #cdeff5 !important;
}

.category-list .post-types .chip-neutral,
.home-random-posts .post-types .chip-neutral,
.category-list .post-types .chip-default,
.home-random-posts .post-types .chip-default {
    color: #4f6071 !important;
    background: #eef3f7 !important;
    border-color: #dbe5ed !important;
}

/* Backward-compatible aliases used by older list templates */
.category-list .post-types .chip-value-positive,
.home-random-posts .post-types .chip-value-positive {
    color: #126437 !important;
    background: #e8f7ef !important;
    border-color: #bde7cf !important;
}
.category-list .post-types .chip-overvalued,
.home-random-posts .post-types .chip-overvalued {
    color: #a52121 !important;
    background: #fdecec !important;
    border-color: #f3c1c1 !important;
}
.category-list .post-types .chip-momentum,
.category-list .post-types .chip-income,
.category-list .post-types .chip-defensive,
.category-list .post-types .chip-profitability,
.home-random-posts .post-types .chip-momentum,
.home-random-posts .post-types .chip-income,
.home-random-posts .post-types .chip-defensive,
.home-random-posts .post-types .chip-profitability {
    color: #126437 !important;
    background: #e8f7ef !important;
    border-color: #bde7cf !important;
}
.category-list .post-types .chip-near-high,
.category-list .post-types .chip-near-low,
.home-random-posts .post-types .chip-near-high,
.home-random-posts .post-types .chip-near-low {
    color: #8a5200 !important;
    background: #fff4df !important;
    border-color: #f4d49e !important;
}
.category-list .post-types .chip-size,
.home-random-posts .post-types .chip-size {
    color: #0d5f91 !important;
    background: #eaf5fb !important;
    border-color: #c8e3f2 !important;
}
.category-list .post-types .chip-gem,
.home-random-posts .post-types .chip-gem {
    color: #147a8a !important;
    background: #f1fdff !important;
    border-color: #cdeff5 !important;
}

@media (max-width: 575.98px) {
    .category-list .post-types,
    .home-random-posts .post-types {
        gap: 5px !important;
    }

    .category-list .post-types a.post-type-badge,
    .category-list .post-types .post-type-badge,
    .home-random-posts .post-types a.post-type-badge,
    .home-random-posts .post-types .post-type-badge {
        min-height: 23px !important;
        padding: 3px 8px !important;
        font-size: 12px !important;
    }
}


/* =========================================================
   PriceToWorth Similar Stocks widget on stock details pages
   SEO-friendly larger related-stock block with stable links
   ========================================================= */
.ptw-similar-stocks-widget .content-box {
    margin-bottom: 18px !important;
}

.ptw-similar-stocks-widget__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
}

.ptw-similar-stocks-widget__header h2 {
    margin-bottom: 0 !important;
}

.ptw-similar-stocks-widget__view-all {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    border: 1px solid #c8e3f2 !important;
    background: #eaf5fb !important;
    color: #0d5f91 !important;
    font-size: 12.5px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.ptw-similar-stocks-widget__view-all:hover {
    background: #dff0f9 !important;
    color: #084c76 !important;
}

.ptw-similar-stocks-widget__summary {
    max-width: 980px !important;
    margin: 8px 0 0 !important;
    color: #5f6f80 !important;
    font-size: 13.5px !important;
    line-height: 1.65 !important;
}

.ptw-similar-stocks-widget .category-list-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

.ptw-similar-stocks-widget .item-list {
    border-bottom: 1px solid #edf1f5 !important;
}

@media (min-width: 992px) {
    .ptw-similar-stocks-widget .category-list-wrapper > .item-list {
        width: 50% !important;
        max-width: 50% !important;
        padding: 12px 14px !important;
        border-right: 1px solid #edf1f5 !important;
    }

    .ptw-similar-stocks-widget .category-list-wrapper > .item-list:nth-child(2n) {
        border-right: 0 !important;
    }

    .ptw-similar-stocks-widget .item-list .photobox {
        flex: 0 0 74px !important;
        max-width: 74px !important;
    }

    .ptw-similar-stocks-widget .item-list .add-desc-box {
        flex: 0 0 calc(100% - 74px) !important;
        max-width: calc(100% - 74px) !important;
    }

    .ptw-similar-stocks-widget .item-list .add-title a {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 991.98px) {
    .ptw-similar-stocks-widget .category-list-wrapper > .item-list {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 575.98px) {
    .ptw-similar-stocks-widget__header {
        align-items: flex-start !important;
    }

    .ptw-similar-stocks-widget__view-all {
        width: 100% !important;
        justify-content: center !important;
    }

    .ptw-similar-stocks-widget__summary {
        font-size: 12.8px !important;
        line-height: 1.6 !important;
    }
}

/* =========================================================
   PriceToWorth Featured-in chips: institutional visual style
   Applies to Search / Category / Sector / Industry lists only.
   This intentionally overrides the older semantic chip palette so
   Featured in does not look like Fair Value / Analyst / Market Cap badges.
   ========================================================= */
.category-list .post-types {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 4px 0 0 8px !important;
    padding: 5px 8px 5px 10px !important;
    border-left: 3px solid #f28c28 !important;
    border-radius: 14px !important;
    background: linear-gradient(90deg, rgba(242, 140, 40, 0.095), rgba(31, 78, 121, 0.045)) !important;
    box-shadow: inset 0 0 0 1px rgba(216, 225, 235, 0.75) !important;
}

.category-list .post-types .fw-bold,
.category-list .post-types .gradient-text {
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 2px !important;
    margin-left: 0 !important;
    color: #8a4b00 !important;
    background: transparent !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #8a4b00 !important;
    font-size: 10.5px !important;
    font-weight: 900 !important;
    letter-spacing: .075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.category-list .post-types a.post-type-badge,
.category-list .post-types .post-type-badge,
.category-list .post-types .chip-positive,
.category-list .post-types .chip-negative,
.category-list .post-types .chip-momentum,
.category-list .post-types .chip-income,
.category-list .post-types .chip-defensive,
.category-list .post-types .chip-profitability,
.category-list .post-types .chip-near-high,
.category-list .post-types .chip-near-low,
.category-list .post-types .chip-size,
.category-list .post-types .chip-info,
.category-list .post-types .chip-default,
.category-list .post-types .chip-value-positive,
.category-list .post-types .chip-overvalued,
.category-list .post-types .chip-gem {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 25px !important;
    padding: 5px 10px !important;
    border-radius: 10px !important;
    border: 1px solid #cfd8e3 !important;
    background: linear-gradient(180deg, #ffffff, #f8fafc) !important;
    color: #243447 !important;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    opacity: 1 !important;
}

.category-list .post-types a.post-type-badge::before,
.category-list .post-types .post-type-badge::before {
    content: "" !important;
    flex: 0 0 auto !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #e63946, #ff9e1b) !important;
    box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.12) !important;
}

.category-list .post-types a.post-type-badge:hover,
.category-list .post-types .post-type-badge:hover {
    border-color: #98b5d1 !important;
    background: linear-gradient(180deg, #ffffff, #eef6ff) !important;
    color: #163a5a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(31, 78, 121, 0.11) !important;
}

.category-list .post-types .chip-icon {
    font-size: 12px !important;
    line-height: 1 !important;
}

@media (max-width: 575.98px) {
    .category-list .post-types {
        width: 100% !important;
        margin: 6px 0 0 !important;
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    .category-list .post-types .fw-bold,
    .category-list .post-types .gradient-text {
        width: 100% !important;
        margin-bottom: 1px !important;
    }

    .category-list .post-types a.post-type-badge,
    .category-list .post-types .post-type-badge {
        min-height: 24px !important;
        padding: 4px 9px !important;
        font-size: 11.5px !important;
        border-radius: 9px !important;
    }
}

/* =========================================================
   PriceToWorth Home Randomly Selected Stocks — Two-column institutional list v3
   Scoped only to the homepage random/latest widget.
   All screener badges remain visible and wrap naturally.
   ========================================================= */
.ptw-home-random-posts,
.home-random-posts {
    --ptw-random-border: #dfe7ef;
    --ptw-random-border-soft: #edf2f7;
    --ptw-random-ink: #0f2d3d;
    --ptw-random-muted: #64748b;
    --ptw-random-blue: #1f4e79;
    --ptw-random-accent: #f28c28;
    --ptw-random-surface: #ffffff;
    --ptw-random-soft: #f8fafc;
}

.ptw-home-random-posts .container,
.home-random-posts .container {
    max-width: 1180px !important;
}

.ptw-home-random-posts .content-box,
.home-random-posts .content-box {
    border: 1px solid var(--ptw-random-border) !important;
    border-radius: 18px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045) !important;
}

.ptw-home-random-posts .row-featured,
.home-random-posts .row-featured {
    margin: 0 !important;
}

.ptw-home-random-posts .box-title,
.home-random-posts .box-title {
    padding: 18px 22px 12px !important;
    border-bottom: 1px solid var(--ptw-random-border-soft) !important;
    background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
}

.ptw-home-random-posts .box-title .inner,
.home-random-posts .box-title .inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.ptw-home-random-posts .box-title h2,
.home-random-posts .box-title h2 {
    margin: 0 !important;
    color: var(--ptw-random-ink) !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    letter-spacing: -0.015em !important;
}

.ptw-home-random-posts .box-title .title-3,
.home-random-posts .box-title .title-3 {
    color: inherit !important;
}

.ptw-home-random-posts .category-list,
.home-random-posts .category-list {
    background: var(--ptw-random-soft) !important;
}

.ptw-home-random-posts .category-list-wrapper,
.home-random-posts .category-list-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 16px !important;
    background: var(--ptw-random-soft) !important;
}

.ptw-home-random-posts .category-list-wrapper::before,
.ptw-home-random-posts .category-list-wrapper::after,
.home-random-posts .category-list-wrapper::before,
.home-random-posts .category-list-wrapper::after {
    content: none !important;
    display: none !important;
}

.ptw-home-random-posts .category-list-wrapper > .item-list,
.home-random-posts .category-list-wrapper > .item-list {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--ptw-random-border) !important;
    border-radius: 14px !important;
    background: var(--ptw-random-surface) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035) !important;
    overflow: hidden !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}

.ptw-home-random-posts .category-list-wrapper > .item-list:hover,
.home-random-posts .category-list-wrapper > .item-list:hover {
    border-color: #c5d5e4 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.075) !important;
    transform: translateY(-1px) !important;
}

.ptw-home-random-posts .item-list .row,
.home-random-posts .item-list .row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 14px !important;
}

.ptw-home-random-posts .item-list .photobox,
.home-random-posts .item-list .photobox {
    flex: 0 0 74px !important;
    width: 74px !important;
    max-width: 74px !important;
    padding: 0 !important;
    text-align: center !important;
}

.ptw-home-random-posts .item-list .photobox .add-image,
.home-random-posts .item-list .photobox .add-image {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(180deg, #f6f8fb, #eef3f7) !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.ptw-home-random-posts .item-list .photobox .add-image a,
.home-random-posts .item-list .photobox .add-image a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ptw-home-random-posts .item-list .photobox .add-image img,
.ptw-home-random-posts .item-list .photobox .add-image img.thumbnail,
.ptw-home-random-posts .item-list .photobox .add-image img.stock-list-logo,
.home-random-posts .item-list .photobox .add-image img,
.home-random-posts .item-list .photobox .add-image img.thumbnail,
.home-random-posts .item-list .photobox .add-image img.stock-list-logo {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    object-position: center center !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ptw-home-random-posts .item-list .add-desc-box,
.home-random-posts .item-list .add-desc-box {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.ptw-home-random-posts .item-list .items-details,
.home-random-posts .item-list .items-details {
    padding: 0 !important;
    min-width: 0 !important;
}

.ptw-home-random-posts .item-list .add-title,
.home-random-posts .item-list .add-title {
    margin: 0 0 7px !important;
}

.ptw-home-random-posts .item-list .add-title a,
.home-random-posts .item-list .add-title a {
    color: var(--ptw-random-ink) !important;
    font-size: 14.5px !important;
    font-weight: 900 !important;
    line-height: 1.32 !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
}

.ptw-home-random-posts .item-list .add-title a:hover,
.home-random-posts .item-list .add-title a:hover {
    color: var(--ptw-random-blue) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.ptw-home-random-posts .item-list .stock-list-metrics,
.home-random-posts .item-list .stock-list-metrics {
    gap: 5px !important;
    margin: 5px 0 8px !important;
}

.ptw-home-random-posts .item-list .stock-list-metric,
.home-random-posts .item-list .stock-list-metric {
    min-height: 23px !important;
    padding: 3px 7px !important;
    font-size: 11px !important;
}

.ptw-home-random-posts .item-list .stock-list-metric em,
.home-random-posts .item-list .stock-list-metric em {
    display: none !important;
}

.ptw-home-random-posts .item-list .info-row,
.home-random-posts .item-list .info-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 9px !important;
    margin-top: 0 !important;
    width: 100% !important;
}

.ptw-home-random-posts .item-list .category,
.home-random-posts .item-list .category {
    margin: 0 !important;
    color: var(--ptw-random-muted) !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
}

.ptw-home-random-posts .item-list .category a,
.home-random-posts .item-list .category a {
    color: var(--ptw-random-blue) !important;
    text-decoration: none !important;
}

.ptw-home-random-posts .post-types,
.home-random-posts .post-types {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ptw-home-random-posts .post-types .fw-bold,
.ptw-home-random-posts .post-types .gradient-text,
.home-random-posts .post-types .fw-bold,
.home-random-posts .post-types .gradient-text {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin: 0 2px 0 0 !important;
    padding: 0 !important;
    color: #8a4b00 !important;
    background: transparent !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: #8a4b00 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .07em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.ptw-home-random-posts .post-types a.post-type-badge,
.ptw-home-random-posts .post-types .post-type-badge,
.ptw-home-random-posts .post-types .chip-positive,
.ptw-home-random-posts .post-types .chip-negative,
.ptw-home-random-posts .post-types .chip-momentum,
.ptw-home-random-posts .post-types .chip-income,
.ptw-home-random-posts .post-types .chip-defensive,
.ptw-home-random-posts .post-types .chip-profitability,
.ptw-home-random-posts .post-types .chip-near-high,
.ptw-home-random-posts .post-types .chip-near-low,
.ptw-home-random-posts .post-types .chip-size,
.ptw-home-random-posts .post-types .chip-info,
.ptw-home-random-posts .post-types .chip-default,
.ptw-home-random-posts .post-types .chip-value-positive,
.ptw-home-random-posts .post-types .chip-overvalued,
.ptw-home-random-posts .post-types .chip-gem,
.home-random-posts .post-types a.post-type-badge,
.home-random-posts .post-types .post-type-badge,
.home-random-posts .post-types .chip-positive,
.home-random-posts .post-types .chip-negative,
.home-random-posts .post-types .chip-momentum,
.home-random-posts .post-types .chip-income,
.home-random-posts .post-types .chip-defensive,
.home-random-posts .post-types .chip-profitability,
.home-random-posts .post-types .chip-near-high,
.home-random-posts .post-types .chip-near-low,
.home-random-posts .post-types .chip-size,
.home-random-posts .post-types .chip-info,
.home-random-posts .post-types .chip-default,
.home-random-posts .post-types .chip-value-positive,
.home-random-posts .post-types .chip-overvalued,
.home-random-posts .post-types .chip-gem {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 24px !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    border: 1px solid #d7e1ea !important;
    background: #ffffff !important;
    color: #243447 !important;
    text-decoration: none !important;
    font-size: 11.5px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    max-width: 100% !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.045) !important;
    opacity: 1 !important;
}

.ptw-home-random-posts .post-types a.post-type-badge::before,
.ptw-home-random-posts .post-types .post-type-badge::before,
.home-random-posts .post-types a.post-type-badge::before,
.home-random-posts .post-types .post-type-badge::before {
    content: "" !important;
    flex: 0 0 auto !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 999px !important;
    background: var(--ptw-random-accent) !important;
    box-shadow: 0 0 0 3px rgba(242, 140, 40, .12) !important;
}

.ptw-home-random-posts .post-types a.post-type-badge:hover,
.ptw-home-random-posts .post-types .post-type-badge:hover,
.home-random-posts .post-types a.post-type-badge:hover,
.home-random-posts .post-types .post-type-badge:hover {
    border-color: #98b5d1 !important;
    background: #f7fbff !important;
    color: #163a5a !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(31, 78, 121, 0.09) !important;
}

.ptw-home-random-posts .post-types .chip-icon,
.home-random-posts .post-types .chip-icon {
    font-size: 12px !important;
    line-height: 1 !important;
}

@media (max-width: 991.98px) {
    .ptw-home-random-posts .category-list-wrapper,
    .home-random-posts .category-list-wrapper {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

@media (max-width: 575.98px) {
    .ptw-home-random-posts .box-title,
    .home-random-posts .box-title {
        padding: 16px 16px 10px !important;
    }

    .ptw-home-random-posts .box-title .inner,
    .home-random-posts .box-title .inner {
        align-items: flex-start !important;
    }

    .ptw-home-random-posts .category-list-wrapper,
    .home-random-posts .category-list-wrapper {
        padding: 12px !important;
    }

    .ptw-home-random-posts .item-list .row,
    .home-random-posts .item-list .row {
        gap: 11px !important;
        padding: 12px !important;
    }

    .ptw-home-random-posts .item-list .photobox,
    .home-random-posts .item-list .photobox {
        flex-basis: 60px !important;
        width: 60px !important;
        max-width: 60px !important;
    }

    .ptw-home-random-posts .item-list .photobox .add-image,
    .home-random-posts .item-list .photobox .add-image {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        min-height: 54px !important;
        border-radius: 12px !important;
    }

    .ptw-home-random-posts .item-list .photobox .add-image img,
    .ptw-home-random-posts .item-list .photobox .add-image img.thumbnail,
    .ptw-home-random-posts .item-list .photobox .add-image img.stock-list-logo,
    .home-random-posts .item-list .photobox .add-image img,
    .home-random-posts .item-list .photobox .add-image img.thumbnail,
    .home-random-posts .item-list .photobox .add-image img.stock-list-logo {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }

    .ptw-home-random-posts .item-list .add-title a,
    .home-random-posts .item-list .add-title a {
        font-size: 13.5px !important;
    }

    .ptw-home-random-posts .post-types,
    .home-random-posts .post-types {
        gap: 5px !important;
    }

    .ptw-home-random-posts .post-types a.post-type-badge,
    .ptw-home-random-posts .post-types .post-type-badge,
    .home-random-posts .post-types a.post-type-badge,
    .home-random-posts .post-types .post-type-badge {
        min-height: 23px !important;
        padding: 3px 8px !important;
        font-size: 11px !important;
    }
}

