.category-card {
    background-color: var(--bg-light-2);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--br-16);

    @include s {
        padding: 24px 16px;
    }

    .category-icon {
        margin-bottom: 34px;
    }

    .category-title {
        margin-bottom: 24px;
    }
}

.categories-section {
    @include s {
        padding-top: 40px !important;
    }
}

.page-categories .category-card {
    background: linear-gradient(0deg, #fff 0%, var(--bg-light-14) 100%);
}

.specializations-list {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 20px !important;

    &.collapsed {
        opacity: 0;
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.specialization-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    padding: 12px;
    border-radius: var(--br-8);
    border: 1px solid var(--border-color);
    margin-top: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    max-height: 60px;
    overflow: hidden;

    &.hidden {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .specialization-count {
        background-color: var(--bg-light-4);
        width: 22px;
        height: 22px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50px;
        font-size: 12px;
        color: var(--primary-color);
    }
}

.more-button {
    cursor: pointer;
    color: #1976d2;
    font-size: 14px;
    padding: 8px 0;
    border: none;
    background: none;
    text-decoration: underline;
    user-select: none;
    transition: all 0.3s ease;

    &:hover {
        opacity: 0.8;
    }
}

.category-specializations {
    cursor: pointer;
    user-select: none;
    color: var(--secondary-color-2);
    font-weight: 500;
    position: relative;
    margin-top: 20px;
    margin-bottom: 10px;

    &::before {
        content: "";
        width: 100%;
        height: 1px;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        background-color: var(--border-color-2);
        z-index: 0;
    }

    &:hover {
        opacity: 0.8;
    }

    .cs-icon-inner {
        width: 20px;
        height: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--bg-light-5);
        border-radius: var(--br-4);
    }

    span {
        background-color: var(--bg-light-2);
        position: relative;
        z-index: 1;
    }

    .cs-text {
        padding-right: 16px;
    }

    .cs-icon {
        padding-left: 16px;
    }
}
