.cb27-catelog {
    padding: 6rem 1.5rem;
    background: var(--color-bg, #ffffff);
}

.cb27-catelog .desktop-grid {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
}

.cb27-catelog .persona-card {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    width: 100%;
    height: 420px;
    overflow: hidden;
    flex: 1 1 0%;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.4, 1);
}


.cb27-catelog .desktop-grid:not(:hover) .persona-card.expanded,
.cb27-catelog .desktop-grid .persona-card:hover {
    flex: 4 1 0%;
}

.cb27-catelog .desktop-grid:hover .persona-card.expanded:not(:hover) {
    flex: 1 1 0%;
}

.cb27-catelog .card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.4, 1);
}

.cb27-catelog .persona-card:hover .card-bg {
    transform: scale(1.04);
}

.cb27-catelog .card-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transition: background 0.6s ease;
}

.cb27-catelog .static-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.cb27-catelog .dynamic-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.15) 100%);
}

.cb27-catelog .desktop-grid:not(:hover) .persona-card.expanded .card-overlay,
.cb27-catelog .desktop-grid .persona-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.15) 100%);
}

.cb27-catelog .desktop-grid:hover .persona-card.expanded:not(:hover) .card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.55) 100%);
}

/* ==========================================================================
   4. Typography & Card Content Containers
   ========================================================================== */
.cb27-catelog .card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    z-index: 10;
    box-sizing: border-box;
}

.cb27-catelog .card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.cb27-catelog .desktop-grid:not(:hover) .persona-card.expanded .card-header,
.cb27-catelog .desktop-grid .persona-card:hover .card-header {
    opacity: 1;
}

.cb27-catelog .desktop-grid:hover .persona-card.expanded:not(:hover) .card-header {
    opacity: 0.7;
}

.cb27-catelog .icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb27-catelog .icon {
    width: 16px;
    height: 16px;
    color: var(--color-bg, #ffffff);
}

.cb27-catelog .badge-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green);
}

.cb27-catelog .card-title {
    color: var(--color-bg, #fff);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    font-size: 1rem;
    transition: font-size 0.5s ease;
}

.cb27-catelog .desktop-grid:not(:hover) .persona-card.expanded .card-title,
.cb27-catelog .desktop-grid .persona-card:hover .card-title {
    font-size: 1.375rem;
}

.cb27-catelog .desktop-grid:hover .persona-card.expanded:not(:hover) .card-title {
    font-size: 1rem;
}

.cb27-catelog .reveal-content {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transform: translateY(16px);
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.4, 1),
        opacity 0.4s ease,
        transform 0.4s ease,
        margin 0.4s ease;
}

.cb27-catelog .desktop-grid:not(:hover) .persona-card.expanded .reveal-content,
.cb27-catelog .desktop-grid .persona-card:hover .reveal-content {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 0.75rem;
}

.cb27-catelog .card-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 0 1rem 0;
}

.cb27-catelog .badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.cb27-catelog .pill {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-bg, #fff);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    white-space: nowrap;
}

.cb27-catelog .primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 13px;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    transition: filter 0.2s ease;
    width: fit-content;
    height: 39.5px;
    text-transform: capitalize;
}

.cb27-catelog .arrow-icon {
    width: 14px;
    height: 14px;
}

.cb27-catelog .hint-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-top: 0.5rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, height 0.3s ease;
}

.cb27-catelog .desktop-grid:not(:hover) .persona-card.expanded .hint-text,
.cb27-catelog .desktop-grid .persona-card:hover .hint-text {
    opacity: 0;
    transform: translateY(10px);
    height: 0;
    margin: 0;
    pointer-events: none;
}
 .cb27-catelog .mobile-btn {
    display: none;
}

@media (max-width: 1023px) {
    .cb27-catelog {
        padding: 4rem 0;
    }
    

    .cb27-catelog .desktop-grid {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .cb27-catelog .persona-card {
        width: 100%;
        flex: 1 1 49% !important;
        min-height: 220px;
        height: auto;
        transition: min-height 0.5s ease;
    }

    /* .cb27-catelog .persona-card:hover {
    min-height: 220px;
  } */

    .cb27-catelog .card-content {
        position: relative;
        padding: 20px;
        min-height: 220px;
        transition: min-height 0.5s ease;
    }

    .cb27-catelog .card-overlay {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 100%) !important;
    }

    .cb27-catelog .card-header {
        opacity: 1 !important;
    }

    .cb27-catelog .persona-card:hover .card-header {
        opacity: 1 !important;
    }

    .cb27-catelog .card-title {
        font-size: 17px !important;
        white-space: normal;
    }

    .cb27-catelog .reveal-content,
    .hint-text {
        max-height: 0 !important;
        display: none;
    }

    .cb27-catelog .primary-btn {
        background: transparent;
        border: none;
        padding: 0;
        height: auto;
        font-size: 12px;
        margin-top: 8px;
    }
    .cb27-catelog .arrow-icon {
    width: 12px;
    height: 12px;
}
    .cb27-catelog .mobile-btn {
    display: inline-flex;
}

}